yashsingh1/xdaforums huggingface dataset:
[AT&T Samsung Galaxy S II SGH-I777] magarto:
Could anyone help me?

I have spent a long time looking for my battery drainers.

When it was in deep sleep, battery drained too much and I found that a music player (I am not sure if MIUI or PlayerPro) was the main responsable and it makes svnet_dormitancy reach high values and I capture too much pachages with Shark (I found too much TCP packages to an Amazon IP but I have not installed Amazon MP3 or appstore so it must be due trying to download cover arts in background).

After uninstalling them battery went well but I have still some drainers.

I have attached my last dmesg, wakelocks and pcap capture in a zip file. You can notice that vbus_present was huge but I think that it is due to charging the phone and not rebooting it later on (because I cannot remember if I rebooted).

Also, in dmesg I can find the following messages that I cannot understand

sec-battery sec-battery: sec_bat_check_vf: Battery Health (1)
sec-battery sec-battery: sec_bat_check_temper: recovery count = 0
sec-battery sec-battery: sec_bat_check_temper: temp=220, adc=1106

I am using RevoHD v4 and Siyah 2.4.2

Could anyone help me finding which are my battery drainers?
[AT&T Samsung Galaxy S II SGH-I777] naturefreak85:
I can say with 100% certainty, the newest Facebook, is a HUGE battery hog. With it installed on WiFi I now lose 10-12% over 9 hours (while I am sleeping so no usage, connected to WiFi). I'm pretty sure the new Currents app isn't helpful either. I intend to install them both up and see what happens in the next couple days, and pull a log so we have proof of such.
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
http://xdaforums.com/showthread.php?t=1383929 - looks like someone figured out the solution to the StartingAlertService bug
[AT&T Samsung Galaxy S II SGH-I777] Simba501:
I think that's the guy that posted it in a thread here (don't remember which one). I tried two different versions he patched, and both times the lock was still there. However, someone pointed out that it instantly goes away if you go to running services and end it from "cached processes". I found that when I went to this menu while the wakelock was active, the calendar process seemed to be stuck (with zero values) and opening the screen cleared it, without any action required by me. For me, that is the fix for now.
[AT&T Samsung Galaxy S II SGH-I777] SpectraDawn:
My battery issues, according to the stats in the settings battery, comes from cell standby and phone idle.

Cell standby always reads that it's with out connection 100% of the time. Don't know if this is a bug or has been discussed before.

Phone idle is another one that's high on the list as well.

And the phone call or used during that time was for 30 minutes. Mind you of those 15 hours about half was when I was at work, and never turned on the phone from idle. You can see there was a huge drop and am no where close to the 1%/hr mark on idle.

Also most of my bbs stats have very high counts but very low times. Don't know again if this is a bug or just my phone...
[AT&T Samsung Galaxy S II SGH-I777] magarto:
None could help me?
[AT&T Samsung Galaxy S II SGH-I777] ZionExpress:
So i gave this a shot last night and here's what i found,

Phone was charged to 100% before i unplugged it and went to bed, ie. no usage.

Wifi was turned on, no GPS or bluetooth, and very bad reception at home (~100dBm).

Time up: 9.5 Hrs

Deep Sleep: 70%

Battery drain: 30% (70% remaining in the morning)

Quick math says 3.15% drain per hour.

Kernel Wakelocks:

vbus_present: 3.5 hrs

svnet: 1.5 hrs

wlan_rx_wake: 1.5 hrs

wlan_wake: 1 hr

Rest are under 10 min.

Does this look normal to you guys?

I guess i can contribute a chunk of this drain from the wifi and i will test again tonight with wifi off and post those results. But to have wifi drain 3%/hour, is that considered average?
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
Many locks have high counts but low times - if they have low times you can ignore them.

High phone idle is usually good - it means every other drain source is minimized.

And yeah, there's a bug that makes cell standby report 100% without connection.

Been busy.

3%/hour on wifi is quite high. Same for 1.5 hours of wlan_rx_wake, although ideally you should reboot after charging to full - you didn't. (3.5 hours of vbus_present)
[AT&T Samsung Galaxy S II SGH-I777] ZionExpress:
Thanks for the response. I will try again tonight after a full charge/reboot and i will be sure to have my wifi off. Should i wipe all stats also or is there any reason to keep my current stats?
[AT&T Samsung Galaxy S II SGH-I777] magarto:
Ok, I understand it :(

Please, if you have time to help me in a near future, I will thank you a lot.
[AT&T Samsung Galaxy S II SGH-I777] rodries:
I am, but it's another patch, this patch fix the wakelock for sure.
[AT&T Samsung Galaxy S II SGH-I777] Simba501:
Cool. I'll give that one a go. Would you recommend grabbing the one from the linked thread?
[AT&T Samsung Galaxy S II SGH-I777] rodries:
The one on the thread is based on samsung rom kk5, I think it will work, but if you want I can patch for you your original TouchWizCalendar.apk
[AT&T Samsung Galaxy S II SGH-I777] SpectraDawn:
Awesome thanks for the response. Will keep testing.
[AT&T Samsung Galaxy S II SGH-I777] Simba501:
I appreciate it.
[AT&T Samsung Galaxy S II SGH-I777] Stixho:
A quick update: So I deleted all the known battery drain apps listed in this forum and the attached .png shows my battery life.

I'm on stock rom, that's rooted and freed of all AT&T bloatware.

:-)
[AT&T Samsung Galaxy S II SGH-I777] Simba501:
Display time?

Sent from my Galaxy SII
[AT&T Samsung Galaxy S II SGH-I777] ZionExpress:
Thats some pretty amazing battery life there, did you actually use your phone at all during that time? I can get maybe two days of battery off my phone if i baby it or about 16 hours if i use it a lot. Share your usage information so we can put that battery life into perspective.

Thanks!
[AT&T Samsung Galaxy S II SGH-I777] SpectraDawn:
Found out what my drain was. Didn't think that BLN really drained that much battery. But man does it drain! About 3%/hr. So i edited BLN to only be on for 2 minutes maxed instead of 30. So far so good :)
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
I warned people that it did... 3%/hour is actually unusually low. Typical "wakelock held but fully idle" drain is 4-4.5%/hour - and that's what BLN drain is.
[AT&T Samsung Galaxy S II SGH-I777] Moxie3000:
Let me also add to this Hanging with Friends at least prior to the December 8 2011 update. Note that some reviews in the Market still claim it hogs battery. Preview to the latest update, HwF would remain running, even after backing out of it. Worse, it would spin up the CPU something crazy to the point where the phone became physically hot. You have to kill it manually immediately after you're done playing.
[AT&T Samsung Galaxy S II SGH-I777] ZionExpress:
So i wasn't able to let the phone idle last night because it wasn't fully charged before i went to bed. However, i just let it sit idle while i was at work for the last 4 hours (after a full charge + reboot) so these results might still be of some use.

Time up: 4 hours

Deep Sleep: 94%

Battery Drain: 6% (94% remaining)

Quick math says 1.5% drain per hour

Signal Strength: -65dBm

Wifi/bluetooth/GPS: off

Sync: on

Kernel Wakelocks:

svnet-dormancy: 9.5m

svnet: 4m

Radio-interface: 2m

Right away i see an improvement with having the wifi turned off but i also imagine that being in a better service area also helped my battery life.

Anywhere else i should be looking to help identify drainers? I am running stock + root + entropy DD kernel 12/08/11.

Thanks!
[AT&T Samsung Galaxy S II SGH-I777] nitox.n2o:
I recently encountered the high wlan_rx_wake + wlan_wake + svnet wakelock (caused a 6% drain per hour overnight) and am trying to determine which app is running rogue. I installed Shark for Root on my phone and Wireshark on my computer, but am having some trouble interpreting the dump in Wireshark (having never used it before).

Is there a guide I can read to learn how to read the log in Wireshark? Or maybe a general starting point in the log where I can start looking to try to find the culprit?

Also, what is a sec-battery-monitor wakelock indicative of? That is also pretty high on my kernel wakelocks list (currently under svnet and above the two wlan ones).

Thanks in advance!
[AT&T Samsung Galaxy S II SGH-I777] dmm5157:
Odd. I have my WWF set to update every 15 min and have had it like that the past few weeks without isues. It eats battery quite a bit if you leave it open and active, but I usually just play when it's my turn and then back out to close it.

Phone has been on for 8 hr 43 min and I'm at 83% right now. Just sent a few texts and e-mails today, but WWF has not been a problem for me. Played 4 turns (rounds) today. Usually I'm around 75% by this time in the day.
[AT&T Samsung Galaxy S II SGH-I777] SpectraDawn:
Haha didn't want to exaggerate so I went with 3%, even though I was going to say about 5%/hr :) Didn't think that a simple LED would destroy the battery like this. It could be more than just the light... But ever since I fixed the time it's awake, my phone has been lasting a whole lot better now!
[AT&T Samsung Galaxy S II SGH-I777] Simba501:
Yeah, I haven't experimented much with the timeout. Mine is only set to 1 minute (if I don't see my phone within a minute, it'll be a while, so no point in having it set longer). I may get adventurous and go up to 5; like a boss:cool:.
[AT&T Samsung Galaxy S II SGH-I777] Stixho:
@Simba501: If you mean what it says under Battery Usage?... Then... 3 days +. I'm not sure what you are asking, I'm not a noob, but not a pro at this yet. LOL

P.S.

Go Bears!!!
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
I make it pretty clear in my kernel thread that an active BLN notification holds a wakelock and inhibits deep sleep.
[AT&T Samsung Galaxy S II SGH-I777] Stixho:
Thanks... But I have no real secret. I'm not a super duper user because I don't like playing games on a 4inch screen (although the screen is amazing!!!), and I'm around my pc about 85% of the time so emails and stuff like that are checked on it. But I use it a lot for texting and calls, and playing around with settings and stuff like that. I actually goofed off too much in TiBU and stupidly deleted DownloadProvidersUi, so now I think I'm about to flash to UnNamed Rom, the one without the BLNs very soon here, if I can't figure out how to get my Market and downloads to start back working.

But yep no big secret just deleted practically everything from the list, and other stuff that I didn't use, froze things that would start without my interface that's it. Plus I always have a charger with me so I'm always juiced!! LOL

Good luck with you battery life

:-)
[AT&T Samsung Galaxy S II SGH-I777] Simba501:
Under battery usage, then display. It says how long the screen was on. I asked because knowing how long someone lasted is not much use unless we also know how much screen time there was (and calls).
[AT&T Samsung Galaxy S II SGH-I777] Ensomniacc:
Will Zynga ever fix the battery issue with WWF?:confused:
[AT&T Samsung Galaxy S II SGH-I777] garyd9:
Switched out the AT&T smart-wifi program and replaced it with "llama" for automatically turning on and off my wifi radio. So far, it seems to be doing better with battery life, but I want to run it for a few days to get a better moving average (and to ensure nothing strange pops up l as it did before.)

With llama, the device seems to wake up a bit more often when I'm driving around, but stays awake for less time. When I'm staying still, the device is waking up less often, however (and when I'm at work, I'm not moving around much.) Strangely, llama doesn't show up on BBS whatsoever. That might be because it's reading cell tower identifications directly instead of using the android location system.

(I'm still using Entropy's 12/1 kernel and unnamed 1.3.1. I'm trying to keep all other variables the same while working this out.)
[AT&T Samsung Galaxy S II SGH-I777] Stixho:
Well.... :-) now I know. Next time if I reach close to 70-80+hrs I will post all the specifics.

Thanks for the new bit of knowledge for the upcoming day.

:-)
[AT&T Samsung Galaxy S II SGH-I777] garyd9:
What might this be (from BBS partial wakelocks)?

Checkin Service

Google Services

1m 26s (86s) Count: 495. 0.4%

That's with 6h, 33m uptime (battery at 86%)

(I don't think it's that llama program, as that uses RILJ wakelocks to determine the current radio tower ID.)

Thanks

Gary
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
Latitude I think
[AT&T Samsung Galaxy S II SGH-I777] garyd9:
I've never used latitude. I just verified in google maps that I'm not signed into it. (I still see the prompt to "Join Latitude.")

I really wish some of the google services were better documented... I'll try to remember to grep through the sources to see if I can pinpoint what that "checkin service" is...

It's now up to 1m 27s and a count of 695 (8h, 38m uptime.)

Take care

Gary
[AT&T Samsung Galaxy S II SGH-I777] Simba501:
If you see the prompt "Join Latitude", then it probably wasn't latitude. I've found that it remains idle if you haven't signed in (or sign out).
[AT&T Samsung Galaxy S II SGH-I777] rodries:
Sorry for late response, busy at work

Your calendar apk patched, you only need to replace it with root explorer or replace the apk using the cwm zip in the fix thread
[AT&T Samsung Galaxy S II SGH-I777] Stixho:
Here ya go.... Not as long as before (considering I've been playing with the phone more) but the battery did last for over 50hrs.

Check the pics out below.....
[AT&T Samsung Galaxy S II SGH-I777] weboide:
This is not a battery drain in itself but if you block ads using /system/etc/hosts, shazam (free) will keep trying to get its ads from ads.admarvel.com. If you have this domain blocked with an external IP address (like in calkulin's rom for the E4GT), it will keep trying and prevent wakelock (trying to open a data connection 3G for example):

D/admarvelservice(23539): Error: java.net.ConnectException: ads.admarvel.com/208.82.100.156:80 - Connection refused
[AT&T Samsung Galaxy S II SGH-I777] runtohell121:
Anyone know what's causing the battery drain? I had the phone in my pocket, not doing anything for about 2 hours and 30 min.. and it drained 12% battery..
[AT&T Samsung Galaxy S II SGH-I777] garyd9:
Alarm Manager, count 1455. Not sure what would be causing 1455 wakelocks from alarm manager in 2.5 hours, but it seems kind of high to me...
[AT&T Samsung Galaxy S II SGH-I777] runtohell121:
^what app is alarm manager? I don't think I messed with my clock app or anything... >.<
[AT&T Samsung Galaxy S II SGH-I777] demonwind:
Has anyone figured out what Event Log Service (Google Services) and *wifi* (Android Service) are? If I manage to kill these two then I will literally have no wakelocks.
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
Runtohell21, check kernel wakelocks in BetterBatteryStats
[AT&T Samsung Galaxy S II SGH-I777] runtohell121:
Here's the kernel wakelock
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
OK your phone has clearly been running for a VERY long time (main is only held when the screen is on usually... Odd I thought BBS was set to sort by sleep_time not total_time...) making it hard to identify what's normal and what's not - run the tests described in my first post.
[AT&T Samsung Galaxy S II SGH-I777] runtohell121:
^I don't know how to access adb still.. tried with droid explorer and couldn't get anywhere.. anyways.. I recharged the phone, rebooted the phone, reset timer for CPUSpy, and let it idle for about 2h 30 min.. and lost about 11% battery
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
You definitely have some app that is driving network data to your phone and eating battery.

A few known apps are listed in the first post.
[AT&T Samsung Galaxy S II SGH-I777] runtohell121:
^Could it be Skype, Facebook, and/or AT&T Wi-Fi Scanner? Most of the apps are closed and I don't really have any widgets besides Accuweather
[AT&T Samsung Galaxy S II SGH-I777] AJ Newkirk:
From the OP:

Skype (October 2011) - Particularly insidious, as it does not directly hold a wakelock. However, it causes lots of background network activity, and this activity keeps your phone awake. Since most of the time is spent wakelocked in the network stack, Skype drain shows as Android OS.
[AT&T Samsung Galaxy S II SGH-I777] driguez:
My battery has been iffy lately. Anyone have an idea what suspend and events\0 means? They are top 2 in my process list and seem to be the ones using most of my battery. Would post a screen shot but for some reason it won't let me. Thanks.
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
Same deal as the other guy in the past two pages... Something is making the phone wake up repeatedly far more often than it should.
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
Please, in the future, before posting in a thread, COMPLETELY read the first post...

I explicitly state that Skype causes this behavior!
[AT&T Samsung Galaxy S II SGH-I777] driguez:
What's the consensus on wiping batt stats on the SG2? Read somewhere it wasn't recommended in our phones.
[AT&T Samsung Galaxy S II SGH-I777] jasvncnt1:
Quick question if I may...after I fully charge and then reboot. I will reset cpuspy. Im assuming that will stay running and it should in order to see whats going on? Should I also launch BBS and let it run? Sorry for the silly questions.
[AT&T Samsung Galaxy S II SGH-I777] Simba501:
After resetting CPU Spy, its new timers automatically begin. No action is required with BBS; just open it when you're ready to look at its stats.

Sent from my Galaxy SII
[AT&T Samsung Galaxy S II SGH-I777] jasvncnt1:
Great! Thanks Simba!!
[AT&T Samsung Galaxy S II SGH-I777] jasvncnt1:
Lost 27% battery over night. Still learning what I am actually looking at with these programs. But svnet, wlan_wake, and wlan_rx_wake are all about an hour each. That's not good right?

Deep sleep was only at 68%

Thinking about reflashing and starting from scratch. I guess one of my apps is causing an issue
[AT&T Samsung Galaxy S II SGH-I777] AntwanL:
Can someone post a link to the thread with the BBS download mentioned in the OP?

Sent from Tapatalk using my Samsung GT-I9100
[AT&T Samsung Galaxy S II SGH-I777] MWilkenson:
http://xdaforums.com/showthread.php?t=1179809
[AT&T Samsung Galaxy S II SGH-I777] mickey4mice:
Guys,

I posted my battery drainage issue when on wifi on UnNamed thread yesterday, but I think it's better to post here and give you an update on what I've found so far.

Basically, my battery has been excellent with wifi off, it drains less than 1% every 2-3 hours idle. But with wifi on, it was 3-5 per hour idle with only 40-50% deep sleep time and bbs was showing a significant wlan_rx kernel wakelock. I haven't had time to do a Shark analysis yet, but just a quick look last night, I noticed Market app was running as background process all the time, so I went into the Market app setting and turned off "notifications" and "google admob ads", rebooted the device/reset cpuspy and let it idle for 6 1/2 hours. Surprise, I woke up to only 3% drain, 98% deep sleep time, only about 1m of wlan_rx wakelock. Of course, I also flashed gtg's wifi-fix (later posted as part UnNamed 2.2.1) before the test so that probably attributed to improved battery also.

So, by turning off those 2 settings in Market app, it no longer runs in the background, it close itself out completely after I hit back button. And with that, my battery on wifi improved significantly. Anyone else seeing the improvement with setting tweak to the Market app?

Also Google Map, it doesn't self-start on boot but once used, it constantly runs as background process, it will restart if I force close. It doesn't seem to be draining battery much as I have both wireless location and GPS turned off. Has anyone seen this problem with Map? Any fix to keep it from running in the background?
[AT&T Samsung Galaxy S II SGH-I777] Skv012a:
Personal rule of thumb- turn whatever you're NOT using off completely until you need to use it again. This goes for mobile data as well.
[AT&T Samsung Galaxy S II SGH-I777] jasvncnt1:
After I did a factory reset and wipe I did the test again. Let it sit all night from full charge. WiFi on. Battery went from 100% to 95% in about 9 hours. Guess thats not too bad. Now Im installing my apps back one by one.
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
I disagree on mobile data - it prevents you from getting notifications when emails come in or someone IMs you on Google Talk.
[AT&T Samsung Galaxy S II SGH-I777] chamonix:
As long as you apps cope with data being of and do not start obsessing and keeping the phone awake with partial wakelocks endlessly trying to connect why not? I know that with the right settings / apps it's fine to let your smartphone be always on
[AT&T Samsung Galaxy S II SGH-I777] chamonix:
Sorry for being laggy. I double checked and the kernel wakelocks are sorted by sleep_time. Seing "main" at the top of that Screenshot tells me that is a pretty old version, since I moved to parsing proc/wakelocks the sorting is by sleep.

Btw: next release will introduce "since charged" and "since unplugged" as well as custom reference for kwl. I'm one feature from code freeze so I guess RC will be next week.
[AT&T Samsung Galaxy S II SGH-I777] Lawrence of a Labia:
Maps has been killing my battery ever since Google upgraded to version 6.0+. I've frozen the app and it has helped a lot. Haven't really looked for a real solution since I don't really use Maps too often, but I'm hoping it gets better in a future update.
[AT&T Samsung Galaxy S II SGH-I777] mickey4mice:
I have the latest Map, even with it running in the background and GPS ON/wireless location OFF, it hasn't been the cause of battery drain for me. I think it's pretty much inactive, tracking doesn't stay locked once I leave the app for something else, it always re-acquire lock even if the app stays open, but GPS locks faster than a cold start.
[AT&T Samsung Galaxy S II SGH-I777] jasvncnt1:
This phone is killing me. Don't really have much installed and woke up with battery at 63%. Thtas from a full charge and just letting it sit all night.
[AT&T Samsung Galaxy S II SGH-I777] bxsteve31:
I didnt do any fancy tests buti did notice that i openend facebook and went to runnning apps and the rest of my apps averaged about 4mb of ram use. But facebook was using over 40mb of ram. Is that an issue?

sent by Megatron using Tapatalk
[AT&T Samsung Galaxy S II SGH-I777] Jonnyredcorn:
Anyone find out a fix for the starting alert service calendar bug? Mine is going on 5 mins now and I wanna see if I can stop it w/o a reboot.

EDIT: clearing RAM from task manager works lol
[AT&T Samsung Galaxy S II SGH-I777] Simba501:
Fortunately, yes. Here is the link to the patched calendar (UnNamed v1). It's different from the original patch and I can confirm it works (haven't seen the wakelock since). The attached one in the post should be fine on whatever you're using (I actually grabbed the one from the 9100 op originally and it worked fine). Btw, Entropy linked the original thread a few posts back from the linked one.

http://xdaforums.com/showpost.php?p=20370762&postcount=282

Entropy, perhaps it would be helpful to link the thread you mentioned in the OP, since I can confirm it's working. I know people don't read the OP, but hey, some will.

Sent from my Galaxy SII
[AT&T Samsung Galaxy S II SGH-I777] naturefreak85:
I had to actually uninstall Facebook, when I had updated to the newest version with the Timeline support I noticed my battery drain quadruple, it then went back down after uninstalling, but something else installed recently is draining my battery now almost as much as Facebook did. 3 hours and down 25% with only 30 minutes of screen on time and 20 minutes of locally stored music over bluetooth. That should have only dropped me 10% give or take.

I have to fully charge my battery and pull a wireshark now, since in 3 hours I had a full hour of SVNet Dormancy.