I can't seem to set the cpu frequency. I've tried a number of utilities (e.g. cpufreqd / cpufrequtils), as well as just manually editing the cpu frequency using commands like:

echo performance | sudo tee /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq | sudo tee /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

Doing this works for a short time, but as soon as I do any cpu-intensive work, the file /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq seems to be over written. This doesn't happen if I boot into android, and use an app like SetCPU, and then do the same amount of cpu work.

  • that second command does nothing – mchid Sep 14 '15 at 7:33
  • 1
    The second command sets the scaling_max_freq, which for the performance governor, sets the frequency that the cpu will stay fixed at. Running the second command actually changes the value of scaling_max_freq, but it's overwritten if the cpu starts to be used heavily. – r s Sep 14 '15 at 15:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.