Sunday, February 23, 2014

Rooted Android Phones: Force All CPUs Active

Open Terminal Emulator, execute [For example on a quad core]:

!Get Root Acces
#su

!Read CPU information 
#cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
#cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
#cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
#cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq
#cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq

!Make the files writable
#chmod 666 /sys/devices/system/cpu/cpu0/online
#chmod 666 /sys/devices/system/cpu/cpu1/online
#chmod 666 /sys/devices/system/cpu/cpu2/online
#chmod 666 /sys/devices/system/cpu/cpu3/online
#chmod 666 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

!Set online status to 1 and make the files readonly
#echo 1 > /sys/devices/system/cpu/cpu0/online && chmod 444 /sys/devices/system/cpu/cpu0/online

#echo 1 > /sys/devices/system/cpu/cpu1/online && chmod 444 /sys/devices/system/cpu/cpu1/online

#echo 1 > /sys/devices/system/cpu/cpu2/online && chmod 444 /sys/devices/system/cpu/cpu2/online

#echo 1 > /sys/devices/system/cpu/cpu3/online && chmod 444 /sys/devices/system/cpu/cpu3/online

!Set CPU scaling to interactive and make the file readonly
#echo interactive > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor && chmod 444 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor


Good Luck.

No comments: