Battery Saver Script - 6.30.12
Greetings all!
I have modified Calkulin's Battery Saver Script to work with our GNex devices. I updated the undervolt init.d script to work on both CPUs and tweaked the voltages based off Apex's voltage table. If you are setting cpu setting on boot via control app (ie: Glados, Franco, performance settings) please disable since the conflicting scripts will cause issues. The default governor and other settings can be modified by manually changing values within the scripts.
Prerequisites:
A kernel with init.d support
-default CM9 kernel doesn't work (still looking for a fix)
Flashing Instructions:
1. Reboot into recovery and make Nandroid backup
2. Flash attached zip file just like you would a rom.
3. Reboot and enjoy.
REMOVED FOR STABILITY/COMPATIBILITY
Undervolt Steps are based on # of CPU frequencies available:
Code:
STEPS_10="1475 1375 1325 1275 1225 1175 1050 975 850"
STEPS_9="1425 1375 1325 1275 1225 1175 1050 975 850"
STEPS_8="1375 1325 1275 1225 1175 1050 975 850"
STEPS_7="1325 1275 1225 1175 1050 975 850"
STEPS_6="1275 1225 1175 1050 975 850"
STEPS_5="1225 1175 1050 975 850"
CPU profiles:
Code:
BATTERY_PROFILE_1: From 100% - 85% battery level
MAX_CPU_SPEED="1200000"
MIN_CPU_SPEED="0"
BATTERY_PROFILE_2: From 84% - 0% battery level
MAX_CPU_SPEED="1000000"
MIN_CPU_SPEED="0"
AWAKE_GOVERNOR_ON: Changes to this initially after screen turns on
AWAKE_GOVERNOR="interactive"
AWAKE_MAX_CPU_SPEED=max profile speed
AWAKE_MIN_CPU_SPEED=max profile speed
AWAKE_DURATION="5"
SLEEP_GOVERNOR_ON: Changes to this once screen turns off if no SCREENOFFMAX file is found
SLEEP_GOVERNOR="conservative"
SLEEP_MAX_CPU_SPEED="800000"
SLEEP_MIN_CPU_SPEED="0"
The script at work.
CREDITS:
98% of the credit goes to Calkulin - 
bigxie for posting the voltage table
ME
Make it idiot proof and someone will make a better idiot
|