yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] sowen222:
Yes, tried the latest maps. Last night I disabled the GPS, and ended up with no significant Awake time... even though I don't think the GPS gets used when in the background, perhaps it affects the way the Location service acts, maybe if it sees the GPS enabled it tries to download info to lock on faster... wouldn't be the first time there was a bug in software ;-)

I'll try this test again tonight.
[BetterBatteryStats] ejstubbs:
Still struggling to understand awake time & wakelocks

I left my phone doing nothing for almost an hour this morning, having set a custom reference in BBS. Here is what BBS reported afterwards:

===================
General Information
===================
BetterBatteryStats version: 1.0.0.0
Creation Date: 2011-09-13 15:29:31
Statistic Type: (4)
Since 55 m 15 s
VERSION.RELEASE: 2.2.2
BRAND: MOTO
DEVICE: umts_jordan
MANUFACTURER: motorola
MODEL: MB525
===========
Other Usage
===========
Wifi On (): 55 m 19 s (3319 s) Ratio: 100.0%
Wifi Running (): 55 m 19 s (3319 s) Ratio: 100.0%
Bluetooth On (): 55 m 19 s (3319 s) Ratio: 100.0%
Awake (): 4 m 35 s (275 s) Ratio: 8.3%
Screen On (): 1 m 1 s (61 s) Ratio: 1.9%
=========
Wakelocks
=========
ProviderThread (UID): 46 s (46 s) Count:11 16.9%
ActivityManager-Launch (Android System): 2 s (2 s) Count:2 0.8%
AlarmManager (Android System): 6 s (6 s) Count:124 2.4%
sleep_broadcast (Android System): 1 s (1 s) Count:4 0.4%
SyncDataListener (com.motorola.blur.service.blur.Motorola services): 5 s (5 s) Count:1 1.8%
CalWidgetProvider (UID): 1 s (1 s) Count:2 0.6%
BlurEmailEngine (UID): 1 s (1 s) Count:16 0.6%
PollingManager (com.motorola.blur.service.blur.Motorola services): 1 s (1 s) Count:8 0.7%
StartingSmsService (com.motorola.blur.conversations.Text messaging): 1 s (1 s) Count:6 0.2%
=========
Processes
=========
system (Android System): Sys: (0 s) Us: 1 s (1 s) Starts: 0
com.seasmind.android.gmappmgr (com.seasmind.android.gmappmgr.Gemini App Manager): Sys: (0 s) Us: (0 s) Starts: 0
com.motorola.blur.service.main (UID): Sys: (0 s) Us: 1 s (1 s) Starts: 0
org.zeam.core (org.zeam.Zeam Launcher): Sys: (0 s) Us: (0 s) Starts: 0
ccc71.bmw.pro (ccc71.bmw.pro.Battery Monitor Widget Pro): Sys: (0 s) Us: (0 s) Starts: 0
com.asksven.betterbatterystats (com.asksven.betterbatterystats.BetterBatteryStats): Sys: (0 s) Us: 1 s (1 s) Starts: 1
suspend (0): Sys: 1 s (1 s) Us: (0 s) Starts: 0
com.motorola.blur.service.blur (com.motorola.blur.service.blur.Motorola services): Sys: (0 s) Us: (0 s) Starts: 0
com.teslacoilsw.widgetlocker (com.teslacoilsw.widgetlocker.WidgetLocker): Sys: (0 s) Us: (0 s) Starts: 1

Does 4m 35s of awake time in 55m 19s of elapsed time sound a little high?

I'm still failing to understand where the awake time comes from. If you subtract the screen-on time, you get 3m 34s of awake time with the screen off. But the total time wakelocks were held is only 1m 4s. So where does the rest of the awake/screen off time come from?

I read somewhere (in one of Sven's knowledgebase articles, I think) that it can take a while for the phone to go back to sleep after a wakelock has been released. I suppose that could account for the extra awake time. But in this case we're talking about 2m 30s extra awake time following 1m 4s of wakelocks. I suppose that if you look at the total number of wakelocks (174) that works out at an average of 0.86s extra wake time per wakelock. Does that sound feasible, or way out?
[BetterBatteryStats] nobnut:
Spot on the money!

If each of the partial wakelocks were equidistant apart, although they only account for a minority of wake time cumulatively, they cause significantly more total wake given the time needed to allow the device to enter sleep following each wakelock.

Sent from me to you using stuff
[BetterBatteryStats] ejstubbs:
Battery Calibration?

There seems to be something very odd happening with my battery calibration. I've posted a full discharge cycle of figures from Battery Monitor Widget here and I'd be interested in people's thoughts.

The first point that I ought to make is that I'm pretty sure that BMW has to estimate current drain, because the Defy doesn't provide it. One effect of that, as I understand it, is that the reported current drain tends to decline slowly over periods when the phone is not being used - the moving average gets smaller as time goes on. I guess that's just a deficiency that I shall have to put up with. It does suggest that some of the high current drains that I thought I was seeing during screen off periods were actually artefacts of the estimation algorithm.

What does seem odd, though, is that way that the battery capacity sat at 1% for 4h 20m before the phone finally turned itself off. During that time the battery voltage fell from 3575mV to 3108mV - which is 44% of the total voltage range! That doesn't make any sense to me :confused:

I believe that I have followed the correct process to recalibrate the battery, including deleting batterystats.bin at the appropriate point in the charging cycle, and updating the calibration information in BMW itself. Can anyone shed any light on what is actually going on?

---------- Post added at 07:04 PM ---------- Previous post was at 07:03 PM ----------

In that case I guess I have to focus on the AlarmManager wakelocks first, since that accounts for the majority of the total number of WakeLocks. So I guess I'm going to have to wade through a dump of the Alarm Manager data to see what's been setting alarms. What joy :rolleyes: A job for another day, I think...
[BetterBatteryStats] nobnut:
BMW calculates statistics differently on different devices. Sometimes to a level whereby the stats are virtually meaningless. For you it sounds like it will be no better than providing a general benchmark indicator as opposed to a reliable and accurate measurement tool.

Once you are happy with your overall level of drain, I would suggest ditching it. It uses juice.

Sent from my HTC Flyer
[BetterBatteryStats] mozman:
Apologies in advance if this was covered. But searching in xda app stinks.

Does the graph bars work on evo 3d? I see a fix in the change log but there are no color graphs. The bars are all grey. I looked in settings but see no option other than to turn off. Thanks.

Sent from my EVO 3D
[BetterBatteryStats] nobnut:
Options > Preferences > Advanced Preferences (at the bottom)...gives you 'Height of bar graphs' ;)

Sent from me to you using stuff
[BetterBatteryStats] chamonix:
Maybe it's a side effect of a trial to get a a-gps fix using the phone network failing because of roaming (don't know if that is consisitent as I don't know how this is related to roaming)
[BetterBatteryStats] sowen222:
No, I'm not roaming right now... I turn off the data (wifi+3G) every night to save battery life. If I leave data on, Awake time is minimal; if I turn it off, Awake time can be hours at night. As I said, last night I turned GPS off too, and the Awake time was minimal.

I'm wondering - perhaps a bit convoluted, but still - if the location service sees the GPS is enabled and (although it won't be activated because its in the background), requests aGPS data, but since the network is off it gets stuck until the data network is back on. That might explain the relationship between GPS-on + data-off = Awake.

The issue of roaming comes into play because I will have the GPS on (for cached maps), but no data network (bit too pricey for me :o). So if my theory/fear is correct, the location service will keep the phone awake and drain my battery.

Anyway, like I said, I'm testing again tonight. I'll provide an update tomorrow morning.
[BetterBatteryStats] chamonix:
if it confirms that would be a bug in my eyes as agps is a feature to get a quicker fix but should not be implemented as mandatory.

I'll be investigating the android repos if this confirms
[BetterBatteryStats] mozman:
I see bars!

Sent from my EVO 3D
[BetterBatteryStats] ejstubbs:
Yep, I think you're right. I may yet try the mA support option that is offered from the BMW settings for future spot checks but overall I'm reasonably happy with where I am with the phone at the moment. I think the battery

capacity

anomaly is down to the phone, though, rather than BMW - it reports the same % as is shown in the notification bar battery icon (I have the patch which shows 1% increments: http://xdaforums.com/showthread.php?t=1113249&highlight=battery).

Alarm Manager wakelocks are still too numerous for my liking, though (even after 7h overnight in airplane mode with less than 5% battery drain:)) so I'll have a nose around at those later.
[BetterBatteryStats] sowen222:
Update: second night in a row, GPS set to disabled and the phone has *very* low Awake (just a couple of minutes). Everything else is the same as before (still logged-in to Latitude, etc.), but I used to get Awake times of 2 or more hours *every* night.

Will continue testing...
[BetterBatteryStats] wildfire_paulie:
Anybody having issues on a MIUI ROM?

On my Nexus S this app works on Oxygen2 ROM,

in MIUI it just keep showing no data...

EDIT: found the problem,

i did not enable the battery monitoring in the MIUI system preferences.
[BetterBatteryStats] abbz123:
MY stats

Hey gents,

Posting my stats.. i have a ton of wake locks but i know juice defender and battery stats seems to be the culprit. I have changed my Google map settings as instructed in FAQ. Just asking for a little guidance.

Cheers :o
[BetterBatteryStats] chamonix:
Start by ditching JD, it keeps waking up your phone and causing a lot of overhead.
[BetterBatteryStats] drksn:
Feature Request

I would like to ask if it is possible to add a widget, which just shows the (awake time - screen on) / (total time) - ratio, since this is the really interesting information one is looking for. The solution with the two graphs of the 1x1 widget is a little bit confusing.
[BetterBatteryStats] abbz123:
Done :good:
[BetterBatteryStats] chamonix:
https://github.com/asksven/BetterBatteryStats/issues/301
[BetterBatteryStats] Alexander Garkov:
Hello,

This is my first post here :)

Here is my BBS dump file of my Galaxy S3 phone

Note that :

From 100% to 70 % I had App lock with 75k wakes and Avast with 3-4k wakes or more I forgot :p

I hadn't change Google maps settings to disable autostart ...

Now I had uninstall App lock and Avast and I changed my location and maps setting .

I know that wifi and sync are draining the battery too but if I dissable everything for what is this "smartphone" then ...

This is without PowerSaving Mode

I want to ask you do I have to change something else ...
[BetterBatteryStats] It_ler:
1. There are no Network and no Alarm stats. More information is better for finding the culprit. So root your phone or plug/unplug the phone before starting the BBS recording.

2. I see Network location locator, so there seems to be at least one location service enabled. Please disable all location service options in ROM settings.

3. Face detection is running. Maybe you can disabled it.

Then try again.

Good luck !
[BetterBatteryStats] Alexander Garkov:
1.I have rooted my phone but I don't know why alarm and network stats are not showing ...

2.In location services ( settings ) all 3 boxes are unchecked

3.How I can disable face detection and for what is this function will it stop " smart rotating function "

Thank you
[BetterBatteryStats] It_ler:
1. Then you have to plug/unplug the charger/USB cable explicitly before starting a new idle dump recording with BBS.

2. Hmm ... there is "NetworkLocationLocator (com.google.android.apps.maps.Maps): 4 m 8 s (248 s) Count:191 1.1%" in your dump. So Maps tried to get your location ... check all location settings in Maps and your Google account. Maybe there is something enabled.

3. Face detection is needed for some feature, such as Face unlock or Smart stay, but I am not sure about Smart rotating. Try to diabled all those options and see if the wakelock will disappear in your next BBS dump.
[BetterBatteryStats] picollo78:
Thank you Karpfenhai, seigneurao for your quick response, I did not google chrome.

I just cleaned the usb connector and tried to put the pinholder.

Here is my dump file after 1 hour0

thank you again.
[BetterBatteryStats] bradld:
Battery gone south as of late. :mad: Can someone review this stat and help me? Thanks!
[BetterBatteryStats] Casanoaa:
"suspend_backoff" (): 35 m 18 s (2118 s) Cnt:(c/wc/ec)212/0/212 47,1%
"l2_hsic" (): 17 m 45 s (1065 s) Cnt:(c/wc/ec)2163/0/2163 23,7%
"sec-battery-monitor" (): 12 m 14 s (734 s) Cnt:(c/wc/ec)2096/2071/0 16,3%

1. Turn off auto rotate or close the app pr that which uses a gyroscope .. Suspend backoff

2. Switch to 2g or change modem .. l2_hsic

3. Something monitoring your battery turn that off.. a widget maybe.. sec-battery-monitor

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

After plug out from charging. Leave your phone in 4 hours and dump a file in bbs. There next upload it here first. This is not an idle dump you have posted here.

Try with wifi off on first dump.
[BetterBatteryStats] Karpfenhai:
Um, I think we should concentrate to the mmc*_detect thing...

I use auto rotation on the same rom with no issues...

I would point to a faulty SD card but mmc0 + mmc1 at the same time puzzles me..

Could you do a fix permissions?

Some more Info's needed here.

- are you on stock?

- are you on Phil's kernel?

- any addons applied? (like custom framework or modified system UI)

- virus scanner installed?

We will work this out, don't worry!

sent from my Nexus 10
[BetterBatteryStats] illb456:
Hey all, I'm just wondering is this normal? The wifi shows on and connected, but then says no connection or unknown signal all 100% of the time? I'm I reading this right or looking at the correct info?

I'm on a HP Touchpad, CM9 latest nightly, battery life is horrid.
[BetterBatteryStats] picollo78:
thank you for your interest in my case,

i just fix permissions

my rom is vk-rom [XXLSJ]-[JB 4.1.2][--VK--™] [V 6.1]

yes with phil's kernel

addons applied? i don't know, nothing more than the rom

no virus scan installed.

I repeated a dumb file and come back.

thank you.
[BetterBatteryStats] Casanoaa:
On mine SIII ..stock rom.. auto-rotate makes suspend_backoff wakelock
[BetterBatteryStats] Karpfenhai:
I know, but that's not the case on sII (AFAIK).

Let's see what happens next, I ask especially for ink effect's on lockscreen and multi window mode, I made some bad experience in terms of battery with this rom by myself...

Nevertheless, some of you guys asked for Google now wakelocks on the nexus, here are some screens from heavy usage:

I will put the device now on sleep for 20 hours, let's check afterwards what will happen.

Good night guys!

sent from my Nexus 10

---------- Post added at 02:33 AM ---------- Previous post was at 02:01 AM ----------

Yeah, finally back to normal, I restored my backup yesterday in the evening due to massive and invisible drain after to much tweaking my framework and systemUI.

Take care for the ink effect guys, it could cause trouble!

Tapatalked from my Samsung GT9100
[BetterBatteryStats] rspkt:
Impressive

Works great on my brand new HTC One X+. Took me a little while to get all the ins and outs of the app figured out but seems to do exactly what I was hoping for.
[BetterBatteryStats] Alexander Garkov:
Here is my new dump file I am wondering if it is ok now ?

Only I can figure it out why maps still wants to get my location drom maps , from settings and from gemini everything is turned off as one tutorial shows ...

While I was writing this post my battery went from 90% to 83%
[BetterBatteryStats] It_ler:
1. Please don't paste the whole BBS dump into your post. Attach it as a file or at least put it into [CODE][/CODE], for better overview and readability.

2. I removed "normal" entries of your dump and left only the intersting entries IMO. Disable all location service options, remove/disable/freeze all apps (such as SMS backup+, Facebook, Twitter, Google quick search, battery monitor widget, etc.) that you don't need every day.

3. try to disable wifi and check if the battery life will become better or not.

Then try again.

Good luck !
[BetterBatteryStats] picollo78:
HELLO,

I come back after creating a new file dumb, this time with 2g activated i lose 8% per hour what is the ink effect?
[BetterBatteryStats] It_ler:
1. Looks better now.

2. Disable/freeze Google+, Twitter, AllShare, Google quick search box, etc.

3. Have a look at Karpfenhai's description of how to "optimize" Google maps (link is in post #3).

4. Try to disable wifi and check if the battery life will become better.

Then try again.

Good luck !

---------- Post added at 10:35 AM ---------- Previous post was at 10:27 AM ----------

Oh ... there is something wrong with your phone.

Only 1s of deepsleep in more than 2,5 hours of doing nothing.

If you flash another firmware (such as official/stock Android 4.0.4) to your phone, do you get more deepsleep?

If not, then it could be a hardware issue.

If yes, you should have to provide a logcat too. Maybe we can find something in there.
[BetterBatteryStats] picollo78:
You advise me to flash a rom stock 4.0.4.

i'll try this and come back with new dumb file

thanks.
[BetterBatteryStats] It_ler:
It's just to verfiy if you have a hardware issue, which will then be present in stock Android 4.0.4 too.
[BetterBatteryStats] picollo78:
I need to create a new idle dump of at least 4 hours or just 1 hour ?

thank you.
[BetterBatteryStats] seigneurao:
Longer time usually means it's easier to pinpoint problems, but if you still get 8-10% battery loss after 1 hour I guess a hardware problem is pretty much probable.

The point is only to eliminate any Jelly Bean bug as a cause of this drain.
[BetterBatteryStats] Dr.69:
4 hours
[BetterBatteryStats] picollo78:
ok I installed 4.0.4 I'll leave it for 4 hours, i hope isn't hardware problem.

thank you :)
[BetterBatteryStats] ob1silvia:
battery drain

here you go i hope this is long enough
[BetterBatteryStats] It_ler:
1. Much better now ... Thanks !

2. Please disable/freeze Juice Defender.

3. I see Network location locator, so please disable all location service options in ROM settings.

4. Google Maps is quite busy. In post #3 there is a link to Karpfenhai's description of how to "optimize" Maps. Just give it a try.

Then try again.

Good luck !
[BetterBatteryStats] RandomPooka:
Thanks for your help earlier with my crazy messed up posts, everyone. Just let my bionic idle for around 8 hours and had 2.7%/hour battery loss. This is pretty much the best I've ever had with this phone. I'm happy with how it's going, but I won't turn advice down if anyone has any.

http://db.tt/J3jwuf9g
[BetterBatteryStats] It_ler:
It looks quite good.

I see some Facebook activity. So if you don't need it every day, disable or freeze it.

And I recognize Yahoo and K9 mail. Do you really need both?

Maybe you can add your yahoo mail account to K9 and disable/freeze Yahoo mail app?! Just a suggestion.
[BetterBatteryStats] RandomPooka:
Good idea! That was originally because I kept sending mail from the wrong account when sending with K9. I think I could probably move them all to one, maybe my brain can get its crap together now :)
[BetterBatteryStats] chamonix:
This is a pity and I hope the maintainers will switch defconfigs back. Of course I guess most devs will do but missing that on stock is bad for users who do not want to root / switch kernels.
[BetterBatteryStats] Xelstyle:
So first time with a dump file, let me know if I need to try again. I'm assuming it has a lot to do with Google Anonymous Location Services, but turning that off does take away GNow. :s

Also as a side question, how much of a drain is it to have data on while wifi is going?
[BetterBatteryStats] It_ler:
1. Please install latest stable BBS app version, which is ATM v1.11.0.0.

2. Disable all location service options in ROM settings.

3. Have a look at Karpfenhai's descritpion of how to "optimize" Google Maps (link is in post #3).

4. Disable/freeze Google quick search box.

Then try again.

Good luck !
[BetterBatteryStats] jeremysherriff:
@Karpfenhai you should attach images instead of posting them in-line... this thread is getting very hard to read!

---------- Post added at 08:06 AM ---------- Previous post was at 07:57 AM ----------

Hi Sven, I see you closed my issue (https://github.com/asksven/BetterBatteryStats/issues/299) were you able to reproduce the problem, or is it just me?
[BetterBatteryStats] Karpfenhai:
I would agree but uploading via tapatalk it's so simple and easy..

Here are my results from nexus stock Rom, no modifications done yet:

@jeremy,I can rework the post tomorrow from my laptop, Thx for the hint.

Tapatalked from my Samsung GT9100
[BetterBatteryStats] Christiancs1969:
Or hide them.

. Looks better too

.

[hide:D] subject [\hide:D]. Without smiles

[COLOR="#black"]galaxys2 [/COLOR] dori7.27 rootbox nightly enzo
[BetterBatteryStats] jeremysherriff:
Nice :)

Sent using xda app
[BetterBatteryStats] picollo78:
hello i'm come back.

After 4 hours, here is my dumb file...

It's worst than JB...

I despaired.
[BetterBatteryStats] jeremysherriff:
This is really bad (sorry!)

What widgets do you have?

android (): Wakeups: 6
Alarms: 309, Intent: android.intent.action.TIME_TICK

Is this a clock widget perhaps??

Your main problem is here:

Kernel Wakelocks
================
"l2_hsic" (): 2 h 10 m 5 s (7805 s) Cnt:(c/wc/ec)15140/70/15140 42,1%
"sec-battery-monitor" (): 1 h 26 m 39 s (5199 s) Cnt:(c/wc/ec)14942/14596/0 28,0%

I think this is a hardware/kernel bug, you need to read this thread: http://xdaforums.com/showthread.php?t=1874111

I have seen other similar bugs, such as when the power management system kicks in and then never removes its controls. Again, Samsung. I strongly suggest you follow that threads' advice - turn on your screen, unlock your phone,

before

unplugging the cable. If you forget, either reboot, or plug it back in and do it properly.

Everything else looks OK (but I think this is just a test, on the stock ROM?).
[BetterBatteryStats] elmexicanoalto:
Hi I'm running into some issues. I just installed the newest APK 1.12 and I'm not getting any stats whatsoever. The 1.9 apk still works though as it gives me stats right away. I'm running Rasbeanjelly 4.2.1 for Sprint Galaxy Nexus

Sent from a cloud of smoke
[BetterBatteryStats] hranjit:
Here's the dump file...I did it in two different days so that it might be able to find the drainage issue.
[BetterBatteryStats] jeremysherriff:
What drain issue? this is great battery life!

Level lost [%]: 9 Bat.: 9% (100% to 91%) [0.9%/h]
...
Deep Sleep (): 9 h 38 m 1 s (34681 s) Ratio: 98.0%
Awake (): 11 m 36 s (696 s) Ratio: 2.0%

Level lost [%]: 19 Bat.: 19% (100% to 81%) [1.9%/h]
...
Deep Sleep (): 9 h 38 m 28 s (34708 s) Ratio: 98.9%
Awake (): 6 m 41 s (401 s) Ratio: 1.1%

You should just enjoy your smartphone.
[BetterBatteryStats] Mongopusher42:
Can someone take a look at my log? The problem is my phones screen lights up now and then for no reason when locked/idle..

The device is a SGS2 ,running SlimICS 4.2 and Siyah kernel
[BetterBatteryStats] jeremysherriff:
You should try a newer version of this app.

But irrespective, there's nothing wrong here - you lost 9% in 7h. This is not battery *drain*, this is battery *usage*.

Suggestions;

get rid of juice defender, it makes things worse not better

turn off the nag feature of go sms, it is probably what is waking your phone

siyah kernel is not a good kernel for battery life, in my opinion

disable notifications or refresh interval in facebook

check the refresh interval of fancy widgets, it's checking for updates whether you have widgets on your launcher desktop or not.

But really, your phone isn't draining, these things won't change the battery usage much at all. I'd suggest you are using the battery in your normal use, so check your screen brightness and your cell reception strength - poor reception during the day can drain your battery in 8 hours easily.