yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] JDM1:
Hello

Thanks for the great app.

I'm using a Droid Bionic, rooted, on leaked ICS 6.7.232

My battery drains pretty quickly even with minimal use. With moderate use, it is really poor. I have attached my dump file from BBS. If someone has a chance to review it and give me any suggestions I would greatly appreciate it.
[BetterBatteryStats] Karpfenhai:
Hey there, your dump looks not to bad.

Its not a clean idle dump, therefore its pretty hard to divide active from background usage, but i would assume your awakes are caused mostly by network activity.

Don't use battery monitor widget per example.(no network btw)

Try to find an undervolted kernel and if possible a baseband (modem) which is known as battery friendly.

No clue about normal battery consumption of moto devices anyway, sorry.

Good luck.

Tapatalked from my Samsung GT9100
[BetterBatteryStats] melvinaury:
Re: [APP] [04 Aug - V1.9.2.1] BetterBatteryStats adds battery history back to Android

I notice that the new test releases don't replace the previous version. I'm on cm10 jb captivate.
[BetterBatteryStats] M.A.K:
Beta6 still not working for me.

I've done a dump and a logcat in the hope you may see something useful in them.

Process:

Plug/unplug

Set custom ref

Select custom ref

Dumpfile

Plug

Logcat
[BetterBatteryStats] erew1:
I have already disabled the autostart of Maps with gemini and logged out of latitude.

I still have location service checked though.

Last night I have over 800 alarms from Maps...:crying:

Can I know what app is causing this?
[BetterBatteryStats] chrone:
You should uncheck each location services and see what happens. They update like crazy. Hehe
[BetterBatteryStats] alexinna:
Beta 6 testing

Thanks. Now I can see Deep Sleep but Since is showing as "0" on a screen and in a dump.

logcat reflects "since" value correctly:

08-20 23:26:00.031 D/StatsProvider( 5176): Reference create at: 2012-08-20 21:25:14
08-20 23:26:00.031 I/BatteryStatsProxy( 5176): android.os.ServiceManager.getService("batteryinfo") returned a service binder
08-20 23:26:00.031 D/StatsProvider( 5176): It is now 2012-08-20 23:26:00
08-20 23:26:00.031 D/StatsProvider( 5176): Since: 2 h 45 s

I like updates to

============
Battery Info
============
Level lost [%]: 7 (85-78)
Voltage lost [mV]: 85 (4047-3962)

I'm wondering if you can reflect "level lost" on a screen close to "since" value. Otherwise I need to create dump to see it.
[BetterBatteryStats] chamonix:
Ok I see two things here:

- your log shows that "since custom" was never created: D/StatsProvider( 5901): Reference used: Reference custom_ref created 1970-01-01 01:00:00 (Wl: null; KWl: null; NetS: null; Alrm: null; Proc: null; Oth: null; CPU: null)

- there was no call to "WriteCustomReferenceService" not did I find "Saved ref" in the log. Are you sure you created the custom ref.

On the other hand there is something wrong that I could reproduce: not all stats show "no custom ref" when the ref is not there and this is something I am going to debug right now. I added issue #250 for that and am testing the fix as I write.
[BetterBatteryStats] chamonix:
Release 1.10b7

New beta is up, please check the changelog. I hope this release fixes yet another batch of errors. But please, if the beta works fine for you report as well. I still have some features implemented and bugfixes without any feedback whether they work or not.
[BetterBatteryStats] M.A.K:
Well, all you need to do now is hide the raw stat's from me and there'll be nothing useful left in the app for me.

Yes, I'm sure I created the custom ref.
[BetterBatteryStats] stuart0001:
Noted the following running on rooted stock 2.17 software on my HOX

Enabling root features causes a FC the instant you check the box (no SuperSU toast appears). Reopening the app and unchecking/checking again works and brings up the SuperSU permission toast and it then seems ok.

Alarms, Network & process values don't change when you select a different stat type. Edit: it looks like just since Boot doesn't change from the previously selected stat type
[BetterBatteryStats] Rob2222:
Hello chamonix,

I still get incomplete since-screen-off dumpfiles with tasker, when creating a task to dump "since screen off" on a tasker on-screen-on event.

Using Galaxy S3, stock ROM and siyah 1.5

In this incomplete SSO dumpfile other says "No ref since screen off", wakelocks are listed, KWL says "no ref..", Alarms and Network are empty.

If you need sample-files and/or logcat, just say.

Best Regards

Robert
[BetterBatteryStats] Will2000:
Hey guys,

My phones battery has been draining rather fast lately. It used to be able to last two days with moderate use and Wifi always on (and turning it off when I sleep) but now it can barely last one day (morning till night, so not even 24 hours).

The battery life changed after I updated my ROM to Resurrection 2.6.1 from an older version (2.6.1 is the last non-JB version) and installed a few games, but I am not sure that either are the cause because people have nothing but good things to say about 2.6.1.

I'm running Resurrection with the FLUXI XX.03-beta1 kernel.

I have posted my dumpfile. Could someone please take a look?

Any help at all would be much appreciated!

Thanks
[BetterBatteryStats] belerephont:
Would like some expert assistance in interpreting what drains my battery.. I am on latest paranoid android with latest siyah rc.

Thanks in advance!
[BetterBatteryStats] Karpfenhai:
Greets from Malmo, Sweden :cool:

Tapatalked from my Samsung GT9100
[BetterBatteryStats] It_ler:
From Denmark to Sweden ... What's next? Finland and then Island?

Have a nice time in Scandinavia :fingers-crossed:
[BetterBatteryStats] chamonix:
This is not my intention. I will add more logging to bbs in order to be able to trace down the point where the 'save' request ends. I see two possible causes here in your case:

- the service that saves the ref fails to start

- the logic starting the service fails before getting to start it.

I will hold the log against the code and against one of my logs and will add more traces if necessary
[BetterBatteryStats] el_smurfo:
See a lot of people using this app so thought I'd try before buying. Running on CM10 on the HTC One S and I get No reference set yet and always "fall back to boot" with a (0s) ratio.

EDIT: reboot seems to have fixed. i also get the FC on "root" selection reported above for an HOX, but reopening app asks for root privileges and it works fine.
[BetterBatteryStats] nobnut:
Really? Hmmmm, weird requests. I guess it is a matter of personal preference.

Sent from me to you using stuff
[BetterBatteryStats] mattdub1:
my phone has been staying awake almost the whole night when im sleeping...solid blue line in stats... ok so iv got cspush 8 hrs count :25 90%, activity manager 2m count:548 .4%, alarm manager 33s count: 2099 .1%, checkin service 30 s count :419 .1%, RILJ (dialer) 27s count:766 .1%, sleep_broadcast 18s count: 761 .1%, *vibrator* (android system) 11s count:1130 0%, SCREEN_FROZEN 8s count: 771 0%, activity manager-sleep 1s count:2156 0%... these are the ones that seem to have the highest numbers for percent or count in BetterBatteryStats, can someone help me determine whats causing the solid line for awake on my battery stats while im sleeping please?
[BetterBatteryStats] nobnut:
cspush is your problem. If no one else posts with some information before, when I get to a pc, I'll find some information for you. Sounds like an easy one to fix ;)

Sent from me to you using stuff
[BetterBatteryStats] mattdub1:
that would be awesome iv been trying to figure this out forever, the only thing though is it says that cspush is a htc sense process.... dont know how to stop that since it is running sense 3.0... i was reading the website for the app better battery stats and they said to pay attention to high counts as well as percents and there are a few others on here that have high counts that i question as well.
[BetterBatteryStats] chamonix:
my 5 cent as cspush seems not to be that common: are you using wifi with a proxy?

I found this related matter:

D/WifiService( 999): releaseWifiLockLocked: WifiLock{CSPUSH type=1 binder=android.os.BinderProxy@47b84898}

But also some heavily unrelated stuff: the problem with BinderProxy is that it is related to communication between processes so it could be anything. I found some instances where there were problems with a service trying to show dialogs and not getting there.

If note related to Wifi, did you freeze many apps on your phone and if yes which ones? With this question I want to make sure you haven't frozen anything central that should not be.
[BetterBatteryStats] chamonix:
Release 1.0

Some new stuff, mainly the long awaited how-tos and help (both in-app and online).

For more goodies check post #3.

@nobnut: could you please validate the visibility of the app on the market for non-default densities? it should be fixed.

Have fun
[BetterBatteryStats] mattdub1:
haven't frozen anything but removed some basic apps with TI like tmobile stuff but i know i didnt remove anything vital... not running proxy, wifi and all background data disabled.... it seems to only be happening when i goto sleep at night and i don't do anything different with the phone

also, it says CSPUSH is related to com.htc.cs.HTC Sense
[BetterBatteryStats] chamonix:
Seriously?

No comment:

Froyo

http://grepcode.com/file/repository..._r1/android/os/BatteryStats.java#BatteryStats

public static final int STATS_TOTAL = 0;
public static final int STATS_LAST = 1;
public static final int STATS_CURRENT = 2;
public static final int STATS_UNPLUGGED = 3;

Gingerbread

http://grepcode.com/file/repository..._r1/android/os/BatteryStats.java#BatteryStats

public static final int STATS_SINCE_CHARGED = 0;
public static final int STATS_LAST = 1;
public static final int STATS_CURRENT = 2;
public static final int STATS_SINCE_UNPLUGGED = 3;
[BetterBatteryStats] chamonix:
Time to go check HTC stuff then ;) Anyone seen some sources yet? :D

I'm in a mood to take source apart today (see previous post)
[BetterBatteryStats] chamonix:
lol

<monolog>

Are you by any chance use something called HTC Sense sync (check your accounts). I found a mention of problems related to sense (http://xdaforums.com/tags.php?tag=com.htc.cs) crashing the phone under certain conditions and a workaround was to disable sense sync (whatever it is)

</monolog>
[BetterBatteryStats] nobnut:
Bah!

Sent from me to you using stuff
[BetterBatteryStats] chamonix:
Gee, I didn't see the yellow thingie :(

But........ you are not seing the latest yet (27 of Aug.).... it may take a while till 1.0 gets pushed
[BetterBatteryStats] nobnut:
I'll wait but it shows as there being an update available.

When I click to update... it tells me that it is not compatible with my device.

I think it is a Google issue :mad:
[BetterBatteryStats] nobnut:
I will reset my dpi to 240 and try again.
[BetterBatteryStats] nobnut:
Oh man! being signed into HTC Sense Sync is like putting your battery in a microwave! It will kill it.

To test, go to Accounts & Sync and 'remove' the HTC Sense account and reboot.

You can always add it again later if you want to download from HTC Hub. Just remove the account as soon as you are finished :)
[BetterBatteryStats] nobnut:
I just reset my dpi back to 240 and immediately, I am able to download BBS and some other apps which had been waiting. I am pretty sure it is a Google problem.

I get the same problem trying to install apps from the Market via a pc. Some apps on my Nexus S and SGSII do not show/will not download until I have adjusted the dpi settings back to stock and then logged back in to Market... then all is fine.

:mad::mad::mad::mad::mad::mad::mad::mad::mad:

No, that was the last version that I had installed when I was last running a stock dpi and was signed in to the Market. I adjusted the dpi back to download your release on the 27th.
[BetterBatteryStats] MPKO:
Hi and thanks for the great app. Anyways, i would really like to know why you are recommendig people to deactivate fast dormancy in their phones. This was mentioned in the first page.

Cheers!
[BetterBatteryStats] nobnut:
Not all carriers support fast dormancy. If your carrier doesn't, it will drain your battery. If your carrier does, it will make your battery last longer.

If you see wakelocks with FD_xxxxx then turn it off... your carrier doesn't support it.
[BetterBatteryStats] nobnut:
I like the look of the help/about pages. Very clean, to the point and professional. Minimalistic is good :)
[BetterBatteryStats] MPKO:
I think u dont understand what fd means man. We have two kind of fd available, we have network controlled fd (iphone4 only supports it) and then there is the mobile controlled fd (sgs is using). Normally the inactivity timers of the network are optimized for dongle users what means that smartphones have to spend too much time in dedicated channel and consume extra energy. To save battery life, it is better to release the dedicated radio resources as soon as possible when connection is not anymore needed.

So my point is, fd is good for battery life,but bad for nerwork signalling capacity.

Cheers!
[BetterBatteryStats] chamonix:
Level lost on screen:

Edit: #251

Is the 'since' value present in b7 as well?
[BetterBatteryStats] chamonix:
#252 and #253
[BetterBatteryStats] chamonix:
Just to help me setting up some test cases and narrowing down possible causes?

It the result different if the request is processes later, eg attended from Tasker?

Ist the result also incomplete at that point in time but for another ref?

Does the attended creation of the same dumpfile from within bbs have the same missing elements?
[BetterBatteryStats] belerephont:
Please guys, can someone take a look? Would really appreciate some assistance here.. Thanks
[BetterBatteryStats] Tungstwenty:
Sven,

Deleted wakelocks handling (on the Wifi scenario) seems to work fine at first, but after additional toggles On / Off it will eventually start presenting incorrect values. Since the reference was taken from a KWL with the same name but with, say, c=100, later there will be a "Deleted: ..." with c=105 which is displayed correctly with 5 but when it's turned back on we'll have the same name but with a much lower count. Negative counts will be displayed, negative percentage, ...

I'm not sure there's really a way to handle this graciously. Even before having the "deleted: ..." entries the behavior is likely the same, as the destruction and recreation of a KWL with the same name with reset stats will mess any math you attempt to do.

Still running 1.10b2 (damn, could swear I had updated in the meantime); #238 was addressed in b1 but the negative values could have been fixed in the meantime. Although, as I mentioned, values might be positive and lower than the real ones if WiFi was toggled after the reference was taken.
[BetterBatteryStats] ufjay5:
Can someone please interpret...why did I loose 3% in under an hour...what are the wakeups from the calendar? Is there anything else I can do? The reason I have wifi always on is due to lack of cell signal in my house. Is this smart or not? Thanks.

Edit: why would phone have stay awake time of 30 minutes?
[BetterBatteryStats] sweeds:
Could use advice.

I am at 7% screen on with 65/35 for awake/deep sleep. Makes sense with 55% 300MHz CPU State. It leaves plenty of room for improvement.

Using previously provided information, I have gotten partial wakes under 1% each and I feel good about that. Kernel wakes are another story. I have two major questions; 1) wtf is musb_autosuspend_wake_lock and 2) to reduce rx_wake, do you know any useful apps for sniffing the amount of data and number of connections apps trigger?

Sent from my CM10 KF w/ Tapatalk
[BetterBatteryStats] Karpfenhai:
Your main culprit is gmail, get this sorted first (pull instead of push) and come back with a fresh and more idle dump.

Was just a day travel (Oeresund bridge -awesome!)

I'm back in Denmark.

Calendar is your problem, disable sync and it should be fine.

Tapatalked from my Samsung GT9100

---------- Post added at 10:22 PM ---------- Previous post was at 10:17 PM ----------

Latest version looks good on my device, but the references are not migrated, needed to replug the phone. Wasn't it your attention to save them between versions?

Further testing.

Tapatalked from my Samsung GT9100
[BetterBatteryStats] takeheart:
Quick rundown: I'm on a Sprint Galaxy SIII running CM10 Nightly with the stock kernel. I've been getting good battery life overall, but have some pesky wakelocks that are stopping me from having stellar battery life.

Through browsing the thread I've managed to cut down on some of the things, but the remaining wakelocks have me baffled. Here is a log if anyone can provide some insight on what is still causing problems here.

Thanks in advance.

Edit: I'm aware of the Ultimate Custom Clock Widget causing some wakelocks but they don't seem to be too terrible; I had already signed out of Gtalk and yet I'm still getting a lot of wakeups from it. I also thought Google Now would have been a huge problem, but since disabling it, my wakelock status has stayed essentially the same.
[BetterBatteryStats] chamonix:
I am not able to reproduce. Can anyone else confirm?
[BetterBatteryStats] chamonix:
ok, after doing a detailed analysis of the logfile I come to the conclusion we are both right: you asked for a custom ref to be created, bbs never got there:

Now this error situation si more than weird and tells us that the process has failed because the progress dialog could not be displayed. If you ask me why that happens my answer would be: I really don't know!

Now what I have done is to get rid of the progress dialog (it hardly shows anyway). Hopefully this solves the problem and relieves the frustration I believe I read in your previous post. RC1 will be up soon and does not contain any progress dialog anymore. I keep my fingers crossed
[BetterBatteryStats] chamonix:
Release 1.10RC1

Release Candidate 1 is up. Please check the release notes (RC1 + the betas for newcomers)
[BetterBatteryStats] M.A.K:
I'm able to create and use custom ref's in 1.8.1 and the progress dialog displays ok in that.

PS. Yes, I may get a little frustrated now and then. lol... Sorry... :o
[BetterBatteryStats] chamonix:
No problem. As I said before the cause of the error is somehow cryptic and there is not really anything I can do about it except poking.

I hope the RC1 helps....
[BetterBatteryStats] M.A.K:
No joy with RC1. All the other progress dlgs work ok, too.

Did you change the create reference process at all from 1.8.1 to 1.9.*?
[BetterBatteryStats] ufjay5:
It shows the calendar has not synced over a day...what gives?
[BetterBatteryStats] Xdenwarrior:
Is anyone getting 200+ wakelocks with latest google maps on their SGS3?? And whats with NetworkLocationLocator being the front page for battery drainage? Any fix?
[BetterBatteryStats] chamonix:
Could you provide another logcat where the creation of the custom ref is included?

About You question : up to the point where it fails on your phone no, behind the scenes no but the failure we spotted in your previous log is awkward because it is in the basic dialog management/framework. Any chance that you could test on another Rom?
[BetterBatteryStats] itchn2go:
Same issue on b7... log attached.
[BetterBatteryStats] alexinna:
Testing 1.10RC1

After I installed RC1 "since" still showed as "0" on a screen even after plug/unplug until I created a dump file. Unplug reference is not correct or it was not not set so BBS used after reboot one I think. Also I got an exception:

08-21 21:13:16.730 E/WindowManager(17521): Activity com.asksven.betterbatterystats.StatsActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@41c75ff8 that was originally added here
08-21 21:13:16.730 E/WindowManager(17521): android.view.WindowLeaked: Activity com.asksven.betterbatterystats.StatsActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@41c75ff8 that was originally added here

Please take a look at logcat. So M.A.K. is not the only one now.

For #251: Is it possible to have something like Bat.: 1% (87% to 86%) and not just Bat.: (87% to 86%). This is very minor. Nice touch to make it configurable. One more suggesting. Would be nice to store all logs in BBS predefined directory and allow to delete selected/all log files from the application.
[BetterBatteryStats] alexinna:
I'm not using custom reference but got the same exception. Please see my previous post with logcat attached.
[BetterBatteryStats] chamonix:
Interesting. It's another place, in your case the progress dialog while refreshing is the problem. I will look into that today, do some reading and hopefully come back with a solution: https://github.com/asksven/BetterBatteryStats/issues/256
[BetterBatteryStats] It_ler:
Have you already read the faq in post #3?

Here is a description of what to try to avoid some wakelocks caused by Google maps => http://xdaforums.com/showpost.php?p=29420959&postcount=7059

Give it a try and report back, if it could help in your case.

Good luck !
[BetterBatteryStats] Karpfenhai:
Rc1 keeps the reference, well done!

No issue detected so far.

Tapatalked from my Samsung GT9100
[BetterBatteryStats] cukierkas:
Hello dear dev again, I'm comming with good news. Rc1 fixed my CPU states problem. Now everything is shown correct. Thanks a million!
[BetterBatteryStats] honest1212:
I have put the phone on airplane mode and there were very few wakeups related to modem. I somewhere read that it was some JB issue so I switched back to Stock ICS.

I am still facing some issue as the screen time is less than the awake time.

Here is the log.

http://pastebin.com/pgaymPdz
[BetterBatteryStats] Miche1asso:
Hi Chamonix,

I am running the 1.10.0 RC1. So far it seems ok for what I need. Here is my experience:

- Stats since boot work fine.

- Fallback from unplugged to since boot is fine as well. Both on main program and 2x2 widget

- I can't manage to make "since screen off" working

- Network stats are not working, but this is because my kernel doesn't support them

- The mV measurement is wrong. It says 4 mV while it should be 4000 mV. This is an issue with other apps as well. BMW instead reports it fine.

EDIT: I spoke too early. Opening BBS I get a notification "An unhandedled (yes. Spelled like that, If it may help :)) error occurred. Check your logcat". I rebooted and the error showed again. Then I enabled the WiFi and it went away? 3G was off too. I couldn't find anything in the logcat,

I attach a dump file. Also if you (or anyone else) can take a look at it.. because it makes no sense. My battery (it is a second Gold one, about 1700mAh, 2430mAh declared) is draining fast. From 86 to 55% in 4h. It went from 100% to 84% in 1h or so, then I rebooted it. The standard battery is even worse. I feel like throwing the phone out of the window.

Oh, it is a Galaxy Next Turbo (Italy)/Pop Plus (US) S5570I in case you need it (well, it is in the dump file, isn't it?).
[BetterBatteryStats] bataya:
Hi,

I have problem with latest relise, no reference no matter what i chose. I run ginger cm7@lg gt540. Any idea?

by Tt.
[BetterBatteryStats] Aduck79:
+1 on cm7@LG O2X
[BetterBatteryStats] speedyranger:
+1

I had the same problem, the first time.

even though he did not give superuser rights to any data.

I rebooted and asked me superuser permissions (all without charger battery attached) ----> okay.
[BetterBatteryStats] bataya:
Noup, i just get message need to enable root in settings and FC when i do that.

by Tt.
[BetterBatteryStats] itchn2go:
Same here on RC1 now All options display the same. Log attached. I created a STATS Dump but it was an empty file.
[BetterBatteryStats] alexinna:
Did you guys plug/unplug your phone? I did help in my case.

---------- Post added at 04:28 PM ---------- Previous post was at 04:24 PM ----------

Didn't have a chance to review your dump in details but "since" value is reflected as "0"

Statistic Type: (6) Since Boot
Since 0 s
[BetterBatteryStats] ufjay5:
I still can't figure out what is keeping my phone awake...the sceen has been off but something is waking it...please help
[BetterBatteryStats] kmetek:
I also have a feeling that something is draining my battery...where does dump.txt gets saved?