yashsingh1/xdaforums huggingface dataset:
[Galaxy S II General] Molitro:
Like I said in the edition of my post, the app just doesn't sync, so no use.

I may try Maildroid (I never really liked k-9, and there's one account that doesn't work with it), but I think I'll probably just forward all my accounts through gmail. I cleaned all my email not long ago, so I don't have a lot of work to cleane it again, and the gmail app is the only one that actually works without giving me any headaches, so, though I don't really like having all my accounts go to just one place, it's going to be the best solution.

I just don't accept a 20-25% more idle drain just for using an email app with which I don't even have push, because if I use it I just kills the battery.
[Galaxy S II General] igalan:
I've read every post on this thread and I'm impressed on the level of knowledge that I see :) .

Now, last Friday I bought a SGSII for my wife's Birthday. Unfortunately from the very start battery life was terrible. Out of the box I set up her Gmail account, her IMAP email, Latitude and that was it. It barely lasts a day, at night it's at 44% to 30% with 30 to 40 minutes of screen time, and about 30 to 40 minutes of phone calls (it's weird that screen time seems to match phone time very closely). Later I installed Whatsapp, Spotify (which is used off-line exclusively) and a few unimportant apps (like a file manager, Angry Birds -she hasn't still played it-,...) I see sky-high CPU use of Android OS. Yesterday I installed ADW Launcher because for some reason TouchWiz was forgetting the configuration of the People Widgets.

After reading every post I've went ahead and captured the wakelocks and dmesg. If someone can take a look at them and help me make some sense out of it I would be grateful.

BTW I upgraded her phone through Kies to KI4 (I think that was the version). I took me three tries because the download would fail halfway though or the phone wouldn't connect after downloading the file (which needs 1,25 hrs on my crappy DSL). Once the phone was successfully upgraded something failed in Kies, it wanted to restore the backup or something, but it didn't work. Since the phone seemed to have everything in place I didn't do anything else after that.

P.D.: I don't have a screen-shot of the CPU graph alone, sorry. I took the screen-shots this morning and forgot about it. But when I saw it, the device had been awake with the screen off for quite some time. I'll post it at night when my wife gets home. I also installed CPU Spy, so I can post a screen shot of that as well.

P.D.2: I almost forgot, my DSL router and the SGSII don't get along too well. the SGSII connects just fine and Internet seems alright but when you try to log onto any on-line bank, it would not go through. It's a bit weird that it seems to have a problem with https. Today I disabled WiFi to see how it does.
[Galaxy S II General] Molitro:
Is AlarmManager what the name says?

I think it's usual to see it up in the list of wakelocks, but it still bugs me having it up the top without an alarm set.

Anyway, this is kind of funny... Yesterday I set all my email accounts to go through gmail, so the google server does all the syncing work, and my phone only notices something when a mail actually arrives.

The result it's 98% deep sleep over 11 hours, and basically not 10 minutes of wake time. Thats great, and should be the end of it.

The thing is that the phone is right now at the same 94% after 11 hours that was yesterday after 13 hours, a night that showed me over an hour of wake time.

Do I blame just the poor accuracy of the battery messurments?
[Galaxy S II General] s2d4:
dumsys alarm will tell you whats inside AlarmManager, that should be enough for you to do a search on it.. Or read previous posts as I know you have been posting in this thread way before I did.
[Galaxy S II General] olavjunior:
Jeeez!

I guess my drain problems isn't an isolated issue, but a lot of different ones! MAIL_SERVICE shows 5 h 9 m partial wakelocks (with 7 hours run time). I've read here on xda that mail has a battery draining issue. Probably time to root the phone!

And also com.handcent.nextsms has been using second most of the battery (15 %) - I guess I'll be uninstalling that! I read somewhere here that there indeed is a draining problem with handcent.
[Galaxy S II General] Entropy512:
There seem to be a lot of issues with Exchange account sync and battery drain - especially Exchange calendar sync. (Syncing hotmail calendars are guaranteed to eat your battery, syncing calendars with other Exchange servers is hit or miss.)
[Galaxy S II General] atua:
I see vbus_present & PowerManagerService being the top 2 wakelocks. vbus_present is USB so that's fine, but you'll need a BetteryBatteryStats dump to break up the user application stats.
[Galaxy S II General] igalan:
I just purchased BetterBatteryStats for my wife. Right now all I see is the same pattern as everybody else with suspend and events/0 very high.
[Galaxy S II General] atua:
Start up BetterBatteryStats. Go to the Menu->Actions->Dump to File. The dump file's called BetterBatteryStats.txt, and should be in /sdcard directory.
[Galaxy S II General] reinbeau:
Is this something you have to set to 'on' or can you just do it whenever?
[Galaxy S II General] TheFluffyOne:
Turn off Latitude. For me, this made the difference between less than day of light use, to almost 3 days of light use.

Make sure you fully sign out of Latitude; if you just change it to "don't update my location" it doesn't seem to make much of a difference. It's a shame to have to turn it off, but the minor convenience of Latitude is far outweighed by the extra battery life.
[Galaxy S II General] igalan:
Right now I have routed her email though Gmail to test if the problem is because of the email client. If this doesn't help I'll test your suggestion.

But I hope I don't have to give up using Latitude. It's one of the reasons I got her a SGSII instead of an iPhone 4S, because of better integration of Google services (GMail, Latitude, etc.) I'm starting to regret getting a Samsung instead of an HTC, which I'm more familiar with. But I won't give up just yet.

I have some screen-shots of BetterBatteryMonitor, but I'm not sure they'll help because she has been using Spotify, so the stats won't help much.
[Galaxy S II General] atua:
Only does a file dump when you ask for it.
[Galaxy S II General] claimui:
There are some alternative apps for Latitude updates that are supposed to be more battery friendly, ALTitude for example (by the developer of BetterBatteryStats): http://xdaforums.com/showthread.php?t=1286291

---------- Post added 6th November 2011 at 12:10 AM ---------- Previous post was 5th November 2011 at 11:45 PM ----------

Last night my phone drained about 20% over 8 hours. I was on WiFi the whole time. My wakelocks data looks something like this (sorted by sleep_time_min):

name count sleep_time_min
svnet 349 3.280610425
alarm_rtc 285 2.912110815
wlan_rx_wake 142 1.833205235
sec-battery-monitor 284 1.661472652
PowerManagerService 797 1.585096433
alarm 494 1.194826438
wlan_wake 3043 0.315390047
mmc_delayed_work 352 0.249170239
radio-interface 21 0.15708485
power-supply 285 0.140852919
AudioOutLock 2 0.094084817
event1-2669 14 0.018017634
sync_system 4 0.009653565
KeyEvents 609 0.000516056
event2-2669 564 0

I'm not sure why svnet is so high, given that I was on WiFi the whole time. What do you think is going on here?

The wlan_rx_wake and wlan_wake numbers suggest that maybe there is a lot of background data, so I wanted to investigate what was going into/out of my phone. After some research, I found this handy tutorial: Use Wireshark And DD-WRT Router Firmware To Imitate Port Monitoring On A Router Switch Port

I run DD-WRT on my router, and by following those instructions, I was able to monitor WiFi traffic to my phone from my desktop computer.

I've been monitoring for a couple of hours and haven't seen anything too unusual. However I do think my phone is sending out SSDP broadcasts relatively often -- at least every 15 minutes, sometimes faster. My desktop is running Windows 7, so I disabled the "SSDP Discovery" service, but my phone would still send out SSDP broadcasts. Just now I disabled UPnP on my router, but I'm not sure that makes a difference. Any idea what triggers the phone to send out SSDP packets and how I could make it shut up and go back to sleep? ;)

Appreciate if anybody sees anything else in my wakelocks data that would be helpful!
[Galaxy S II General] reinbeau:
Thank you, I was hoping it wasn't something I had to 'turn on' before doing a file dump. I'm going to test it out tonight.
[Galaxy S II General] igalan:
Here are the stats from BetterBatteryStats. This morning I disabled Latitude because the phone was draining 2.8% battery / hour while sitting idle doing nothing (besides Gmail sync, WhatsApp doing it's thing -but no messages-, the Android Weather widget, and little else that I know). WiFi was enabled.
[Galaxy S II General] atua:
Latitude is a notorious battery drainer. You might want to give ALTitude a go to see if it's any better.

As for your BBS log, a 31 min log is rather short. However, 48 seconds of wakelocks in 31 minutes is pretty nasty. This reminds me of my issues with my home router, where wifi & dhcphandler were my top 2 wakelocks. When I set my phone to use a static ip, my idle battery drain went from ~1.5% an hour to ~0.5% an hour. Using static ip isn't a big problem for me since I only use wifi at home, but this is a dirty solution that isn't going to suit everyone.

===========

Other Usage

===========

Wifi On (): 31 m 41 s (1901 s) Ratio: 100,0%

Bluetooth On (): 31 m 41 s (1901 s) Ratio: 100,0%

Awake (): 16 m 59 s (1019 s) Ratio: 53,6%

Phone On (): 2 m 25 s (145 s) Ratio: 7,7%

Screen On (): 1 m 40 s (100 s) Ratio: 5,3%

=========

Wakelocks

=========

DhcpHandler (Sistema Android): 48 s (48 s) Count:40 2,5%

StartingDockService (Sistema Android): 10 s (10 s) Count:37 0,6%

RILJ (Marcador): 7 s (7 s) Count:324 0,4%
[Galaxy S II General] rastik:
I had similar problem when I assigned static IP within DHCP server on the router, while having dynamic in the phone. It is working perfectly for every piece of networking HW I have at home, except for SGS2. It's due to a bug in the ROM - http://xdaforums.com/showthread.php?t=1295331
[Galaxy S II General] igalan:
atua, thanks for your help. I know the SGSII and my router don't get along too well, so I disabled Wifi two days ago. But that didn't make too much of a difference. I did see some dhcp service in BetterBatteryStats more active than necessary so once I know where the bigger problem is, I may enable it again but with a fixed IP, it's no problem since my wife only has our home access-point set up.

TheFluffyOne was probably right. This morning I logged out of Latitude and we've been out all day. After 7 hours the battery drained 17% with normal use (several phone calls, taking pictures, etc.) This is a much better figure. Unfortunately in the afternoon I found that the mobile data connection was dropped, I don't know for how long, so I will have to test it for a couple of days more.

I'm posting two screen-shots. The first was with Latitude and Wifi enabled, note how the device was awake while the screen off for many brief periods. The second one is for today, with Latitude logged out and Wifi off, this time the phone was awake only when the screen was on as well. Unfortunately, as I explained, it's possible that the mobile data connection was not working for some time, as well. Tomorrow I'll see.

P.D.: "Despertar" means Awake, and "Pantalla activada" means "Screen enabled".
[Galaxy S II General] olavjunior:
I can confirm that turning off handcent notification and disabling mail checks/syncs, improved my battery life. For the first time my battery lasted longer than 24 hours of normal use (2000 mA)
[Galaxy S II General] tk142:
When using Samsung stock battery my Android OS usage is between 5 to 10% but when I use an Anker 1900 mAh battery it jumps to about 15 to 20% with pretty much same pattern of usage of the phone (it does last longer on those batteries)...

Just thought it was interesting !
[Galaxy S II General] atua:
Well, the stock Samsung battery is only rated at 1650 mAh, so you would expect a 1900 mAh to last longer...
[Galaxy S II General] SiSL:
This is best I can get with some precautions...

It's basically 2 days, 13 hours with some medium necessary usage, turning off Wi-Fi when I don't use the phone definitely helps a lot.
[Galaxy S II General] Entropy512:
svnet is basic radio management

Also, check out "Shark for Root" on the market - Wireshark for your phone!

Just make sure that if you plan on posting a cap here, you change:

-vv -s 0

in the options to

-vv -s 68

This limits packet captures to 68 bytes (just IP/TCP headers and a little bit extra), minimizing the chances of personal information and such "leaking" into the capture.
[Galaxy S II General] Entropy512:
Fun little observation:

There is something either in XXKI3 in general, or VillainROM 3.0 specifically, that seems to GREATLY improve battery life compared to even a majorly hand-debloated UCKH7 ROM for the I777. I've never seen drain this low when at my desk in weak signal.
[Galaxy S II General] igalan:
Problems are piling up. Not only Android OS seems to be consistently on the top list of offenders on CPU use, no matter what I remove from the phone; now the data connection is dropped to never come back. It doesn't matter what voodoo I try, only a reset will bring it back until is dropped again.

At this point I think that my options are: fresh reinstall of the official ROM using Odin (will this void the warranty or there's anything that I should do/not do?) Or live with it until Ice Cream Sandwich is released hoping that Samsung will have most problems fixed. I've read tons of posts and a fresh install doesn't seem to help either with the lost 3G or Android OS high CPU use, so my options seem very limited :( .
[Galaxy S II General] defenderko:
New phone, couple of days old. It came with 2.3.3. updated thru kies. All stock. launcher pro and lock screen widget installed. Also in those 14 hours are 8 hours of me sleeping..
[Galaxy S II General] defenderko:
I think that ICS will eat battery even more! Remember windows and how it got bigger and more demanding.. Those guys in Samsung are drug dealers and we are the users.. My God when I think about waiting on ginger for sgs1..
[Galaxy S II General] AndreiLux:
That's weird, I'm still running on a KH3 build (manually de-bloated) and have yet to switch to something newer and still getting my newfound great battery-life. Maybe it's more of a difference between AT&T ROMs and international version than instead of KI3 itself?
[Galaxy S II General] Entropy512:
That wouldn't surprise me at all. Typical AT&T.
[Galaxy S II General] planetf1:
Thought it worth mentioning a discussion I've been having in the speedmod thread for the sgs2. http://xdaforums.com/showpost.php?p=19169197&postcount=3876

I'm running speedmod 2-17test along with KJ3 and was noticing both lower than expected deep sleep and corresponding high Android OS usage

After some tests today I believe the cause in my case was being connected to corporate wifi. I suspect the network is very "noisy". The same issue did not occur on 2G/3G, nor on home wifi

Just a thought -- sorry I don't have detailed observations yet beyond what's in the above thread.
[Galaxy S II General] igalan:
On my wife's SGSII high Android OS CPU use occurs even with WiFi disabled. In fact WiFi is always disabled so I can try isolate why Android OS is using so much CPU. It also seems to occur when the data connection is dropped for the whole day. I'm at loss as the source of this :( . And I though my HTC Desire S had poor battery life...
[Galaxy S II General] Entropy512:
The process for pulling /proc/wakelocks and analyzing it is posted ALL OVER this thread.
[Galaxy S II General] igalan:
Thanks, I already posted them and dmesg, earlier in this thread. Unfortunately my knowledge is limited, even after reading all the posts in the thread, and I couldn't really tell what's wrong. I know Latitude sucks a lot of battery in this phone, but even with Latitude off, WiFi off, with only GMail, WhatsApp, Google Talk and the standard weather plug-in Android OS CPU use is unreasonably high (always over 50%, nearing sometimes 70%).

I've grabbed logs, screen-shots, disabled programs that might be pulling data, bought BetterBatteryStats to help me get more information, read every related post, tried some more, etc. All within the limits of the stock ROM (2.3.4 KI4, Kies tells me that's the latest available -and based on what I've read, there's no guarantee that changing ROM or kernel would fix it-). I think I've done all I could.

I'll keep reading this thread in case someone stumbles across a workable solution. Or Samsung releases a new firmware that fixes the root cause.
[Galaxy S II General] igalan:
Today battery life has been terrible, with WiFi enabled but Latitude disabled things don't look too well. As usual Android OS is the worst offender with 40 % CPU use and on the top of the list. Follows Phone Calls, amounting to 1h 24m, then screen with 1h 5m. Still I expect it could do much better. After 11-odd hours battery was a bit over 30%.

I'm posting all the logs, in case someone can see what's going on here. I'll try to make some sense out of them, as well.
[Galaxy S II General] BatterBits:
I notice in your screen shots that Bluetooth is on - which you hadn't previously mentioned - this will be a big power drain.

I was in a similar position, until I started reading this thread I could barely manage 12 hours before flattening the battery.

Don't get hung up about Android OS being the highest percentage - it's a "catch all" process for lots of unanamed things - your job is to identify what those things are. Curently I'm on 79% after 12 hours - but Android OS accounts for 59% usage
[Galaxy S II General] alferret:
Just want to say that I flashed stock KJ4 & CF root on Saturday & was suffering 80%+ AOS all day Saturday/Sunday but without changing any settings, today it's sitting @ 16% & I am getting a good 18hrs of heavy'ish use & finished yesterday with 30% left. Wifi on, data on, sync on for FB, email etc. so for me initially very high for 2 days then things just settled! Go figure.

Sent from a Galaxy 2 by any means.
[Galaxy S II General] igalan:
Yes, I always leave Bluetooth on. This way when my wife walks into the car it will connect to the hands-free/AD2P with no user intervention. In the past I've tested on many devices how much battery Bluetooth uses when it's not doing anything, and I found that there was almost no impact, so not worth manually enabling/disabling it. Maybe my wife's Samsung uses much more battery even when it's not doing anything, I'll try to disable it for a day and see if it makes a difference.

I had to set up the Samsung email client, as forwarding all her mails through Gmail wasn't a workable solution on the long term. With all set up as she needs it currently goes down to 55-52% battery after 12 hours, so at least it makes it through the day. This is with 40 to 60 minutes in calls, and 20 to 35 minutes screen time. I think this phone can do better with this usage pattern.

On my HTC Desire S Android OS is always very far from the top, it sits usually between 6 to 12% CPU use (as the day goes this number goes down), while screen is always at the top. On every other Android I've had this has always been the norm. So I think there is a problem here, in the OS or the drivers, but no other device I've had need so much % of CPU time for system processes. I still don't know what system processes are using so much of it, besides suspend / event0.
[Galaxy S II General] a1adin:
now I am using CRv3.1.1 with speedmod 18test3,

I find that suspend & events/0 is much bigger compared with CR2.0 with speedmod 16.

does anybody know why?
[Galaxy S II General] tomurbanowicz:
In my device "suspend & events/0" are the biggest, too. I use stock kernel KI4.
[Galaxy S II General] xak944:
For those with a Sprint E4GT, check out the Rogue "Outlaw" kernel, it's fixed the AOS bug for me, or at least masked it and drastically improved my battery.
[Galaxy S II General] somethingshiny:
warning, i might be a bit to thorough. so, ive had my GSII for about 2 weeks. Its an awesome phone but there are definitely major problems. its the sprint(epic 4G touch) SPH-D710.10 version. kernal is stock 2.6.35.7-SPH-D710.10.EG30-CL435734 and andriod version is stock 2.3.4. 16g internal and 32G class 10 sdcard. oh and root.

first thing i did was let the battery die before i charged it for the first time. then changed all the setting to my liking and install apps and set up the launcher how i liked. Battery was great for first few days. It charged insanely fast, 30min to an hour. however, it also got extremely hot. the battery life was about a day and a half with HEAVY use. Then, out of no where, my fully charged phone died in two hours... and battery life sucks now and AOS is always 40-75% and in second is display around 10%

haven't been able to do much test yet but im going to mention some possible hardware problems. i noticed that when i use the stock charger, my battery (and it seems like the screen itself) get really hot, really fast, which i assumed is bad like it generally is (hope nothing was damaged). also, the touch sensing messes up when its plugged in, as if there was too much current (or voltage? or something?) built up in something at the bottom of my screen or maybe electricity is flowing through parts that its not supposed to? i kept my charger from my evo and when i use it it seems to work without those problems and charge faster. regardless, if my battery is around 10%, it will die in a few minutes even while charging. so, i have to actually turn it off to charge it.

just listing some details about my problem. ill have actual data tomorrow. i am however seeing how things go tonight with the following frozen/disabled: audio output for dock (which i don't have, but turned on anyways), accessibility services (from tasker), the motion activation settings, auto-adjust screen power (under display settings), handcent sms, skype, and tasker. im leaving wifi/data enabled (which is managed by juice defender). gps is off, and i don't use bluetooth. more info tomorrow.
[Galaxy S II General] defenderko:
I found out that video maker app is using almost half of the Android system's usage.. And I never started that app since I got the phone..
[Galaxy S II General] jose.celestino:
No need to have started it, apps tend to start by themselves on events.
[Galaxy S II General] defenderko:
Can I uninstall factory app without rooting? Is there anything I can do about it?
[Galaxy S II General] somethingshiny:
Well, I didn't actually dump any files cause my battery lasted all day with normal use. I even traveled through some areas witha bad signal. AOS never went above 30% and display wasn't the top like its supposed to be. Hard to believe that either those apps or one of those settings should cause an average battery life of 5 hours. I'll look at it again tomorrow and then test the things one by one. I'll let y'all know if I get anything useful from it.
[Galaxy S II General] warrez:
so wait.. what is NOT normal AOS battery usage?... i dont know about long use but i just checked now my AOS is second highest right below Android system and it drains about 19%. the phone has been up for about 6h and battery is at 90% with about 30min screen time but with low usage ( answering phone and talking maybe 30 - 1h per day and periodic sync with gmail ) it last 2d with 40 - 50% battery left... so my question is.. am i having the bug? O.o
[Galaxy S II General] Entropy512:
He masked it - battery improvements was just luck most likely.

We confirmed earlier in this thread that updating base to 2.6.35.14 makes ZERO difference in actual drain, but does hide it from getting reported. This is why I have discontinued my "experimental" .14-based series for the time being.
[Galaxy S II General] lokhor:
How much svnet-dormancy should i have in BBS?

Currently showing 48 minutes and 9% after 9hrs off the charger.