streamdeck-cpu icon indicating copy to clipboard operation
streamdeck-cpu copied to clipboard

Stuck on 0%

Open MSparrey opened this issue 5 years ago • 10 comments

No matter what, the cpu plugin displays 0%.

MSparrey avatar Jun 29 '19 05:06 MSparrey

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 avatar Oct 04 '20 18:10 mbzandhanna

@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"

elgatosystems avatar Oct 22 '20 13:10 elgatosystems

@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 avatar Oct 22 '20 16:10 mbzandhanna

@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.

elgatosystems avatar Oct 23 '20 07:10 elgatosystems

@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.

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

mbzandhanna avatar Oct 24 '20 00:10 mbzandhanna

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```

je-schindler avatar Jun 30 '22 13:06 je-schindler

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..

slow-down avatar Feb 10 '23 22:02 slow-down

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

slow-down avatar Feb 11 '23 11:02 slow-down

I started noticing this as well, didn't know all this time it was showing the wrong % usage.

ImDini avatar Feb 12 '23 22:02 ImDini

I believe this is the issue: https://github.com/elgatosf/streamdeck-cpu/issues/24#issuecomment-1837714648

dwfinkelstein avatar Dec 04 '23 02:12 dwfinkelstein