Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Changing CPU governor of a rooted android device

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?

like image 846
Brian O'conner Avatar asked Nov 16 '25 00:11

Brian O'conner


1 Answers

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.

like image 83
skoperst Avatar answered Nov 17 '25 20:11

skoperst



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!