Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,809,814 Members 43,670 Now Online
XDA Developers Android and Mobile Development Forum

[REF] Known identified battery drainers

Tip us?
 
gaui
Old
(Last edited by gaui; 17th April 2012 at 06:18 PM.)
#631  
Senior Member
Thanks Meter 183
Posts: 752
Join Date: Jan 2011
Location: Reykjavik
Guys, please help me. I have been having trouble with drains for a very long time. I'm really exhausted, really thinking about uninstalling all apps, start from scratch and install only one app by one. But that would take a REALLY long time.

I'm running a custom ROM (HyDrOG3N-ICS) and Siyah kernel (latest). This has nothing/little to do with that, because I've tried several other ROMs/kernels. Always the same/similiar problem. Also other users are experiencing great battery life with these two.

No CPU/GPU undervolt going on. I use the ondemand governor.
I have a "Screen off" profile that sets the CPU max_freq to 200 MHz.
I have a "Screen on" profile that sets the CPU max_freq to 1000 MHz and min_freq to 200 MHz.

I have tried to turn off WiFi, it didn't change much.

I have only sync on Gmail, calendar and contacts.

I have seen gprs.data-stall wakelock a lot lately. Even though I have mobile data disabled at all times.

I have GTALK_ASYNC_CONN wakelocks even though I froze Talk app with TiBU.

I did a cat /proc/wakelocks > wakelocks.txt and put it into a PDF in the attachments.

In attachments are also my WireShark and dmesg and BBS dumps

BBS dump in attachment not working, here it is: http://pastebin.com/W3iAw5Ui

192.168.1.20 is my phone.
I filtered the WireShark dump with this:
ip.src == 192.168.1.20 || ip.dst == 192.168.1.20
Because I was getting a lot of other network data.

Here are some screenshots:
http://imgur.com/a/cyhSO

As you can probably see in wakelocks.pdf battery-sec-monitor is getting very high wake_count. Don't know what that is.

PLEASE help me get to the bottom of this.
Samsung Galaxy S III i9300
 
mzaur
Old
(Last edited by mzaur; 17th April 2012 at 05:56 PM.)
#632  
mzaur's Avatar
Senior Member
Thanks Meter 57
Posts: 563
Join Date: Nov 2011
Location: NJ
The BBS log you posted isn't working. Says 404 page not found... Repost a working BBS log. The best ones are where you unplug at night and then leave your phone overnight untouched, and then save log in the morning before doing anything else.
 
gaui
Old
#633  
Senior Member
Thanks Meter 183
Posts: 752
Join Date: Jan 2011
Location: Reykjavik
Quote:
Originally Posted by mzaur View Post
The BBS log you posted isn't working. Says 404 page not found... Repost a working BBS log. The best ones are where you unplug at night and then leave your phone overnight untouched, and then save log in the morning before doing anything else.
Sorry mate, here...

http://pastebin.com/W3iAw5Ui
Samsung Galaxy S III i9300
 
Thor_BR
Old
(Last edited by Thor_BR; 18th April 2012 at 04:54 AM.)
#634  
Member
Thanks Meter 3
Posts: 64
Join Date: Aug 2010
Location: Calgary
Question WiFi battery drain

Hi Folks,
I've been facing a huge battery drain, caused by my wifi. I don't have a cheap-ass router (dlink dir-655) and my CPU-SPY looks like this:
500MHz - 28%
200MHz - 32%
DS - 25%

Checking the BBS, I don't see any problems with Kernel/Partial Wakelocks. But when I check "Other", it gives me 100% wifi on.
Based on that, I installed the shark file suggested, and after running it for quite some time, the only thing I got (besides NULL) was "RAW". I'm running the CM9 nightly 14/04, with XXLPS modem.

With wifi off, I have an excellent battery life.

Any suggestions?
 
alacrify
Old
#635  
alacrify's Avatar
Senior Member
Thanks Meter 1,945
Posts: 3,433
Join Date: Jan 2009
Quote:
Originally Posted by Thor_BR View Post
Hi Folks,
I've been facing a huge battery drain, caused by my wifi. I don't have a cheap-ass router (dlink dir-655) and my CPU-SPY looks like this:
500MHz - 28%
200MHz - 32%
DS - 25%

Checking the BBS, I don't see any problems with Kernel/Partial Wakelocks. But when I check "Other", it gives me 100% wifi on.
Based on that, I installed the shark file suggested, and after running it for quite some time, the only thing I got (besides NULL) was "RAW". I'm running the CM9 nightly 14/04, with XXLPS modem.

With wifi off, I have an excellent battery life.

Any suggestions?
Let shark run for 15-20 minutes, and post the Pcap log here (check the thread for options to set) - let someone who can read it better than I can chime in. You may be getting a lot of polling from your network that's keeping it awake.
SGSIV i337
SGSIII i747
SGSII i777
Xoom 10.1
 
selw0nk
Old
#636  
selw0nk's Avatar
Senior Member
Thanks Meter 167
Posts: 828
Join Date: Apr 2012
You can turn off data and turn off sync to save battery life. Only turn it back only when you need it.
 
alacrify
Old
#637  
alacrify's Avatar
Senior Member
Thanks Meter 1,945
Posts: 3,433
Join Date: Jan 2009
Quote:
Originally Posted by selw0nk View Post
You can turn off data and turn off sync to save battery life. Only turn it back only when you need it.
You really shouldn't have to - when my phone is tweaked properly on a stable ROM, I lost ~1% an hour idle. With normal use, I get a day and a half off the charger. It does take some effort to track down the issues, but it's worth it.
SGSIV i337
SGSIII i747
SGSII i777
Xoom 10.1
 
Entropy512
Old
#638  
Senior Recognized Developer - OP
Thanks Meter 24,366
Posts: 13,270
Join Date: Aug 2007
Location: Owego, NY

 
DONATE TO ME
Quote:
Originally Posted by alacrify View Post
You really shouldn't have to - when my phone is tweaked properly on a stable ROM, I lost ~1% an hour idle. With normal use, I get a day and a half off the charger. It does take some effort to track down the issues, but it's worth it.
For me, 1%/hour idle is high except when on weak signal - and since ICS I've cracked the 1% threshold even at my desk.
*so much sig updating needed*

My Github profile - Some Android stuff, some AVR stuff

An excellent post on "noobs vs. developers"

A few opinions on kernel development "good practices"

Note: I have chosen not to use XDA's "friends" feature - I will reject all incoming "friend" requests.

Code:
<MikeyMike01> Smali is a spawn of hell
<shoman94> ^^^ +!
Code:
<Entropy512> gotta be careful not to step on each other's work.  :)
<Bumble-Bee> thats true
<jerdog> compeete for donations
 
alacrify
Old
#639  
alacrify's Avatar
Senior Member
Thanks Meter 1,945
Posts: 3,433
Join Date: Jan 2009
Quote:
Originally Posted by Entropy512 View Post
For me, 1%/hour idle is high except when on weak signal - and since ICS I've cracked the 1% threshold even at my desk.
You're an exceptional example though - I'm not running my own ROM, no tweaks at all, no SetCPU even right now. Just a solid ROM with your kernel input and debloating by not loading bad apps
SGSIV i337
SGSIII i747
SGSII i777
Xoom 10.1
 
Thor_BR
Old
#640  
Member
Thanks Meter 3
Posts: 64
Join Date: Aug 2010
Location: Calgary
Default Pcap attached

Hey Folks,
Here's the pcap. The app crashes if I leave it for 30 min.

Any help is appreciated!
Attached Files
File Type: zip shark_dump_1334726336.zip - [Click for QR Code] (2.2 KB, 3 views)

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes