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.
Code:
#!/system/bin/sh
#PowerSave CPU Manager Virtuous
#smokin1337
SLEEP=60
(
while : ; do
#Powersave Threshold Default-25
CAP=[color=red]25[/color] [color=blue]<<-- This is the battery percent where the powersave settings will be applied, change the number in red.[/color]
LEVEL=`cat /sys/class/power_supply/battery/capacity`
if [ "$LEVEL" -lt "$CAP" ]; then
pkill virtuous_oc
#Powersave Governor
echo [color=red]conservative[/color] > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor [color=blue]<<-- Edit this to the governor you want it to be set to in powersave mode. ie. powersave, conservative, ondemand, userspace, etc.[/color]
#Powersave CPU Frequency
echo [color=red]702000[/color] > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq [color=blue]<<-- Edit this to set the cpu frequency for powersave mode ie. underclock. [/color]
else
/system/xbin/virtuous_oc
fi
sleep $SLEEP
done
) &
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.
Thank you!
I will try it now.
Does this work with the kernel in the 2.08.651.2 release?
Is this a Terminal-based app or an actual app? If Terminal, what command invokes it?
Also, you say whatever CPU management tool we use doesn't matter, does that also mean I can just toss SetCPU altogether?
Yes it works with the new kernel. It gets installed to init.d so it runs by itself when you boot the phone. You dont need to run it in a terminal.
It works with setcpu, you need the pcmapk version. What it does is shutdown setcpu when your battery gets low and underclocks your cpu to save battery. You just have to run setcpu again when your battery gets charged.
I'm interested in this mod but I don't understand what i have to do. Do I download all 3? I don't want to use any apk. to help. Do any of those downloads manage everything alone. PLEASE HELP...thank you and sorry for the noob ???s.
abreuw83 said:
I'm interested in this mod but I don't understand what i have to do. Do I download all 3? I don't want to use any apk. to help. Do any of those downloads manage everything alone. PLEASE HELP...thank you and sorry for the noob ???s.
Click to expand...
Click to collapse
Yes the PCM-signed.zip will manage it without any apk or virtuous oc. Just flash it as is. Sorry about the explanation of it i didnt know how far to go.
Wow...thanks for the quick response. Thank you for your work.
not trying to be a **** here but whats the point of this being used with setcpu since setcpu seems to already do what you are describing here. profiles set up right will underclock and change govenor when battery gets to level X.
Now for the others it seems to be helpful for those that like profiles being used.
Honestly i havent used setcpu. But your right it works well by itself, and really good with virtuous oc. I use it personally with virtuous oc and it helps alot saving juice.
Gonna try this out. I don't want to overclock, I just want to underclock in order to save juice.
Please help me understand it a little more, I already use virtuous oc, I've been running the pcm version with virtuous oc the last dew days and notice a huge lag when phone reaches 20%, how can i give it a bit more juice? I think whatever you set it to when battery is low is too slow..
How does virtuous oc work together with pcm?
Also is the version for the virtuous OC-PCM in this thread the same as in the other thread (virtuous OC thread)?
3vo fre3vo'd
Anyone can help with this please ^^^^
3vo fre3vo'd
my phone after installing virtuos OC-PCM kept rebooting spiral how can I remove it from recovery.. thank you...please fast ...
drZuheir said:
my phone after installing virtuos OC-PCM kept rebooting spiral how can I remove it from recovery.. thank you...please fast ...
Click to expand...
Click to collapse
Download the uninstaller file in the thread related to it. But by now im pretty sure you fixed it. Is it stable yet?
Edit: This is stable but it doesn't save juice and my OC isn't completely stable.
I've noticed that in the cm7 settings you can set the governor to powersave or performance but if you try to go through setCPU it doesn't give you the options for a governor. Does anyone know why this is?
I'm using faux123's 0.1.9 kernel.
So I will set my cpu governor, smartassV2, and go on with my day, and at some point, not sure when, I will find the governor has switched to interactive.
Any ideas why the governor is not sticking or how to remmedy it?
I've tried reinstalling no frills, and reflashing the kernel I'm using to no avail.
This is not a common problem for my phone or kernel/rom as far as I know. (p500 franco.Kernel.v19.4-gbs.v18c devoid froyo final)
Cheers
bump 10character
hi all
now we have the doomkernel we can finaly play with the setttins
started this thread so we all can share the setting and foor noobies like myself share them so other can do their bennefit with them
I tried all the three apps..
setcpu; works damn fast but cant realy set the govenor ( not that i can figure out lol) maby some1 can help, great ics-theme
nofrill; makes my phone go cracy with reboots...but has the new cool thing that you can watch the batt-use like cpuspy.
incredicontrole; nice app you can set cpu,govenor and the voltages. but seems to give a little lagg
all of these set min/max to 192 - 1728 (seems like the standaard doom made it run with his kernel.)
smartassv2
cfq if possible
dont know how it works with the voltages..do i set them all lower ore just a few?
maby some1 already figured it out and can share..
hopefully this way the thread of the kernel keeps at developing an here the how to aply
I was using SetCpu which I had purchased and was causing a restarts on smartassv2
Bummer.
yesterday i tried al 3 of them and decidet to stick with setcpu...but after deleting the other my setcpu forced on demand evry time and couldnt get it back to smartass ore smartassv2..
i think maby all these apps are storing some kinda settings in the rom itself wich keep interfeering with the settings,
will try a fresh flash an keep just 1 without triying the other....
tried all, use incredicontrol - for a balance of power and battery, the best combo is ondemand with noop
hi all , is there a way to add extra modules to my phone, kinda miss the smartass and hot plug governors , im running faux123 @1.45 Ghz oc kernel on neutrino rom , right now im stucked with performance and conservative governors would be nice to have more governors so i can set setcpu profiles to be more accurate
P.S. : havent been able to find something that can help to get it done
thanks in advance
sent from the gray stuff inside my skull
You get whatever comes with the kernel. There is no way of adding more unless you recompile the kernel.