Powersave CPU Manager
Automatically manages you cpu no matter what you use, ie. setcpu, cpumaster, virtuous_oc. This will automatically underclock your cpu and change the governor when your battery reaches a specified level. Kind of like powersave mode in settings.
You don't need to do anything to make it happen its all automated. By default it sets the governor to conservative and underclocks to 702000 then depending on whats installed it restarts virtuous_oc or changes back the governor to ondemand and the cpu back to stock (1188000).
These settings can be edited at:
/system/etc/init.d/74-virtuous for virtuous users
/system/etc/init.d/75-pcm for stock users
/system/etc/init.d/76-pcmapk for apk users (setcpu)
The lines are commented so editing should be easy enough in root explorer, if not lmk i will help out.
You will have to restart setcpu or whatever apk after your battery reaches the threshold. It works with setcpu, cpumaster, cputuner, and overclock widget.
Once you battery gets above the threshold it will restart virtuous oc or change the gov and cpu freq to whatever you specify in the script. It checks the battery level every minute.
The virtuous oc attachment includes virtuous oc this can be flashed right over my flashable oc daemon. It can be used with roms that include virtuous oc as well.
Download the zip you need:
Virtuous_OC-PCM = Virtuous_OC and PCM
PCM = PCM Stand alone Auto sets default cpu frequency use without setcpu or virtuous
PCMAPK = PCM for use with some apk's that control cpu (setcpu)
Please report any bugs here.
How to edit settings:
This is virtuous_oc version but they are all about the same.
Edit the lines in red to adjust settings, this is labeled actual script will look a little different.
#PowerSave CPU Manager Virtuous
while : ; do
#Powersave Threshold Default-25
CAP=25 <<-- This is the battery percent where the powersave settings will be applied, change the number in red.
if [ "$LEVEL" -lt "$CAP" ]; then
echo conservative > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor <<-- Edit this to the governor you want it to be set to in powersave mode. ie. powersave, conservative, ondemand, userspace, etc.
#Powersave CPU Frequency
echo 702000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq <<-- Edit this to set the cpu frequency for powersave mode ie. underclock.
In the stand alone version (75-pcm) there is also a setting for your default governor when not in powersave. This will be your default setting.
Your rom MUST support init.d, this is a script.