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 30 forks source link

Settings not init at runtime #48

Open tallero opened 3 years ago

tallero commented 3 years ago

I do get

Traceback (most recent call last):
  File "/usr/share/cpupower-gui/cpupower_gui/main.py", line 76, in do_activate
    win = CpupowerGuiWindow(application=self)
  File "/usr/share/cpupower-gui/cpupower_gui/window.py", line 177, in __init__
    self.load_cpu_settings()
  File "/usr/share/cpupower-gui/cpupower_gui/window.py", line 207, in load_cpu_settings
    self.energy_pref_avail = self.settings[0].energy_pref_avail
KeyError: 0

when running the program. Starting from desktop file also does not work.

vagnum08 commented 3 years ago

Energy preferences are only available on Intel based hardware. What kind of system do you have (processor info)?

tallero commented 3 years ago

i7 930

vagnum08 commented 3 years ago

Sorry for the late response, I didn't have an Intel system at hand.

Could you check if you have a file called energy_performance_available_preferences in /sys/devices/system/cpu/cpu0/cpufreq/.

supdrewin commented 2 years ago

The required feature depends on intel_pstate, but it's only available for Sandy Bridge and later generations of Intel processors. It seems that i7 930 is not supported.

vagnum08 commented 2 years ago

It should catch the error and handle it properly. I will try to patch it soon.