yashsingh1/xdaforums huggingface dataset:
[AT&T Samsung Galaxy S II SGH-I777] chamonix:
You have already posted that in the bbs thread and I answered there
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
Because if something is draining the battery excessively, there's no reason to allow it to continue that way.

Yes, 95%+ of the time I'm near a charger, so it's rare for my phone to ever go below 80% - but sometimes I'm travelling and can't charge it as often.
[AT&T Samsung Galaxy S II SGH-I777] M@31:
Not obsessed, just want to get the most out of the device that I pay hundreds of dollars for and want it to be available when it is needed.

If we can fix the problem, then why not do it?

Chamonix, thanks for posting.

I got confused between the 2 threads hahahaha it was late and I was reading multiple threads to figure things out...I posted here and figure out after that I should have posted there.....

Either way, thanks for the help. Ive posted my wakelock stats in the BBS thread.

Thanks again!
[AT&T Samsung Galaxy S II SGH-I777] twiggums:
Some people just like to tinker and find fun in having their device setup properly :-). That's sort of like saying why worry about background/startup processes running on a PC since there's enough CPU and RAM to support it. The average user will just let 50 things startup when they boot their PC and not think anything of it. When you trim that list down to 10 things,, it starts to make a difference.

Not to mention why let your phone go dead faster than it needs to? sure a phone is still usable if it spends %20 of it's time wakelocked,, but if i can reduce that number down to %5 or lower, why wouldn't I?
[AT&T Samsung Galaxy S II SGH-I777] skullunit:
I'd say it's more of an obsession with tinkering, tweaking and hacking in general. In this case battery life has been a problem and many are UP for the challenge of troubleshooting the battery issue.

I've learned a lot about battery life among other things here in these forums. This is exactly why I visit them. Just as in life I want to conserve my energy (battery) in order to have full power available when I need it most. :cool:
[AT&T Samsung Galaxy S II SGH-I777] jazzboyrules:
@Entropy I have tried defrosting/freezing GPS Status 3 times. It shows high in battery drain every time I defreeze it even on days when I don't open that app. For me it is a consistent source (not rare) of heavy battery drain.
[AT&T Samsung Galaxy S II SGH-I777] godefroi:
I also (once) saw a high drain noted for GPS Status. I hadn't run the app in days/weeks, so it confused me, and I uninstalled it without investigating further.
[AT&T Samsung Galaxy S II SGH-I777] stalked_r/t:
I've found my phone waking up and draining for periods of time, but can't figure out why. Here's the screen shot for the past 2 days usage.

This is on UnNamed 2.2.1 with Entropy 01/01/12

From the 5th
[AT&T Samsung Galaxy S II SGH-I777] stalked_r/t:
from the 4th
[AT&T Samsung Galaxy S II SGH-I777] godefroi:
I've been investigating quite diligently my battery issues. I have narrowed it down to data, as I see high "awake" times despite near-zero "screen on" times, and I see high svnet_dormancy times when I'm on packet data (I've seen times of ~30 mins over the span of four hours).

So, I've been playing with tcpdump, and I haven't really seen anything obvious jumping out at me. I saw quite a bit of traffic to xtify.com (jabber protocol) which I have nailed down to SpeakToIt Assistant (uninstalled), and now I basically only see traffic to these places (over a 1.5 hour period):

(1287 packets) my work's Exchange server

(343 packets) primary and backup DNS servers

(85 packets) android.l.google.com (four separate IPs)

(38 packets) www.l.google.com

(35 packets) mobile-gtalk.l.google.com

(24 packets) yx-in-f188.1e100.net (this is something google-related)

What I see is, that first, my "push" Exchange account is less "push" and more "blabber". I receive an average of maybe one email per day, and send less than that. There is nearly constant traffic with the Exchange server, and I believe this is where my problems lie. Does anyone know any way to get some diagnostics or insight on this?

Other than that, I think that the DNS cache time could be a bit longer...
[AT&T Samsung Galaxy S II SGH-I777] othermark:
The exchange drain can be heavy, esp if your wifi/GSM signal is not optimal. I would change it from push to 15 minutes (or an hour if you can live with that) seeing as you only get a minor number of emails a day. Even though the inbox is what's being monitored the exchange server may be feeling the need to tell the client about other things it has new. All the time.
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
There's a reason variants of Exchange issues are 3 of the 4 bullets under "Configuration Issues". :)

As to stalked's high deleted_wake_locks - that's why I added a debugging feature to identify what those are a few kernel releases ago... Read the documentation and the changelog.
[AT&T Samsung Galaxy S II SGH-I777] ohcie_evo:
is there a clock/weather widget that is more battery friendly than beautiful widgets.... thanks
[AT&T Samsung Galaxy S II SGH-I777] twiggums:
Is BW killing your battery?
[AT&T Samsung Galaxy S II SGH-I777] ohcie_evo:
It's normally 15-20% if my battery use on a charge... that just seems pretty high to me
[AT&T Samsung Galaxy S II SGH-I777] CyberManiaK:
Yesterday I install the Hotmail app, for only push email (not calendar sync) and today at morning after 6 hours it was around 87% Battery left.. So I guess it should be added...

With out this app.. in a period of 8 hours (sleeping) it just lost like 5%

BTW: I'm running Illusion-XT based on XWKL1
[AT&T Samsung Galaxy S II SGH-I777] twiggums:
Check/change the sync settings I'm guessing.
[AT&T Samsung Galaxy S II SGH-I777] twiggums:
Push email will generally kill battery faster, especially if you get plenty of emails.
[AT&T Samsung Galaxy S II SGH-I777] CyberManiaK:
Uhmm I though it was PULL email the one it kill battery..

But anyway for example, using maildroid (free version) with 2 accounts (push) and social hub was using 2 hotmail accounts (setup as premium) so push again. And as stated before in 8hours idle it will loose like 5% but with the Hotmail app + Maildroid and (social hub disabled) in 6 hours it lost 13% thats a lot..

For example this a normal life for my phone using the cheapo 3500mah bat.

http://xdaforums.com/showpost.php?p=21827558&postcount=195

And using the stock 1650mah

http://xdaforums.com/showpost.php?p=21781197&postcount=165

Which I think could be considered a heavy usage.. So I immediately notice the hotmail app drain. Unfortunately I didnt take a screenshot of the times "awake" was at night..
[AT&T Samsung Galaxy S II SGH-I777] chamonix:
http://xdaforums.com/showthread.php?p=19712576
[AT&T Samsung Galaxy S II SGH-I777] shind12kl:
Battery Drain

Hi I'm kind of new to android and I feel like my phone is also having some kind of battery drains.

The Deep sleep was 92%

My phone was sitting there for about 8 hours

Battery drain was about 10%

I was not using any wifi and my syn setting:

google calender, mail, and contact

Whatsapp and facebook contact

Twitter

And I also attach the BBS txt.

Oh also I'm using Unnamed 2.2.1 ICS Themed.
[AT&T Samsung Galaxy S II SGH-I777] Patsfan123:
I noticed the same thing on my phone in recent days. GPS Status was showing 10%-15% usage without me opening it. I saw no trace of it in BBS. I uninstalled it for the time being since I don't really use it.

Sent from my SAMSUNG-SGH-I777
[AT&T Samsung Galaxy S II SGH-I777] vladm7:
10% battery loss in 8 hours is not bad. Your phone has some data use during that time (see svnet-dormancy) - perhaps some app drives traffic. Try deinstalling that easymoney10 that's on top of alarms list and see if it helps your deep sleep time.
[AT&T Samsung Galaxy S II SGH-I777] maka8:
Battery dropped 20% in 5 hours overnight

So last night, I couldn't sleep so I was using my phone while charging. It was basically at 100%. I decided it was a good chance to see what's been killing my battery so I reset my CPUSpy timers. At that point though, I had already pulled my power plug to see how much battery it would drain while I used it. I was mainly reading forums here for about an hour and surfing the web for another hour. In that two hours, I was down to 82% battery. At that point, i was ready to sleep so I hit the power button to turn off the display and didn't touch it until now. After waking up, I saw that I was exactly at 60%, so I had lost about 22% while it was "sleeping". Here are my reports upon waking up. I can see that something is using my wifi while its sleeping for about 20 minutes. I don't have root though so I can't use shark for root for a tcp dump. Is there another way without root?

Thanks so much.
[AT&T Samsung Galaxy S II SGH-I777] mcnutty:
Do you use dropbox on any computers on your network? If you do, try turning off LAN sync and see if that helps.

Unfortunately, my bet is on something broadcasting on your network that keeps waking it up. One way without root to check that is to turn on AP isolation on your router configuration if you can.
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
Which is why everyone should state exactly which firmware and kernel they're using with such reports.

Wakeups due to broadcast and ARP spam are guaranteed on XXKI3 and probably also UCKK6 (I haven't yet had time to confirm this).

UCKH7 and XWKL1 are immune to broadcast and ARP spam wakeups as their packet filters get properly enabled when the screen is turned off. (XXKI3 and likely UCKK6 have a bug that blocks the wifi suspend handler from working right.)
[AT&T Samsung Galaxy S II SGH-I777] eep2378:
Another good reason to stay with KH7. Newer isn't always better ;)
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
I'm personally becoming partial to XWKL1 at this point - it has some of the power management improvements XXKI3 had, which are why I stayed with it so long, but fixes the one PM regression in XXKI3 without appearing to add any new problems.

Some people think XWLA4 is great, but I tend to mistrust builds that are that new.
[AT&T Samsung Galaxy S II SGH-I777] mcnutty:
My shark caps on UCKK6 pointed me to dropbox LAN sync. I noticed with wifi off that I never had an issue. Saw a lot of wakes due to wifi and tracked it down. Tested a couple other routers, and oddly, my Atheros based dd-wrt router caused no issues while my Broadcom and ra-link based ones did (also running same build of dd-wrt). Still looking into why that is to see if the I'd something helpful there.
[AT&T Samsung Galaxy S II SGH-I777] NJGSII:
This.

Experienced a battery drain issue with that build that was very similar to UCKK6.

The only builds that haven't had that issue for me are UCKH7 and XWKL1(Which I'm currently on)
[AT&T Samsung Galaxy S II SGH-I777] lunercrab:
So kinda a noob here so I'm.not super familiar with kernal stuff. Anyways um I sorta did this test and when checking my stats I noticed that my billing app easymoney woke my phone 61 times in almost 5 hours at least I think that is what it mean by the pic below. Any reason why the app would do that. Its not an internet running app. I don't wanna get rid of it so I temp froze it in titanium. Not sure what the other wakes were from.
[AT&T Samsung Galaxy S II SGH-I777] jasvncnt1:
Was running Kk6 and we all know the issues with it. Had no real issues if i left wifi off. Would like to try a different one. But heres the question. I had no problems connecting to my 5Ghz router. If i flash a different one will i still be able to? Not sure if its the modem or kernel that would effect that.
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
Kernel + system image. Modem has no effect on wifi. Any firmware base should work with a 5 GHz router.

Actually... CONGRATULATIONS! You just found a Hellraiser bug! (Well, not a bug, but something Hellraiser doesn't handle right now.)

There are country code entries in nvram_net.txt and nvram_net.txt_murata in /system/etc/wifi. To be able to see most 5 GHz frequencies used in the USA, you need to change the ccode in nvram_net.txt from GB to ALL and in nvram_net.txt_murata from GB to US. (Actually you might need to only do one of these, I need to chat with garyd9. Thank him for this - he just recently dealt with this issue on his Galaxy Note.) The above instructions apply to XWLA1 - If you make the above changes, it SHOULD see all 5 GHz APs in the USA. I9100 bases can see 5 GHz routers - but unlike the 2.4 GHz band where foreign countries only have a few extra bands we don't, for 5 GHz the bands are almost (but not quite) completely nonoverlapping. Changing the country code setting fixes this.

(I just tested this. Stock XWLA1 can't see my 5 GHz AP, with the above changes it can.)

With XWLA1, turning on wifi should at worst not hurt your battery, and in many cases will actually improve battery life.
[AT&T Samsung Galaxy S II SGH-I777] flowbreak:
I recently had to trade in my phone for a refurb due to the audio jack failing. I have always had decent battery life on my previous one with wifi on, but the replacement dies super quick when connected. If I disable wifi, the phone will stay on for days with light use (am plugging in right now with an uptime of 2d 15hrs). On the other hand, it went from full charge to 40% overnight (~8hrs) with wifi on. I didn't even touch it!

Since I haven't really had time to look into why this was happening, I've avoided using wifi and can't post a shark cap right now. I will say that the wakelocks involved are wlan_wake, wlan_rx_wake and svnet. I am guessing that since I've had an identical phone work on this router before, my replacement unit is most likely defective. Let me know what you guys think.

I'm using unnamed 1.32 (KH7) with DD 12/08, the same thing I'd ran on the previous phone with success. I barely have anything installed except BBS, cpu spy, setcpu and poweramp. I have a westell 9100em router (came with verizon fios) which I have tried rebooting and resetting to no effect.
[AT&T Samsung Galaxy S II SGH-I777] jasvncnt1:
Thank you Entropy for taking the time to answer my question and the information. Usually most of the things I read at this point are over my head but I actually understand what you wrote lol. Have been bouncing from Unnamed to Turkbey. At this moment on Turkbey with your kernel of course. An if I understand you this change will only work with the XWLA1. I will look more into XWLA1 and if possible with this ROM, flash and make those changes. Thanks again for all your help and support you give all of us on this forum. Greatly appreciate it.

PS Confirmation number: 28494444J49437231
[AT&T Samsung Galaxy S II SGH-I777] melder52:
Google Maps has new update on Market with note:

What's in this version:

1. Improved battery performance for Latitude and Location History users.

2. Bug fixes

Hope this fixed the Latitude problem.

Samsung GSII

ICScrewD 2.0.1 (init.doh 0.2.5)

​
[AT&T Samsung Galaxy S II SGH-I777] dragon_99:
For two days in a row now Slacker has been throwing a partial wakelock starting at ~4am.

Did this both with WIFI off and WIFI on. My friend noticed the same behavior on his Atrix.
[AT&T Samsung Galaxy S II SGH-I777] jasvncnt1:
Thanks!! I changed the settings on Turkey ROM and it worked! Now to see if there are any issues with wifi. Thanks again!

Well it does suck the juice when I leave wifi on but no biggie since i always kill it when I dont use it
[AT&T Samsung Galaxy S II SGH-I777] dragon_99:
Still happening. I made sure Wireless Cache refresh was turned off.

Found once reference on Slacker's forums of someone else having the same issue back in Oct, so apparently its been happening for awhile. Guess I'll be un-installing it.
[AT&T Samsung Galaxy S II SGH-I777] alacrify:
Was happening to me to - I could NOT get it to stop trying to refresh the stations not matter what I did. Uninstalled :(
[AT&T Samsung Galaxy S II SGH-I777] slickie88:
FYI: For those of you with Uverse who have a 2-Wire 3800HGV-B gateway, you CAN setup a proper wireless router behind the 2-Wire. I'm not sure if AT&T uses any other models for Uverse, but here's the procedure for setting up the 3800.

Connect the other wireless router to one of the 4 ethernet ports (not the WAN port)

Log into the 3800's management console (192.168.1.254 is the default IP assigned to the gateway)

Go to Settings > Firewall > Applications, Pinholes and DMZ

Select the router you've connected to the 3800 and put it into DMZplus mode

Disable the 3800's wireless interface (Settings > LAN > Wireless)

That's it. I have a Cisco E4200 running Tomato firmware handling router duties for all of my computers, while the 3800 still handles Uverse video. No ARP spamming with Tomato plus all of the benefits that it has to offer over an out-of-the-box router.
[AT&T Samsung Galaxy S II SGH-I777] DefTaker:
Thanks! I never bothered setting up DMZ as I always viewed it as a hassle. Didn't think it'd be so simple. ;) I am going to dust off my DD-WRT Buffalo and do this!
[AT&T Samsung Galaxy S II SGH-I777] jhermit:
Ok. I really tried to figure this out myself, but I am at a loss. Here are my BBS, Wireshark, and dmesg as instructed in OP. After sitting for 1 hour, My CPUSpy shows :

Deep Sleep 51%

200 - 29%

800 12%

Under Battery Usage:

Android OS is at 69%

Display at 15%

Everything else (Phone idle, Cell stanby are at 4% or less)

Any insight would be greatly appreciated. I am running:

UnNamed 1.3.2 UCKH7

DD 0218-B

Modem - I777UCKJ4 (best reception and speed in my area)

Wireless on

Bluetooth off

GPS Off

Thank you.
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
Will take a look tonight or tomorrow.
[AT&T Samsung Galaxy S II SGH-I777] jazzboyrules:
I haven't ever analysed dmesg or shark logs but this is what I can tell from your BBS log:

(1)

"wlan_wake" (): 36 m 20 s (2180 s) Cnt:(c/wc/ec)11587/3065/0 9.8%
"wlan_rx_wake" (): 35 m (2100 s) Cnt:(c/wc/ec)3582/0/3581 9.4%

- Try turning off the Wi-Fi when your turn off the screen. You can do that a couple of ways: Set Llama (free app) to do it based on actions (screen on/off, ..). I used to do it that way but then I found a more efficient way to do it, by using a paid app GreenPower. There is a system setting too that can turn off wifi when you turn off the screen. So yeah, there are many ways, pick one.

(2)

"sec-battery-monitor" (): 37 m 41 s (2261 s) Cnt:(c/wc/ec)3450/366/0 10.1%
ccc71.bmw.pro (): Wakeups: 372

Second major power drain seems to be Battery Monitor Widget. I too have tried it in the past. Ironically, I installed it to study my battery behavior to improve its life but BMW itself became a major power hog. YMMV though. But try freezing BMW and see if that makes a difference.

(3)

Lotus Traveler service (com.lotus.sync.traveler.Lotus Traveler): 11 m 58 s (718 s) Count:21 1.5%

This seems to rank 3rd among the power drainers. I have never used Lotus Traveler. So the best I could say is: check if you can tweak its settings to disable/reduce the freq of notifications/sync (if any)

Summary: Implementing points 1 and 2 should show you a big difference in CPU Spy readings.. you should get longer deep sleeps.
[AT&T Samsung Galaxy S II SGH-I777] jhermit:
Thanks!

1) I had read that WiFi consumes very, very little power when sleeping and if the apps are asking for data it would go to cell if wifi is off which uses more power. But if that would make a difference, I am willing to try it.

2) Crap. I had BMW frozen and defrosted last night to mess with my battery. In any event, when I had it frozen, the sec-battery-monitor WL was still showing up very prominently. Nevertheless, I have frozen BMW again.

3) Traveler is waking up to fetch my mail once an hour. I am going to turn off replication at night to see how that helps. I am skeptical since I had frozen Traveler and K-9 and did not see much improvement, but maybe there were other variables. I will freeze again tonight and see what shows up.

Thank you again.
[AT&T Samsung Galaxy S II SGH-I777] maka8:
I've been trying out just using the 3g connection instead of staying on my company wifi...

Night and day difference. Phone drops about 1% per 45 minutes instead of 10% in about hour and half. Phone stays quite a bit cooler too..

Fyi, I am on the ukk6 build still stock.
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
Wifi will often kill your battery on UCKK6, as documented in the OP.

There is no way to fix it other than moving to a different firmware base - UCKH7 or an I9100 base like XWKL1 or XWLA4.
[AT&T Samsung Galaxy S II SGH-I777] kuduku:
I am on binnacle_beta5 . Overnight in 7 hours my battery drain is 11 % whereas in unnamed-v1.3.2 it was 8% . Both ROMs had the exact software and apps installed . No battery hoggers installed and both Data and WIFI switched off . Is the 11 % drop expected in binnacle or i should try to reflash and delete battery stats .

thanks
[AT&T Samsung Galaxy S II SGH-I777] Karashta:
I don't have drain like that at all on Binnacle
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
Deleting battery stats does NOTHING.

NOTHING!!!!

This has been documented in many places by multiple sources, including Google engineers themselves.
[AT&T Samsung Galaxy S II SGH-I777] ryude:
It deletes the batterystats.bin file :D
[AT&T Samsung Galaxy S II SGH-I777] Simba501:
Lol.

10char
[AT&T Samsung Galaxy S II SGH-I777] slickie88:
Please don't poke the badger. He's likely to have an aneurism and we need his kung-fu. :D
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
badgerbadgerbadgerbadgerbadgerbadgerbadgerbadgerbadgerbadgerbadgerbadger
[AT&T Samsung Galaxy S II SGH-I777] K Rich:
Just thought I'd mention it, but it appears ESPN Scorecenter could be draining battery on my phone. I would check my "running services" and it was constantly in there, and in BBS I had svnet as my highest kernel wakelocks, but since uninstalling in svnet has disappeared from BBS.
[AT&T Samsung Galaxy S II SGH-I777] melder52:
Not a shocker there. Great app on the iPhone but Android version has been shoddy. Keep wanting to have it installed (w/widget also) but can't take the battery hit that comes along with it everytime I try to go back to it.

Maybe one day they'll get it right.
[AT&T Samsung Galaxy S II SGH-I777] CyberManiaK:
Maybe a dumb question, but what you would say is a good awake ratio ?
[AT&T Samsung Galaxy S II SGH-I777] K Rich:
Yeah, I guess I don't need to know scores that bad... it would be nice if it didn't eat battery though.
[AT&T Samsung Galaxy S II SGH-I777] Simba501:
Scoremobile, my friend.
[AT&T Samsung Galaxy S II SGH-I777] K Rich:
Thank you!
[AT&T Samsung Galaxy S II SGH-I777] Karashta:
It depends on how often you are using your phone...if you don't touch it for eight hours the deep sleep should be high 90's. If you use it constantly until the battery dies then obviously your deep sleep percentage would be way different
[AT&T Samsung Galaxy S II SGH-I777] K Rich:
Wow, I wish I would have deleted ESPN sooner, my battery life has seen a big increase.
[AT&T Samsung Galaxy S II SGH-I777] JustinW3:
I searched this thread and didn't see anything about this... but Heywire seems to be annihilating my battery lately... It was the top thing on my battery usage list, about equal with display which had 1 hour of "time on." That seems extremely excessive to me. I would gladly run a "wire shark" if I knew what it was or how to do it, the only time I've ever heard of it was on the "horrible battery life" Entropy kept telling people do them.
[AT&T Samsung Galaxy S II SGH-I777] joeybear23:
I'm starting to use more bookmarks for things like sports scores, stock quotes, etc.

No battery drain whatsoever...
[AT&T Samsung Galaxy S II SGH-I777] alacrify:
Searching is good :) - https://market.android.com/details?...esult#?t=W251bGwsMSwxLDEsImx2Lm4zby5zaGFyayJd - there's also a version/viewer for the desktop at http://www.wireshark.org/
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
The Wireshark techniques are primarily for those seeing excessively high Android OS percentages.

If an app is high on the list - that's pretty obvious and you don't need to do much more than nuke it and see if things improve.