yashsingh1/xdaforums huggingface dataset:
[Galaxy S II General] dude0014:
Which gingerbread ROM are you using?
[Galaxy S II General] clonski:
OK. So I installed the XWLA4 firmware and KI3 modem. I've more frozen apps than Iceland has prawn rings but still suspend and events/0 processes are averaging 2-3% each. Going to charge it up, let it idle overnight and grab some stats in the morning.

Even running an ICS ROM I was averaging 5-6% system tasks according to Systempanel (though Google has helpfully renamed everything kworker :rolleyes:).

Might just send the damn phone back...
[Galaxy S II General] froggydoddy:
I can't remember specifically right now, cause I'm not on it at the moment. But I use the WinamLite GB ROM (2.3.6 I think)

I'm DYING to get rid i this ANDROID OS battery issue on ICS!!!
[Galaxy S II General] clonski:
:rolleyes:

This is a thread about GINGERBREAD Android OS battery drain :p
[Galaxy S II General] reinbeau:
If that's the case it should be noted in the title. It isn't, and now that the world is moving on to ICS so will the questions here.

Sent from a state of Serendipity....
[Galaxy S II General] AndreiLux:
The same applies to ICS, with the difference that 1) it's confirmed to have an added issue on top with < 4.0.4 where things get calculated wrongly, but that shouldn't affect battery life, 2) more things are packed into AOS, but again, that shouldn't affect battery, only statistics.

So the lesson and explanation for practical use of the thread is still valid no matter if GB or ICS. Maybe I'll update it some time, but I don't see the need for it right now. IMHO ICS is still plenty of immature and not worth writing in the changes for now.
[Galaxy S II General] clonski:
I happened to take the battery out for 10 minutes last night. This morning everything is now normal but battery drain is still the same.

Strange but true....:cool:
[Galaxy S II General] zarz123:
i have a 70% android os usage. BetterBatterystats shows nothing substantial in wakelocks. i am siyah 3.x ( i dont remember exactly) along with resurrection remix ics rom. my current % is 36 with 26 hours on battery and 39 minutes screen time. Phone looses over 2+% an hour. i bought the phone coz my iphone was giving bad bad battery life. I cant really go through the 56 pages nor i understand the technical stuff of android much. If someone can help me will really appreciate it.. :)
[Galaxy S II General] igalan:
I upgraded my wife SGSII to ICS via Kies and now Android OS is even worse, always 60% or more. BetterBatteryStats only shows many kworker/0 or something so no clue what could be causing this behavior. Thanks to ICS I can see how applications use mobile data (WiFi is always off) and I can't see any offender there, nothing is using much of her data plan. Also I've disabled several built in apps (again thanks to ICS) and even tried completely disabling sync of the Google account, but that didn't help a bit.

The phone still makes it through the day, but sometimes barely so an occasional charge to ensure that it will last enough is necessary. Other people report great battery life with this phone, so it should be something in software, but she has very few apps installed. The only one that I can think off is WhatsApp, all other apps only run on demand. However I'm also running it with no negative effects, but maybe on dual-core processors it screws things up.
[Galaxy S II General] danh123:
Hi,

I am using SGS2 with KL1 and 2.3.6. I have been using this phone for a couple weeks and was having horrible battery life to start. Battery was draining from 100% to 50% in 8 hrs in my pocket rarely being used. I researched all over the internet(the best info being on this site) and tried many different settings. My android OS was high also around 50% I believe.

For me the one thing that vastly improved my battery life was leaving the wifi off. At first I turned off wifi, mobile data, gps, background data, etc. This made my battery only drain from 100% to 90% in the 8 hours at work. I turned everything else back on and left wifi off and battery life has still been great. Android OS has been less than 10%.

To me it looks like an issue with the wifi. When I check CPU Spy, with mobile data and wifi off deep sleep was around 90%. With mobile data on and wifi off, about 50% deep sleep and 50% 384mhz. Battery spy shows "Event log service - google services" as using about 10% for a partial wakelock. Nothing else is over 1%.

Debating whether to root my phone and remove some stock tmobile apps and possible disable "wifi sharing" which is always running when my wifi is on. I read that can be causing the battery issue.
[Galaxy S II General] santi221192:
Great guide! Good to know what things are going inside my S2
[Galaxy S II General] xoltrix2000:
Dude, spot on. I'm going through the same program. It's just none of the new ICS ROMs including CM9 or AOKP is giving me any good result.
[Galaxy S II General] Bill~:
ICS Battery drain is due to bug in native calendar app

Sorry if this is repeating an earlier post, but I've not seen this mentioned anywhere yet:

The battery drain is due to a bug in the native Calendar Storage app. If you activate sync of calendar, tasks etc, the app starts running the CPU at about 50% load continuously. Its so heavy, that even charging won't keep up. Top of my Note gets unusually hot. CPUSpy reports continuous 1400MHz usage. I have a lot of data to sync, but this usage never seems to stop, even after hours.

You need to go back into settings and untick sync of calendar etc, then use something like OSMonitor to kill the Calendar Storage app. If WiFi or GSM comms are bad, killing doesn't always work, so find a good reception area.

Once Calendar Storage is killed, my Note goes back to Gingerbread-level battery usage.

I'm now trying Enhanced Email, Touchdown, Moxier and VCOrganiser. None of these have this bug.
[Galaxy S II General] igalan:
Thanks for the information, I will try today if it makes a difference on my wife's SGSII. Since ICS, AOS CPU use is over the roof accounting for 80-90% every single day. With Gingerbread it was bad, but now it's even worse.
[Galaxy S II General] Bill~:
ICS Battery drain is due to bug in native calendar app

Just caught Enhanced Email doing the same thing as Calendar Storage. 50% CPU continuous and battery nearly flat despite being left on charge.

Killed it successfully.
[Galaxy S II General] igalan:
Stopping Calendar Storage and disabling Google Calendar sync didn't help at all for me. Android OS has been still at the top and by far for the last two days anyway...
[Galaxy S II General] wyextay:
So, after such a thorough investigation, the conclusion of the battery drain in SGS2 is due mostly to rogue apps? My question now would be why is it that such rogue apps seem to affect the battery life of SGS2 way more than other phones? Is there not anything that can be done about it, in terms of kernel or drivers?
[Galaxy S II General] igalan:
I my case I doubt it's a rogue application. My wife's SGS-II has been thoroughly reviewed application by application (and there aren't many as she only needs the basics), account by account and service by service. I've also disabled several built in applications (thanks to ICS, it's not rooted). However standby power use is over the roof.

Besides, you make a good question, why on this phone "rogue" applications make such an impact? I think that to this day dual core processors aren't used properly on Gingerbread and ICS.
[Galaxy S II General] TheFluffyOne:
There is a pretty big difference in power consumption between deep sleep and even the lowest processor speed. Since an application doing anything will mean the phone can't be in deep sleep for a short period, even those simple, non-taxing applications can have a significant effect on battery life.

Imagine an application that refreshes its data once per minute, and that refresh keeps the phone awake for one second. That's an extra 24 minutes a day that your phone is not in deep sleep. I think it might be worse than that since I have some vague recollection (maybe from the early posts in this thread) that the mobile data wakelock on the S2 keeps the phone awake for a bit longer, something like six seconds -- hopefully I haven't just made that up. If that's the case, then this simple app keeps your phone from deep sleep for about 2.5 hours a day.

Ignoring whether my figures are exactly correct or not, the principle holds: it doesn't matter that applications aren't maxxing out the phone's two cores, the fact that they wake the phone from deep sleep alone can cause a significant power drain.
[Galaxy S II General] ha-lex:
can you help with BBS log?

Great post that certainly explained a lot about battery use.

I upgraded to ICS on SGS2 a month ago and got a terrible battery life immediately (10 hours and less with very moderate use) compared to 1+ day with GB. I did a factory reset after a few weeks which initially led to a significant improvement (1,5 days) but has gradually decreased again and now the battery lasts for about 12 hours the most.

I'm attaching the BBS log file. What I understand from this is that "multipdp" is causing most kernel wakelocks and that it is related to data use over the network. I'm using one exchange account in push setting, (maybe 1 email per hour) and one gmail account set for 15 min refresh time. Don't know what else may be causing such frequent network use. Whatsapp and Tasker are also running in the bakcground but no more user installed apps. Any idea what the solution could be?

Would appreciate any suggestions.
[Galaxy S II General] igalan:
ICS tracks data use per application, you can see which applications that you don't want/use/need are using data and try disabling them. I already did that, but still AOS is out of control with over ~2h30m of CPU sleep / ~2h40m CPU awake after 10 h of light use every day. But today a new version of BetterBatteryStats has been released with improved information, I'm hoping this time will help me trace the source of the problem, although I'm not too confident, I've tried almost everything (besides rooting and trying different ROMs/kernels/hacks).
[Galaxy S II General] igalan:
I'm lost, AOS is killing me :( . And it's not a fluke, this happens every day. Battery life is terrible. In this capture the phone spent about 30 minutes with the screen on and 10 minutes in phone calls for about 14 hours since last recharge. Battery was down to about 35%.

The configuration is: Mobile data always on, WiFi always off, GPS on (but never actually used), brightness auto. There is the Google account (synchronizing contacts, calendar, Market), one email account (pull, IMAP, 1 hour), Beautiful Today updating every 8 hours, WhatsApp, no Facebook or Twitter, and not much else that seems relevant. Oh, there's Battery Solo Widget by Pedro Maicas (but I've already tried without it). Latitude is enabled, but logging out doesn't help a bit. I've deleted the Samsung account and the system update check. I've also disabled a bunch of built in apps: BBC iPlayer (or something like that, it seemed to phone home), GTalk, Zinio, AccuWeather and a couple of built in games. No root. My wife likes to play Smurf's Village a bit every day, but it doesn't take much, say in 5 minutes or less you're done with it; I've also manually stopped the process, but there seems to be no difference.
[Galaxy S II General] chamonix:
You could take bbs readings to the bbs thread. Btw this reading is inconsistent, it shows time on charger. I recommend that you run a new idle test
[Galaxy S II General] nakTT:
Hope google can fix this.is this issue doesn't happen with my gingerbread phone.

Sent from my ST26i
[Galaxy S II General] igalan:
After the latest ICS update the problem is gone in the SGSII of my wife. And with the same programs as she always had. So it was definitely an OS problem that finally Samsung fixed. Now battery life is much, much better and AOS use in always very low. At last, I have been fighting with it for over a year now.
[Galaxy S II General] Molitro:
The bug's still there.
[Galaxy S II General] meranto:
I'm getting pretty good battery life on KI3, doesn't look like I have to worry much about the famous AOS-bug, right?
[Galaxy S II General] Molitro:
Yo call that good...?

The first SGS lasts twice that screen time.
[Galaxy S II General] meranto:
I highly doubt that the SGS has 40% battery left after 5 hours screen time and 8 hours standby with the screen set to auto brightness during daytime using stock brightness values, playing music, streaming music and browsing. But, I can be convinced with good evidence off course.
[Galaxy S II General] marcadam:
How the hell did you manage 5 hours screen on with 40% battery left?
[Galaxy S II General] Molitro:
I thought it was quite less than 40%, so, my bad.

Still... Many times I had over 6 hours of on creen before reaching 10-15% battery left.

Anyway, sataying on topic, if you do a heavy use of the phone, the AOS bug is going to be hardly noticeable, since you don't let the phone stay (or try to stay) in sleep for long periods of time.

So if you where goind to have to charge the phone every day anyway due to heavy use, this bug isn't that problematic.

The thing is that with low use, we have an awful battery life. And if you are going to spend time away from a charger, it's a very bad probem.
[Galaxy S II General] tCC:
Bad battery life with low usage ? Yep, when all the defaults indeed.

Here's my latest run, still have to test a lot more, on KI3 now, will test KI8.
[Galaxy S II General] tCC:
Like you can see on my first screenie, the AOS bug/drain/driver bug kicks in after a day or so and cannot stop that without rebooting my device, didn't reboot tho, still got 4 days out of the battery.
[Galaxy S II General] tCC:
And got some wacklock in the middle (after 2 days), I was able to fix it on the fly by killing some processes, can't tell for sure which one it was
[Galaxy S II General] Molitro:
That's good, yes... It pairs with what I had with the SGS (the top time I went without charging it was 6 days, with an hour of screen)

I'd like to see how you achieved that, because I basically froze every non essential process, and still a couple of days ago my battery was at 50% with 1h of on screen, after 18 hours.

And that is pretty bad.

I see the bug doesn't hit you that bad, though, with that much idle time I usually see at least 50% AOS (when it isn't like 70). It hits you, but i've seen worse...
[Galaxy S II General] tCC:
When people flash a stock ROM and use the device with all its defaults, the Android OS usage is indeed way higher like the numbers you gave
[Galaxy S II General] Molitro:
Tell then, what do you use.
[Galaxy S II General] Molitro:
Actually, I think it has to be the JuiceDefender, since cutting of data conection kind of fixes the bug.

At least my nights usually drain 2-3% (when I turn of every data connection), as it should be.
[Galaxy S II General] AndreiLux:
Okey.

The latest SiyahKernel has some changes to fix AOS. Start testing if it really did get rid of it or it's just dumb luck we're having. For me personally, it works and can't get it to trigger anymore.
[Galaxy S II General] Molitro:
I'll test it right away. Though is probably too good to be true...

Should check if it's still there quite fast, since to me the bug is basically always there when wifi is on.

Edit: 20 min of sleep, AOS at 9%. Usually it's at 40-50 by now, so looking good. I'd say it's at the very least palliated.
[Galaxy S II General] androidkid311:
Hey im mega confused. On betterbatterystaus i got a wake called "managewakelock partial". Its been running for an hour and 30mins.....any idea?? :-/. Annoying me a loooot -_-.

Sent from porno shoot using my GT-I9100 using xda premium
[Galaxy S II General] ajamer:
I returned my phone over this issue and won't rebuy it until Samsung fixes it since a phone not lasting throughout the work day is a deal breaker. Has Samsung even addressed that the issue exists?

oh and thanks for this awesome thread, the other one's I read wasted hours of my life getting me to format or disable things which did not fix it.
[Galaxy S II General] Jebus99:
Galnet MIUI 1.9.30 after a complete flash including /sdcard with Xcell Kernel. AOS at 4% after 2 odd days of use. Currently highest battery consumer is Cell Standby and Phone Idle - the way its meant to be! Extremely happy = ). Been almost 5 days with no trace of the AOS bug ... this phone has the potential to be very battery efficient. Waiting for my extended battery to come in to really see what its capable of!
[Galaxy S II General] KennyLegend:
Rubbish talk.

I don't use juice defender and I have AOS .
[Galaxy S II General] marcadam:
What % of android os is considered normal/reasonable? Obviously anything above say 20% is unreasonable, but what should we be getting 5%?
[Galaxy S II General] Molitro:
Exactly my point. When you cut data connection, the bug, at least partially, stpos. So Juice Defender would help with it.

On the Siyah kernel, so far, so good. AOS is at 6% after 10h.

I just burned 4% with 9 minutos of on screen, which is a hell of a lot, so I still think this phone kills more battery than it should, but, well... It may stabilize, though, since it's a fresh installed rom.
[Galaxy S II General] KennyLegend:
You said "it has to be juice defender cause cutting off data stops the bug".

That's not correct. JD is not causing AOS bug. We have already established it is a Samsung driver problem.
[Galaxy S II General] Molitro:
Read the hole conversation, not just the one post.

"it has to be Juice Defender" is referred to the fact that tCC has a good battery life, and suffers the bug less than others.
[Galaxy S II General] tCC:
it's true that "the" Android OS bug has SOMETHING to do with a data (gprs/3g/wifi) connection, but I'm using he wakelocked fixed Email.apk as well, froze a lot of apps, turned off wifi location and a lot more.

but I personally think we have 2 problems, first is causing a battery drain (a lot of people cannot use their device longer than a day) and the second is that the device has a lot of awakes, those awakes are NOT always causing a drain (as I've showed with my screenies) and that could indeed be a driver/kernel problem.

but hey, as long I can't tell what is causing the drain (so the actual problem) I won't post my exact configuration in here, people always say (hey it's bluetooth sharing, hey it's wifi sharing, hey it's setcpu, hey it's this, etc)

not using a custom kernel (yet), not using any cpu speed modifiers, etc, but indeed am using Juice Defender or Tasker to solve this puzzle
[Galaxy S II General] Molitro:
Obviously it's not definitive, but I'd say it's a pretty good bet saying that Juice Defender is "the thing".

I mean... I permanently have the bug when data is on. Particularly with wifi, but in general.

Then, at nights, I turn all of it off, and the drain comes back to what it should be.

That pretty much garanties that data connection has a huge effect.

Then, as you don't use a custom kernel (as did I until yesterday), the only really noticeable difference is in Juice Defender, since I aswell froze all nonessential processes.

Now I'm playing with setCPU to undervolt a little. I've never done it on my phone, but watching the power usage of the S2, I'm gonna save all the battery I can.
[Galaxy S II General] tCC:
I saw wakelocks/draining at night with all connections turned off as well, but that could be the f*cking Samsung email mail application that contains a wakelock problem. Only using Juice Defender for the last couple of days btw and got some good result without it as well.

But like I said, it's still to early to point the exact problem :) Hope SiyahKernel will indeed fix one or both of the bugs ;)

Hope AndreiLux will reply as well, cause he started this thread and I'm curious if he found any new pieces of this puzzle
[Galaxy S II General] AndreiLux:
I'm reading all the time. But I have nothing yet to say until people really test that new kernel and really confirm it's gone. For me it's gone, I've had it overnight 8 hours, drained only 2% battery (on an unfinished kernel), and AOS went down to 3%. Out of those 3% it wasn't so much the suspend & events/0 (latter which completely vanished out of the stats) but more "tvout resume wo" which used power, which is a completely different villain in this story, but who cares about him. The thing is gokhanmoral took the vanilla linux kernel and applies the Samsung patches over it, which is the other way round of how all other developers did it, so we might still not know exactly where the bug was.

I'll update the thread for sure when we get to a conclusion.

As for your discussions of JuiceDefender and connections and other shenanigans, I've found everything to be useless and have no effect on the issue other than changing the frequency of when the bug triggers. JuiceDefender is when you have a gazillion apps and are clueless about them; our device has 1GB RAM and if you know what's running then JD will only do harm than help.
[Galaxy S II General] KennyLegend:
Apologies ...I read it wrong.
[Galaxy S II General] KennyLegend:
I agree with this statement. Its still a running process at the end od the day.
[Galaxy S II General] coolfire:
I concur with AndreiLux. Been surfing pretty heavy for abt 6hours, on SiyahKernel 1.8alpha6, and my AOS has drastically dropped to a miserable 2%. :p

Sent from my SGSII
[Galaxy S II General] Molitro:
Yeah... Mine, after hours of idle, is fixed at 8%.
[Galaxy S II General] rodries:
Me too

Seems that SiyahKernel has AOS bug fixed, but other people have deep sleep issues.

It's working fine in my phone
[Galaxy S II General] coolfire:
My deep sleep is fine though.

Sent from my SGSII
[Galaxy S II General] Molitro:
I'd say the deep sleep issues probably have more to do with the chosen governor, than anything.

I'm using on demand, with 100 mhz min, and 825 mv on both 100 and 200 mhz steps, and have no issues.
[Galaxy S II General] rodries:
I think your are rigth, maybe you can post it on kernel thread so maybe can help people with that problem
[Galaxy S II General] AndreiLux:
I updated the post to reflect the SiyahKernel bug circumvention. I haven't heard of anybody still having the bug after 2 days.

Keep in mind it's still not the final version, but it works well enough for a lot of people.
[Galaxy S II General] MrPhilo:
So how do you know if your phone is on deep sleep?
[Galaxy S II General] s2d4:
u poke her with a stick and see if she wakes up or not... Lol, sorry i just replaced the phone in ur question with the missus...

On a serious note, download cpu spy app from market ;)
[Galaxy S II General] deezle:
On demand governor wouldn't deep sleep for me, switching to smartass v2 fixed it though though so happy and impressed.
[Galaxy S II General] xyzulu:
I get the feeling that Samsung are aware of this issue as each subsequent recent kernel update appears to chip away a little at this issue. Maybe I'm imagining it.. but so far that is how it seems to me anyway.
[Galaxy S II General] jonny68:
Siyah Kernel best kernel ever IMO

IT WORKS,no more AOS bug initially i was skeptical but having tested i can confirm it definitely does work, previously i would have had more than 50% + AOS on standby, as you can see from the screenshot it's now at 4%, battery life too is fantastic and deep sleep (on ON Demand) is back which is great.:)
[Galaxy S II General] s2d4:
I wonder if ppl will use CPU time rather than % with android os.. too many ppl have the wrong idea when it comes to %..
[Galaxy S II General] coolfire:
I can't seem to upload pics, but take my word for if you care, my AOS is standing at 3% - 11mins after 9+hours of usage.

Sent from my SGSII