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

Raspberry Pi OS • Re: Set cpu frequency

$
0
0
You can switch cpufreq governor at runtime, you don't need to rebuild kernel. e.g.

Code:

echo performance | sudo tee /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
We set ondemand governor in /etc/init.d/raspi-config. You can create a file /etc/default/cpu_governor containing:

Code:

CPU_DEFAULT_GOVERNOR="performance"
to override this.
Thank you for your reply, but I don't seem to have this path.

Code:

:/sys/devices/system/cpu/cpu0 $ lscache  cpu_capacity  of_node  power  regs  subsystem  topology  uevent
I have a question, my kernel set performance, and config.txt added force_turbo=1. Something to do with what you said "echo performance | sudo tee/sys/devices/system/CPU/cpu0 / cpufreq/scaling_governor" is the same effect?

Statistics: Posted by tt77forever — Tue Jan 21, 2025 2:01 am



Viewing all articles
Browse latest Browse all 4794

Trending Articles