yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] igalan:
Hi everybody,

I've been trying to find out what causes my wife's Samsung SG-II high drain since for ever and after countless hours I'm still lost (BTW, it was a gift I gave her last year). It's not rooted and uses the recently released ICS ROM (with Gingerbread battery life was also pretty bad). She uses it mostly as a phone, and some days the screen is on only 20-25 minutes, but battery at the end of the day is usually at 35% or less. Signal doesn't seem to be the problem, it's strong almost at all times.

I haven't installed much on it. She does have a game (Smurf's Village) but when I manually stop it (in Settings -> Applications) it won't restart by itself, so I don't think this is the problem. There's also WhatsApp, her Google Account (with Latitude enabled, however logging out of Latitude doesn't seem to help), and one email (IMAP, update every hour), there's also BetterBatteryStats (purchased in the Market), Beautiful Widgets with a weather widget (updates every 8 hours), and ADW.Launcher (the pay version), and a few other. I've also disabled several built in applications (like BBC iPlayer, AccuWeather) in order to rule them out.

Here I'm attaching some logs and screen shots. After 14 hours with less than 7 minutes of screen time battery was below 35%. I've spend countless hours reading posts related to high Android OS CPU use, trying to understand them but I'm not closer to a solution.

Thanks.
[BetterBatteryStats] MyGoul:
Thank you for your feedback.

I have installed Autostarts to disable Maps service. I have a indeed sync activity but linked to the usual services i would say : Gmail, talk, facebook.

Strange behaviour from Maps anyway, i hope it is gonna be fixed in a standard way.

I'll do a new check in a few days to see how it changes the behaviour of the phone.

See you.
[BetterBatteryStats] jshashwat93:
Hey there. Have been having some serious problems with wakelocks. I charged my phone upto 100% and kept it away for almost 4 hours and only checked my phone for calls or messages in the middle. Got terrible screen on to awake ratio. Here is the log file. Please help me out. Thanks a lot.
[BetterBatteryStats] marcovrv:
PingProcessor and EasPushPrc

Hi. Does anyone know about "PingProcessor" and "EasPushprc". It seems that those are the processes that are keeping my phone awake.

This is a Motorola Atrix 4G with almost stock GB Blur ROM. Dump attached.

Thanks, Marco.
[BetterBatteryStats] Karpfenhai:
Use friendcaster instead or reduce the notifications (30 mins), or use fb in browser.

Good luck!

Tapatalked from my Samsung GT9100
[BetterBatteryStats] Karpfenhai:
No need for screenshots if dump is attached.

You have a location based service problem, followed by sync activity,

Disable all location based services, try to reduce sync (turn of google backup) and take another reading.

Tapatalked from my Samsung GT9100
[BetterBatteryStats] pietrucci:
Considering WLAN enabled and 2G/3G on I think that's pretty neat, 10% in 8-9 hours. That's about 1% per hour!

What's the score without 2G/3G?
[BetterBatteryStats] ahac85:
Hi I was wondering if someone can help.me.understand why.I always have a high phone awake and low deep sleep.
[BetterBatteryStats] igalan:
Thanks, I'll try disabling Latitude (Log out, disable GPS and disable locations for applications) and disable Google Backup. There's not much else synchronizing, no Facebook, no Twitter, no Samsung Account, no check for new ROM updates (I will know if a new one is available), and no Market updates (all manual)... Thanks again for taking the time to look at it, I appreciate it.
[BetterBatteryStats] jimmyj352:
Thanks for your help on this! I will give it a try and see what shows up. If that's the problem, I found an free app called Backitude that is supposed to give you a little more control over Latitude so I'll give a shot as well.

Thanks again for your help!

-- Jim
[BetterBatteryStats] Karpfenhai:
Better use Altitude from bbs developer.

Tapatalked from my Samsung GT9100
[BetterBatteryStats] Noed:
Someone please help me with this dump?

I woke up, unplugged the phone and used for 10min.

Then screen off for more than 6hs.

Then turned screen on, go to BBB and did a "since screen off" dump.

In 6hs I got only 26min of deep sleep :(

This happens to me once or twice a week, phone doesn't go to deep sleep and battery burns very fast.

Thanks
[BetterBatteryStats] Karpfenhai:
This dump looks pretty weird, could you please post a since unplugged dump?

Tapatalked from my Samsung GT9100
[BetterBatteryStats] jezaster:
Hello everyone: i just got a galaxy s3 and the battery life sucks, the battery drains even when the phone Is off .....im posting a log hoping that anyone could helpme fixing this battery hog

Thank por the help

Gracias por la ayuda
[BetterBatteryStats] ibsk8:
Since flashing JellyBean, Better Battery Stats is constantly seeking SU permissions, is this an Superuser.apk issue or better battery stats, any info would be appreciated.

I've unistalled, and cleared BB data, fixed permission in recovery. I'm running a Galaxy Nexus (CDMA)
[BetterBatteryStats] jrod091:
Seen similar problems on my SGS2
[BetterBatteryStats] yhrn:
Hi,

The dump file you have provided is over a (too short) period of time where you have been using your phone all the time. Please read the OP on how to use BBS and how to provide a useful dump file if you cannot interpret the data yourself.
[BetterBatteryStats] Karpfenhai:
Its an Superuser Issue, and discussed several pages back..

Use SuperSU instead or downgrade SU binary to solve it.
[BetterBatteryStats] Noed:
Yes, here's the "since unplugged" dump for the same period, with over 6h30min of screen off right after unplugging from charger.
[BetterBatteryStats] chamonix:
What you describe is as it is designed. Partial Wakelocks come from Android and they are not calculated with a delta like the rest. But after reboot partial wakelocks are since boot and not since unplugged and that's the reason bbs says that the ref is missing. In other words : any data shown since unplugged after boot is a bug, not the other way around
[BetterBatteryStats] chamonix:
1.9.2 should fix the disappearing ref that a few have. The error is caused by the batteryinfo service binder crashing as it seems it is not rentrant. I added a semaphore and monkey tests have not crashed it since last night
[BetterBatteryStats] Karpfenhai:
Okay then here we go, your main Problem is your network, especially DHCP

This alone caused almost 50 mins overhead!

Do the following, set a static ip on your phone, tell your router this IP plus the Mac addy of your device, this should stop the DHCP Issue. Dont worry, dhcp will work on other networks anyway.

Second, try to increase the beacon interval from 40 ms (default) to 100 ms, this can be found in your routers advanced Wireless settings.

Next, sync activity and facebook, try to reduce it a bit.

Last thing, Baseband and CPU Power, Do you really need full power on your device? Normally 800 mhz are way enough, set upper CPU limit to 800 for a while and see if there is improvement, set screen off to 200 mhz only!

Try KH3 or KI4 modem, they are good savers!

Good Luck! Please report back for others about the enhancment ;)
[BetterBatteryStats] Noed:
Great advice, thanks Karpfenhai, I will try all this.

How about this, looks suspect to you? It's in the dump I sent:

android (): Wakeups: 881

Alarms: 1, Intent: android.intent.action.DATE_CHANGED

Alarms: 4, Intent: com.android.internal.policy.impl.PhoneWindowManager.DELAYED_KEYGUARD

Alarms: 408, Intent: android.intent.action.TIME_TICK

Alarms: 40, Intent: com.android.server.ThrottleManager.action.POLL

Alarms: 842, Intent: android.net.wifi.DHCP_RENEW

Alarms: 35, Intent: android.content.syncmanager.SYNC_ALARM

Alarms: 0, Intent: com.android.server.ThorottleManager.action.RESET

(...)

com.levelup.beautifulwidgets (): Wakeups: 6

Alarms: 6, Intent: com.levelup.beautifulwidgets.ACTION_UPDATEWEATHER

Alarms: 408, Intent: com.levelup.beautifulwidgets.ACTION_REFRESHTIME

Same 408? Or coincidence?

I just frozen Beatiful Widgets, seen it dumping errors to logcat every 15 seconds.
[BetterBatteryStats] Karpfenhai:
Its a coincident, Its the realtimeclock and about 400 ticks per 16 hours are normal, but dont ask me how its related.. afaik, this alert occures everytime if a process / app asks the system how late it is..
[BetterBatteryStats] marcovrv:
Hi, I'm trying to dig this myself but no Android app has this internal name, at least with three task managers I used.

Where does BBS looks for this names and how can it be related to an app?

TIA, Marco.
[BetterBatteryStats] jjwatmyself:
I'm looking forward to next rev as the constant root access requests on jb and lack of any in app information are a downer. :(
[BetterBatteryStats] Karpfenhai:
If you would mind to read, then you would know the problem is not caused by BBS, its a problem with the latest binary of the Superuser app!

So, please wait till the end of days (Dec-21-2012) for a new version, but it will never been fixed..
[BetterBatteryStats] nyancatland:
I've been recently getting NetworkStats, sleep_broadcast and RILJ wakelock. Could somebody make some clarifications about what these wakelocks are related to? I'd really want to know more about the causes.
[BetterBatteryStats] jeffreii:
Hi guys - tungstwenty, chamonix -

You helped me out a few weeks ago trying to diagnose a battery issue. I have since done multiple factory resets and even exchanged my device thinking it was a hardware problem...new device and fresh install with limited apps I still have the same problem going on. I am continuing to troubleshoot it.

Again, my battery life is GREAT and then suddenly it takes a nose dive - what I'm calling a "plummet". It continues dropping fast even when not in use. It will continue to drop this way (~10%/hour unused) until I reboot. I found that turning off wifi and mobile data do not stop it. Turning on airplane mode, however, does stop it but it will resume when airplane mode is disabled. A reboot is the only fix and only works for about 24 hours before it returns again.

As such, please see the attached of the following scenario:

Log 1: Battery plummeting with wifi on

Log 2: Battery continuing to plummet with wifi off

Log 3: Battery stability achieved with airplane mode enabled.

Screenshot: The above 3 tests shown in a battery graph.

Also for more info on the problem, please refer to this thread where I have detailed everything:

http://xdaforums.com/showthread.php?p=29686741

Thanks again for all your help and your great BBS tool.
[BetterBatteryStats] Karpfenhai:
Can you try another Sim in your device? And if possible try another carrier.

Tapatalked from my Samsung GT9100
[BetterBatteryStats] selectah:
Hey guys, I need your help. I still don't know which would be the most battery saving option concerning the use of multiple pushed mail accounts. I use 2 Gmail accounts. The 1st is syncing gmail, calendar, music, calendar, contacts,talk and whatever. Plus, it's receiving mails from other accounts too. The other one is for the use of e-Mails only. Now I've set 1st mail account in Gmail apk. Before I always used 3rd party apps only and deleted mail and Gmail apk's.

Either I

1. put the 2nd account also into Gmail and try to restrict all the syncs for that account

2. I install a 3rd party app like k9 or maildroid only for the 2nd account. So now I'd use 2 different apps.

3. I go back and use 3rd party apps only for both accounts and delete all 1st parties again

What do you guys think? Sorry for little OT.

Sent from a mobile device
[BetterBatteryStats] xelra:
Why do you have 2 gmail accounts at all? You can aggregate all your emails and stuff in one Gmail account. Use it "outlook style".

Just set filters and labels and add any SMTP servers that you need to reply with for conversations.

Don't do it with pull (pop3), just set forward all in the intermediary accounts. That way you got no time delay.

EDIT:

My battery life is great with push. I guess people that complain receive 20 emails per hour. You can set a filter specifying that it won't go to inbox. Only inbox is pushed.

That way you don't get everything you don't need pushed to your phone and eating up your battery.
[BetterBatteryStats] Miche1asso:
So you're saying that after a reboot we should have no data? Why is that? Wouldn't it make a bit more sense to consider an "after unplugged/reboot" reference? The one that comes last. I am not sure anymore, but I thought in 1.81 it was working like that.

---------- Post added at 11:20 AM ---------- Previous post was at 11:16 AM ----------

It seems to me that both of you have a very bad signal. And then, well, the WiFi on that no matter what it does drain some battery. The deep sleep is just fine.
[BetterBatteryStats] selectah:
Thanks for your suggstion but that doesn't answer my question. But what e-mail client are you using ?

I have one account for Android, sync stuff and whatever. The other one carries my name and is for "business". So I don't want to mix that up.
[BetterBatteryStats] tramp20:
Hi,

will the new v1.9.1 published too on Google Play Store for those how have payed for it?
[BetterBatteryStats] yhrn:
Nope, Chamonix stated earlier that 1.9.1 will not go to Play as it contained a bug that will be fixed in 1.9.2. It's not a matter of not making the latest version available to paying users it's a way to avoid poor reviews on Play. I have also bought the Play version long time ago to support the dev but I always have the XDA edition installed because I like to test the new features and don't mind if I run into some pre-release bug.
[BetterBatteryStats] Inkness:
Deleted this post
[BetterBatteryStats] yhrn:
Did you see my response to your previous post?
[BetterBatteryStats] chamonix:
1.9.1 did not not contain any fix, only additional logging helping the narrow down a bug so I didn't see any need to push it to gplay. Now the good news is I'm packing 1.9.2 that contains a fix. I will upload it in a few minutes to xda, let the normal 12 hours for testers to give feedback and then push it.

Edit: that was a little understatement, 1.9.1 contained minor fixes but nothing that would earn an own release. And of course I have not removed those minor fixes from 1.9.2, the releasenote is a combined one
[BetterBatteryStats] chamonix:
Release 1.9.2

New version is up. Major fix is the error happening for some users with "no reference since charged" even after the phone had been plugged/unplugged after a reboot.

Id no problems are reported till tomorrow morning (in 12 hours) I will release.

Thank you for all the tests / logs I got on this one!
[BetterBatteryStats] chamonix:
Should be fixed with 1.9.2
[BetterBatteryStats] chamonix:
BBS asks for su rights everytime it reads the stats. The fact that SuperUser (3.2 on CM ROMs) does not remember that BBS was granted su rights has nothing to do with BBS. Use search and you will find details and possible solution in this thread
[BetterBatteryStats] Inkness:
Yes I did. I turned off tilt scrolling on Chrome, but something else keeps my phone awake. As you can see from the screenshot. Its awake during the night, when i sleep. There must be something else..

Even if i turned off google sync, it would still drain :/
[BetterBatteryStats] chamonix:
that's good because that happens to be our specialty. Read the first posts about creating an idle dump and post, we'll be happy to have a look
[BetterBatteryStats] chamonix:
My tip: combine the gmail accounts, use labels to tag the mails if needed and use the gmail client. IMHO the current version of gmail is so superior to any other mail client that I am even happy to pay a little more drain for push while travelling compared to poll
[BetterBatteryStats] chamonix:
Correct. 1.8.1 had a bug because it was showing partially inconsistent data as it was believing the data was "since charged" but some data was "since boot".

1.9.x fixes things by making them consistent because I prefer to have less but correct data. Now of course there will be a "since boot" (https://github.com/asksven/BetterBatteryStats/issues/209) in one release soon to make everyone happy.
[BetterBatteryStats] meaxx88:
Hi, could someone please check my dumb file. And if the dumb could not be used somehow.. Please tell me what Idid wrong.

Thanks!
[BetterBatteryStats] chamonix:
Why do you insult the file? :D

Seriously, that dumpfile is not representative:

Deep Sleep (): 15 m 11 s (911 s) Ratio: 50,5%
Good Signal (): 15 m 3 s (903 s) Ratio: 50,1%
Awake (): 14 m 52 s (892 s) Ratio: 49,5%
Screen On (): 12 m 56 s (776 s) Ratio: 43,0%

The main reason for awake is you using the phone. Please take a few minutes to read the first posts and learn about idle dumps
[BetterBatteryStats] Karpfenhai:
Found no Issues on 1.9.2 so far but i haven't probs with 1.9.1 either :cyclops:

Sven, could you embed a link to the knowledge-base in the next version or could i only not find it.
[BetterBatteryStats] meaxx88:
Ok Thank you for replying. Though I have read the First post. After charging i left my phone to rest for a few hours, then i made the dumb. During that period I haven't made any call. So what am I not understanding?
[BetterBatteryStats] chamonix:
Thanks for the feedback. There is indeed no links to the KB except the little orange exclamation marks. But that's a good idea. I will create a post grouping all the relevant info and add a link to BBS: https://github.com/asksven/BetterBatteryStats/issues/225

I wanted to create a website for "project better" anyway ;)
[BetterBatteryStats] chamonix:
The dumpfile you provided was created after leaving the phone 30 minutes after unplug and you used the phone half of this time.

1. Plug/unplug

2. leave the phone alone 4-5 hours

3. create a "since unplugged" dump
[BetterBatteryStats] sewe:
Still getting weird values from since screen off
[BetterBatteryStats] ahac85:
Hi can somebody please.look at the battery.dump and help.me.figure.out what keeps my phone awake . My phone is the Samsung galaxy s3
[BetterBatteryStats] sewe:
And here we have real values in since screen off
[BetterBatteryStats] marcovrv:
It could even be a wiki, where some authorized "battery gurus" (or the community) may maintain updated info and tips.
[BetterBatteryStats] M.A.K:
I'm afraid 1.9.2 is pretty much the same as 1.9.1 for me. :(

The 'other' stat's seems to give realistic figures but I do have to refresh it first.

Partial wakelocks seem to be ok still.

Kernel wakelocks still says no reference set.

Dump file is still empty.

Can't set a custom ref. After setting I get a warning that no reference is set when I select it.
[BetterBatteryStats] Karpfenhai:
but.. you did an plug /unplug right?

I mean after installing the new version..
[BetterBatteryStats] M.A.K:
Yes... a few of them... and a couple of reboots.
[BetterBatteryStats] Karpfenhai:
kk, just wanted to make sure ;) No clue then, but a logcat may help sven on this topic.
[BetterBatteryStats] coolfire:
Here's my BBS log from last night. Wifi was on half the time, with data off the whole time. :)
[BetterBatteryStats] Karpfenhai:
18 Mins out of 7 hours is a pretty good result, overhead is probably caused by your network (deleted wakelocks 10 mins).

Second culprit, gosms, do you need this app?

Enjoy your Phone then! ;)
[BetterBatteryStats] nibcakes:
Hi everyone! I've just gotten a bbs log as well as some screenshots of my battery stats. My battery drain is abnormally fast (about 1%/1.5min when listening to music and surfing the web via 3G). Would really appreciate it if anyone could help me decipher them to see if anything could be killing my battery!
[BetterBatteryStats] coolfire:
Thanks mate!

That result is of course without data on. In my country, the data networks really suck the life outta our phones. And yeah, I really like GoSMS, it could be because of GoChat. Let me try disabling it.

Thanks again! :victory:
[BetterBatteryStats] timberwolf60:
Play store without the latest 1.92 update. Only from xda.

Send via my GT I9100 using Tapatalk2, 1st ROM RR 2.6.1, 2nd ROM RR JB V3.0.1 with Siyah kernel 3.5.2.
[BetterBatteryStats] mzaur:
1.9.2 is still giving me same no reference issue :(

I rebooted and plugged
[BetterBatteryStats] yhrn:
Ok, it's just that it's not possible to see what is draining your phone from a screenshot and the dump you posted earlier is both to noisy (you used the a fair bit during that time) and also taken before you made the changes based on my advice. So check out the OP on how to produce a nice idle dump and if you need help analyzing it post it here.

Also, did you do anyting about Maps? One more ting to make sure there is that you are signed out of Latitude (if you use it Chamonix has developed a battery friendly alternative called ALTitude).

And for the record I did not mean that you should disable Google sync completely - only tweak it, i.e. disable individual items you don't need and/or change the sync interval where possible. You can, of course, completely disable it temporarily to see if it is the main culprit.
[BetterBatteryStats] chamonix:
Have you plugged/Unplugged? Is the problem present straight away or after a certain time? Please provide a location and a dump file.

Edit: removed a few cr/lf
[BetterBatteryStats] chamonix:
It is a Wiki today and I have no plans to change that. Only that Wiki has "only" pages per topic but no navigation. That's what I will add.
[BetterBatteryStats] chrismalla:
I'm had some strange battery drain this night. My battery dropped 36% during the night and BBS doesn't show me any major wakelocks. But I can see that the phone has indeed been awake in the [OTHER] section. Hardware prob? Cause I know I have some problems with the HW. Pleas take a look.

BetterBatteryStats [BBS] Log;

http://pastebin.com/YSdRnxCj
[BetterBatteryStats] chamonix:
Release 1.9.2.1

1.9.2.1 is up and rolling out to Google Play.

People who want to submit error reports please use this release, provide a logcat and a dumpfile to make sure your reports won't be ignored

There is no functional change to 1.9.2.1 compared to 1.9.2, I have just added a chapter to the dumpfile showing the summary of the references as this may help us analysing error reports.
[BetterBatteryStats] chamonix:
The awake was caused by Wifi wakeups (see kernel wakelocks). This is caused by wour Wifi stack reacting to incoming traffic (probably multicasts) and wakeing up to process those. Turn Wifi off when you don't use it or try BetterWifiOnOff to control your Wifi state
[BetterBatteryStats] chamonix:
Exactly, as I explained yesterday: testers get versions first because I need some feedback before rolling out to google play.

1.9.2.1 is rolling out as I write
[BetterBatteryStats] chamonix:
Since 11 h 11 m 32 s
Awake (): 5 h 6 m 20 s (18380 s) Ratio: 45.6%
Screen On (): 2 h 58 m 40 s (10720 s) Ratio: 26.6%
AudioOut_1 (1013): 25 m 49 s (1549 s) Count:70 3.8%-

11 hours on, 5 - 3 - 25 minutes = 1 hour 30 minutes awake for no obvious reason. The good news BBS can easily explain part of it (you just need to read):

MAIL_SERVICE (com.android.exchange.Exchange Services): 18 m 29 s (1109 s) Count:93 2.8%

FacebookService (com.facebook.katana.Facebook): 10 m 24 s (624 s) Count:311 1.5%

com.rdr.widgets.core (): Wakeups: 116 (A widget causing wakeups has a design problem)

Unfortunately the dumpfile is incomplete so I can't tell anything about kernel wakelocks
[BetterBatteryStats] chamonix:
I suggest we start adding a comment "eazy", "intermediate", "hard" when we give feedback based on a dumpfile.

Doing this the readers may feel encouraged to try themself of try reading dumpfiles from other users and learn a bit.

I have started thinking of an XML shema for the dumpfiles in order to write a bot analyzing stuff based on a few XPath statements. For "eazy" stuff it would be a good exercise and a proof of concept for the planned wizard to be integrated to BBS
[BetterBatteryStats] chrismalla:
Yeh, how stupid I am... Well, "sec-battery-monitor" is almost as big as "wlan_rx_wake". What's that?
[BetterBatteryStats] chamonix:
Post #3 now got a FAQ section. Please feel free to request additions
[BetterBatteryStats] chamonix:
I believe that those are overlapping wakelocks caused by retrieving the battery status at every wakeup