vagnum08 / cpupower-gui

cpupower-gui is a graphical program that is used to change the scaling frequency limits of the cpu, similar to cpupower.
GNU General Public License v3.0
430 stars 31 forks source link

After first run, cpupower-gui can't retreive the CPU frequency, main GUI stops showing up #88

Closed Absolutia closed 1 year ago

Absolutia commented 1 year ago

Describe the bug cpupower-gui can't retrieve the CPU frequency, so the main GUI never shows up.

To Reproduce Install on Manjaro, launch it, maybe change some settings (ie turn off a few logical processors), close the window and restart the app. The GUI won't show up again.

Expected behaviour Looking back on it I should assume that the GUI would appear on application startup, and the output on my terminal seems to imply that it is trying, but is failing because the OS won't let it read it. Running as root doesn't change that.

Setup (please complete the following information):

Additional context What leads me to think it has something to do with the CPU frequency? WARNING! Unknown CPU frequency, cause: [Errno 16] Device or resource busy Then my terminal prints this traceback: https://pastebin.com/UC5bFvFr

I have a Ryzen 7 2700X in my machine and cpupower (non gui) complains that it is unable to call the hardware (but is able to retrieve it from the kernel) so I'm gonna go out on a limb and say the issues are related somehow. Definitely isn't my hardware though because I have an Ubuntu Budgie 20.4 installation on another hard disk and cpupower-gui runs just fine, if I'm remembering correctly.

Originally this was a bug report for something I thought was a bug in the tray UI, specifically a missing feature or something not registering correctly. Whatever is causing this its definitely not the tray UI, but it would still be nice to have a restore button in there.

vagnum08 commented 1 year ago

It might be the kernel version you have installed. It won't be the first time where the buggy kernel doesn't report CPU frequencies causing cpupower and gui to fail.

vagnum08 commented 1 year ago

Can you boot to previous version and check if it works?

Absolutia commented 1 year ago

Well, I'm not sure what I was expecting but I changed to kernel version 5.15.60 and it works as it should.

Running cpupower frequency-info and it still complains about it being "unable to call hardware" so whatever is causing that is definitely unrelated...