#!/system/bin/sh # available frequencies # 300000 # 384000 # 600000 # 787200 # 998400 # 1094400 # 1190400 # mp-decision frequency setting sleep 10 #min freq chmod 644 /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq echo 384000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq chmod 444 /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq #max freq chmod 644 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq echo 1190400 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq chmod 444 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
To set frequency on boot, copy the file 98mp-decisionfreq to /system/etc/init.d/ and set permission to rwxr-xr-x. I use es-explorer to do this.
You can run this any time in terminal to change settings.
This script wil set cpufreq and change file permissions to read only (444) so it wil no be automatically overwritten, 644 is to set write acces to the file so that you can run the script again.
to remove frequency settings, delete the file 98mp-decisionfreq from init.d folder and reboot.
I have tested this on omnirom and it works for me. you can make it flashable zip wit zipme.