yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] jeremysherriff:
That pic looks to me like it is about 11-12 hours from 35% ??

Anyway... you need to do a shorter run - 2-4 hours. A number of your wakelocks have overflowed into "deleted" so we can't see detail.

Aside from that, yes it looks like your data connection has dropped and re-established several times, causing the gprs-data-stall alarms. Is your cell connection good?

Please note that your battery isn't perfectly accurate across the entire scale - so 19% loss from 35-16 is not the same as 19% loss from 80-61 for example. Lithium batteries like to be charged in small amounts, never fully discharged, and no need to fully charge. If you charge to 100% you will notice that it drops to 90% fairly quickly, but this is not really 10% loss.

---------- Post added at 04:10 PM ---------- Previous post was at 03:50 PM ----------

It might happen as part of transitioning between 3g and wifi or back, or as part of re-enabling wifi because the wifi sleep policy has put the connection to sleep...?
[BetterBatteryStats] wadokai:
Hey chamonix , jeremysherrif

Could you please take a look at my batterystats dump file ? I need some feedback

Thank you
[BetterBatteryStats] Karpfenhai:
If you don't mind, i had a look :-)

Seems not too bad, but please grant root to bbs to show the alarms (if you're rooted).

You are on lpq, maybe you should try another modem, my recommendation is ki4, since lpq modem drains to much.

If you don't need necessarily exchange, try k9 instead, it produces less wackelocks.

Disable haptic feedback sounds to bring down the audioout_1 wakelock.

That's it for now, might be interesting to know you much you lost during your measure period.

Swyped from my GT-I9100 using XDA App.
[BetterBatteryStats] chamonix:
Just to let you know I found the bug with the graphs bar height. The problem occurs only when moving from 1.7.x.

The reason: I have changed the meaning of a pref but kept the name. That leads to have the offset to add to the old bar height (0 by default) to be interpreted as the new height (0 would be invisible).

Workaround: go to preferences - advanced and set the graphs bar height

Fix (will be released later today with a few other) : consider 10 as default if pref is 0
[BetterBatteryStats] omniwolf:
ok, i fully charged the phone and took it off the charge, now i get:

Since Unplugged

Since: 2h 19m 28s

Deep Sleep: 2h 27m 49s

Awake: 37m 13s

Screen on: 14m 54s

I can believe everything except deep sleep, it was even worse before - Since was like 30 mins, and deep sleep was 1h 48m or something. not possible!
[BetterBatteryStats] jeremysherriff:
Rofl: time machine phone ;)

---------- Post added at 09:35 PM ---------- Previous post was at 09:11 PM ----------

You have 1h 20m of awake time while screen is off, so there is definitely potential for improvement. But your dump period covers your normal day (4pm to midnight, 1h of screen-on time) so it is difficult for us to tell what is background activity and what is user activity.

As @Karpfenhai said, please grant root access so we can see alarms. Also, there is potential gains with changing your modem, as most of your kernel wakelocks are related to reception and data connection issues.

There are indications of lots of drain around notifications - your SMS app, whatsapp, Audio_In (??), email - they are all causing a lot of partial wakelocks. But as mentioned - it is hard to tell what is background and what is foreground. Take a dump file after leaving your phone completely idle - 2h is generally enough.

One thing: turn off your Google backup - your poor data connection is causing it to retry data transfers and it did this 1365 times in 8.5h (that's more than twice a minute!):

*backup* (Android System): 25 s (25 s) Count:1365 0.1%
[BetterBatteryStats] g3ckospy:
here's another reading.. is my battery consumption bad?
[BetterBatteryStats] lordgoata:
Hi all,

I know my phone can behave very well - using My Battery Drain Analyser, I can get as low as 0.9% drain per hour when the phone is at home, on WiFi and not being used.

However, while at work, it seems to drain a lot more. Now I think I know the reason, but wondered if anyone could cast their expert eyes over the following and see if I am right.

Firstly a log of 1 hour 20 minutes, which was my commute to work this morning, which as you can see was sleeping for 80%+ of the time, which I am quite pleased with given the patchy mobile signal on the route:

https://www.dropbox.com/s/ocxo618qxao6t3p/BetterBatteryStats-2012-05-02_083449264.txt

Secondly a log of 2 hours 50 minutes, which was the time I arrived at work, until a little while ago, with a lousy 56% sleep time. Given its connected to WiFi (so using less battery than when on 3G data), I'd expect it to be a lot better:

https://www.dropbox.com/s/1mkfaltj83ef4iq/BetterBatteryStats-2012-05-02_112749094.txt

I know part of my drain is caused by Latitude, which I will live with for now. But am I right in assuming the rest is mostly down to GTALK_ASYNC ? The mobile signal at work isn't that good, so I am connected to WiFi all day. Lately it seems that when in the office, the mobile/Wifi signal strength icons in the status bar no longer change colour (which indicates its logged into GTalk services if I recall) - hence my suspicion that is the cause, and it keeps retrying or something. That said, I can download from Market ok, which is really confusing!

Any comments welcome, I am more trying to understand the possible drain and causes, than trying to resolve it at the moment - as whilst at work I can charge the phone if necessary, and when I am out and about it seems to drain a lot slower anyway, which is great!

Thanks in advance!
[BetterBatteryStats] BRKotucs:
Here's another one.

Thank you for your help.
[BetterBatteryStats] piccobit:
Hi Sven

is there somewhere a description what the minimal (1x1) widget is showing?
[BetterBatteryStats] chamonix:
Yes, in the release notes (for now). As always I put features before everything so the doc (first page here, online doc) will follow. The how-to has also been updated and uses the same concepts.
[BetterBatteryStats] chamonix:
Release 1.8.1

Bugfix is available in post #2 and rolling out on google play as I write

Enjoy
[BetterBatteryStats] piccobit:
Thanks a lot, didn't notice it! :thumbup:
[BetterBatteryStats] bh77a:
Hi Sven,

Thanks for replying. Here links to the sources for the Motorola Photon 4G. The Electrify is the same phone, but for a different carrier (both CDMA carriers in the US).

http://thundercles.haydenmagnet.org/Photon-4g.tar.bz2

http://thundercles.haydenmagnet.org/PHOTON-KDDI.tar.bz2

Any insight on whether the information is reported improperly by the system, etc, would be greatly appreciated!
[BetterBatteryStats] chamonix:
Than one is easier to read. What I see:

- sync / synclookwakelock is causing a lot of wakelocks. That may be temporary and due to an unavailability of the cloud service (gmail, picasa)

- backup is causing you quite some trouble. If you use an offline backup method like titanium you may want to consider turning the cloud backup off

- your calendar has been waking your phone up, probably because of some recurring appointment notifications. You may want to avoid that by limiting the number of reminders

- leaving wifi on when you don't need it causes dhcp overhead as well as additional location based activity (check-in)

- facebook does not cause you lots of overhead (yet) but is known to be a cause of wakeups
[BetterBatteryStats] chamonix:
You are right, the second reading shows a lot more overhead than the first one. The main reason I see for that are:

- in the second reading you have wifi on and that (due to traffic coming from the access point) is waking your phone up (kernel wakelocks wlan_rx_wake)

- as wifi is on maps is waking up your phone frequently as the location sniffing is different when wifi is on

- despite wifi the second reading shows an unstable connection, causing quite some overhead due to (among other) to gtalk reconnects

Conculsion: wifi is not causing less but more drain than 2G/3G in your case. Theoretically wifi indeed drains less battery but in your case (and I would say in most cases) the overhead due to another behavior of the phone (due to the google software installed) is far higher than the theoretical saving. Imho the picture would be different if no google tools would be installed.

How much of this drain can be attributed to latitude is hard to say but you may want to try a day without wifi and find out what's left. You may also be interested to know that there are alternatived to the google latitude updater (search for ALTitude)
[BetterBatteryStats] chamonix:
Sorry but your question feels like an invitation:

what do you think? :P
[BetterBatteryStats] αкαѕнα:
Hi all..

I'm used to use badass battery monitor to see what part of the system sucking all the juice out, but was reccomended BetterBatteryStats..

Problem i don't understand it :/

I'm currently using this:

I have used Siyah kernels with great success before and the WanamLite ROM is supposed to get better results too...

I think it’s very strange that my 2000 mah battery got drained so fast today..

Would be awesome if someone with some experience could look on my result and give me some assistance...

All sceens and logfile is attatched..

Thank you <3
[BetterBatteryStats] chamonix:
Since 14 h 53 s
Awake (): 7 h 40 m 11 s (27611 s) Ratio: 54,7%
Deep Sleep (): 6 h 20 m 42 s (22842 s) Ratio: 45,2%
Screen On (): 2 h 9 m 34 s (7774 s) Ratio: 15,4%
Phone On (): 42 m 41 s (2561 s) Ratio: 5,1%
=========
Wakelocks
=========
AudioOut_1 (1013): 6 h 22 s (21622 s) Count:213 42,9%

In a nutshell:

your phone ran for 14 hours, you used it on screen for 2 hours, for 6 hours your phone has been playing sounds. If you listened to music that is a good reason, if you didn't that's your problem.
[BetterBatteryStats] αкαѕнα:
WTF.. I havn't played any music at all !!!

LOL... so 42,9 % of my battery is music out then.. and i havn't played so much as a single song.. what could it be then... BTW: i disabled the music player with Titanium because it just started playing for NO reason... could it be something there ??

If i had played music for 6 hours i would't complain about the battery :D
[BetterBatteryStats] lordgoata:
Thanks Chamonix! I shall repeat the process tomorrow with WiFi off, and see what the results are.

I am aware of ALTitude (and others), but they all (sadly) lack the Friends feature :(
[BetterBatteryStats] chamonix:
That's what I thought and the reason I pointed that out. My tip here: unfreeze the music player and find a way to sop it from starting songs. Are you using any bluetooth headsets/remotes or a wired headset that could be the reason for commands eing sent to the sound player?
[BetterBatteryStats] sgtpepper12:
strange battery drain since using new rom

hi,

since i flashed a custom rom (d4) on my sgs ii my battery life ist terrible. after reading a few threads i installed betterbatterystats and it tells me that my wlan is activated nearly all the time and causing a lot of wakelocks (even if i'm not connected to a wireless network)

with former roms i could simply leave it turned on without having such battery issues. is the only solution to turn wifi off manually? :confused:

thanks
[BetterBatteryStats] carlos67:
Yeah, dead right!!!!!!!!!!

And near a radiator, not ON a radiator.........heat = melted phone:eek:
[BetterBatteryStats] DrunkFuX666:
DOHH!! :D

Sent from my Motorola Atrix
[BetterBatteryStats] CekMTL:
My sgs2 makes ice cubes now hehehehhehe

That's what happens when you put it in a freezer xD

(Joking obviously :p)

Enviado desde mi GT-I9100 usando Tapatalk
[BetterBatteryStats] nobnut:
Read more here
[BetterBatteryStats] CekMTL:
Well in reality once i used my iphone 3GS in -21c and it worked ok, the only problem was that the battery drained really fast... i would say half its normal life.

That was a nice 10 clic jog with a busted knee in snow...

Enviado desde mi GT-I9100 usando Tapatalk
[BetterBatteryStats] Szczepanik:
Wiki Wakelocks

Chamonix & Nobnut

Thank you for the positive replies. The wiki is part of xda-developers so it will be hosted and moderated here. You can link directly to sections e.g. this link goes to the "Complementary_Programs" section of the Portadroid Wiki:

http://xdaforums.com/wiki/index.php?title=Portadroid#Complementary_Programs

this link goes to the "AutoRun" section of the Xtask Wiki:

http://xdaforums.com/wiki/index.php?title=Xtask#AutoRun

You can find out more from the XDA-Developers:Editing guide

http://xdaforums.com/wiki/index.php?title=XDA-Developers:Editing_guide

My suggestion would be to create an XDA wiki with the name "Wakelocks" and have sections for each wakelock - such as "Alarm Manager" - so that they can be easily referenced. The format is flexible and easily updated or changed by registered users. I am busy for the next fortnight but will set something up for you and others to look at and see if it works.

Cheers

Tom
[BetterBatteryStats] nobnut:
Thank you Tom, I think this will become a really useful resource for many people.

Kudos to you.
[BetterBatteryStats] walie:
Just installed betterbatterystats and I have a problem. I can only choose "Process" "Partial Wakelock" and "other" in things to analyze. There is no option for just "wakelock" any ideas as to why?

I'm running version 0.7.0.0
[BetterBatteryStats] InfiniteRisen:
Wakelock is too general so it was changed to partial wakelock to be more specific.

Swyped from my LG-P509 using XDA App.
[BetterBatteryStats] carlos67:
Relax man, that's how it should be. ;)
[BetterBatteryStats] walie:
thanks guys!
[BetterBatteryStats] ludow:
Hi!

How to uninstall totally? When I update to 0.7 version, after boot app is always 5.X. Thanks.
[BetterBatteryStats] nobnut:
Uninstall in the usual way.

Settings > Applications > Manage Applications > Click on BBS > Click on 'Unintsall'
[BetterBatteryStats] ithehappy:
Task Manager- Downloaded- Better battery stats- Uninstall.

Regards.
[BetterBatteryStats] shaels:
sleep_broadcast for 1d on incredible 2, thoughts?
[BetterBatteryStats] nobnut:
You're not giving us lots of information to go on there. What apps do you have running? What services are running? etc etc The more information you can provide, the better the responses will be...

Sounds like it is related/similar to the AlarmManager function that many users have reported. Something you have running is not releasing the broadcast.

I can't give you further information as I don't know what you've installed. Screenshots might help us to help you.
[BetterBatteryStats] JVogler:
So, by far what's running the most is simply called "X". Any ideas what that is?

Everything else has a name such as com.motorola.filemanager, but this is just X, and that's it.

I searched this thread for X, and nothing come up...not sure if the search works for single letters though.

Sorry if it's already been covered in here, but search came up empty.

Thanks.
[BetterBatteryStats] nobnut:
I haven't come across that before. What are the stats that 'X' was displaying?
[BetterBatteryStats] dzontra11:
I installed the application and I found the problem.Twidroid app drain my battery so i delete that app.Still need to find way to freez Google maps because its drain battery too..but...now my phone is unpluged 21 hour and still 43%.
[BetterBatteryStats] nobnut:
Search this thread. If you don't want it just freeze it, or just prevent it from autostarting. All the information you need is in this thread.
[BetterBatteryStats] NET1028:
Stats

Hi guys, hope you can give me your opinion about my stats

thank you
[BetterBatteryStats] HosainH:
Hi guys,

I am having a problem with my battery and it is draining extremely fast, even overnight and when I don't use it ever since I updated to 4.0.4.

Can someone help explain these results to me and if there is an obvious culprit? (the red connection is because I was using london underground and the drains happen even when I don't use the underground)

http://imgur.com/a/RAtmF
[BetterBatteryStats] chamonix:
ALTitude does not (trust me I known) as it leaves you access the friends view of latitude and just replaces the updater part. You don't have to log out of latitude to use it, just set position to "manual" in latitude and keep enjoying the "friends" view
[BetterBatteryStats] odub303:
Love the app, have been using it since the beginning. IMO, this app is the single best tool for diagnosing and isolating causes of excessive battery drain. The only thing I can think of that is not available is a stat showing partial wakelocks held while the screen is off. This would be the ideal stat to look at because it would eliminate wakelocks held while the the screen is on, thereby eliminating items that have no impact on idle battery drain. Not sure this stat is even possible, just throwing it out there. Thanks for the awesome app!
[BetterBatteryStats] chamonix:
Please post a dumpfile
[BetterBatteryStats] chamonix:
Well that's not that easy but I'm working on an idea going into that direction: provide a sample for the last timeframe the screen was off (if it's long enough). It's not the same but the nearest we can go without doing intrusive (I mean expensive) active monitoring.
[BetterBatteryStats] odub303:
That sounds like a very useful feature. Looking forward to it.
[BetterBatteryStats] rambell:
So I just rooted a couple days ago, removed all the phone crapware and telco's bloatware. I charged my phone, leave it for 2hrs or so and it is at 87% the next time I checked.

Attached dump file for since unplugged. I don't really understand it but I see the dialer have hundreds of wakelocks. Is this normal?

I am on rooted Stock by the way.

EDIT: Now at 55% and I don't use it. The batt just keeps draining away.

Edit 2: Added another dump file at 10hrs or so. 29% left.

This is all a puzzle since I got 2 days and more out of my last 100% charge. But today...
[BetterBatteryStats] frenccw:
Hi i just downloaded your app and am trying to educate myself regarding the battery usage but i am getting very confused with the built in Help in the app.

For eg. it says that Screen on vs Awake ratio is ideally nearly 100%. What does that mean? Did you mean they should both have similar percentages? I think i'm confused because there's a ratio at the end of every stat - is that the number i'm supposed to be worried about?

Also it says that Deep Sleep vs Awake should also be nearly 100%. Shouldn't you want the Deep Sleep to be much higher than Awake?

Sorry if these are stupid questions really noob at this haha.
[BetterBatteryStats] sagarsaoji:
Hi I'm using a rooted phone running ARHD 6.6.3. Seem to be getting a lot of battery drain because my phone runs from 100 percent to 0 in about 6-8 hrs. I am attaching a dump file. Would really appreciate some help. Thanks.
[BetterBatteryStats] HosainH:
Hi, here is the dumpfile, if anyone can help find the culprit for my battery drain would be very thankful!

http://dl.dropbox.com/u/14208458/BetterBatteryStats-2012-05-03_062227218.txt
[BetterBatteryStats] lordgoata:
Oooh! I didn't know that, last time I used it (and we spoke via email), that was the main thing it was lacking and you mentioned hoping to reverse engineer it at some point :) Excellent, I shall check that out again - thank you for the update/info!
[BetterBatteryStats] maccawire:
What is causing gprs-data-stall wakeups?

I have managed to squeeze as much life out of my battery as possible but the only thing that is stumping me is this gprs-data-stall wakeup.

In 10 hours I had 110 which amounts to one every 5.45 minutes.

Can anyone please enlighten me as to what causes this and is there a way to reduce it?

com.android.phone (): Wakeups: 111

Alarms: 110, Intent: com.android.internal.telephony.gprs-data-stall

Alarms: 1, Intent: com.android.internal.telephony.gprs-reconnect.0
[BetterBatteryStats] iamnotkurtcobain:
We all want to know. I believe it's something with data being wrong when display is off
[BetterBatteryStats] maccawire:
Ok, thanks for that. I'm sure someone will figure it out soon.

I might turn data off overnight and test it again for 10 hours and see if there is any improvement.
[BetterBatteryStats] Wyternum:
Hi chamonix.

Wanted to say thanks for that great app, it helps a lot!

Also, I was wondering where I can find full information about widgets (how to use, what are those colors, etc)?
[BetterBatteryStats] howming:
Hi there. I was wondering if someone could take a look at my batterystats and see if everything looks ok. I've installed and uninstalled quite a few apps over the last two days and battery life seems to be all over the place.

Thanks.
[BetterBatteryStats] radosnyz:
Hi, can you help me with deep sleep? My phone (lg gt540) is always awake. I tired few rooms and is still the same. Please help me.
[BetterBatteryStats] yhrn:
The time period for the dump is a bit short but one thing that seems to be draining your battery is Latitude (Checkin Service). If you don't use it sign out of Latitude, otherwise look into ALTitude (written by Chamonix).

---------- Post added at 05:36 PM ---------- Previous post was at 05:33 PM ----------

Kernel wakelocks are missing in the dump file (and the explanation is not in the partial wakelocks). To produce a complete dump charge the phone, unplug, leave it alone for a couple of hours and then (assuming the problem has been evident during this period) create a new dump file.
[BetterBatteryStats] arturox:
Posting to get subscribed.

Thanks for you great work
[BetterBatteryStats] NoSpamDan:
Just wanted to add that I had to use the stock, native dialer to do this, and the code for my Samsung Galaxy SII Epic 4G Touch by Sprint was *#9900#. Note only one asterisk in front and one pound symbol on either side.

Using this, the SysDump menu opened, and I was able to disable FD from there!

Thanks!
[BetterBatteryStats] Nightshadow931:
How's this possible ? :)
[BetterBatteryStats] bringonblink:
Must be a bug, I would reinstall the latest one clean.
[BetterBatteryStats] seeansea:
I've been running CM9 nightlies for a while now and though my battery life is way, way better than what it was with stock 2.3.6, I still think it could be a bit better.

I can see that Google Talk may be an issue, but I do use that service and am okay with it draining some battery but I was hoping some other things could be brought to my attention.

Anyways, I've attached my betterbatterystats dump and I really look forward to any feedback you guys can give me.
[BetterBatteryStats] stevenh:
Cheers. I've tried all that - upgrading to IMM76I and all, and I'm still getting quite bad Android OS drain - awake being over twice as long as screen on, in general. I've tried changing kernel, changing ROM with full wipes, and still it persists.
[BetterBatteryStats] xelra:
I've tried that code in both variants, but it doesn't do anything on cm9 and I9100 :(
[BetterBatteryStats] gaui:
I have data off at ALL TIMES, never turn it on, still I get these annoying gprs-data-stall wakelocks. I am almost positive that this is a bug in Android base code, because this is happening in all AOSP/AOKP/Sammy ICS ROMs.
[BetterBatteryStats] rambell:
Can anyone help me? It happened again. Left it overnight on full charge (well was 98%) and this morning it's 28%.

There is this bit:

Kernel Wakelocks

================

"fuel_alerted" (): 10 h 39 m 10 s (38350 s) Cnt:(c/wc/ec)0/0/0 99.2%

Is this normal? A bug or? How am I suppose to use my phone was it apparently keeps draining away for no reason? Help please. Thanks.
[BetterBatteryStats] omniwolf:
OK, to close off this issue, i have now done a couple of charge cycles since adding the widget, and it seems to correctly record deep sleep now.

sounds like you probably need to do some initialisation tasks to get it working first go..
[BetterBatteryStats] radosnyz:
OK I did what you said and this is complete dump.