yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] MaxRabbit:
Hello! I wonder if someone could take a look and see if the reason for a 2.8%/hr idle drain is obvious to them.

This result is with WiFi off. I get exactly the same result with WiFi on and connected to a strong signal. Either way is about 2.8%/hr drain overnight with the phone laying upside down on a counter with no activity.
[BetterBatteryStats] TNSMANI:
I am sorry to tell you that the dump file attached is not according to requirements. The dump file has to be saved as soon as the screen is unlocked. In your case 4+ minutes went by before it was saved. That would skew the readings. Plus use the phone for some time to bring down the battery to ~85% or charge it to ~85%, before starting the test.

Please post another file according to requirements.
[BetterBatteryStats] MaxRabbit:
Interestingly, I took the dump file very quickly after the screen was unlocked.

You know, when I get a notification, my phone lights up for a moment. I wonder if that 4 mins SoT is from my phone lighting up when a notification comes in?

Additionally, I had done a few tests with the battery starting more at 80-90% range. Results were the same.
[BetterBatteryStats] TNSMANI:
AFAIK, Screen On is recognised from the moment the screen is unlocked, not when it is not unlocked. However, taking into account your explanation on this as well as on starting the dump from 100%, I analysed the previous dump and these are my observations:

You can not have the same readings when wifi is on. The drain may remain the same, though I doubt that, but the various elements causing the drain will not be the same. Plus your battery should be ~2 or 3 years old and its drain from 100% is likely to be faster. Wifi is also supposed to be more battery efficient compared to mobile data.

Nothing jumps out as a culprit but the following drained the battery excessively:

Widget updates generated a lot of alarms. Try to reduce the number of updates or the number of widgets.

Though you say wifi was off and I also don't see wifi connection times in the dump, wifi/scan activity was going on in addition to other alarms related to wifi. Do you have wifi/BT scanning on under Location or somewhere else?

And a lot of "Intent: $android.alarm.generated:1000:70019" alarms. And "Intent: GmsAlarm:FusedLocation:delay_request:189". I don't know what these are.

Location was on. Do you need it while sleeping?

BT was on and may be watch connected? That also drains battery.

I see these too " Alarms: 24, Intent: CMAlarm". Again I don't know what these are.

Did the drain start all of a sudden? Any new app installed recently?

If you can, please save another dump file taking care to see that it is saved within a few seconds of screen unlock, not minutes. Please also enable wifi and disable location.
[BetterBatteryStats] MATTEW85:
guys can anyone help me?
[BetterBatteryStats] TNSMANI:
This alone will not be sufficient to give a solution. Device name, model, Android version, custom/stock OS, rooted or not, BBS version etc will have to be known.

However, did you click the sentence in red?
[BetterBatteryStats] MATTEW85:
I have bbs 3.4.0.525 and
[BetterBatteryStats] TNSMANI:
You haven't answered my query:

However, as far as I know, BBS is not yet compatible with Android 14.
[BetterBatteryStats] xn0live:
I used 3.0-485 with Android 14 and Miui and works very good
[BetterBatteryStats] brutus8890:
Hi everyone! Great to see such a useful application on XDA!

I was wondering: is BBS running in background to periodically collect statistics or does it only access and display data already collected by the system?
[BetterBatteryStats] chamonix:
Maps together with latitude is a known drainer indeed. You can reduce part of the drain by using an alternate Latitude updater without losing the ability to check on your friends. Search this forum for ALTitude.

On the other hand there are also a few things you can do to reduce the overhead of maps: make sure your caching settings are set to "wifi only" and make sure your wifi is off when not using it. I see many users complaining of high maps activity who have wifi always on: with this combo you maximize the location collection activities of maps.
[BetterBatteryStats] JxXxn:
need help to analyse battery drain stat

Hi guys.

Recently my battery life had been bad.My battery could drop 30% overnight.I suspected that it was not going to deep sleep.

Thus i installed batterybatterystats and this morning,the battery indeed dropped 30%.Upon looking at the other tab,i am shocked to see awake as ratio 100%!

is this the cause of my overnight battery drain?
[BetterBatteryStats] jeremysherriff:
Short answer: Yes.

Longer answer: It's hard to see what is causing the phone to be awake. Nothing stands out as being a problem. We would really like the alarms info, but you need root access to get that. Looks like your phone is rooted though?

Use the "since unplugged" view when dumping files, and also switch to the "alarms" view and grant BBS root access before you dump another file.
[BetterBatteryStats] Register_:
Some knowledge about ads and battery usage:

http://www.theregister.co.uk/2012/03/19/ads_suck_batteries/
[BetterBatteryStats] sohebq:
What is the main difference between running applications and active applications? Are running apps also consuming same amount of battery as active apps?
[BetterBatteryStats] Register_:
I checked Wifi stat and I got nearly the same time for on and running is this normal?
[BetterBatteryStats] EP2008:
I just flashed stock 4.0.2 and noticed the *backup* wakelock is keeping the device awake for hours, but it's not affecting standby battery life.

I've turned off Google backup and restore and it's still keeping the device awake.

Suggestions?
[BetterBatteryStats] Nightshadow931:
Thank you, I'll see what I can do.

Anyway, great app, now I know what's causing my battery drain.
[BetterBatteryStats] cdmackay:
Yes; one is wifi switched on but not connected to an AP, the other is on and connected.

If you are always connected to an AP when wifi is on, then the times will be the same.
[BetterBatteryStats] brevin.antonio:
Need help analyze dump file

Hi,

I don't really find something out of the ordinary with the dump file but my battery loses 20 to 50% overnight/idle. is there a way I can improve this? please see attached file.
[BetterBatteryStats] jeremysherriff:
This dump file is incomplete (no alarm info, no kernel wakelock info).

Can you please plug & unplug the charger, and then make a dump file with the view set to "since unplugged".

On the surface, you have 11 minutes of awake time over the 6 hours - the phone shouldn't be draining with numbers like that.

Possible reasons;

something in the kernel or alarms section ;)

poor cell reception

battery failure

It's probably #1 or 2, lets see a good dump file.
[BetterBatteryStats] JxXxn:
thanks.it happened again this morning.now i had dumped the alarm's view.If i had analyze correctly,GPS is the one causing wakelocks?
[BetterBatteryStats] jeremysherriff:
Yes. But which app is using the GPS?

You might have a kernel problem, maybe the GPS sensor is not being released.

Other things that can cause battery drain problems:

Go Launcher

3g Watchdog

Green Power

You should try disabling each, one by one, to see if they make a difference.

Go Launcher was my big problem.
[BetterBatteryStats] brevin.antonio:
mine don't seem to be generating those (alarm & kernel wakelock). i'll try the previous version if it will have those stats.i would also like to clarify your statement, do you mean that 20-50% drain overnight is too big for an awake time of 11 mins for 6 hours or do you mean that 11 mins awake is too large for 6 hours? thank you very much for your reply, i'll post a complete dump once i get it.
[BetterBatteryStats] jeremysherriff:
20-50% drain cannot be accounted for by 11 minutes of awake time, we must be missing the true cause of the drain.

Before you change to an older version, can you get logcat dump file for the 1.7.1 version? Easy way is to install commandcenter from the market. Plug and unplug the charger a time or two and then collect the log, post it up here. @Chamonix needs to see what's wrong to be able to fix it...
[BetterBatteryStats] chamonix:
The answer has to do with the state model of android. To make an over simplified parallel running = in foreground, active in background but only cached.

A cached app can not consume CPU but just memory, a foreground app can but must not consume CPU. Without consuming CPU an app can obviously not consume battery by its sole presence.

On the other hand I want to say that this is not the really important discussion as (at least in the context of bbs) we address the status of the phone (sleeping / awake) and not the battery consumption due to apps using CPU
[BetterBatteryStats] thekow:
Running LPQ ICS here, 3G watchdog kept my phone awake and caused huge drain when 3g is connected. I have go launcher but seems ok. What launcher are you running instead?
[BetterBatteryStats] chamonix:
You have spotted the symptom correctly, your phone does not sleep because of a gps wakelock.

Now the cause is imho not gps but the kernel not shutting down gps properly before trying to sleep. A dmesg should confirm that the attempts of power management to sleep are stopped. One possible cause is that the irq of this sensor is not shut down properly.

Anyhow the de of your kernel should know this and be able to fix it. Alternatively you should look for another kernel
[BetterBatteryStats] chamonix:
My theory is still a kernel ending the battery charging before reaching 100% but I really need proof. One I have it it's 15 minutes to fix this
[BetterBatteryStats] jeremysherriff:
ADW launcher ex. Not quite as many features but I like it.
[BetterBatteryStats] JxXxn:
I am suspecting either go launcher or even go sms is causing my phone to stay awake as i recently updated only both of them.Because in the past 3 weeks which i had the phone,there was no such problems.Only this past week my battery was draining at night due to some app keeping the phone awake.
[BetterBatteryStats] brevin.antonio:
Thanks for this info. but I still can't get the complete dump (awake and kernel wakelock) even on the earlier version of the apps. I'll upload it once I got it. I also use external battery to charge the battery and just swap the batteries as needed. It takes too long for a complete charge on my phone, which is the S2 4G LTE korean version. I also can't upload the logcat as requested. it seems I am a newbie here. Let me work around that and update you later. Thanks.
[BetterBatteryStats] Simba501:
Not quite as many features? What launcher has more features than ADW EX?? I'd love to know; I wanna try it! ;)
[BetterBatteryStats] Register_:
Hi,

I was wondering if there is a way to know how much energy cell reception is eating?

Thanks
[BetterBatteryStats] g3ckospy:
I have this on my phone.. :confused: and somehow my phone drains a bit fast...
[BetterBatteryStats] gradesm:
Well, launcher pro has swipable dock icons. It is lacking in some other stuff like screen gestures that ADW has. On the other hand, Go launcher ex has all of them and probably have the most features. I could be wrong of course but do check them out and decide for yourself.
[BetterBatteryStats] chamonix:
If you switch batteries you need to plug/unplug USB once and use 'since unplugged'. 'since charged' will not work if your battery does not reach full charge while running as bbs processes the reference 'since charge' by checking battery level on unplug.

Nevertheless a logcat of this last action would help. The easiest way to create a logcat would be using 'command center', it's free on Google play
[BetterBatteryStats] chamonix:
Post a dump file from bbs and you will get help
[BetterBatteryStats] chamonix:
Compare airplane mode and normal mode.

This is a biased conclusions though as no network would be better than bad network as in the second case your phone may try to use more power to make the connection better and the apps will start behaving badly while running under exception/error conditions
[BetterBatteryStats] sp8y:
Hi chamonix,

Just as an update on the "wifi running" issue I have on my froyo Defy & not sure if it's related but with the talk about "since charged" I've had a look at my BBS app & I don't have the "since charged" option. It is there in the preferences menu to choose default stat type but when choosing this it defaults to "total" in the main drop down menu.

The only options I have to choose from in the main drop down menu are:

"total"

"since unplugged"

"since custom ref".

I've checked my sons Atrix on 2.3 gingerbread & his shows the correct stats options including "charged, unplugged & custom".

Just wondering if this info was any help.

*edit - I've checked the "battery history" stats in the *#*#4636#*#* menu & it shows "wifi on" & "wifi running" stats.
[BetterBatteryStats] polzovotel:
chamonix,

Following my old question why BetterBatteryStats failing to work on ICS ROM for SGS2 and Nexus - here is what I found:

1. Initially, after the phone reboot, application working w/o a problem

2. If I connect the charger and disconnect it after a minute application failing with the following error: "The 'batteryinfo' service can not be contacted ...."

3. Sometimes, after reconnecting the charger several times application suddenly starting to work.

4. Sometimes, despite the error message I still get all the information in the application.

Here is the logcat data:

Here is the logcat when it worked:

I am using SGS2 i9100 with wanamlite 9.4 (ICS LPQ 4.0.3) custom ROM.

Do you have a clue why this problem can happen ? Thank you !
[BetterBatteryStats] jeremysherriff:
No, not exactly. You can only guess.

I find switching to 2g helps a lot.

Check under your phone's settings info: setting -> about phone -> status.

Note that signal strength is a negative number, so the "higher" the worse it is.

If signal strength is around -60dB then it's good, -80 is ok, -100 is poor and will probably cause battery drain by having the phone search for networks and jump from cell tower to cell tower.

---------- Post added at 09:11 AM ---------- Previous post was at 09:09 AM ----------

I use Go SMS Pro, love it. I also installed it at the same time as Go Launcher, which is why it took me a long time to figure out the launcher was the problem.

Note, I do not use Go Chat though.

I have noticed one thing about Go SMS though: if you use the pop-up box notification mode, or have it use the notification light, then it registers a lot of wakelocks and drains your battery very fast.

---------- Post added at 09:14 AM ---------- Previous post was at 09:11 AM ----------

I am guessing here, but I think the "total" label is a translation thing. I assume you are not using English as you main language on the phone?

---------- Post added at 09:15 AM ---------- Previous post was at 09:14 AM ----------

Anyone know how to stop the forum merging these posts together?
[BetterBatteryStats] aas9303:
I just had my phone go crazy and it was staying awake a lot.

I see this below from the wake clock.

AudioOut_32 (1013): 15 m 14 s (914 s) Count:229 1.2%

AudioOut_33 (1013): 15 m 7 s (907 s) Count:195 1.2%

AudioOut_3 (1013): 3 m (180 s) Count:143 0.2%

AudioOut_82 (1013): 20 s (20 s) Count:39 0.0%

AudioOut_5 (1013): 18 s (18 s) Count:183 0.0%

AudioOut_6 (1013): 16 s (16 s) Count:155 0.0%

AudioOut_83 (1013): 16 s (16 s) Count:54 0.0%

AudioOut_19 (1013): 10 s (10 s) Count:12 0.0%

AudioOut_20 (1013): 4 s (4 s) Count:66 0.0%

AudioOut_77 (1013): 2 s (2 s) Count:60 0.0%

I do not have any touch tones on. Can i find out at what time this process was running?

Thanks
[BetterBatteryStats] Nightshadow931:
I am looking at kernel wakelocks atm, and I see that PowerManagerService is "on" or whatever for 1h and 20 min.6.6%

What is that thing anyway ?
[BetterBatteryStats] nomisunrider:
My largest partial wakelock is:

*sync*_com.android.browser_Account

I assume that is for syncing my browser bookmarks. Anyone know why it takes so much?
[BetterBatteryStats] sp8y:
Don't think it's translation as using English (UK) on my phone.

Sent from a MotoDefy.
[BetterBatteryStats] chamonix:
The difference in options is due to Froyo because on 2.2 the battery info does not offer the same references. That brings me to a feature as I could implement those refs myself now as I do already for data not coming from batteryinfo: kernel wakelocks and alarms

Edit: https://github.com/asksven/BetterBatteryStats/issues/116
[BetterBatteryStats] chamonix:
The sum of partial wakelocks (click on the earth)
[BetterBatteryStats] sp8y:
Thanks for the explanation chamonix.

Sent from a MotoDefy.
[BetterBatteryStats] chamonix:
I am chasing this instability (also on miui) for a while now. I have seen it once on a stock ICS but besides that no way to reproduce it unfortunately (I have 4 testing devices but can't afford testing each custom rom).

So much I can say: stats prove that it is a ROM related and not bbs related problem. I don't want to ignore it but can't find a way (or a device) to analyse further
[BetterBatteryStats] polzovotel:
Thank you for reply. In my case it is 90% reproducible after connecting and disconnecting from charger. You may try the same approach to get it reproduced.
[BetterBatteryStats] jeremysherriff:
@chamonix, I observed some weirdness last night, similar to some of the issues reported:

Alarms could be seen in the GUI, but not in the dump file.

BBS denied SU access when unplugging the charger.

BBS hangs for 10 seconds or more on opening, and Android prompts you to wait or force close.

since unplugged stats did not update the time marker, still show 15 hours or more even though I had just unplugged.

I had just upgraded from v1.6 (I think? might have been v1.5) to v1.7.1.

It looked like the SU popup was initially being hidden behind the Google Analytics message, and then timed out. After that, for some SU requests, it was unable to pop the SU query box up. Interestingly, SU was set to "always allow" so I'm not sure why it was popping anything, or denying anything. SU did not have BBS in it's list of apps, but it was appearing in the SU log view - including showing "denied access" entries.

Anyway, I uninstalled BBS and then reinstalled. Clearing data may have also helped, but I didn't think to try.

I also changed SU to prompt instead of allow.

This time, all SU popups came up properly, and all BBS functions now work fine. Alarm and kernel information also appear in the dump file OK.

My conclusion is that the root cause of the weirdness is the change of activities requiring SU access. SU was ok with the activities previously allowed under v1.6, but new activities were being denied. This is possibly a bug in SU? Anyway, I think some of the reported problems can be easily dealt with by suggesting the user uninstall and reinstall BBS, in order to get the correct permissions applied in SU.
[BetterBatteryStats] g3ckospy:
thanks chamonix, i will post it here soon...
[BetterBatteryStats] Curh:
I am curious how you get your SGS2 to only drain about 2-10 mAh

I have a SGS2 Skyrocket (so similar but not the same) and the best I can get it is to -60 mAh or so. I even flashed the rom clean, only installed BBS, BMW, CPUSpy and TitaniumBackup, then froze just about everything. Data was on, but nothing was using it. Looking at the stats, it was in deep sleep 97% of the time for the hour I tested, yet it still drained 3%.

Is that simply as good as this phone will do? Is there a reason this phone wont get as low as yours?

Side question, but how do you check your BMW when you come out of standby?
[BetterBatteryStats] brevin.antonio:
Hi, I finally figured out why there was no Alarm and Kernel wakelock. My phone USB is already damaged, whenever I plug and unplug USB, it does not detect that the UBS is already unplugged, it just stays plugged in status though discharging. So i used "since custom ref." I still don't see anything unusual about this. Thanks.
[BetterBatteryStats] jeremysherriff:
@brevin.antonio - I think this issue applies to you? Nit sure if you mean your USB is physically damaged, or just "not working properly".

Custom ref is a good idea too :)
[BetterBatteryStats] jeremysherriff:
Agreed, I see nothing unusual either. I have heard of profile apps behaving badly, maybe back up your ProfileScheduler config and uninstall it for a few days? I know that Tasker can have issues with time based profiles if configured in a certain way, there may be something with ProfileScheduler too.

Other than that, what is your cell reception like?
[BetterBatteryStats] brevin.antonio:
Thanks, I'll try to uninstall the ProfileScheduler. as for reception. it's kind of inconsistent recently, sometimes no signal for 5 mins then appears again, i will also try to leave it overnight on airplane mode. My USB also was damaged when I charged the phone in a closed area while wifi hotspot was on. right now, the USB mass storage is not working. I don't think this is the cause of the fast discharge though.
[BetterBatteryStats] jeremysherriff:
Hmm.. could be that the battery sensors are damaged, so it might not be getting a proper charge, or, it might not really be empty. Have you cleared the batterystats file? Also try charging with the phone turned off.

Poor reception (especially THAT poor!) could easily cause a big drain - if I leave my phone set for 3g at work, I lose 50% in 6 hours. Switch to 2g, and I lose less than 5% in the same time period.
[BetterBatteryStats] brevin.antonio:
I actually use a separate battery charger and have multiple batteries so there is no question that the battery is charged up to its maximum. I try to cycle batteries from 100% until it dies. and its not a very long time until it dies. sometimes it dies after 12 hours idle with just few texts. I am really starting to think that the USB being destroyed by overheating is the cause of the issue.

As for reception. I do not use 3G. Thanks for your thoughts on this.
[BetterBatteryStats] Karpfenhai:
It depends on the kernel and the radio,

Use phenomenal or speedmod with UV and a battery saving radio like KI3, and you will be happily ever after :)
[BetterBatteryStats] rdg151:
first post

Hi all,

I’m new to the android and xda communities, and so far I’m loving them. I’m trying to maximize my battery life on my Galaxy Nexus running Liquid ROM with Franco’s kernel. I followed a few of your tips so far (like using Titanium Backup instead of the cloud), but I think I can do better. Dump file is attached. Can you help me out?

View attachment BetterBatteryStats-2012-03-22_121419519.txt
[BetterBatteryStats] cdmackay:
Only 8 mins awake out of 3 hours? That's not too bad at all... I don't think you will improve much on that.

Remember, here we're mostly concerned with what is keeping your phone awake when it should be sleeping, not with battery usage whilst awake...

Other than turning off your Facebook sync, I don't see anything of interest... but I'm not expert.
[BetterBatteryStats] nybom:
I get the error "The 'batteryinfo' service could not be started..."

It is stated in the thread that this can be caused by custom roms alowing shut down of that specific service.

I'm on stock 4.0.3 for SGS2, it works just fine when the charger is connected.

Any Ideas? Can I start the service manually?
[BetterBatteryStats] potworny:
Absolutely superb application. Glad to have bought it!
[BetterBatteryStats] rdg151:
Good to know-thank you.

I have the facebook refresh interval set to Never. Are the wakelocks caused by facebook syncing with my contacts?
[BetterBatteryStats] jeremysherriff:
Mostly, yes. Once every 10 minutes.
[BetterBatteryStats] d3l1:
What can I do to fix the FCs I get every time I use the app? Either it force closes while using it or it force closes after using and ending it. I already reinstalled it and tried to clear app data.

Gesendet von meinem GT-I9100 mit Tapatalk
[BetterBatteryStats] Curh:
Is there any way to change that interval to like once an hour? Every 10 minutes seems really steep esp since facebook itself isnt refreshing that fast.