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

Broken on kernel 5.19 after hibernating #90

Open dthusian opened 1 year ago

dthusian commented 1 year ago

Describe the bug After upgrading to kernel 5.19, sometimes the GUI will not launch.

To Reproduce Steps to reproduce the behaviour:

  1. Hibernate
  2. Launch cpupower-gui using the desktop entry or terminal

Expected behaviour The GUI should open.

Setup (please complete the following information):

Additional context The problem seems to happen only after hibernating.

When run via terminal, it prints "[Errno 16] Device or resource busy" along with a traceback

uname -a: Linux hostname 5.19.4-100.fc35.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Aug 25 17:41:09 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

vagnum08 commented 1 year ago

It seems like a kernel bug. It has happened before. I am currently on 5.18, I will try with 5.19 on my laptop and see what happens.

Ssmur commented 1 year ago

Hello, the same thing is happening to me ([Errno 16] Device or resource busy) but in my case is when I will disabling any core, it's Kernel 6.0.6. Is there any chance that it can be fixed in the future? I like the easy steps to for example disable cores, changing profiles or just setting up a new profile with few little knowledge.

Anyway, thanks for this excellent project.

vagnum08 commented 1 year ago

I have upgrade my kernel to 6.0.0 and I get the same error. I will try to troubleshoot it.

vagnum08 commented 1 year ago

So, if the cpu is disabled the CPU files in sysfs cannot be read. I will change the logic so it skips reading the values for disabled CPUs.