Changing CPU governor on a x86 system

Hi

I installed OpenWrt 23 on my Compaq Presario S4200NX (It has an Intel Celeron 2.6 Ghz). I tried to change the scaling governor by using cpupower utility. Unfortunately, opkg did not find this package. Then I tried to change it manually in /sys/devices/system/cpu/cpufreq but for me this folder is empty (I have kernel version 5.15.137).

Any suggestion is welcome
Thanks in advance.

Try looking in /sys/devices/system/cpu/cpufreq/policy0/

$ cat /sys/devices/system/cpu/cpufreq/policy0/scaling_available_governors
performance powersave

$ cat /sys/devices/system/cpu/cpufreq/policy0/cpuinfo_max_freq
2900000

There is nothing in /sys/devices/system/cpu/cpufreq/

It could be because the Celeron is older that you can't influence the frequency, it doesn't work with my Apu2 either. You can change the governor itself with
echo ondemand | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor. If you want the change to be applied on every reboot, enter the command in rc.local But don't forget to make an entry for /etc/rc.local in the backup config, because rc.local is emptied when the system is updated.

1 Like