Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,741,079 Members 51,580 Now Online
XDA Developers Android and Mobile Development Forum

[Script]CPU Sleeper A100 Discontinued

Tip us?
 
pio_masaki
Old
(Last edited by pio_masaki; 11th February 2013 at 04:51 PM.)
#1  
pio_masaki's Avatar
Recognized Contributor - OP
Thanks Meter 3601
Posts: 4,515
Join Date: May 2012
Location: Surprise, Az

 
DONATE TO ME
Default [Script]CPU Sleeper A100 Discontinued

Hey all, back again with a new present! I guess my hiatus didn't last that long.

This time I present to you a script that will in theory (and so far for me, in reality) save us some battery without having to risk our hardware with undervolting! I present to you...

CPU Sleeper

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

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

Who do we thank for this awesome script?
eugene373 is the one that released this for the T989 (the phone I use) and I thought, hey, with our crappy battery life, we could use this! So, I asked his permission to repost it over here for us, and he was great with his reply, be sure to stop by and give him a thanks!
Here is his original release thread.

WARNING! READ THIS!
This script relies on init.d OR script manager! CM9, for some reason, tends to run this at the exact same time it runs some other script (I forget atm which) and it will clash, causing no boot! CM9 users MUST use the script manager version install! Flex Reaper appears to work fine with it as init.d. I strongly urge you to use the script manager version of this, NOT the flashable version. Always make a nandroid backup before modifying the system, including this!

Instructions
Available in 2 versions, script only version which you can place wherever you want and run however you want, or a CWM/TWRP flashable zip that will place the file for you in /system/etc/init.d and set permissions.

Version 1: Flashable
Same as any of my flashable releases, I did most of the work for you!
Make a full backup
Download to external SD card
Install from SD card
Pick the cpu sleeper zip file
it'll be almost instant
reboot
Shouldn't be any need to clear caches or anything like that.

Version 2: Script only
This can be run in 2 ways, via init.d support, or via script manager. Both are pretty similar, and can be done a number of ways, however this is the basis of how.

Init.d supported kernel:
Make a backup!
Download the script file, making sure no extensions get added onto the file. Copy the file to /system/etc/init.d and set the permissions to the following:
XOX
XOX
XOX
Once done, reboot the system, and it will take effect when your system is finished rebooting.

Script Manager
This method is probably the better method, and should work with any kernel/ROM. Download the script file, making sure no file extensions get added, and copy it to /system/etc. Set the file permissions to:
XOX
XOX
XOX
Once done, load up script manager, select browse as root (if it isn't already set from the crossix mod method in the guide) then browse to /system/etc and select the script file S98cpu_sleep, then select ROOT and BOOT options. After this is set, reboot system.


What do I do if I can't boot after using this?
You made that backup, right? Ok, then here is what you do.
Hold the power button until the tablet powers off
Press and hold the volume down button, next to the screen lock switch
Press and hold Power (while holding volume down)
Once the recover kernel message comes up, release the buttons
In CWM go to advanced, mounts, mount system, then format system
In TWRP, go to wipe, then wipe system
In CWM go to restore, advanced restore, restore ONLY system
In TWRP select restore, then uncheck all so ONLY system is checked
After restoring system, wipe cache and dalvik cache, then reboot system.
System should boot normally.



Downloads
Available in 2 versions, script only version which you can place wherever you want and run however you want, or a CWM/TWRP flashable zip that will place the file for you in /system/etc/init.d and set permissions.

CPU Sleeper Flashable zip
CPU Sleeper script only
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 8 Users Say Thank You to pio_masaki For This Useful Post: [ Click to Expand ]
 
Deshabilitado
Old
#2  
Deshabilitado's Avatar
Senior Member
Thanks Meter 138
Posts: 572
Join Date: Nov 2011
Location: Puebla
Nice do u think this can help me with my sleep of death? Im having that bug ... its not that bad but i guess if this would help me with that

Enviado desde mi A100 usando XDA Premium HD app
 
illego
Old
#3  
Senior Member
Thanks Meter 35
Posts: 186
Join Date: Aug 2010
So that's where Eugene went. He was a godsend when he was developing for the vibrant. His stuff is always top notch. Will try this out and let you know.

Sent from my A100 using Tapatalk 2
 
pio_masaki
Old
#4  
pio_masaki's Avatar
Recognized Contributor - OP
Thanks Meter 3601
Posts: 4,515
Join Date: May 2012
Location: Surprise, Az

 
DONATE TO ME
Quote:
Originally Posted by Deshabilitado View Post
Nice do u think this can help me with my sleep of death? Im having that bug ... its not that bad but i guess if this would help me with that

Enviado desde mi A100 usando XDA Premium HD app
Honestly I don't know, I've never had SoD on my Acer so I didn't even know it was much of a problem. You could try it, but I don't think it'll do much to help that issue. For me I've found turning off wifi when I plug it in for the night helps with SoD issues on my other devices. And in developer options check keep awake. That usually helps.

Tapatalked from my Galaxy S II.
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 ]
 
pio_masaki
Old
#5  
pio_masaki's Avatar
Recognized Contributor - OP
Thanks Meter 3601
Posts: 4,515
Join Date: May 2012
Location: Surprise, Az

 
DONATE TO ME
Quote:
Originally Posted by illego View Post
So that's where Eugene went. He was a godsend when he was developing for the vibrant. His stuff is always top notch. Will try this out and let you know.

Sent from my A100 using Tapatalk 2
Yeah he's been hammering out kernels for us since we got ICS and source on the 11th, busting ass and making some awesome kernels!

Edit: I mean he's been there longer then that, just he's been working on kernels lately lol

Tapatalked from my Galaxy S II.
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 ]
 
Deshabilitado
Old
#6  
Deshabilitado's Avatar
Senior Member
Thanks Meter 138
Posts: 572
Join Date: Nov 2011
Location: Puebla
Quote:
Originally Posted by pio_masaki View Post
And in developer options check keep awake. That usually helps.

Tapatalked from my Galaxy S II.
Where i found that, setting-> then what?
 
pio_masaki
Old
#7  
pio_masaki's Avatar
Recognized Contributor - OP
Thanks Meter 3601
Posts: 4,515
Join Date: May 2012
Location: Surprise, Az

 
DONATE TO ME
Quote:
Originally Posted by Deshabilitado View Post
Where i found that, setting-> then what?
Settings, all the way at the bottom by about tablet, developer options, then third down, stay awake.

Tapatalked from my Galaxy S II.
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 ]
 
Deshabilitado
Old
#8  
Deshabilitado's Avatar
Senior Member
Thanks Meter 138
Posts: 572
Join Date: Nov 2011
Location: Puebla
Quote:
Originally Posted by pio_masaki View Post
Settings, all the way at the bottom by about tablet, developer options, then third down, stay awake.

Tapatalked from my Galaxy S II.
Thank you man u really rocks! I hope u still with us helping noobs like me

Sent from my GT-S5670 using xda premium
 
pio_masaki
Old
#9  
pio_masaki's Avatar
Recognized Contributor - OP
Thanks Meter 3601
Posts: 4,515
Join Date: May 2012
Location: Surprise, Az

 
DONATE TO ME
Quote:
Originally Posted by Deshabilitado View Post
Thank you man u really rocks! I hope u still with us helping noobs like me

Sent from my GT-S5670 using xda premium
Lol I'm just not taking on anymore projects, I'll still be around the forum

Tapatalked from my Galaxy S II.
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 ]
 
gertjanad
Old
#10  
Junior Member
Thanks Meter 1
Posts: 13
Join Date: Mar 2012
The install method true CWM gives me:

E: Error in /sdcard/clockworkmod/CPU_Sleeper-A100.zip (status 0)
Installation aborted.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes