yashsingh1/xdaforums huggingface dataset:
[AT&T Samsung Galaxy S II SGH-I777] :
Mmm I see your first point, that's why I was looking for a way to determine how many times an app woke my phone (regardless of amount of data used, which is already monitored and visible in settings - mobile data usage graph and has nothing suspicious in it imho).

About the rest..well, the fact that I understand more o r less something like 30% of your post says it all :P

I'll start from "something simpler" maybe, then will try to learn more and follow your directions (btw: do you know how to kill gtalk? I freezes the app but still have dozens of wake counts and 2 3 mins per day of wake locks).

Cheers mate

Sent from my SGS2 - SlimICS Rom & Fluxi Kernel
[AT&T Samsung Galaxy S II SGH-I777] xelra:
That's not gtalk. You just think it is. The wakelock you are referring to, I assume you refer to the bbs gtalk connect wakelock, is caused by other Google apps, too.
[AT&T Samsung Galaxy S II SGH-I777] :
I see also an alarm called gtalk reconnect, that's why I am concerned. It fires up many times a day according to bbs.

Sent from my SGS2 - SlimICS Rom & Fluxi Kernel
[AT&T Samsung Galaxy S II SGH-I777] xelra:
Yeah, somewhere along programming, after writing that handle for gtalk first, they realized that it was well written and can be used for more.

The name stayed, however it's being used for all the push stuff. Gmail, calender sync. And so on.
[AT&T Samsung Galaxy S II SGH-I777] :
It is strange though, since I use exchange and no Gmail, no calendar sync, no contacts sync...all frozen in Titanium: s

Sent from my SGS2 - SlimICS Rom & Fluxi Kernel
[AT&T Samsung Galaxy S II SGH-I777] rav4kar:
Isn't it funny? Is Google really rushing to stay ahead? :o
[AT&T Samsung Galaxy S II SGH-I777] elherr:
Thanks!

I'm running tcpdump in shell and see what appears to be notifications for Gmail on 5222 but the actual mail transactions occur on 443. Interesting. Google's approach to Apple's Push Notification?

The sad thing is that 5222 is rather chatty. I'm seeing activity every minute with no apparent payload. One should not need TCP keepalive that often.

I wish there was a mechanism in place where all services refresh sockets at a given timetick -- and only as needed.
[AT&T Samsung Galaxy S II SGH-I777] diamondpillow:
I am facing,

1. High android OS usage. Sometime its higher than Brightness, and most of the time its highest usage of batt after brightness. (I read somewhere, it said its calculation errors, but I think its not, cause my battery no longer last that long.)

2. Phone just cant go into deep slp. Its being kept awake by some apps (Which I cant narrow it) Using BetterBatteryStats, I found out its I2_HSIC. (Whats this I2_HSIC ??)

I installed lesser apps, and lesser widgets. Disable account sync and google backup. Settings more or less kept the same as GB

Overnight my batt can reduce by 21%, it never happened before. lol. ICS...

btw I did a search on HSIC, and found out to be High-Speed Inter-Chip, which I do not know if its in anyway related to what we need to know abt I2_HSIC.

This article here might help a bit

http://www.anandtech.com/Show/Index...phonestablets-are-limited-to-36mbps-over-wifi
[AT&T Samsung Galaxy S II SGH-I777] elherr:
What firmware are you running? Is wifi on or off? Connected to wireless access point/router?

The latest CM9 nightlies seem to suck more power. I've temporarily reverted to CM9 0519 for the next couple of days -- more for the lockscreen wake issue than power.

With CM9 0519 and stock battery I'm only seeing about 2% drain per hour idle with wifi on & connected.
[AT&T Samsung Galaxy S II SGH-I777] diamondpillow:
wifi always off. I am running on stock rom, 4.0.3, not rooted, not connected to any access/router.

Did a factory reset yesterday. need to monitor the wakelock.
[AT&T Samsung Galaxy S II SGH-I777] be_vigilant:
-Incorrect Post apologies. Meant to go to note section-
[AT&T Samsung Galaxy S II SGH-I777] Sengfeng:
Someone briefly mentioned Plex media server earlier. I've definitely, 100%, pinned some battery use woes on that one. I saw a huge blast of UDP packets coming from my Plex media server PC using Shark. You could see the battery graph start flattening out as soon as that service was stopped on the network.
[AT&T Samsung Galaxy S II SGH-I777] kilometers4:
Does anyone know what com.google.android.gsf alarm is related to?
[AT&T Samsung Galaxy S II SGH-I777] p107r0:
afair it's google services framework, check betterbatterystats thread, there were some brave users trying to partially disable it's receivers
[AT&T Samsung Galaxy S II SGH-I777] K Rich:
i tried to searching but didn't come up with anything, anyone faceing high "suspend_backoff" kernel wake locks?
[AT&T Samsung Galaxy S II SGH-I777] Edwrib:
http://xdaforums.com/showthread.php?t=1697899
[AT&T Samsung Galaxy S II SGH-I777] thanitos:
What does a wake lock "event1-5132" mean?
[AT&T Samsung Galaxy S II SGH-I777] cdmackay:
Assuming you haven't rebooted, try a "ps | grep 5132" in a terminal app.

It's probably an Android system server process.
[AT&T Samsung Galaxy S II SGH-I777] thanitos:
Hum once I restarted it gave them accrual names my phones been acting odd lately time for a wipe! Ty for the help
[AT&T Samsung Galaxy S II SGH-I777] badger109:
uckk6 firmware bug

I think Im getting the uckk6 wifi bug. Is there any way to fix this?

Im running gb shostock 1.9.4 with the dd kernal.

It seems to happen every so often, and on different networks. when its acting up i think turning off wifi slows the drain.

The latest time it happened, there were no odd processes running and sync, gps, and bluetooth were off. You can kinda see when it started, about an hour and a half before it died. it might have started when i got home and it connected to the home wifi. i wasn't using it at all.

I have the bbs, cpuspy, and battery monitor screen shots attached so you can see what i mean. didn't happen to grab a shark capture. there weren't any significant partial wakelocks.

I dont have facebook or words with friends or skype or dropbox and nothing else was running (i checked). The odd thing is that this never happened when I was on stock uckk6.

any suggestions for until i get around to flashing something else?
[AT&T Samsung Galaxy S II SGH-I777] bleedingthru:
Flash another moden
[AT&T Samsung Galaxy S II SGH-I777] weedolo9y:
Pretty sure my wakelock was the Facebook app
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
That used to be a guaranteed wakelock, it's gotten better - but it seems to be more likely to flake out if you use the messaging feature. I had a 2 hour Facebook wakelock (before I noticed and killed it) coincident with a classic "AOS bug" incident on my Infuse around the same time. (e.g. network traffic kept the phone awake). This happened once last week - which is why it's in the "rare drainers" category.
[AT&T Samsung Galaxy S II SGH-I777] naturefreak85:
I suspect Facebook may be my wakelock issue, I also noticed Kik Messenger was really problematic, during the day I got much better battery life, overnight? Not so much. From 9PM to right now I've lost 10% and my phone has been on my nightstand and I was actually sleeping. Woke up and saw it drained significantly. I tried reading my wakelocks file but the processes that are at the top based off of your tutorial, I have no idea what they are.

Apparently my dmesg file is too large for the text attachments, so I have uploaded it to Google Docs.

https://docs.google.com/document/d/1kxIX96MIuHBGProj-S6gHDN8IxeRGWq-rrj8SO_3jYM/edit
[AT&T Samsung Galaxy S II SGH-I777] weedolo9y:
Facebook was my wake lock also froze apps in tb 2 and a half hours idle and I'm at 99 percent never had this good of battery life
[AT&T Samsung Galaxy S II SGH-I777] rlarsen462:
8hrs 16m

92% remaining

91% deep sleep (this was astonishingly high...go figure)

Wakelocks attached...
[AT&T Samsung Galaxy S II SGH-I777] naturefreak85:
Do you even use your phone during that period? I'm curious how much screen time you have. Also what programs you have installed, and if you are using Juice Defender.
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
I don't expect to see anything of interest in your wakelocks... That's pretty good idle drain performance - a little lower than I'd expect for an idle test, but not awful by any means.
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
wlan_rx_wake is at 38 minutes of sleep_time, svnet-dormancy is at 33. Those are both driven by data use... Something is using background data, much more on wifi than on cell data.

I really need to add a Wireshark tutorial for hunting data hogs...
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
Ouch, got nailed with 512 minutes of bt_wake last night - that one's new!

(I think CM7 has been having this problem - it may be common to both CM7 and I9100 ROM ports.)
[AT&T Samsung Galaxy S II SGH-I777] naturefreak85:
If you are talking about me....Bluetooth was off and I am running h8
[AT&T Samsung Galaxy S II SGH-I777] dmm5157:
Ok, finally got a chance to charge my phone and do what your instructions said.

Here are my files.

Worth nothing, I decided to uninstall SETCPU and re-flash your latest kernel. Thought maybe something with SetCPU was causing problems.

My phone had been off the charger 3 hours when I pulled this data. I let the phone sit by itself (I was asleep). Looks like CPU Spy is showing 2 hours in deep sleep and 1 hour at 200mhz.
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
No, myself - I got nailed last night. May have been SixaxisController

You forgot to reset timers in CPUSpy after booting - makes it hard to read since no bars/percentages. However it seems like your deepsleep is pretty low. Will look at wakelocks tonight - or you can try opening on Excel or OpenOffice Calc and sorting by sleep_time - to make it easier to read, divide sleep_time by 60e9 to get the sleep time in minute. (sleep_time is in nanoseconds...)
[AT&T Samsung Galaxy S II SGH-I777] tboooe:
I know I am being greedy....

I left my phone virtually untouched for 15 hours. I am experiencing about .75% drain per hour. Whats strange is that just yesterday I was draining about 2% per hour. I havent made any changes. Anyway, is there room for improvement or should I be happy?
[AT&T Samsung Galaxy S II SGH-I777] rav4kar:
------------

you must be extremely happy with your battery performance, mine drains 5% / hour. I am doing all my best to crap out things that drain battery but no luck! if one thing am I not happy about this SGS2 is battery performance of my phone, what the heck "Android OS" is strawing the juice mostly only samsung knows! let them fix it!
[AT&T Samsung Galaxy S II SGH-I777] dmm5157:
Tbooe, what ROM are you running?

I'm running Serendipity 8.1 and it seems like I can't get less than 1% per hour. Most times, it's closer to 2% or more per hour.

The most DEEP SLEEP % I've seen so far on my device is around 40%.
[AT&T Samsung Galaxy S II SGH-I777] tboooe:
Sorry for not being more clear. I am using UnNamed rom.

I try to be very judicious about data usage on my phone. For example:

I use Tasker to turn off wifi if my screen has been off for at least 1 minute. I found that the phone's wifi sleep profile kept wifi on too long even after the screen as turned off.

I use Synker and Tasker to only update my Google accounts (email, phone, etc) once every hour. Same with my weather and greader apps.

My screen brightness is turned down to around 25%.

All that being said, I think I can get better. I see a lot of partial wakelocks though I have no idea if I can avoid it.
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
Wifi sleep profile is best set to never - unlike older Android phones, our wifi chipset's standby drain is EXTREMELY low - between that and the fact that wifi data transfers use FAR less power than cell data (and don't incur the 6-second wakelock that cell data does), wifi is far better for battery.

Exception: Some apps change behavior on wifi and will start using lots of background data. Apps that do this will drain your battery. It's the most common root cause of the infamous "Android OS bug"
[AT&T Samsung Galaxy S II SGH-I777] tboooe:
I agree with you Entropy. In my case, my phone spends far more time with the screen off (especially during working hours). In this case, do you think that having the wifi set to off when screen is off would be better than leaving wifi on all the time? I dont have a lot of apps using data.
[AT&T Samsung Galaxy S II SGH-I777] rlarsen462:
No, I was told to let it sit overnight after a full charge and pull logs in the morning.

Judging by the one I saw further along that had 95% deep sleep over 15 hours, my phone is still doing something unfortunate in the background. Since that was right after a reboot, too, that is not normal.

Usually, if I've been using it throughout the day, and then just clear the CPUSpy timers and let it idle, I will get more like 70% or less deep sleep, rather than >90% like this experiment.

Oh well...not sure what's to be done about it but I sure wish I got these ridiculously long battery lifes like some folks in this thread.
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
Basic background sync stuff like keeping a Google account synced will drive deep sleep down to about 94-95% when on cell data, 96-97% when on wifi due to the long 6 second wakelock whenever the cell radio transfers any data.

The cell data numbers drop to 88-90% or so in very weak signal.
[AT&T Samsung Galaxy S II SGH-I777] geomax45:
I don't think that the modem has anything to do with the UCKK6 bug. Otherwise, everyone with the bug would flash another modem and be done with it.
[AT&T Samsung Galaxy S II SGH-I777] Chaurigol:
Guys, I'm having serious battery drain issues on my Mini. I'm losing ~35% overnight (8 hour period), with 97% deep sleep (CPUSpy info). I've tried several custom roms (CM 7.2, emanoM, GingerMod) and happens in all of them. My phone is two weeks old and didn't experience in stock rom.

I attached wakelocks.txt and dmesg.txt, I would really appreciate if you could take a look at them and give me a hand. I really can't identify the problem!

Hope you reply. Thanks in advance.
[AT&T Samsung Galaxy S II SGH-I777] bleedingthru:
But isn't the uckk6 modem one of the big drainers? But I'd think also where u lived too could be a factor
[AT&T Samsung Galaxy S II SGH-I777] alacrify:
Modem != Kernel != ROM. It's not the modem.
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
The UCKK6 modem is pretty ****ty, but the biggest problem with UCKK6 is wifi in terms of power management.

There's a possibility that it's the wifi firmware - pulling /system/etc/wifi/bcm4330_*.bin from XWLA4 into UCKK6 might fix it. (I might have the exact patch wrong there, I'm going from memory here.)

Might as well just flash ported XWLA4 firmware at that point though.
[AT&T Samsung Galaxy S II SGH-I777] ywashingmachine:
I'm getting a ton of wlan_rx_wakes, over the course of 12 hours there's about 4 hours of wakelocks. I think most, if not all, of that was during the 8 or so hours I was at work, where I have no control over the wireless setup - I'm just hoping there might be something I can change on my end to help minimize the problem (beyond disabling wifi). BBS doesn't show any apps acting up, and the battery monitor shows tons of android OS usage (currently at 56% battery left, 12h 10m on battery, it shows android OS at 50% usage, with CPU total of 1h 22m and keep awake of 3h 53m). Shark capture attached. Any ideas/suggestions?

Oh, also I'm on CM9 nightly 6/19, fluxxi kernel 6/22 (but I had the exact same problems on the stock CM9 kernel), UCKH7 modem.

Thanks!
[AT&T Samsung Galaxy S II SGH-I777] goheels:
Does anyone have a recommendation for a good modem version(s) to use in areas with low signal?

I've been using UCLE5, but I'm living overseas and the area I'm living in doesn't get a very good 3G signal (phone often switches between 3G and EDGE). I know the problem is 3G/HSDPA because when I tell the phone to use 2G only, battery life is great (generally 0.5%/hour). But with 3G on, battery drain is pretty ridiculously high. I'm not sure which modems are generally considered better than others in low-signal areas, if there's really any difference at all between them.

Also, I was thinking maybe the problem was with using HSDPA, so in the Galaxy S2 settings app I tried forcing the phone to use UMTS only, but after using the setting (believe I also rebooted) the phone would still kick up to HSDPA when actively using the internet connection. Is it possible to force the phone to use plain 3G? If I can't get significantly better battery life with a different modem, I'd really like to avoid having to leave the phone in 2G mode all the time. If I could at least get UMTS and just leave HSDPA/HSPA+ disabled that would probably be fine.
[AT&T Samsung Galaxy S II SGH-I777] fldude99:
I think the Nike+ running app is a battery drainer
[AT&T Samsung Galaxy S II SGH-I777] foosion:
The native ICS SIP client appears to be a battery drainer when set to receive incoming calls. The settings page warns it can reduce battery life.
[AT&T Samsung Galaxy S II SGH-I777] camspy:
locationmanagerservice android system is eating more than 60% as shown in partial wakelocks.

What could it be?
[AT&T Samsung Galaxy S II SGH-I777] chamonix:
As the name says it's the service delivering location. Now the problem is that the intensity of that service depends on the subscribers and the requested precision/frequency.

The cause could be any app or widget requesting unnecessary high precision like fine grained (gps) location for getting the weather. If you provide a bbs log in the appropriate thread we can have a closer look
[AT&T Samsung Galaxy S II SGH-I777] camspy:
Could you explain please how to acquire that bbs log?

In BetterBatteryStats partial wakelocks at this moment say AlarmManager eats 52.6% and LocationManagerService eats another 38.3%

This is huge draining I would say.

Kernel Wakelock says PowerManagerService eats 92.6%
[AT&T Samsung Galaxy S II SGH-I777] p107r0:
Menu / More / Dump to file
[AT&T Samsung Galaxy S II SGH-I777] camspy:
OK, here are the files for you to analyze:

View attachment Dumps.zip
[AT&T Samsung Galaxy S II SGH-I777] camspy:
So, what is causing me the problems?
[AT&T Samsung Galaxy S II SGH-I777] p107r0:
My guess would be:

1. posting the question in incorrect thread (bbs thread would be better)

2. maybe, also, lack of patience ;)
[AT&T Samsung Galaxy S II SGH-I777] camspy:
I hope i posted in correct thread. And i try to be patient, just my battery isn't
[AT&T Samsung Galaxy S II SGH-I777] p107r0:
Well, I'm not am expert in reading bbs logs (those reside in bbs thread, for real), even worse than that, it's the first time when I'm not toying with my own, but look into someone else's, but what I see after perfunctory glance at it, and what you have probably seen as well (if you dared to look there), is a lot of k9, Facebook, location and juice defender events. Maybe something else as well, but as i said, I'm a n00b when it comes to bbs reading, so you might consider posting the logs in the bbs forum, where it belongs.
[AT&T Samsung Galaxy S II SGH-I777] chamonix:
I will reply shortly here but please, as I requested in my initial post, take your questions about BBS here, I don't want to hijack this thread.

From your log I see four main problems:

- you cut off the header of the dumpfile, that's not good because I can't see what device you have neither what settings you used

- k9 mail syncs a lot of folders, causing an enormous overhead. It looks like the way you have configured your IMAP folders does not do good with k9. Maybe there is a chance to reduce that by checking of all the folders need to by synced

- quite some wakeups were caused by lightflow

- location is pretty expensive in that reading. We may have to have a closer look at what location-aware aps you are using
[AT&T Samsung Galaxy S II SGH-I777] camspy:
So what else info do you need from me to identify the problems?

I got rid from K9 Mail for now, got it replaced by Kaiten, but I have 7 IMAP mailboxes and check them every hour, they have from 1 to 6 folders to sync
[AT&T Samsung Galaxy S II SGH-I777] mzaur:
I have been getting drain lately over night. I checked before going to bed last night and definitely most of the drain happened at night. I'm guessing it's wifi drain, since I can't see anything else on the log. Can anything be done about this?

http://pastebin.com/sVKubpNr
[AT&T Samsung Galaxy S II SGH-I777] chamonix:
Look closer, suspend backoff and deleted_wake_locks
[AT&T Samsung Galaxy S II SGH-I777] mzaur:
Yeah, I thought those had to do with wifi drain. No? Could you tell me what the issue is then?
[AT&T Samsung Galaxy S II SGH-I777] rav4kar:
Nike+ running keeps phone awake after closing

Yes, Agree with you , plus make sure you kill/force stop nike+ running ( 2 processes) once you are done with the app, just closing/exiting does not remove process from the background and they keep the phone awake.
[AT&T Samsung Galaxy S II SGH-I777] thanitos:
Power management service is kicking my butt on battery I think something went amiss when I started running aokp alongside lilphone bricker but I'll do a full decharge then full charge I cleared battle stats
[AT&T Samsung Galaxy S II SGH-I777] chamonix:
Charge/Discharge will change nothing to your wakelocks. PowerManagement is a kernel wakelock representing the sum of the partial wakelocks (userland aka apps). So you should find what app is causing that by looking in the Partial Wakelocks section. If you need support with BBS please take that to the right topic, this thread is not about learning how to use BBS
[AT&T Samsung Galaxy S II SGH-I777] mzaur:
Apparently Chrome is giving people wakelock issues. It may be related to my issue. I'll freeze Chrome and see what happens.

http://xdaforums.com/showthread.php?t=1743669
[AT&T Samsung Galaxy S II SGH-I777] thanitos:
Probably my alarm again but after a re install of lilphone it slowed down the drain. Sometimes I get great batt life sometimes not just simple little things make a pretty big difference.
[AT&T Samsung Galaxy S II SGH-I777] mariotme:
Hey Entropy512

I am having severe Wlan_rx_wake wake locks on my Galaxy S3 running CM9.

I gathered a little log using Shark App and i set the permissions as asked in first post.

Would you please take a look at it.

Sorry for attaching it in Zip format but XDA wont allow me to attach pcap files
[AT&T Samsung Galaxy S II SGH-I777] Decepticaons:
Can you add a zip file with the xda app?
[AT&T Samsung Galaxy S II SGH-I777] lirong:
Guys this is a great thread, Ive been reviewing it with a lot of interest and trepidation on my own phone.

Sorry for a clearly ignorant question but can I use GSam Battery (I think formerly Badass Battery) to give you the stats you need for advice? Can you please let me know what/how I should post? Id be very interested in any feedback...
[AT&T Samsung Galaxy S II SGH-I777] dars2:
Great now I will notice what really drains my battery... I would like to say that Contract Killer (in background!) Slowdown the phone and sometimes it freezes in the worst moment :/
[AT&T Samsung Galaxy S II SGH-I777] CallMeAria:
Yes. Its not as intuitively layed out as BBS but all the info is in there. And the detailed charts are very nice. Info you want is apps/services waking your phone; how often and for how long. Check CPU states while the phone 'should' be sleeping.

For example, if you have a particular process that was keeping your phone awake or constantly waking it, try to correlate that with maybe the amount of time your phone is spending out of deep sleep or at a particular frequency. Or maybe a service is causing your CPU to run at a higher frequency when it shouldn't be. Just do some snooping and put 2 and 2 together. From there you can Google or ask here why that problem is happening.
[AT&T Samsung Galaxy S II SGH-I777] ropo1:
I've noticed that the regular Amazon app will wakelock if I don't close it after use. Anyone else seen this?
[AT&T Samsung Galaxy S II SGH-I777] Eyedoctor2:
Help would be appreciated

BBS dump attached.

Love my phone but hate the battery life. Any help with this would be greatly appreciated.