I'm developing an application which changes the CPU Governor of the rooted device. I know that I can get the current governor in "sys/devices/system/cpu/cpu0/cpufreq/scaling_governor", but how do I change it?
Asked
Active
Viewed 1.3k times
4
-
This might be better asked on http://android.stackexchange.com/ . – fadden Jul 14 '15 at 15:47
-
Thanks. I'll post it there. – Brian O'conner Jul 15 '15 at 08:25
1 Answers
6
First, from the directory you are, do:
# cat scaling_available_governors
Then you will get the output something like this:
ondemand userspace powersave performance
These are the governors your kernel supports. Now you can force the kernel to use one of them by running:
# echo "powersave" > scaling_governor
You will need root for this to work.

Steel Brain
- 4,321
- 28
- 38

skoperst
- 2,259
- 1
- 23
- 35
-
Does this change persist reboots? If not, are you aware of any that does? – Steel Brain Apr 24 '18 at 19:27
-
1