yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] chamonix:
Re: [APP][2.1+][14 Mar. - V1.12.1] BetterBatteryStats

That's pretty good already but you have potential in the area of wifi: your reading shows wifi as a major cause of Wakeups due to it being on all the time and processing multicasts packets that cause you phone to wake up without a reason
[BetterBatteryStats] saleemakbani:
So what should I do for the WIFI?
[BetterBatteryStats] abhishek93:
I can't get wakeup alarm.. See the pic.. Can any1 plz tell me what might b the problm?
[BetterBatteryStats] saleemakbani:
i was also having a similar problem.. did you try updating to the new version.. coz that solved the problem for me..
[BetterBatteryStats] skinner12:
Re: [APP][2.1+][14 Mar. - V1.12.1] BetterBatteryStats

With latest version of bbs

I can't see stats...

Nocerino's Rulez with RAScarlo's ROM features TriNitY ;)
[BetterBatteryStats] MichalSykora:
Re: [APP][2.1+][14 Mar. - V1.12.1] BetterBatteryStats

I have same problem with Wanamlite rom.
[BetterBatteryStats] seanpr123:
Eureka! Figured out my issue, can't believe it was this simple.

Changed my modem yesterday from a SE Asia variant (not sure if that's flashed with this ROM or some other) to XXELLA and my drain last night dropped to .1%/hr!

BBS:https://docs.google.com/file/d/0B6UoMdZQVms9WFlrODY1eFRveWM/edit?usp=sharing

Been pulling my hair out for weeks now, so glad just figured I'd pass along.
[BetterBatteryStats] saleemakbani:
care to share the modem file... or the link...
[BetterBatteryStats] walda:
AW: [APP][2.1+][14 Mar. - V1.12.1] BetterBatteryStats

Thanks for your time for the detailed answer.

Widget: there was no type chosen in settings. As i choose one, data was displayed immediately. My fault, didnt look there, sorry. We had this also in our app when we changed the stored values in xml file...

I think that removing logcat helps to save a lot of battery.

In case facebook. I attach a debug dump, hope it helps. Alarms are not shown yet due to i have never been there before, so the SU request was just confirmed now.

Thanks a lot.

Ups, cannot attach a file with tapatalk here, will do it on pc later...

... tapat*lked
[BetterBatteryStats] miesze:
Well, as suggested I tried to make a dump file while idle, but it didn't have any battery drain in that period (almost 10h). I gave up and started using the phone again, but after that, and after leaving it alone for a while, I checked and it was giving me wakelocks again.

The dump file is similar to this one, with some screen on, so please: can anyone check the file anyway?

And if so, tell me which processes maybe waking up the phone?

I can spot a few there, I just don't know what they are or do.
[BetterBatteryStats] guxlightyear:
10030 (Mobile) Google Services

Attached :).

The battery life has been particularly good today, with only 10% lost in 5 hours and something, but still I can see that 10030 (Mobile) Google Services on top of the Network usage.

Many thanks,

Gustavo
[BetterBatteryStats] rocada:
BBS dump file

Here is my dump please help figure out whats waking up my phone.:confused:

Stock 4.1.2 -LSD, root whit Mobile Odin, Kernel stock.
[BetterBatteryStats] azcv:
Re: [APP][2.1+][14 Mar. - V1.12.1] BetterBatteryStats

In the latest versions of bbs(1.12.0.2 and 1.12.1.0 tested) the dropdown menus has only one option.The "since" menu has only "unplugged" and the new menu has only "current".Can you fix this?
[BetterBatteryStats] chamonix:
Release 1.12.2

New release is up for testing before I push to gplay. Even if I can't find the cause for some users having problems (because I get no detailed reports) I have made some debugging and found a few uggly race conditions where concurrency may be a issue.

Please report back on this release so I can publish it and hopefully make more users happy again
[BetterBatteryStats] Karpfenhai:
Re: [APP][2.1+][15 Mar. - V1.12.2] BetterBatteryStats

Hmm, since charged is working, since unplugged is now since boot, and since unplugged started to count fresh(was nulled).

Was this intended?

Edit, I have now the same issue others have already complained about, wrong figures, like 586% deepsleep.. :p

Guess a reboot plus unplugging will fix it.

Data migration messed up..

Want a logcat?

Tapatalked from my Galaxy SII
[BetterBatteryStats] chamonix:
Sorry I think you lost me. Could you please elaborate on those observations?
[BetterBatteryStats] dryhte:
Maybe he had only been running for a couple hours... and no alarms scheduled. My guess ;-)
[BetterBatteryStats] chamonix:
Can't tell for sure but I would bet on wifi keeping you phone awake. Could you give it a try with wifi off? If it rediced the awake time then you shoud revisit your wifi settings, if it's not setting related it's a driver/warware problem
[BetterBatteryStats] chamonix:
I wouldn't care about alarms or gtalk rith now. As long as one wakelock is responsible for 72% of your awake time that's the one you need to fight.

Is there anything you have frozen that may cause that wakelock. The name "starting" suggests something that should not last and I haven't found any wakelocks in http://grepcode.com/file/repository...droid/calendar/AlertService.java#AlertService.

Anyway the code is uggly, I'd recommend switching to another calender and make sure the stock one does not handle anyting (notifications, alerts, reminders). If you are looking for a nice alternative I'd recommend "Business calendar" of "webis".
[BetterBatteryStats] chamonix:
There are some known problems related to 2.3.5 ROMs and wifi. I had the dhcp wakelocks and I have even seen cases where wifi was cause deep sleep to fail. Haven't found any cure yet except switching my wifi off.
[BetterBatteryStats] chamonix:
I love my transformer!

I must admit I haven't used BBS on it yet but I will have a look. I opened an issue (https://github.com/asksven/BetterBatteryStats/issues/43) and to be sure to have all the info, would you mind provding a logcat. Of course I'll try to reproduce too.
[BetterBatteryStats] chamonix:
To start with: your battery life is pretty impressive already but I believe there are still a few things you could tweak:

- facebook is causing many and long wakelocks: if you really need it you could try to lower the frequency of updates

- you are using the android sync service to backup your settings: you could drop that and use titanium backup of another backup tool instead

- SPB causes quite some wakelocks related to location services: if it's not on purpose you could try to reduce that one as well.

But again, don't obsess, it that battery life is for your normal usage profile it's pretty damn good already
[BetterBatteryStats] chamonix:
Sure: https://github.com/asksven/BetterBatteryStats-Knowledge-Base/wiki/AlarmManager
[BetterBatteryStats] chamonix:
I don't have MIUI at hands but it would be helpfull if you could explain a little bit more about the sequence (when do you turn the stats on, when do you start BBS, what do you do between the time it does not show data and the time it does). Also try to provide a logcat of each display.

Dumb question: why do you not turn the stats on one for all. I feel it's pretty dumb to provide options to turn that kind of stat off at all.... it's like compiling a kernel with no logging.
[BetterBatteryStats] chamonix:
Have you read the doc at all? read the how to, proceed systematically, learn a few things, measure the results, learn even more, become happy about your battery life
[BetterBatteryStats] nobnut:
The battery stats logging in MIUI causes wake (and pretty significant drain). I saw this when I briefly had it on my old Nexus S. It is switched off by default for a reason!
[BetterBatteryStats] gtizon:
Hi team. Please take a look at these. The graph declines steeply which i presume is when i used the phone heavily. The straight line is when it was unused and deepsleep? Are these stats good or just right for my usage? I am at 39 atm. :) thanks!

This was with 20 brightness and 2g or 3g data on the whole time.
[BetterBatteryStats] hahaboy:
i already remove a lot of app and setup not sync except sync google contacts and mail only, but why my awake quite alot
[BetterBatteryStats] BenKranged:
All I get is a black screen when I run this app. Is it compatible with froyo?

:edit:

Oh it takes a while, disregard this post

Though I may suggest a progress bar or the circular busy icon
[BetterBatteryStats] nobnut:
@gtizon Those graphs are fine. No problems.

Don't forget this is the BBS thread, not the Android battery usage thread. Post your BBS stats also :)
[BetterBatteryStats] Tråget:
Thanks for this one. Finally I could get rid of my wakelocks! =)
[BetterBatteryStats] gtizon:
Haha sorry forgot to upload it. Know what, i managed to get more than 5 hours before i went empty for that charge so im not complaining anymore. I think ive ahieved the setup i want! :)
[BetterBatteryStats] chicoelnino:
I prevented autostart for a few apps in gemini app manager and now I can't adjust the screen brightness in the display settings? The option is just greyed out and I can't click into it.

Any idea of what could be causing this problem?

I notice that when I've it on charge that I'm able to adjust brightness as normal... But once i take it off charge I'm not able to.

IM using latest version of litening ROM on the s2
[BetterBatteryStats] amandureja:
My Galaxy S2's battery has been acting strange lately; I get about 5% drain when it's idle, doing absolutely nothing. I have frozen everything that is said to be a drain on battery, and have killed some startup processes as well. BBS reports absolutely nothing out of the ordinary, with no wakelocks going over 1 minute or so, and even in the 'regular' Android battery usage screen, my awake and screen on bars are lined up 99% of the time.

So why is this random drain occuring? It's getting extremely annoying. I'm on stock XXKI3, rooted. Anyone have any insight?
[BetterBatteryStats] RampageRR:
I recently switched to MIUI on my Inspire, and can't get the BBS app to report anything. I have tried turning battery reporting in the MIUI settings on and off. Any ideas?
[BetterBatteryStats] s2d4:
9 posts before urs
[BetterBatteryStats] Karpfenhai:
Re: [APP][2.1+][15 Mar. - V1.12.2] BetterBatteryStats

I just installed the latest version and all my references got messed up.

Could you post / pm the full string you use to grep the logcat?

Seems bbs cannot open /dev/log/main...

Will issue it in a terminal. Thx.

Tapatalked from my Galaxy SII
[BetterBatteryStats] chamonix:
Teaser

Edit: I couldn't resist
[BetterBatteryStats] chamonix:
Well that certainly was not the intent. I basically have not changed anything in the way refs get stored, only the way the spinners react to events creating new refs.

For a started that would be StatsActivity, ReferenceService, StatsProvider, Reference, ReferenceStore

Edit: sorry for not being more precise, I always read full logcats, sometimes there is other interesting stuff in there

And that reminds me of adding a feature: https://github.com/asksven/BetterBatteryStats/issues/368
[BetterBatteryStats] Karpfenhai:
Here you go, but it's quite huge, hope you find what you are looking for, cross my fingers.

View attachment messed-refs.tar.gz
[BetterBatteryStats] bturner75:
Help with better battery stats

Hi all,

I recently installed android 4.2.2 on my nexus 7. I lost my settings that I had made for better battery life that were suggested here and I made the changes again after looking at my previous posts but I still seem to be having issues. I'm losing about 3% after its been idle. Can someone be kind and look at my logs to see if there's anything that I am missing as far as freezing/autostarting? I turned off location services, disabled maps via autostarts, and latitude and currents is turned off.

Brian
[BetterBatteryStats] chamonix:
Unfortunately the file is messed too ;)
[BetterBatteryStats] chamonix:
Well this readings shows a drain of .1%/h and that is pretty great. Only potential I see in that reading would be wakeups caused by wifi
[BetterBatteryStats] chamonix:
That topic has been discussed many tims in this thread. I suggest that you start with the FAQ and then use the search
[BetterBatteryStats] chamonix:
Let me guess: older BBS version and android 4.2.2 correct? If yes please check the changelog and update to a current version. If No please be more specific about your setup and attach a dumpfile and a logcat
[BetterBatteryStats] chamonix:
No kernel wakelocks showing for a period of 3 seconds.... that looks pretty normal to me
[BetterBatteryStats] chamonix:
Well the missing prefs is not your fault but mine and I think the cause of most of the negative feedback I have got. The prefs are blank because something changed in the coding of the references (used to be an integer, is a name now) and the fact that the code supposed to migrate those was messed up in 1.12 and it was a one time action. 1.12.2 take care of this and is currently in test before it can go the gplay
[BetterBatteryStats] chamonix:
As you have been using the phone despite the advice to take an idle dump we can't help you. The dumpfile you posted has one hour awake and half of it because you were using the phone. There is really no way to distinguish between was was caused by you using your phone and unwanted background activities sorry.
[BetterBatteryStats] chamonix:
Coould you check your maps settings and make sure that automatic caching is not active for mobile network. Are you using other google maps features like latitude, google now, automatic checkins?
[BetterBatteryStats] chamonix:
well that would be because no other events were detected and so no other references create yet. That's a feature not a bug. In the older version of BBS you would have seen "no reference ...... set yet" instead but I got tired of seing that reported so I decided to show only available references
[BetterBatteryStats] chamonix:
The times shown may be irritating but I believe they are correct as they are the time after the boot. The first reference (boot) was saved 52 seconds after boot, the other ones are in a sequence that makes sense to me.

Of course the messed up figures are uggly but I prefer to have a problem that reproduces to be able to fix it
[BetterBatteryStats] Karpfenhai:
Damned...

im so sorry, i should have checked the filesize before adding...

once again: View attachment messed-refs.zip

This time confirmed working ;)

what i found wasnt much, you can see i tried to install the old version which failed due to newer version installed, between that there is not much info... i curious about your finding.
[BetterBatteryStats] Karpfenhai:
Hmm, but there was no boot since 5 days.... since unplugged seems to be since boot.

since boot = since version 31 installed ;)

Anyway, going to plug the charger now...
[BetterBatteryStats] kellman:
deleted
[BetterBatteryStats] chamonix:
I have checked the log looking for high values, especially deep sleep and could find any. All looked like

03-15 21:08:17.873 D/StatsProvider(29394): Result value: Deep Sleep 2 m 48 s (168 s) Ratio: 7.4%

not to be confused with values like this

Current value: Deep Sleep 3 d 2 h 41 m 47 s (268907 s) Ratio: 490.0%

that are in the log but should never show as they are steps in the calculation (current value is followed by "result" except if the result of the substraction is 0.

Is something showing on the screen that does not correspond to what I just described? in that case that may be a clue for a bug that we suffer intermitetly from since quite a while. Could you add a dumpfile so that I see the results besides the calculations from the log?
[BetterBatteryStats] chamonix:
As I have been hunting bugs a lot today I did lots of reboots as well and noticed something interesting: on CM10.1 (at least, I never noticed that) there is an event "unplugged" triggered when the phone boots, causing a reference unplugged to get created.

On the other hand the "since boot" that you mention may be related to some migration routines on 1.12.x as there was some handling to delete all / recreate the references. I know, I know, that doesn't make things easier to understand / reproduce ;)
[BetterBatteryStats] Karpfenhai:
Re: [APP][2.1+][15 Mar. - V1.12.2] BetterBatteryStats

It stays at 100% but time increases, other values seem correct.

Deepsleep could be from since boot, all others are from former since unplugged.

These values are correct, but the ref should be named since installed.

Dumps:

View attachment BetterBatteryStats-2013-03-15_235646434.txt

View attachment BetterBatteryStats-2013-03-15_boot.txt

View attachment BetterBatteryStats-2013-03-15_charged.txt

Tapatalked from my Galaxy SII
[BetterBatteryStats] jeremysherriff:
Re: [APP][2.1+][15 Mar. - V1.12.2] BetterBatteryStats

Feature request or bug fix? The 2x2 widget displays differently depending on portrait or landscape mode on tablets, due to the change in aspect ratio. So, either;

a) feature request - the ability to specify different widget font sizes for landscape and portrait modes. Or automatically use the next size smaller in landscape mode. Or...

b) feature request - modify the bar graph height on 2x2 widget to be a % of the widget height, so that the bare area under the bottom bar is better used in portrait mode without increasing the font size. Or...

c) bug - the widget displays don't cater for the change in aspect ratio when moving between portrait and landscape - so if using a font size of 14, in portrait mode the widget area is used well, but in landscape mode a number of the graph bars are not visible. If I use size 12 instead, portrait mode shows a fair amount of unused widget area under the last graph bar.

My preference is (b) but I'm unsure how much wok is involved inn each option.

PM me if you want screen shots to illustrate the problem.

Cheers!

Sent from my Nexus 7
[BetterBatteryStats] oae08:
Re: [APP][2.1+][15 Mar. - V1.12.2] BetterBatteryStats

Hello im on CM10.1 and i have deep sleep 280% :p

The thing is i plug phone into charger amd then unplugges and then kept it 4hours and then checked my dump file and it shows deep sleep for 13hours out of 4 hours! Im on latest bbs 1.12.2
[BetterBatteryStats] Hilmesh:
Hello Sven / Karpfenhai / It_ler & rest of the family,

Just got this sudden loss. I studied the BBS dump and screens but could not find anything abnormal anywhere. Can you please see and advise. or shall I leave it as one odd case which happens once in a while without any reason. Just a quick insight will be very much appreciated. Thanks in advance.
[BetterBatteryStats] miten_sheth:
Re: [APP][2.1+][15 Mar. - V1.12.2] BetterBatteryStats

This is my dump.. please tell me what is draining my battery so much.. thanks..

https://www.dropbox.com/s/20dm0rjmjfo94y4/BetterBatteryStats-2013-03-16_092310989.txt

Sent from my SGH-I777

ROM - ShoStock 3 v2.5.9

Kernel - AJK v1.48-S
[BetterBatteryStats] kozmo21:
You can try to enable system sounds in settings in Viber to get rid of audio out 2... or try to uninstall/ freeze Viber to see how it affects battery life?
[BetterBatteryStats] Casanoaa:
Sv: [APP][2.1+][15 Mar. - V1.12.2] BetterBatteryStats

om.maildroid (com.maildroid.service.KeepUsAliveService) Active since: 4 h 23 m 50 s

Last activity: 48 m 16 s

com.nuance.swype.input (com.nuance.swype.input.IME)

Active since: 20 s

Last activity: 43 m 51 s

com.android.vending (com.google.android.finsky.billing.iab.InAppBillingService)

Active since: 6 h 8 m 20 s

Last activity: 48 m 24 s

com.oasisfeng.greenify:service (com.oasisfeng.greenify.CleanerService)

Active since: 32 s

Last activity: 48 m 2 s

com.whatsapp (com.whatsapp.messaging.MessageService)

Active since: 4 h 23 m 25 s

Last activity: 48 m 24 s
[BetterBatteryStats] Hilmesh:
Re: [APP][2.1+][15 Mar. - V1.12.2] BetterBatteryStats

Hey Casanoaa thanks for the direction. The vending service is related to Google play right? How to stop that?

Also greenify sometimes hibernates and sometimes does not. Not sure why it behaves like that. Any clues?
[BetterBatteryStats] linus98:
This is my dump file
[BetterBatteryStats] Casanoaa:
Sv: [APP][2.1+][15 Mar. - V1.12.2] BetterBatteryStats

Right have you unticked AutoUpdate in gplay. Unticked notifications for update. Close gplay in running apps after reboot or after use.

I doesn't have used greenify so no I don't no.
[BetterBatteryStats] packtt:
Hey man , great work

Would love it if you could have a look at this

getting a crazy 4.5-5%/hour discharge

Left it uncharged for 4+ hours after a full recharge and dumped a log

Can't read it , because dont know how to :/

Thanks alot
[BetterBatteryStats] dark_ente:
Re: [APP][2.1+][15 Mar. - V1.12.2] BetterBatteryStats

Thanks a lot

Sent from my Nexus 4
[BetterBatteryStats] chamonix:
I have found something interesting that I am not able to explain yet but there really may be a masked bug here.

This is what I get while debugging "boot to current" while my phone is plugged in, refreshing the screen multiple times:

D/StatsProvider(22322): Since (battery realtime): 14 h 45 m 22 s
D/StatsProvider(22322): Since (creating time, not displayed): 22 h 41 m 55 s
D/StatsProvider(22322): Since (battery realtime): 14 h 45 m 22 s
D/StatsProvider(22322): Since (creating time, not displayed): 22 h 41 m 55 s
D/StatsProvider(22322): Since (battery realtime): 14 h 45 m 22 s
D/StatsProvider(22322): Since (creating time, not displayed): 22 h 41 m 55 s
D/StatsProvider(22322): Since (battery realtime): 14 h 45 m 22 s
D/StatsProvider(22322): Since (creating time, not displayed): 22 h 44 m 31 s

As you can see the "batter realtime" (that's the time saved in the reference and used for calculation) does not change between the refreshes, meaning that "since" does not change. The creation time of the "current" ref on the other hand changes.

I have to do some reading......
[BetterBatteryStats] vNa5h:
Updated the app
[BetterBatteryStats] Casanoaa:
Start with this:

Turn off locations services in rom settings. Install autostarts app and disable all maps entries. If you not use maps at all disable the app with titanium backup pro.

Log out of latitude in maps and talk.

Disable google searcg with titanium backup pro.

Disable facebook and use friendcaster or browser.

baseband_xmm_power:

https://www.google.dk/search?q=baseband_xmm_power&aq=f&oq=baseband_xmm_power&aqs=chrome.0.57j0j62.385&sourceid=chrome&ie=UTF-8
[BetterBatteryStats] linus98:
Up...:o
[BetterBatteryStats] mahercs:
Re: [APP][2.1+][15 Mar. - V1.12.2] BetterBatteryStats

Ok, so ever since I got JB on my Maxx last week, the battery life is ridiculously bad. Here's a dump and logcat after an hour of inactivity. Any help is appreciated (Fyi, I lost 2% in that hour, and in the few minutes it took to get the logs and post, I've lost another 4%!!!)

Dumpfile: https://www.dropbox.com/s/0x8vr456jdkwig6/BetterBatteryStats-2013-03-16_075958662.txt

Logcat: https://www.dropbox.com/s/asvt02aresja5aw/logcat-2013-03-16_075958662.txt
[BetterBatteryStats] chamonix:
Release 1.12.3

New release is up. Should fix the erratic percentages in "other" stats. Please make sure to re-create the references before testing as old ones will have wrong time info leading to this exact error.

Hopefully this release will allow me to finish the problems that have occured since 1.12 and will allow me to focus on 1.13 betas (features are already finished and ready to releasing to you after a clean merge)
[BetterBatteryStats] The Lord Vader:
Re: [APP][2.1+][16 Mar. - V1.12.3] BetterBatteryStats

Trying again... Can anyone take a look?
[BetterBatteryStats] d3l1:
AW: [APP][2.1+][16 Mar. - V1.12.3] BetterBatteryStats

So far I can only advise you to try out disabling fast dormancy (l2_hsic wakelock), no idea what's wrong with your router but maybe restart it (wlan_rx wakelock).

I really don't understand why your battery only lasts 10h with 96% deep sleep. Can you try another battery to rule out yours is damaged/dying?

Gesendet von meinem Transformer TF101 mit Tapatalk 2
[BetterBatteryStats] The Lord Vader:
Re: [APP][2.1+][16 Mar. - V1.12.3] BetterBatteryStats

I've already disabled fast dormancy, I've checked the setting again and it should be disabled.

I will try to restart my Asus router to see if it helps wlan_rx_wakelock.

Thanks for your suggestions! :)