I am a full fledged tester of new roms and kernels but isn't there any way to make all of this 'script' we are typing in into an actual script that is flashable?
The governor tweak is set for a fairly balance of performance and battery life. If you find yourself needing battery life over performance, you can make some minor changes. Here's how:
1 Download Script Manager from the market (it's free)
2 Open Script Manager and navigate to /system/etc/init.d
3 Press menu/more/advanced options and select mount as RW
4 Select 01governor and select "edit" at the top (this will open the file in atext editor)
5 Uncomment (remove # in the particular line) and change:
To:Code:echo "45" > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold;
6 Select menu/saveCode:echo "[COLOR=red]70[/COLOR]" > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold;
7 Press the skull and cross bones icon at the top (this will allow Super User)
8 Press run, close app and enjoy
This will result is slightly slower performance but higher battery life.
If you want even better battery life:
1 Following steps 1-4
2 Add a # at the begining of lines 11 to 19
3 Scroll to "pwoersaver" section
4 Remove the # at the begining of lines 28, 30-38 and 43
Code:#AWAKE_GOVERNOR="ondemand" #SLEEP_GOVERNOR="ondemand" # echo "70" > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold; etc
5 Follow steps 6-8 (no need to select super user icon if you already did)Code:AWAKE_GOVERNOR="powersaver" #SLEEP_GOVERNOR="powersaver" echo "20000" > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate;
This will result in lower performance, but ultimate battery life
When running in a higher performance mode (especially for gaming) you can disable powersave_bias by changing the 1 to a 0 like this:
Powersave_bias only allows the CPU to peak for small increments at a time, and not allow the CPU to remain peaked even when the system calls for it. In gaming, that could result in choppy, laggy perofrmance and slow FPS..Code:echo "1" > /sys/devices/system/cpu/cpufreq/ondemand/powersave_bias; echo "[COLOR=red]0[/COLOR]" > /sys/devices/system/cpu/cpufreq/ondemand/powersave_bias;
Although it says not to in the script, you can change the sampling rate as well. Do not go below 50000. I left it at 57500 as I found this seems good setting for smooth scrolling and performance.
Always leave SLEEP_GOVERNOR="powersave" uncommented (no #) and do not uncomment any other SLEEP_GOVERNOR as this will keep ultimate battery save while screen is off.Code:echo "[COLOR=Red]57500[/COLOR]" > /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate;
Only change values in increments of 5 for the up_threshold.
I am not resposible if you do something wrong. Make a back up just in case.