This script was originally created by Collin_ph of XDA for the HTC Hero. This is the port of that to the Optimus S.
[WARN]DO NOT RUN ANY KIND OF PROGRAM THAT CONTROLS THE CPU WHILE USING THIS MOD. NO SETCPU, NO CPU WIDGET, NONE OF THEM!!!!!! This includes the built in CPU manager in CM. You need to make sure Menu>Settings>Cyanogenmod settings>Performance>CPU - "Set on boot" is not checked! If this is checked, please uncheck it, reboot the phone, then recovery and flash.[/WARN]
This is a tool for power users
If you don't consider yourself 'comfortable' with messing with your phone, then don't. This is not for the faint of heart!
So what does it do?:
Credit & Thanks:
- Collin_ph - Original author of the script
- Decad3nce - Worked with Collin to make the script even better
- jondevere - Thanks for being willing to be my crash test dummie
- Nick7 - Testing the mod and being willing to tweak RebornROM for all the users who may want to use this mod.
[WARN]DO NOT RUN ANY KIND OF PROGRAM THAT CONTROLS THE CPU WHILE USING THIS MOD. NO SETCPU, NO CPU WIDGET, NONE OF THEM!!!!!! This includes the built in CPU manager in CM. You need to make sure Menu>Settings>Cyanogenmod settings>Performance>CPU - "Set on boot" is not checked! If this is checked, please uncheck it, reboot the phone, then recovery and flash.[/WARN]
This is a tool for power users
If you don't consider yourself 'comfortable' with messing with your phone, then don't. This is not for the faint of heart!
So what does it do?:
- This tweak creates a service that periodically checks the phone's power source.
- If the power source changes, it reconfigures the device for maximum performace, battery and safety.
- Tweaks memory settings for current power source
- Re-clocks CPU based upon battery remaining or current power source
- Reclocks for maximum performance if on AC power
- Reclocks for maximum performance and charging safety if on USB
- Reclocks for performance and battery if on Battery
- As Battery life is diminished, Maximum CPU frequency is lowered
- Tweaks scaling characteristics depending on power source
- CPU Scales up less frequently on battery power
- CPU Scales up more frequently on USB/AC power
- The CPU is allowed to scale dynamically in all charging states based upon CPU usage
- Includes a batt-cfg utility to configure the system
- You may load 1 of 4 pre built profiles
- Manually configure CPU Frequencies in all charging states
- Determine the percentage of underclocking as the battery drains
- Configure how often to poll the power state / battery status
- Disable batt.sh service from running at startup
- Includes a batt-rm.sh uninstall utility
- Includes a batt-diag diagnostic utility
- Includes optional Disk performance tweaks (enabled by default)
- Includes overheating controls to lower your cpu if the phone starts to overheat
Please read post #2 prior to flashing otherwise you won't know how to use this.
DOWNLOAD FLASHABLE ZIP
Please read post #2 prior to flashing otherwise you won't know how to use this.
If you feel like buying me a coffee, you can do so by clicking below. Not expected but humbly accepted
DOWNLOAD FLASHABLE ZIP
Please read post #2 prior to flashing otherwise you won't know how to use this.
If you feel like buying me a coffee, you can do so by clicking below. Not expected but humbly accepted

Credit & Thanks:
- Collin_ph - Original author of the script
- Decad3nce - Worked with Collin to make the script even better
- jondevere - Thanks for being willing to be my crash test dummie
- Nick7 - Testing the mod and being willing to tweak RebornROM for all the users who may want to use this mod.
Last edited: