[MOD/SCRIPT][7-29]CPU Editor - Secret to Die Hard Battery
CPU Editor Snapdragon
This mod allows you to easily change cpu settings on the fly, and supports dual core devices. Easier and cheaper $$ than available apps that do the same thing !!
Quote:
ReadMe
Quad core support coming soon !!
This mod will work on dual core devices with snapdragon processors, to check compatibility use a file explorer and go to /system/etc and look for a file named init.qcom.post_boot.sh, if that file exists this mod will work !! It is confirmed working on the Galaxy S3 and HTC One Series.
This is 90% of the secret behind my roms battery life, select ondemand profile from the menu and select battery saver. And see how long your battery lasts
Features:
Change CPU Governor
Change CPU Min/Max Frequencies
Set Dual Core CPU's Independently - Governor and Frequencies
Force Dual Core - Second Core Online ALL The Time
View Current Settings For Everything
Settings applied on boot/reboot
OnDemand Profiling
Edit I/O Scheduler
Edit Cache Size
Usage:
Flash in recovery
Reboot
Open terminal
Type "su" without the quotes
Type "cpu" without the quotes
Make your selections
Notes:
An error appears sometimes when enabling or disabling force dual core, it's ok the settings still get applied.
Settings get applied immediately
Cores can be set independently, you can make the governors and frequencies different on each core. Could be a great battery saver by limiting the second cores resources.
Force Dual Core will make the second core stay online all the time
Some kernels do not have a available_scaling_freq so the available frequencies will not be displayed, look up the settings your kernel has either in your rom thread or kernel thread.
OnDemand Profiling allows you to set profiles for ondemand governor, the settings possible are performance, performance and battery, and battery saver. Setting will only apply to ondemand govenor !! This will overwrite your cpu settings ie. Governor and frequency.
If you experience a dip in performance while using battery saver, in v3+ you can set your own cpu speed and still use the profile. By default battery saver underclocks the cpus to 1242000, you can now run "cpu" and set battery saver for ondemand profile then edit maxcpu0 and maxcpu1 to a higher frequency like 1350000 until your performance is how you want it.
ChangeLog:
v3:
- Added I/O scheduler
- Added cache size
- Added clear all settings ie., disable
- Made it possible to change cpu frequencies when using a profile
Screenshot:
Anyone having trouble with settings sticking use a file explorer and go to /system/xbin and look for a file called start-stop-daemon, if it's not there flash start_stop_daemon.zip in attachments... The script DEPENDS on this file, it will be in the next version to be sure its there
Was in the middle of charging my phone. Flashed the script, set to battery saver, rebooted and finished charging the phone. Already at 18 min screen time and battery is at 98%. Pretty sweet.
Hmm, I can't seem to get the settings I set to stick at boot. What I'm trying to do is keep my phone in 'battery saver' mode, so I set it, and it works completely. I confirm this by checking my max CPU, and it is changed, so it worked.
Now, when I try to reboot, the settings don't stick. I checked out my root logs, and disabled all apps that may be changing anything CPU related. Then I ran the script again, set to battery saver mode, and rebooted.
Same thing, the script isn't applied anymore.
I'm running AOKP on JK with the KT747 kernel.
I also tried to make a script and get it to run on boot with ROM Toolbox, but I have no idea how to do that. I tried:
Sometimes, you can harp on a subject so much that you end upbeating a dead horse. In our eyes, … more
XDA Developers was founded by developers, for developers. It is now a valuable resource for people who want to make the most of their mobile devices, from customizing the look and feel to adding new functionality. Are you a developer?