Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,737,675 Members 46,182 Now Online
XDA Developers Android and Mobile Development Forum

{Script} {APP} CPU Sleeper, The Battery Saver Mod! 07/06/2012 { Release 3 Reversion 1

Tip us?
 
eugene373
Old
#1  
eugene373's Avatar
Recognized Developer - OP
Thanks Meter 7298
Posts: 5,626
Join Date: Aug 2009

 
DONATE TO ME
Default {Script} {APP} CPU Sleeper, The Battery Saver Mod! 07/06/2012 { Release 3 Reversion 1

App Version:
CPU Sleeper
~Free to all XDA Memebers
~ Must Be Rooted to use App

What is it?
Its a fairly simple App that will put CPU 1/2/3 OFFLINE when the screen turns off. Once the screen comes back on, it will allow CPU 1/2/3 back ONLINE.

How does it work?
Since we have Dual & Quad core CPUs, we have a CPU 0 and a CPU 1/2/3, core 0/1/2/3, while the screen is off we really only need to have 1 core active "CPU0", this App will make sure CPU 1/2/3 shuts off while the screen is off, then resumes normal usage when the screen comes back on.

Compatibility?
Works with any Dual Core & Quad Core Devices!
~ICS
~Gingerbread

Battery Saving?
Battery savings all depends on Usage & idle times.

App Download: CPUSleep.apk
Version 1.3 Release Notes:
~ Fixed issue with Phone getting hot
~ Secondary Cores will now Disable while Talking on Phone if Needed
~ Secondary Cores Now Come back online
~ Fixed Superuser Notification being displayed every second
~ Fixed Cores Coming back online while screen is Off
~ Phone's while charge semi-faster while not being used
~ Fixed Lag issue when coming back online

~ Auto-Start on Reboot is still borked


Credits:
Handlerexploit for co-creation of this wonderful App.
Image Hosting Provided by http://i.imgur.com
TMO SGS2 & Nexus S
Eugene373's github
T-Mobile US

Follow me on Twitter.
http://twitter.com/#!/Eugene373

Like my Work, Buy Me a RedBull by clicking on my Can


Just Remember, Only you can Stop XDA Forest Fires!
The Following 10 Users Say Thank You to eugene373 For This Useful Post: [ Click to Expand ]
 
pio_masaki
Old
#2  
pio_masaki's Avatar
Recognized Contributor
Thanks Meter 3601
Posts: 4,512
Join Date: May 2012
Location: Surprise, Az

 
DONATE TO ME
Thanks for remembering us little A100 guys over here

For those that don't know, this is the guy that made the CPU Sleeper script I posted about, he made an App version of it.
A100
Guide: All things Iconia A100 | Jellytime Sosei | Carbon
Droid DNA
PAC-Man | Carbon | ReVolt | Chameleon OS | MoKee OS | IOAP
VZW LG G2
ReVolt | Carbon | IOAP
TF300T
Carbon
Nexus 7
Carbon
Thank you to those that donated, it's greatly appreciated!
 
john9
Old
#3  
Account currently disabled
Thanks Meter 269
Posts: 1,587
Join Date: Oct 2011
Look very useful!I will try it.
 
DJ_SpaRky
Old
#4  
DJ_SpaRky's Avatar
Senior Member
Thanks Meter 95
Posts: 357
Join Date: Oct 2011
Location: Groveland, FL
Works like a champ counteracting OC battery usage, thanks.

Sent from my Acer Iconia Tab A100 using xda app-developers app
 
sortus
Old
#5  
sortus's Avatar
Junior Member
Thanks Meter 1
Posts: 20
Join Date: Mar 2011
Just downloaded to tablet..ill give it a try and report back.

Sent from my PC36100 using xda premium
 
jschall
Old
#6  
jschall's Avatar
Senior Member
Thanks Meter 21
Posts: 136
Join Date: Dec 2009
Location: Mont Saint-Hilaire, Québec
Does CPU Sleeper require root access?

When I try to start the service, Superuser denies access.

How can I get Superuser to allow the CPU Sleeper service to run?
- Jeff Schallenberg
Mont Saint-Hilaire, Québec
Samsung Galaxy Tab 2 7.0, SONY Smartwatch, SONY Google TV
 
DJ_SpaRky
Old
#7  
DJ_SpaRky's Avatar
Senior Member
Thanks Meter 95
Posts: 357
Join Date: Oct 2011
Location: Groveland, FL
Yes, it is the 2nd statement above.

Sent from my Acer Iconia Tab A100 using xda app-developers app
 
pio_masaki
Old
#8  
pio_masaki's Avatar
Recognized Contributor
Thanks Meter 3601
Posts: 4,512
Join Date: May 2012
Location: Surprise, Az

 
DONATE TO ME
Quote:
Originally Posted by jschall View Post
Does CPU Sleeper require root access?

When I try to start the service, Superuser denies access.

How can I get Superuser to allow the CPU Sleeper service to run?
Go into the super user app, and remove the allow/disallow option for it, then try it again.

The app requires SU, the script does too, but is run in the background, so SU never asks about it or cares that it runs.
A100
Guide: All things Iconia A100 | Jellytime Sosei | Carbon
Droid DNA
PAC-Man | Carbon | ReVolt | Chameleon OS | MoKee OS | IOAP
VZW LG G2
ReVolt | Carbon | IOAP
TF300T
Carbon
Nexus 7
Carbon
Thank you to those that donated, it's greatly appreciated!
The Following User Says Thank You to pio_masaki For This Useful Post: [ Click to Expand ]
 
jschall
Old
(Last edited by jschall; 15th July 2012 at 02:36 PM.)
#9  
jschall's Avatar
Senior Member
Thanks Meter 21
Posts: 136
Join Date: Dec 2009
Location: Mont Saint-Hilaire, Québec
Quote:
Originally Posted by pio_masaki View Post
Go into the super user app, and remove the allow/disallow option for it, then try it again.

The app requires SU, the script does too, but is run in the background, so SU never asks about it or cares that it runs.
Thanks, @pio_masaki, but how do I allow an app in Superuser? I run Superuser, but I don't see any way to allow/disallow apps.

Update: I apparently had lost my root access and had to re-root. Working fine now. Thanks again for your help.
- Jeff Schallenberg
Mont Saint-Hilaire, Québec
Samsung Galaxy Tab 2 7.0, SONY Smartwatch, SONY Google TV
 
CompuTechnoPro™
Old
#10  
CompuTechnoPro™'s Avatar
Senior Member
Thanks Meter 13
Posts: 146
Join Date: Aug 2011
Location: Dhaka
Why doesn't it work with my S2 (v1.25) ???

Samsung Galaxy S4 LTE GT-i9505
(Black Mist, 16 GB intSD + 32 GB Class 10 MicroSD)
ROM - Paranoid Android 4.4.x
Kernel - Googy Max - Latest
Modem - XXUEMK9
Mods & Tweaks - Xposed Framework Mod, ScoobyDoo sound

Device History - Alcatel OT-525 -> SE k700i -> Nokia N80 -> Nokia N73me -> Nokia 5800xm -> SE Vivaz U5i -> Samsung Galaxy TAB 7" GT-P1000 -> Samsung Galaxy S2 i9100 -> iPhone 4S <-> Samsung Galaxy S3 i9300


Please, Click on the Thanks button if I have helped you in any way..

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


XDA PORTAL POSTS

Android 4.4.3 Begins Rolling Out to European HTC One M8

Shortly after the USA Unlocked and Developer Editions of the HTC One M8 received the … more

Modernize Your Emails with Email Popup

SMS andHangouts messages likely won’t ever replace traditional Emails for more formal … more

Change Your Toast Notification Style with XToast

Android uses multipletypes of notifications. One of these isknown as a toast notification. … more

Port Sony Xperia Themes to CyanogenMod 11 with Ease

In addition the obvious proficiency with graphics, creating agood Android theme … more