streamdeck-cpu
streamdeck-cpu copied to clipboard
Stuck on 0%
No matter what, the cpu plugin displays 0%.
Oct 2020....I have the same problem. It worked fine for a couple weeks then just stopped. I tried uninstalling and reinstalling but no change.
@mbzandhanna We have heard about some user with a corrupted registry. You might want to follow this Microsoft support page to try to solve the issue: https://support.microsoft.com/en-us/help/2554336/how-to-manually-rebuild-performance-counters-for-windows-server-2008-6
You might see more information by running this command:
get-counter -Counter "\Processor(_Total)\% Processor Time"
@mbzandhanna We have heard about some user with a corrupted registry. You might want to follow this Microsoft support page to try to solve the issue: https://support.microsoft.com/en-us/help/2554336/how-to-manually-rebuild-performance-counters-for-windows-server-2008-6
You might see more information by running this command:
get-counter -Counter "\Processor(_Total)\% Processor Time"
Thanks Yea...I've seen that possible solution elsewhere and had already bookmarked the page/link you supplied. But there is a lot involved in that solution that I'm afraid might mess up something else. At this moment all my known, to me, perf counters work (Afterburner-GPU, iCUE-CPU, Win10 Task Manager, Win10 Performance Monitor etc) except for the CPU counter for El Gato. Thanks but I'm not sure I'm willing to go that route for a 'possible' fix.
I've also tried running that command as Admin in Powershell and a CMD window and along with other people I've seen that are recent...that command returns an error...."'get-counter' is not recognized as an internal or external command, operable program or batch file."
@mbzandhanna The CPU plugin uses the get-counter
command to retrieve the CPU information. Other tools like Win10 Task Manager or Win10 Performance Monitor are probably using some super low-level APIs. If you see an error when running get-counter
from Powershell, then this explains why the CPU plugin is stuck at 0%. Why get-counter
doesn't work is weird. In the rare other cases I am aware of, the registry was corrupted.
@mbzandhanna The CPU plugin uses the
get-counter
command to retrieve the CPU information. Other tools like Win10 Task Manager or Win10 Performance Monitor are probably using some super low-level APIs. If you see an error when runningget-counter
from Powershell, then this explains why the CPU plugin is stuck at 0%. Whyget-counter
doesn't work is weird. In the rare other cases I am aware of, the registry was corrupted.
I suppose it's possible. I mean having a working CPU% button on my Stream Deck isn't the most important thing in the world. It was just nice to have in a few circumstances when my taskbar tray is not in view. The fact that it worked fine for a few weeks then just stopped is just annoying more than anything else. I've been having a few other small issues ever since the 2004 Win10 update hit. Instead of playing around with trying to repair the Registry I think I'm going to concentrate the next week or so on saving all my important setups/profiles/bindings etc and will just reinstall Windows and start fresh.
Thanks
I got the same issue after a fresh win 11 pro 21h2 installation. Looks like the counter is not longer available.
Get-Counter : Das angegebene Objekt wurde nicht auf dem Computer gefunden.
In Zeile:1 Zeichen:1
+ Get-Counter -Counter "\Processor(*)\% Processor Time"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidResult: (:) [Get-Counter], Exception
+ FullyQualifiedErrorId : CounterApiError,Microsoft.PowerShell.Commands.GetCounterCommand```
I got the same issue after a fresh win 11 pro 21h2 installation. Looks like the counter is not longer available.
Get-Counter : Das angegebene Objekt wurde nicht auf dem Computer gefunden. In Zeile:1 Zeichen:1 + Get-Counter -Counter "\Processor(*)\% Processor Time" + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidResult: (:) [Get-Counter], Exception + FullyQualifiedErrorId : CounterApiError,Microsoft.PowerShell.Commands.GetCounterCommand```
the counter is still available but it's langauge specific and always was. for a german system you have to use the german name of it. just type "get-counter", there you can then scroll and look for the info you need and the german name of it should be there..
did anyone solve this issue? it just shows me values from like 1-3% but taskmanager shows 20-30%. would be nice to view the real cpu usage
I started noticing this as well, didn't know all this time it was showing the wrong % usage.
I believe this is the issue: https://github.com/elgatosf/streamdeck-cpu/issues/24#issuecomment-1837714648