yashsingh1/xdaforums huggingface dataset:
[AT&T Samsung Galaxy S II SGH-I777] cheesekake:
Sorry this has taken me a while to post, I was going to post it last weekend, however I exchanged my phone to see if it helped with battery life. It actually got worse!

I pulled my phone off of the charger at 1pm, it is now 5:04 pm. I have sent one text and had the screen on for less than a few minutes and I am down to 82% battery. I'm running Unnamed ROM with the custom Kernel.

The attached screenshots are only for a couple of hours because I accidentally rebooted, but that is how it typically looks even after running for 12+ hours.

Here is my wakelocks and dmesg files. I would appreciate it if you could take a look for me and give me some insight!

Thanks in advance!
[AT&T Samsung Galaxy S II SGH-I777] Dxtra:
For those with horrible battery life I'll suggest factory reset, and carefully installing and monitoring each market app at a time. 95% of the time market apps are the enemy here. Be careful on what you install.
[AT&T Samsung Galaxy S II SGH-I777] Adelaide.:
Friendster caused issues for me. I installed and uninstalled it before I had CPUspy and BBS and all that, so I don't have any numbers to show, but it was causing a wakelock. After I installed it the battery usage screen showed my phone awake almost the whole time the screen was off.
[AT&T Samsung Galaxy S II SGH-I777] jm1280:
Having the same issue, high Android OS usage. Just swapped out the battery to see if that helps. Going to pull wakelocks today and post up.
[AT&T Samsung Galaxy S II SGH-I777] Misterjunky:
Battery Life

There is so much talk in these forums here about battery life so after a lot of

thought I had an idea to investigate how much the externel sdcard drains the

battery in our phones.

After an hour of searching I found many very technical information about this

but none which were specific enough to give me an idea of exactly how much

the external sdcard really drains the battery.

All along I knew that just by simply plugging in an external sdcard into the

phone or a computer the power consumption increases.

(even if the phone's screen times-out.)

Then I came accross an article which was specific enough about this topic and

which even I could understand.

So here is the bottom line:

When we plug a flash drive into the computer and not even access the flash drive

it still consumes a certain amount of milliamps as long as it remains plugged in

and the computer is powered on.

All external micro sdcards or any other kinds of sdcards just like any external

hard drives plugged into the computer use power and drain the battery, in cell

phones even if the phone is in stand-by mode or sleep mode.

In standby mode the micro sdcard drains the battery anywhere from 0.3mA to

0.6mA depending on the speed, brand, and quality of the sdcard.

The amount of battery drain increases more than 20 times while the sdcard is

being addressed and accessed to read or write.

If we multiply 0.6mA times 24 hours the amount of battery drain is 14.4mA

which means that if we do nothing at all with the phone it will drain an

additional 14.4mA every 24 hours just by having the micro sdcard plugged

into the phone.

So if our battery has a full charge of 1650mA you can see that the amount of

drain is not a lot but if we want to conserve the most battery life possible

then even a 14.4mA drain every 24 hours might be of concern to some of us.

What do YOU think?
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
Our MMC controller gets shut off along with everything else when deep sleep is entered.

It is a tiny, miniscule, insignificant drop in the bucket unless an app is misbehaving and writing to the internal or external SD cards way too much. (This will show up as lots of mmc_delayed_work wakelocks consuming lots of sleep_time in /proc/wakelocks - I've seen this once or twice, always associated with high wlan_wake wakelocks, classic sign of an app driving network/SD card traffic.)
[AT&T Samsung Galaxy S II SGH-I777] dross333:
Glad it closes now. But this games caused my S2 to run hot.
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
Maybe try using SetCPU to force the max clock down while you play.

I think there are advanced scripting tricks (like maybe Tasker) that let you automate this, but not sure.
[AT&T Samsung Galaxy S II SGH-I777] m0biusace:
This is a good idea. At 1.4ghz the phone gets extremely hot while playing Sentinel for any longer than half an hour. at 800mhz the game still runs smoothly without heating up.
[AT&T Samsung Galaxy S II SGH-I777] penskyc:
Entropy512, is it safe to post a pcap file here? or does it have sensitive information? I am looking at it in wire shark and dont really know what I am looking for, I do my HTPC/server showing up alot as a SSDP protocol which seems to be related to a UPNP server, which could also be related to my Plex Media Server or iSedora media server.. I also see some UDP destination port 32412, plex port is 32400 so I am assuming it may be related to my plex server somehow.. ( I do have a plex app, but it doesnt always stay connected or anything like that)
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
Normally no, but it depends on how it was captured. Wireshark has an option to capture the first N bytes of a packet - 68 is enough to catch all IP and TCP or UDP headers, and identify the protocols used, while having a fairly low risk of exposing personal information.

A full capture - posting that would be inadvised.

This issue is why I still haven't posted a Shark for Root tutorial, I need to make sure, without a doubt, that it can do the packet truncation stuff, both for privacy and file size reasons.
[AT&T Samsung Galaxy S II SGH-I777] jm1280:
Could someone please look my wakelocks and see if anything is out of sorts?
[AT&T Samsung Galaxy S II SGH-I777] Adelaide.:
I've been looking into this becuase I love words with friends and I hate what it does to my battery. As far as I can find yes you can downclock the CPU for specific apps using tasker, but you have to use a couple other apps along with it. It is discussed here about 1/2 way down the page.

I found another battery drainer I think. It may be this is a known issue and I'm just not aware of it becuase I'm so new to android. When I switched to Launcher pro I left my TW screens configured (all 7 of them). I noticed that I was getting wakelocks from widget programs I wasn't even running and it dawned on me that those widgets were present on the TW launcher screens. I cleared them all off and I did not get any wakelocks from those programs today.
[AT&T Samsung Galaxy S II SGH-I777] mcorrie1121:
Anyone had issues with GPS Status? After about 15% overall battery used today, it was at about 16% itself despite me not using it in days.
[AT&T Samsung Galaxy S II SGH-I777] dandrumheller:
Yes, saw similar behaviour the first couple days I had the phone. Just deleted the app since I have had no problems with GPS on this device, so no troubleshooting by me.
[AT&T Samsung Galaxy S II SGH-I777] mcorrie1121:
I deleted as well, just am curious what other people have seen.
[AT&T Samsung Galaxy S II SGH-I777] vladm7:
I had wakelocks issue with K9 mail app. By default it uses push for receiving new email. I get moderate number of emails daily and I noticed that my phone spends too much time woke up with K9 being the reason. There is a report that K9 doesn't let the phone go for at least a minute after each push notification.

Things go back normal after I disabled push, switched to poll every hour and only first-level imap folders. Also increased default value imap-idle refresh timeout.

hope this will help others.

-- vlad
[AT&T Samsung Galaxy S II SGH-I777] GeorgeP:
I am running 2.3.6. and have not noticed any change in battery life since upgrading from 2.3.4. I get about 1% - 1.5% / hour drain overnight.

One thing I have noticed is the My Location setting under Location and security can have a big impact on battery life.

Those having unresolved problems with battery life might want to try unchecking both of those. Even "Use wireless networks" seems to have a big impact. IIRC, if "Use wireless networks" in checked on, a process called wifi sharing will be active as all your apps with location services will be trying to update location. This activity shows up as Android OS in battery usage.
[AT&T Samsung Galaxy S II SGH-I777] stone_ship:
Yup, I've been noticing these little blips of GPS activity in my battery usage graphs. Google quick search (app, not the widget) seems to be popping up more and more. Could be related to the recent update, but not sure yet.
[AT&T Samsung Galaxy S II SGH-I777] harleydad82:
That's good to know, I have noticed when phone sitting idle on wifi, they it drains very quickly in 8 hours while sleeping I lost 30% over night. Deep sleep was at 60%. So I ran a test the next night. I charged phone to 100% then went to bed with wifi off but this time with data on. Woke up with only 4% drop "96%" still left. %per hour was .9% drain. Deep sleep was 96%. So I then ran test with data off and wifi of next night but got similar results as data on. So something while over wifi is def using wifi. I suggest trying this for ppl. I am on 2.3.6. So when I'm at home wifi on but when I know I'm going to be idle or out away from wifi I obviously will turn on data. Our I turn data completely off when I know I can't use it. That really saves battery. Just thoughts hope this helps anyone, and hope anyone with ideas can help me.

Rooted but stock GSII patiently awaiting Ics or CM9.
[AT&T Samsung Galaxy S II SGH-I777] harleydad82:
Also on side note, about the update 2.3.6, even with my captivate, I used to leave wifi on all the time, cuz it used less than data in battery drain even on 2.3.4 But since update to 2.3.6 its the opposite data uses far less drain when "idle" when using wifi its less drain. Just some more thoughts

Stock GSII patiently awaiting Ics or CM9.
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
If you read the first post of this thread, you'll see that the UCKK6 BT-AMP bug is quite well known and documented...
[AT&T Samsung Galaxy S II SGH-I777] harleydad82:
Yes I've Bern following thread since almost the beginning. Always helpful info. Btw "Entropy" thanks door all you do!

Rooted and Stock GSII patiently awaiting Ics or CM9.
[AT&T Samsung Galaxy S II SGH-I777] tboooe:
Is it possible to get SVNET-DORMANCY down to 0 mins?

My biggest kernel wakelock is always svnet-dormancy. According to BBS, I get about 4 mins of svnet-dormancy every hour. I have disabled any app or widget from automatically updating, turned off location service using wireless, turned off android market update notification, etc. The only nonstock apps I have running are Tasker, Widget Locker and Go Launcher Ex, non of which should be accessing data. I tried stopping Tasker but still see the same amount of svnet-dormancy.

At this point I have no idea what could be still accessing data on my phone. Looking at partial wakelocks, my biggest offenders are in order:

ActivityManager-Sleep (1s, count: 1504)

AlarmManager (49s, count: 1446)

E (1m 6s, count: 1034) this is Tasker

M (13s, count: 893) this is Tasker

WifiService (12s, count: 767)

Checkin Service (2s, count: 666)

ActivityManager-Launch (2m 49s, count: 638)

RILJ (1m 3s, count: 567)

Gtalk_Conn (4s, count: 557)

After that the count and time of partial wakelocks drops off significantly. Any ideas how to track down what is accessing svnet-dormancy?

So I am wondering if it is even possible to get svnet-dormancy down to 0?
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
Disable packet data.

Any radio data transfer = 6 second svnet-dormancy lock.
[AT&T Samsung Galaxy S II SGH-I777] tboooe:
thank you entropy. I know I can disable packet data but then I wont get notifications from Google Voice which I use for vmail and texts. What I am perplexed about is that it seems something is still using the radio for data even though I have disabled all apps and widgets from updating. Is 3-4 mins an hour normal and just the overhead from the system? If so, is there anything I can do about it?
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
Basic Google account polling/checkins will drive some usage - 3-4 min/hour might be a little high, not sure.

Unfortunately, AT&T's firewall/NAT system has some crap that will force a connection reset every 10-30 minutes (don't have a link with the info at the moment), connection reestablishment uses very little data but has that nasty penalty, both in terms of CPU time and the radio.
[AT&T Samsung Galaxy S II SGH-I777] dandrumheller:
Fwiw, I'm seeing about 1 minute of svnet-dormancy wakelock per hour of up time with background data enabled. 70 percent of time on cell network, 30 percent on wifi.
[AT&T Samsung Galaxy S II SGH-I777] tboooe:
EUREKA!!! Finally figured out what was causing my kernel wakelock

It was my stock market widget! Even though the widget was only set to update once a day, it was still using cellular data for around 2-3 mins per hour and using the cpu at 200Mhz. Using this widget, the best deep sleep time I could get was 91-92% but now i am getting 96-97%!! Its a shame though because it is a great widget. Hopefully the dev can fix the problem.
[AT&T Samsung Galaxy S II SGH-I777] DefTaker:
Here's my Wireshark dump...oddly enough, after I recharged the phone yesterday, it seems to be behaving better. Maybe it knew that I was going to pull info on its "bad behavior?" :)

Don't know what it means though when teh app says to let it run a while...<-- pretty subjective so I only ran it for 10 minutes or so. Let me know if I did it wrong and I'll try again later.
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
You don't appear to be suffering from the BT-AMP bug - in fact you would likely experience drain on any firmware build.

Throw your broke-ass piece-of-**** 2wire router in the trash. Nothing should be spamming out ARP requests like that.

You have an HP device and a Gigabyte device (laptop and desktop) that are constantly exchanging SNMP traffic with each other. I'm fairly certain this wouldn't cause wakeup interrupts though in normal operation, I'm guessing you're only seeing it because one device is on the wireless network and Shark puts the interface into promiscuous mode. The SNMP traffic is likely not related to your problem. The ARP spam listed above IS a problem.

Dropbox LAN sync discovery probes from your Gigabyte device (desktop)? will cause some minor drain but not severe - one wakup as often as every 30 seconds. (There's a big gap in there for some reason though, which is good.)
[AT&T Samsung Galaxy S II SGH-I777] DefTaker:
LOL - I can't throw this sh!tty 2Wire router in the trash cause then I'd be without internet & TV (uVerse).

The Gigabyte is my desktop and the HP is the wireless printer. Yeah, it's weird but after I charged my phone last night it appears that it's not draining that badly.

What I'll do is post up again when I notice my battery drain 5%-7% an hour. Today, it's been about 2%/hour drain which is okay.

I'll keep you posted since I'm sure this is just a fluke. I have seen the "wlan_rx_wake" at 2 hours and 34 mins while the phone's been on standby. When this occurs, I've seen Android OS anywhere from 80% - 93% usage.

I don't think running Siyah's 2.6.8 kernel with setCPU set to smartassV2 would fix the BT-AMP bug...before I switched and charged up last night, I definitely had WiFi drainage issues.

BTW, if you know of any way I can get uVerse without this crap 2Wire router clue me in...when I was on DirecTV, I really loved using my DDWRT flashed Buffalo router. :)
[AT&T Samsung Galaxy S II SGH-I777] Phoenix84118:
I just want to add to the list of battery drainers:

Popup Notifier

Since there's no notification LED, I was looking into other methods, including this.

It has the ability to turn the screen on during a notification.

Unfortunately it also seems to hold a wakelock or something, because my battery life tanked while it was enabled.
[AT&T Samsung Galaxy S II SGH-I777] eep2378:
Similar to BLN(which will hold a wakelock when pending notifications are present). I guess most(possibly all?) popup type apps will have the same drain issue. From what I've tried(Noled, BLN, SMS popup) they all have the same drain :o
[AT&T Samsung Galaxy S II SGH-I777] mrljlamon:
so i have skype and words with friends and im on 2.3.6 update from at&t and honestly my battery still gets 14 to 24 hours easy.

my question is, the skype app and other sign in apps, cant cause battery drain if u arent currently signed in correct ?

which im not.
[AT&T Samsung Galaxy S II SGH-I777] Simba501:
Correct. That has been my experience.

Sent from my Galaxy SII
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
Skype's worst aspects won't affect you if signed out, or they shouldn't. The nature of beeing a peer-to-peer app means sometimes you get inbound traffic even after signing out.

14 to 24 hours is nothing to be proud of unless you're an extremely heavy user, in which case some of the wakelock drainers aren't so bad.

Phone idle (screen off) but wakelocked permanently = about 20 hours of battery life.

I consider 2%/hour drain with the screen off to be a major problem.
[AT&T Samsung Galaxy S II SGH-I777] splttingatms:
I have been using Text Notify without noticing any significant battery drain for months now. The app displays a little Toast pop up of messages but it doesn't provide a way to respond. The advantage is you can see the pop up even if you are playing games and what not.
[AT&T Samsung Galaxy S II SGH-I777] Sincitybronze:
Entropy does this assume one has a strong signal? If you have a weak signal is airplane mode recommended?
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
With UCKH7 and a nearly stock kernel - I got nearly 2%/hour in extreme weak signal.

Now with XXKI3 and my later kernels - I've been getting around 1%/hour at my desk lately. Admittedly using the UCKK6 modem could have improved the signal situation in general. I got less than 1%/hour after my latest patchset (not released yet...)
[AT&T Samsung Galaxy S II SGH-I777] Phoenix84118:
Really? I'm getting 2-3%/hour, and this is the best yet.

It also seems once I get a phone call, battery drains faster.

I can get ~2%/hour until the first phone call a day (even if I don't answer it, and often I get no calls in a day), then it seems to decline faster, even if I never use it again that day.

Right now 'Android System' is at 30%.

However I'm on Siyah kernel currently. I may test yours again if my battery will improve that significantly.

EDIT: I'm on UCKH7.
[AT&T Samsung Galaxy S II SGH-I777] torchedlh:
I'm getting killed by wlan_rx_wake! I've opened up the dump in WireShark but i have no idea what i'm looking for. Please help! Thanks!

http://dl.dropbox.com/u/7606677/shark_dump_1328002823.pcap

EDIT: looks i'm experiencing the BT-amp bug, right? This is ROM related, not kernel related, right?

I'm running CheckROM V4 which is based on XWKK5
[AT&T Samsung Galaxy S II SGH-I777] NJGSII:
Had the same thing occur when running CheckRom V4.
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
HOLY FREAKING CRAP! I've never seen BT-AMP drain that bad! I've never seen it happen faster than 1 Hz...

Yes, as far as anyone can tell, it's a system image problem. There's a chance it might be some weird system/kernel incompatibility, although that's unlikely. Which reminds me, I should take another look at the E4GT EL29 sources for any wifi changes - but as far as I can tell, it's identical wifi-driver-wise to the original I777 base.

Well, that's final confirmation - the BT-AMP bug is not specific to UCKK6.
[AT&T Samsung Galaxy S II SGH-I777] rav4kar:
Thread Should be sticky

Guys, please support to ask Mod make this thread sticky, thanks!
[AT&T Samsung Galaxy S II SGH-I777] doggyollie:
Agree let's make this a sticky!
[AT&T Samsung Galaxy S II SGH-I777] rav4kar:
Entropy,

I have posted the shark's .pcap file + dmesg+ logcat in KERNEL thread, and do not want to double post here hence the link ...

http://xdaforums.com/showthread.php?p=22064266#post22064266

Thanks in advance for your time and help!
[AT&T Samsung Galaxy S II SGH-I777] alacrify:
Agreed.

10char
[AT&T Samsung Galaxy S II SGH-I777] bxsteve31:
What's the app you guys all talk about to see if an app isn't shutting down or its running in the background when its not supposed to? Wake lock? Yes I am rooted. Thank you.

Sent from my GS2.
[AT&T Samsung Galaxy S II SGH-I777] jazzboyrules:
Better Battery Stats | Dev page | Buy from Market to support the dev
[AT&T Samsung Galaxy S II SGH-I777] M@31:
Hey there, been reading the thread for the past few days....

Im trying to figure out if I need to worry about anything with my phone....

Deep sleep percentage - 94%

Time the phone was sitting - 10 hours 38 minutes

Percentage battery drained - 14%

It seems to drain fairly fast, but Im not too sure.

I want to post the wakelocks, but I really do not know how....Ive tried reading about the ADB, but I cant understand it.

I was on wifi and autosync is set for Google gmail only......

I dont know why my phone would need to drain 14% of the battery if it was in deep sleep for 94%.......

Any help or tips on how to get the wakelock dump (if needed) up would be greatly appreciated
[AT&T Samsung Galaxy S II SGH-I777] dandrumheller:
Post above yours has link to better battery stats. use that to get wakelock data.
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
There are many factors in drain.

94% is a little bit low, so could indicate slightly higher usage than normal.

As a point of reference - I am usually reasonably well below 1%/hour, but with deep sleep of 97%. 94% means your phone is spending twice as much time awake than mine, so slightly over 1%/hour isn't too bad.

Your situation isn't optimal - but it isn't horrible either.
[AT&T Samsung Galaxy S II SGH-I777] M@31:
I have BBS, but I am trying to figure out how to get/post my wakelock data....

Im trying to figure out this ADB thing, but it is proving to be difficult.

Is there any easier way to get my wakelock data? :)
[AT&T Samsung Galaxy S II SGH-I777] doggyollie:
Using Bettery Battery Stats (BBS) as described in the 1st post will get you some data.

Step 3.

"BBS now shows kernel wakelocks - make sure to check these. If you have an older version that doesn't show kernel wakelocks, use the instructions below."

Open up BBS one the top of the screen there is a drop down list.

Select "Kernel Wakelocks"

Then below you will see listed all the instances of "wakelocks"

Look at the time for each wakelock and list these in the thread. This is helpful info.

As listed in the first post

"If you have high wlan_wake, wlan_rx_wake, or svnet-dormancy wakelock times, then you have an app eating data."

If that is the case follow the directions in the first post to install shark for root to capture what app is doing what.

Hope that clarifies any confusion you may have experienced.
[AT&T Samsung Galaxy S II SGH-I777] M@31:
Yah I figured out how to view the wakelocks and such, I just wanted to post the .zip files here so someone could give them a looksy.

I dont think any of those that you listed are giving me problems....but I am not 100% sure. I have been trying to get the adb working, and thought I had it, but when I open the .txt file for the wakelock, it says

/proc/wakelocks: permission denied

Thanks so much for the reply!

EDIT - since I have been trying to get adb working, I have had my phone plugged in and such, so not really a good reading.

I will have to test again tonight possibly, to get a good reading. clear my cpu spy times and get a full charge maybe....
[AT&T Samsung Galaxy S II SGH-I777] doggyollie:
open BBS press the options button.

Then press More

You will see an option "Dump To File"

Select that and a txt file will be created with your data.
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
/proc/wakelocks may not be accessible on a non-rooted device.
[AT&T Samsung Galaxy S II SGH-I777] exynos5250x:
Why is people so obsessed with battery life on smarthphone lol, if you want a phone that lasts 2 days without charging then you need to get a feature phone bro, UV/UC cant only do so much....
[AT&T Samsung Galaxy S II SGH-I777] rav4kar:
to be Eco friendly!