Change Android cpu freq

To change the cpu freq, first make sure the governor is “userspace”.

check it under the /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor:

# echo userspace > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

It also shows the available governor in ‘scaling_available_governors’
Then modify the ‘scaling_setspeed’

# echo 900000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed

Verify:

run a cpu hungry app, monitor the cpuinfo_cur_freq and scaling_setspeed.

By test, it works on Nexus 4, while failed on Galaxy S4.

Advertisements
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s