Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3546

Raspberry Pi OS • How to: Changing CPU Governor to schedutil in bookworm

$
0
0
I've been running with the schedutil CPU governor for several weeks now. It's reduced my Pi5's average power consumption slightly and led to a system that feels more "snappy" than when using ondemand.

If you run the following in the terminal, you'll see that ondemand skips a wide range of available clock speeds.

Code:

watch -n 10 cat /sys/devices/system/cpu/cpufreq/policy0/stats/time_in_state
This doesn't happen with schedutil as all available clock speeds are used. It's also much faster to respond to clock speed change requirements.

You can change to schedutil by doing the following...

Code:

sudo nano /usr/lib/udev/rules.d/60-ondemand-governor.rules
You should see a file with the contents shown below. (If you don't, now would be a good time to stop.)

Code:

KERNEL=="cpu*", SUBSYSTEM=="cpu", ATTR{cpufreq/scaling_governor}="ondemand"
Edit the line replacing ondemand with schedutil, thus.

Code:

KERNEL=="cpu*", SUBSYSTEM=="cpu", ATTR{cpufreq/scaling_governor}="schedutil"
Ctrl+X, then Y to save changes. Then reboot.

You can check which CPU governor is currently being used by typing the following into the terminal.

Code:

cat /sys/devices/system/cpu/cpufreq/policy0/scaling_governor
You should now have very similar performance to using the performance governor but with reduced average power consumption.

Statistics: Posted by GTR2Fan — Sun Sep 07, 2025 2:56 pm



Viewing all articles
Browse latest Browse all 3546

Trending Articles