OpenHABian 1.6b on RPi3B+ CPU governor is set to powersafe


I have realized Today that the fresh installed RPi3B+ with the openHABian Image 1.6b is only running at 600MHz Core Freq. I have checked the CPU Governor and it looks like it is set default as “powersafe” instead of "ondemand“. Normally this can be changed in the raspi-config. What is the best way to change this permanent in the openHABian Buster Image to “ondemand”? In the old openHABian stretch image the RPi3B+ was set to ondemand as default, so no change was required.

RPi3B+ output:

[14:38:11] openhabian@openHABian-RPi3:~$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
[14:38:16] openhabian@openHABian-RPi3:~$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
[14:38:32] openhabian@openHABian-RPi3:~$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

I have also checked this in an RPI4 same configuration:

openhabian@openHABian-RPi4:~ $ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
openhabian@openHABian-RPi4:~ $ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
openhabian@openHABian-RPi4:~ $ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

Best regards René

Looks like Raspbian changed the default. You can change it back or ;
conservative ondemand userspace powersave performance

` sudo sh -c "echo ondemand > cpu0/cpufreq/scaling_governor"


I believe I do something wong:

[15:10:07] openhabian@openHABian-RPi3:~$ sudo sh -c “echo ondemand > cpu0/cpufreq/scaling_governor”
sh: 1: cannot create cpu0/cpufreq/scaling_governor: Directory nonexistent
[15:10:28] openhabian@openHABian-RPi3:~$

This was working:

[15:16:56] openhabian@openHABian-RPi3:~$ sudo sh -c "echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor"
[15:19:27] openhabian@openHABian-RPi3:~$ sudo sh -c "echo ondemand > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor"
[15:19:31] openhabian@openHABian-RPi3:~$ sudo sh -c "echo ondemand > /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor"
[15:19:34] openhabian@openHABian-RPi3:~$ sudo sh -c "echo ondemand > /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor"

But after reboot all was configured back to powersafe.

How to make this permanent?

Best regards René

not sure, maybe force_turbo=1 in /boot/config.txt

I’ll create a systemd timer to run this on openhabian bootup.
BTW for me it was sufficient to change the governor on cpu0.
Could you please find out if that is sufficient ?


I believe force turbo is not an good option as this force the cpu to use all the time maximum speed.

best regards René

If you have the cpufrequtils package installed.

Create a file /etc/default/cpufrequtils with this contents


The value can be any one of: conservative ondemand userspace powersave performance



I used your stated package. This is working fine also after reboot.

Thanks for the good idea.

best regards René

I’ve patched that into openhabian, the package should install on starting openhabian-config
main branch only for now, please test.

Good morning,

I have removed the cpufrequtil and started openhabian-config. After this rebooted the RPI and it is again working all the time at 600MHz. Do I need to start an update?

best regards René

yes, this

Not working in my case.

Did you select the main branch?

This is needed otherwise the cpufrequitls don’t get installed


no sorry I was using the top one openHAB3. Will try now the main one.

Best regards René

Selected the main branch, cpufrequtils get installed and governor is set to ondemand.
So it’s working. :wink:

Yes this works thanks.

I just had a power outage, an despite of cpufrequtils being installed (and GOVERNOR=“ondemand”), the governor was set to powersave so OH startup took twice as long as it would have taken with ondemand. Duh.

No, and I won’t investigate.
I don’t own that HW so someone with an interest in getting this going has to do it.

And please mind forum communication rules. This was off topic and pinging, both of which is annoying many and not ok.