[REF] Known identified battery drainers

Entropy512

Senior Recognized Developer
Aug 31, 2007
14,095
25,085
0
Owego, NY
ok, so I did try this to an extent, i would disable 4 apps at a time for the most part, only apps, none of the red items like wifi manager and stuff like that (even though i did try that at a different date)

I had no success.. I went back to stock, uninstalled all bloatware, at&t live TV, my account, bar scanner, all that bs, right now I have BBS, Cpu Spy and titanium, only apps that are not stock and are in the list of installed apps. I am still getting this issue!! could it be that I have poor service (though this never affected the iphone this badly) I lose 40% overnight though and it seems odd to me that would be because of low service..
Doesn't look like low service - you were on wifi, so data was going over wifi.

Top three wakelocks were wlan_rx_wake, svnet, and mmc_delayed_work

wlan_rx_wake is a dead ringer for network traffic. This wakelock happens when your phone receives a network packet addressed to it and it's asleep. So incoming network traffic is waking your phone often.
svnet is unusually high - usually this is fairly low, as it's basic radio management stuff (Edit: low service MIGHT have driven this one up)
svnet-dormancy is almost nonexistent - this is what you will usually see when an app is driving network traffic via cell data
mmc_delayed_work is new to me, but I'm 90% certain that it is due to some app reading/writing to storage

Nailing your culprit might need a network capture - I'm going to work on a tutorial for using Shark for Root ( https://market.android.com/details?id=lv.n3o.shark ) in a day or two.

BTW, to analyze the /proc/wakelocks dumps:
Open in Excel or OpenOffice/LibreOffice Calc
Import as tab-delimited text
Add a new column called sleep_time_minutes
Set this column to equal sleep_time divided by 60e9 - this converts nanoseconds to minutes
Sort by sleep_time_minutes
 
Last edited:

penskyc

Senior Member
Oct 11, 2011
124
11
0
SoFla
Doesn't look like low service - you were on wifi, so data was going over wifi.

Top three wakelocks were wlan_rx_wake, svnet, and mmc_delayed_work

wlan_rx_wake is a dead ringer for network traffic. This wakelock happens when your phone receives a network packet addressed to it and it's asleep. So incoming network traffic is waking your phone often.
svnet is unusually high - usually this is fairly low, as it's basic radio management stuff (Edit: low service MIGHT have driven this one up)
svnet-dormancy is almost nonexistent - this is what you will usually see when an app is driving network traffic via cell data
mmc_delayed_work is new to me, but I'm 90% certain that it is due to some app reading/writing to storage

Nailing your culprit might need a network capture - I'm going to work on a tutorial for using Shark for Root ( https://market.android.com/details?id=lv.n3o.shark ) in a day or two.

BTW, to analyze the /proc/wakelocks dumps:
Open in Excel or OpenOffice/LibreOffice Calc
Import as tab-delimited text
Add a new column called sleep_time_minutes
Set this column to equal sleep_time divided by 60e9 - this converts nanoseconds to minutes
Sort by sleep_time_minutes
any update on a tutorialfor shark reader and shark for root? i would really like to nail this down, thought i did, but than realized that the battery icon for Serendipity is kinda made to make it look like u have better life, I was at 54% but my battery basically looked like it was at 80%.. Left my phone off the charger last night and it droped 30% in 8 hours of idle.. ughhhh!
 

mcorrie1121

Senior Member
Jul 4, 2007
680
30
0
Oregon
Update for WWF. Didn't explicitly say it fixed battery drain, but has anyone seen improvement?

EDIT: Went in, played a move, exited, and went to kill the task just to find it killed itself. Seems like it won't run in the background anymore.

That's a start.
 

cheesekake

Member
Oct 22, 2011
21
2
0
Colorado Springs
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!
 

Attachments

Last edited:

Dxtra

Senior Member
May 27, 2010
497
40
0
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.

Sent from my SAMSUNG-SGH-I777 using xda premium
 

Adelaide.

Senior Member
Feb 25, 2010
223
40
0
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.
 

jm1280

Senior Member
Sep 29, 2011
62
5
0
Lexington
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!
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.
 

Misterjunky

Senior Member
Jan 18, 2011
9,448
6,716
253
Bakersfield, California
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?
 
Last edited:

Entropy512

Senior Recognized Developer
Aug 31, 2007
14,095
25,085
0
Owego, NY
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.)
 
  • Like
Reactions: mi9xer

dross333

Senior Member
Oct 23, 2011
81
4
0
Update for WWF. Didn't explicitly say it fixed battery drain, but has anyone seen improvement?

EDIT: Went in, played a move, exited, and went to kill the task just to find it killed itself. Seems like it won't run in the background anymore.

That's a start.
Glad it closes now. But this games caused my S2 to run hot.
 
Last edited:

Entropy512

Senior Recognized Developer
Aug 31, 2007
14,095
25,085
0
Owego, NY
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.
 

m0biusace

Senior Member
May 16, 2006
146
30
0
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.
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.
 

penskyc

Senior Member
Oct 11, 2011
124
11
0
SoFla
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)
 

Entropy512

Senior Recognized Developer
Aug 31, 2007
14,095
25,085
0
Owego, NY
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)
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.

Sent from my GT-P7510 using Tapatalk
 

Adelaide.

Senior Member
Feb 25, 2010
223
40
0
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.
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.
 
  • Like
Reactions: Simba501

dandrumheller

Senior Member
Jul 10, 2010
3,625
1,137
253
Southern Maine / Seacoast NH
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.
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.

Sent from my SAMSUNG-SGH-I777 using Tapatalk
 

vladm7

Senior Member
Oct 8, 2011
369
83
0
Chicagoland
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
 
Last edited:
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone