Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stuck on 0% #4

Open
MSparrey opened this issue Jun 29, 2019 · 10 comments
Open

Stuck on 0% #4

MSparrey opened this issue Jun 29, 2019 · 10 comments

Comments

@MSparrey
Copy link

No matter what, the cpu plugin displays 0%.

@mbzandhanna
Copy link

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.

@elgatosystems
Copy link

@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
Copy link

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

@elgatosystems
Copy link

@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
Copy link

@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

@je-schindler
Copy link

je-schindler commented Jun 30, 2022

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

@slow-down
Copy link

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
Copy link

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

@ImDini
Copy link

ImDini commented Feb 12, 2023

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

@dwfinkelstein
Copy link

I believe this is the issue:
#24 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants