yashsingh1/xdaforums huggingface dataset:
[T-Mobile Samsung Galaxy S II SGH-T989] Jarmezrocks:
Eugene,

Thanks for the script I will test this out. I just wanted some clarification....this is on the front page of XDA but Poorcollegeguy has written that this does not work on stock device only AOSP ROMs? Yet in your title you have Now AOKP / CM9 / Twiz ?? I assume that Twiz means Samsung ROM right? I couldn't understand how the XDA review could separate this? Maybe you should contact him and have him update the XDA review for you cause I dare say many TWiz owners will over look this because of his review. I happened to click cause I am interested ;)

Thanks. Gave a 5 star rating for your contribution. Keep up the great work.

PS: Will this conflict with v6 Supercharger scripting in anyway?

PPS: I cannot wait to shove this in the face of iPhone users who crap on about Android battery use....this is a screen of my phone with V6supersharger scripting and optimised kernel settings - I am wondering what this script will now do to my phone? :D :D :D :D

EDIT: As brought to my attention by a later post 4% screen on time is not a good indication and is possibly (and unintentionally) deceiving so I changed it to a more"real world" screenshot. I didn't think when I grabbed a screen I saw the best one at first glance among many many screens and just posted it.

https://public.bay.livefilestore.co...1uXI__5JwA/Screenshot_2012-05-18-19-43-46.png
[T-Mobile Samsung Galaxy S II SGH-T989] hiz99:
Your battery life is insane

Sent from my 4.5 inch galaxy
[T-Mobile Samsung Galaxy S II SGH-T989] Jarmezrocks:
I know and I am about to or attempt to make it even more insane with this script!

I have an OCBCD Obsessive Compulsive Battery Consumption Disorder. God help me
[T-Mobile Samsung Galaxy S II SGH-T989] peconaut:
Want to share your battery set up
[T-Mobile Samsung Galaxy S II SGH-T989] style154:
+1! This was my first day running this script and I ended the day with 50% very pleased where before I had to charge it at night cuz I would only be at about 20% but today I got my anker battery and can't wait to see what that will do :)

Sent from my SGH-T989
[T-Mobile Samsung Galaxy S II SGH-T989] TheSeanTeam:
I'm sure his battery life is pretty good but with 4% screen on time, it seems like very minimal use.

In a normal day I have between 3 and 4 times as much on screen usage... which is the real battery killer on this device.
[T-Mobile Samsung Galaxy S II SGH-T989] cashyftw:
You should make a thread in the US Galaxy s3 forum, since it does indeed work.
[T-Mobile Samsung Galaxy S II SGH-T989] tonypello:
For paranoid rom i must download script only?

Inviato dal mio GT-I9100 con Tapatalk 2
[T-Mobile Samsung Galaxy S II SGH-T989] tonypello:
The file downladed have extension

. Bin i have delete extension? I dont understand

Inviato dal mio GT-I9100 con Tapatalk 2
[T-Mobile Samsung Galaxy S II SGH-T989] ac3theone:
Delete the extension
[T-Mobile Samsung Galaxy S II SGH-T989] peconaut:
Yeah I agree. I wish there was a way to lower the brightness more. Also right now I'm using AOSP and the battery is pretty decent without using the script
[T-Mobile Samsung Galaxy S II SGH-T989] moemzn:
Do i need to change the file extension? It is .bin if yes what should i change it to? :EDIT: two posts above lol question answered

Ive done all the "script method" required how to make sure the script is working? Do i have to run it via script manager?
[T-Mobile Samsung Galaxy S II SGH-T989] tonypello:
How to make sure script is working? Same questions :-)

Inviato dal mio GT-I9100 con Tapatalk 2
[T-Mobile Samsung Galaxy S II SGH-T989] pettigrew95:
Wow so this while time I'm wondering why my battery life isn't improving and it's all because i didn't delete the .bin at the end ugh
[T-Mobile Samsung Galaxy S II SGH-T989] uppon2:
Dude, why do you even have a smartphone if you don't use it lol. 4% screen on time? If I only use my phone 4% of the time I can get the same result even using the worst possible combination for battery life. Use your phone with screen on for at least 4 hours and if you still have this result then I would love to know your secrets :) - This is not a flaming, just annoying when people post long battery standby times when the majority of people who have major battery issues are usually because they are using the phone so much
[T-Mobile Samsung Galaxy S II SGH-T989] sinfulgray:
It works on aosp but if you using cm9 then it won't you will need Eugene's v4 kernel with this script built in for it to work on cm9
[T-Mobile Samsung Galaxy S II SGH-T989] tonypello:
I have Just installed Dark night kernel. Does script work with this kernel? Its need to reinstal after kernel change?

Inviato dal mio GT-I9100 con Tapatalk 2
[T-Mobile Samsung Galaxy S II SGH-T989] Optimizer:
People most these questions are answered in the OP... use the search feature before asking... its getting ridiculous
[T-Mobile Samsung Galaxy S II SGH-T989] ZeroDefined:
I suspect it has something to do with my network b/c on wifi I get a good 12 to 15 hrs of moderate to heavy. But the moment I start using my network (Telus HSPA+) the battery life tanks. I always have 3 to 4 bars So I'm thinking it could be just the HSPA+ network itself

I will try the above and I'm also gonna switch it to 3G only and I will report back. Thanks for the suggestions

I do use the fb app but I kill it when I'm done. I do that with all the apps I use actually. I'll try freezing fb for the moment
[T-Mobile Samsung Galaxy S II SGH-T989] wondercoolguy:
Thank you
[T-Mobile Samsung Galaxy S II SGH-T989] eugene373:
I can make it work for a Quad-Core, just need testers :)
[T-Mobile Samsung Galaxy S II SGH-T989] Optimizer:
Download CPU Spy from Play Store. This will display frequencies your CPU is running at. 'Deep Sleep' is when CPU 1 shuts down and your device turns into a battery saver.

If there is init.d support in the ROM this script should work. Looking over the script there is no reason why it wouldn't work. Best thing to do is to test and report back to Eugene any results. Make a nandroid before. The CPU script will be in /etc/init.d. Use CPU Spy to confirm it is working.

Download the flashable CWM zip and make sure if you download it from your phone that you remove the .bin that some browsers will create at the end of the file. After flashing you are good to go.

On AOSP ROMS make sure it has init.d support as stated many times in this thread. If anything flash Eugenes Streamline Kernel and it will work. It has been confirmed a few times.

You will need to flash the zip if you browse to /etc/init.d and the script is no longer there. After updating just to make sure go to that folder and make sure it did not get removed. If it did, just simply go flash again.

The file(script) is called S98CPU_sleep

Shoot me a link and I will install on a SIII. I have seen a few posts in here where it is confirmed working but no hurt in trying it on another.

----------------------

To sum it up people, this will work on ROMS with init.d support. To know if it has init.d support, either check the OP in the thread you downloaded it from, or ask someone in that thread. You can also browse to init.d in etc/init.d to check there.

The script is ran and working as soon as you flash this in CWM. To check this, get CPU SPY from the Play Store. This will display your frequencies and 'deep sleep' is when CPU 1 turns off and the phone is in battery save mode.

This script DOES NOT effect anything else in the ROM. Any problems you are having is NOT from this script. If you look in the script itself, the ONLY thing this is doing is making sure CPU 1 turns off when the screen is off. This DOES NOT effect performance in ANY way other than helping your battery life.

Please use the Search Thread tool before asking any questions. There has been the same question asked at least 10 times. Chances are it has been answered by Eugene or some other person here!

:good: happy flashing
[T-Mobile Samsung Galaxy S II SGH-T989] eugene373:
If you have the Dual core SG3 it should be already working...

If you have a Quad, I'll edit the script now & Post it here for testing..
[T-Mobile Samsung Galaxy S II SGH-T989] Optimizer:
I have access to a quad GSIII :)
[T-Mobile Samsung Galaxy S II SGH-T989] snguyen0730:
Just to make sure, is the s97 your script? I'm using your aokp build which you said should have script built in. Just double checking.

Sent from Samsung Galaxy SIV
[T-Mobile Samsung Galaxy S II SGH-T989] eugene373:
First Release Of Quad CPU Sleeper

This is a Test version for Quad-Cores....

Please Let me know regarding Battery use, and if it becomes laggy..

Script Manager Method Post in the OP:

cpusleep
[T-Mobile Samsung Galaxy S II SGH-T989] eugene373:
S97mdp.rc is the script...

I reworded the boot.img ramdisk and added support for the sysinit latest mods for running anything when you want via init.d

This method keeps me compatible with CM9 installs...

short story, yes that it & it's installed.
[T-Mobile Samsung Galaxy S II SGH-T989] Optimizer:
edited.
[T-Mobile Samsung Galaxy S II SGH-T989] jele:
Eugene... &

ALL you hard working developers

, can't thank you enough... :-D :-D :-D

--- also confirmed it works fine on any of Infamous's Rom's (tested from 2.3 up to current) -

I personally

know you said it up there indirectly lol (pretty much any UVLE1 based release) but you'd be suprised...LOLOL ;) --- thanks again ! :D
[T-Mobile Samsung Galaxy S II SGH-T989] snguyen0730:
Android system is keeping my phone from going into deep sleep. Any idea why? I'm running Eugene's aokp build. Setcpu at scary Max 1350 min 3xx. Thanks

Sent from Samsung Galaxy SIV
[T-Mobile Samsung Galaxy S II SGH-T989] Optimizer:
Download CPU Spy and post a screenshot of what it displays on that

EDIT - Ahh, I see you did.

That is weird. Make sure your permissions are set right, and make sure that the script is in the init d folder. If you have his AOKP build it should be alright but I have seen weirder things before
[T-Mobile Samsung Galaxy S II SGH-T989] Jarmezrocks:
Good enough for you? EDIT: To respond to a post further after this one this post , this was not impressing but defending. This group of screen shots were randomly and they are not representative of just one single day, two of the 4 screens shots were on one day. I have no idea why I trying to defend my self again. This is what sux about XDA

http://goo.gl/2epPW

I should make mention that this day was a day of intense flashing and GPS testing as I was trying to find the best modem for Gold Coast Australia. I was using the app speedtest. And that GPS testing app you see that ate a good chunk of 16% with 1 hour use! The app.....not the actual GPS its self (which isn't displayed in here).

I grabbed the best screen shot without thinking and just posted. So yes your are right, 4% screentime is not a good indication but the ones above certainly are ;)
[T-Mobile Samsung Galaxy S II SGH-T989] ac3theone:
just so I'm sure, if I'm using sm then I put the script in the "etc" folder not the "int. d" folder? that's what it says in the op
[T-Mobile Samsung Galaxy S II SGH-T989] eugene373:
Correct, if using the SM App the use ETC and not INIT.D :good:
[T-Mobile Samsung Galaxy S II SGH-T989] snguyen0730:
My permission is set right. Idk what the problem is

Sent from Samsung Galaxy SIV
[T-Mobile Samsung Galaxy S II SGH-T989] TheSeanTeam:
Who are you trying to impress?

On a side note it appears picture #3 isn't from yesterday like the others.

And the last picture is 2 hours later than he 2nd with battery nearly depleted yet the battery time usage isn't 2 hours more. Seems strange.

As I said im sure you get good battery up time but I don't get the point. To be honest those pictures are not good for me as I don't see why those particular 4 are posted.
[T-Mobile Samsung Galaxy S II SGH-T989] Optimizer:
http://eb-productions.proboards.com/index.cgi?action=display&board=sgs2tmo&thread=366&page=1

Download that. That is the newest build. You'll have to reflash. This does the trick.

---------- Post added at 07:07 PM ---------- Previous post was at 07:06 PM ----------

http://eb-productions.proboards.com/...ead=366&page=1

79b0264689a063b430a415fdf4fc36ac is the Md5sum from the latest by the way.
[T-Mobile Samsung Galaxy S II SGH-T989] snguyen0730:
Much different than the one he posted on aokp thread on June 30?

Sent from Samsung Galaxy SIV
[T-Mobile Samsung Galaxy S II SGH-T989] Optimizer:
Yes. I thought they were the same until I chatted with him in freenode and checked the MD5sums of the one I downloaded from the AOKP forums today vs that one that I just posted. They are different and I am running the latest one now. He fixed things.
[T-Mobile Samsung Galaxy S II SGH-T989] PJcastaldo:
The fact that you need prrof to backup what some one says on a forum and then say something jerky as who are you trying to impress .. and pick apart his screen shots..

You my friend need to take a chill pill. Get over your internet ego.

With Eugenes latest kernel this script included on AOKP I am doing over 12 hours with over 4 hours of display time.. and I'm playing games like nova 3 and on the web and all the other things that eat battery .. I so have no doubt that people go for over a day on a single charge.
[T-Mobile Samsung Galaxy S II SGH-T989] snguyen0730:
Did you dirty or clean flash over his previous built?

Sent from Samsung Galaxy SIV
[T-Mobile Samsung Galaxy S II SGH-T989] Optimizer:
Confirmed working on Exynos quad-core S3. Device went into deep sleep when script was ran and screen was off for 5 minutes. Success!
[T-Mobile Samsung Galaxy S II SGH-T989] snguyen0730:
Yeah yeah I know. But I just spent an hour setting up his built from last night and bam, another one :-P

Sent from Samsung Galaxy SIV
[T-Mobile Samsung Galaxy S II SGH-T989] Optimizer:
Clean flash.
[T-Mobile Samsung Galaxy S II SGH-T989] PJcastaldo:
The term "dirty flash " is a new fad... the cool thing to say.. just flash it. Wipe dalvik and fix perm and boom.
[T-Mobile Samsung Galaxy S II SGH-T989] sl___:
Confirmed working on Darkside tlle4 telus.
[T-Mobile Samsung Galaxy S II SGH-T989] Optimizer:
I wouldn't recommend this.

---------- Post added at 08:02 PM ---------- Previous post was at 07:59 PM ----------

Make sure you are not charging the phone while trying to see if this script works. In my trials; if the phone is plugged in and charging the device will not enter a deep sleep.

Once I unplugged, then CPU1 has turned off when screen is off.

I have flashed this 3 times, 2 on my SII and one on a quadcore SIII and both have the same results with plugged in/not going into deepsleep.
[T-Mobile Samsung Galaxy S II SGH-T989] bigox:
I ran tdj cache wipe, does that delete the script? Cause phone won't go into deep sleep according to CPU spy. If so can I just reflash?

Sent from my iPhone killer.
[T-Mobile Samsung Galaxy S II SGH-T989] snguyen0730:
No it wasn't plugged in. I will try his new built and see if that work

Sent from Samsung Galaxy SIV
[T-Mobile Samsung Galaxy S II SGH-T989] Optimizer:
Cache Wipe will not effect it. and make sure your phone is not charging when you're testing to see if this works. Something prevents it from going into deep sleep when charging, but when I unplug it immediately goes into deep sleep when screen is off

---------- Post added at 08:08 PM ---------- Previous post was at 08:05 PM ----------

Oh yeah you have to definitely be on the new build. Before I was on a non-eugene stock AOKP and the script worked via flashing, but with Eugenes NEWEST build (the link I provided), everything is fixed and already incorporated into the ROM. Just flash that, then gapps and then you are good.

make sure to do a fullwipe (darkside wipe I recommend) and then flash.
[T-Mobile Samsung Galaxy S II SGH-T989] Ramone360:
I flash via cwm but how do i find out if this script works on my sgs2?
[T-Mobile Samsung Galaxy S II SGH-T989] eugene373:
use it for a day from a 100% charge.. you'll notice!
[T-Mobile Samsung Galaxy S II SGH-T989] shubham.dhand:
Can This script work with resurrection rom on I9100.
[T-Mobile Samsung Galaxy S II SGH-T989] Ramone360:
Read OP!
[T-Mobile Samsung Galaxy S II SGH-T989] tonypello:
http://postimage.org/image/m67pyzg3n/

My cpu spy.

Script work?

Inviato dal mio GT-I9100 con Tapatalk 2
[T-Mobile Samsung Galaxy S II SGH-T989] Optimizer:
It did indeed.

Or it looks like it at least.
[T-Mobile Samsung Galaxy S II SGH-T989] tonypello:
??? Yes or no?

Inviato dal mio GT-I9100 con Tapatalk 2
[T-Mobile Samsung Galaxy S II SGH-T989] Optimizer:
I am not looking at your device, or using it. Play with it yourself and figure if it is working after a day and compare to your old battery life prior to the script. I am saying from the looks of your frequencies, yes, it is working.
[T-Mobile Samsung Galaxy S II SGH-T989] snguyen0730:
Just flashed your newest built from scratch. Everything is running good. Deep sleep is working so far. I swear I need to delete tapatalk, am spending way too much time on here. Every time I get on there is always something new to flash. Thanks for your work :)

Sent from Samsung Galaxy SIV
[T-Mobile Samsung Galaxy S II SGH-T989] xxjrsmith3xx:
well this what I'm getting on infamous

I started of with 83 percent battery around there
[T-Mobile Samsung Galaxy S II SGH-T989] cbrvnm:
Just in case, works on juggs 5.0 with streamline GB kernel.

Sent from my SGH-T989
[T-Mobile Samsung Galaxy S II SGH-T989] head33:
Got a question if i have cpuspy and it says im going into deap sleep would this script help improve battery life i mean even though im going into deap sleep is cpu1 diabled
[T-Mobile Samsung Galaxy S II SGH-T989] Optimizer:
I don't get what you are saying...

This script simply turns CPU1 off when the screen is off, putting it into a deep sleep, therefore saving battery.

When the screen is on, CPU1 isn't on all the time like most people think. But vice versa, even when the screen is off, CPU1 could still be running. Eugene just insured that this doesn't happen by forcing CPU1 to go offline, saving battery.
[T-Mobile Samsung Galaxy S II SGH-T989] head33:
Okay so even in deep sleep core 1 could still be running ??? Thats my question .
[T-Mobile Samsung Galaxy S II SGH-T989] Optimizer:
1 core is always running. If it wasn't the phone wouldn't work lol.

Processors with 2 cores don't run 24/7. They are made to be efficient and fast, but if they ran both cores all the time, the battery life would be horrendous.

CPU1 + CPU2 = Processor

When this script is added,

When user turns screen off, it also shuts down CPU1, meaning the entire phone runs on CPU2, saving battery life, and your phone doesn't need both cores to run at an idle, sleep state. When the phone is turned back on, CPU1 get 'reactivated' and the android system (along with your kernel tweaks and CPU governors) decide when to turn both CPU's on to make up for whatever the phones processes are demanding.
[T-Mobile Samsung Galaxy S II SGH-T989] edshawn911:
hey guys, just have a quick question. i downloaded the script and the copied it to my intd folder. the op said to move any extensions so i removed .bin from the file and set permissions and rebooted. was that correct or should i have left the .bin on the file name. thanks in advance!!
[T-Mobile Samsung Galaxy S II SGH-T989] head33:
Core 1 as in cpu1 thats core 1 i know one core is always running really ur going around in circles i asked a simple question if my phone is going into deep sleep does that mean cpu1 (core1) is off line if not then i need the script . If deep sleep means that cpu1 (core1) is off line then i dont need it.
[T-Mobile Samsung Galaxy S II SGH-T989] pairustwo:
With the Hercules (T989) should I be using the dual core or the quad core script?

We have have 1 CPU that is dual core...right?

Or do we have 2 CPUs that are dual core, making it a quad?

Why are there two different versions of the SCRIPT (not the flashable ZIP)?
[T-Mobile Samsung Galaxy S II SGH-T989] sl___:
Our phone is dual core.. Dual core means there are 2 CPUs.

There are two versions of the script because some people with Galaxy S3 want to test out the script too.

Use the dual core script, or just use the flashable zip.
[T-Mobile Samsung Galaxy S II SGH-T989] pairustwo:
So Quad core is for the SGIII people? and no ZIP for SGII?
[T-Mobile Samsung Galaxy S II SGH-T989] Optimizer:
Quad core is ONLY for the International versions of SGIII. The zip is for dualcore.

Remember, most SGIII's you will see are only Dual Core, as the International versions are harder to get, and the 'big four' are offering them with Dual core Chipsets.

---------- Post added at 01:39 AM ---------- Previous post was at 01:36 AM ----------

come on guy, use that search thread tool please. This has been answered many times in this thread.

I'll give you the benefit of the doubt that you couldn't find it lol, but yes, remove the .bin and you should be good.

---------- Post added at 01:43 AM ---------- Previous post was at 01:39 AM ----------

I have already explained this. Many times. You're the one not getting it. I even mapped it out for you.

I do not have to sit here and answer questions that are 'simple' in your eyes. I answered it to a level that you and other people that don't understand how a linux based device works.

You are contradicting yourself and I don't know what you mean with the way you are talking.

Ill explain it again, in simpler terms.

CPU1 + CPU2 = YOUR PHONES COMPUTER PROCESSOR

PROCESSOR = CPU1+CPU2

Add this script, it makes sure CPU1 will not be used when the screen is turned off, and makes sure the phone will not turn it back on until the screen is on.

=SAVING BATTERY.

If that isn't simple enough, I am not wasting more time for you not to appreciate it. I tried answering your question 3 times now.
[T-Mobile Samsung Galaxy S II SGH-T989] cajunflavoredbob:
Using this on AOKP and working wonderfully. Battery life is nearly one and a half times what it was before.
[T-Mobile Samsung Galaxy S II SGH-T989] wingtytn:
i did it threw version 1 cwm i use the old darkside modded 2.4 rom havnt found a good batt ics rom im happy and no issuse with gingerbread
[T-Mobile Samsung Galaxy S II SGH-T989] icebrkr:
Hrrm, just an idea?

Wonder how well this would work with Tasker. Having an 'Event' for Screen On/Off and setting the CPU to sleep/awake.
[T-Mobile Samsung Galaxy S II SGH-T989] Jarmezrocks:
PM sent so I don't junk up the OPs thread.

On topic...

I thought i might add with regards to the above statement, I have been seeing plenty of reviews and apparently the duel core LTE versions are sporting 2GB or RAM and I was like OMFG! thats hectic. So where they luck out in the number of cores they are certainly making up for it in the RAM department.
[T-Mobile Samsung Galaxy S II SGH-T989] Phantisy:
I thought Linux was CPU0 CPU1 CPU2 and so on. Is it different on a mobile device?
[T-Mobile Samsung Galaxy S II SGH-T989] Optimizer:
No linux is CPU0 CPU1 CPU2 CPU3 and so forth, and is the same on the phones.

Just for explaining purposes CPU1 and CPU2 makes it easier.

For the dual core script, this shuts off CPU1 and doesn't touch CPU0

for Quadcore, it shuts down CPU1, CPU2, and CPU3 and leaves CPU0.

But if he couldn't get what i was explaining to him I wasn't going to try to explain to him why there is a CPU0 lol.
[T-Mobile Samsung Galaxy S II SGH-T989] Phantisy:
LOL. I was wondering why you did not say CPU0. I thought maybe something changed since I learned the hardware details for CPU's in Linux. Guess I was wrong :) Guess some people do not understand the binary and hexadecimal system. Everything in the world of computers starts with 0.
[T-Mobile Samsung Galaxy S II SGH-T989] Optimizer:
Nope nothing has changed! Just labeling it CPU1 and CPU2 for easier understanding.
[T-Mobile Samsung Galaxy S II SGH-T989] Ramone360:
This script works! Great job eugene
[T-Mobile Samsung Galaxy S II SGH-T989] johnbeetee:
should work even better! I think...

script version is an endless loop, polling every 2 sec. and keeping the system awake

..while with Tasker it just shuts down 2nd on screen off, and eventually going into deep sleep

when woken up (screen-on) it will enable 2nd core again

so less overhead load...

edit: having been better informed, script version would works as well as tasker, as the used function permits the script to enter a sleep condition aswell