yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] chamonix:
Re: [APP][2.1+][01 Apr. - V1.13RC1] BetterBatteryStats

Please read the first posts about reporting bugs and provide the required info
[BetterBatteryStats] cinciopillo:
R: [APP][2.1+][01 Apr. - V1.13RC1] BetterBatteryStats

Can someone help me with this?
[BetterBatteryStats] It_ler:
You are rooted ... then enable all root options in Advanced and select all stats in Dumpfile menu.

Then record another dump file (about 4 hours of doing nothing/screen off all the time) with Alarm and Network stats.

Maybe we can find the culprit with your complete stats.
[BetterBatteryStats] gxg10:
Hello. This is my dump. S3, 4.1.2 stock. I charged it full, then went to bed without touching it for 8 hours. It had wi-fi off during the night. Then ordinary use. I have big Kernel Wakelocks. Thank you .
[BetterBatteryStats] knorde:
Anyone knows why my battery is draining?

Tryed with wifi on and wifi off.
[BetterBatteryStats] jeremysherriff:
Re: [APP][2.1+][01 Apr. - V1.13RC1] BetterBatteryStats

Not easy to tell from this dump file, "deleted wakelocks" hides the real culprit. Take another idle dump file, but make it shorter - maybe 2h this time. That should help stop the culprit wake lock wrapping over into the "deleted" count.

Sent from my Nexus 4
[BetterBatteryStats] gxg10:
Please take a look at my dump too. I have about 20% of deleted wakelocks ... A Factory reset can help ?
[BetterBatteryStats] Karpfenhai:
Re: [APP][2.1+][01 Apr. - V1.13RC1] BetterBatteryStats

Deleted wakelock are a left over after disabling Wi-Fi, they sum up wlan wake and wlan_rx_wake, so a high count of that points to the usual Wi-Fi overhead.

Tapatalked from my Galaxy SII
[BetterBatteryStats] gxg10:
Hm, i have done some research but dont know what WI-fi overhead means. Yes, i use a lot of Wi-fi all the time.
[BetterBatteryStats] knorde:
The deleted wakelock are a left over after disabling Wi-Fi, they sum up wlan wake and wlan_rx_wake.
[BetterBatteryStats] gxg10:
Ok. Does my dump show signs of battery drain ?
[BetterBatteryStats] slicetwo:
Re: [APP][2.1+][01 Apr. - V1.13RC1] BetterBatteryStats

Oooooo. Awesome. Thanks!
[BetterBatteryStats] Quinncy:
Best battery monitor ever!
[BetterBatteryStats] Luzmo:
Awesome! Really useful! Thank you for this :good:
[BetterBatteryStats] knorde:
It will be a nice app but i don't understand how i can see why my battery is draining...
[BetterBatteryStats] megosu:
Hi,

I'm starting to see a lot of people having a battery drain even in flight mode and without touching the phone.

More worrying, it still happens even after a factory reset and without installing any app.

I'm in that case, it seems to have started suddenly, I used to lose only 1% overnight in flight mode, now I lose around 20% (2.6%/hour) and I have around 99.2% deep sleep, so there is nothing I can see in BBS.

I'm wondering if it could be a hardware failure or maybe an issue with some remaining files on the phone that could stay even after a factory reset or a rom flash.

What makes me wonder about the hardware issue is we do not see anything in BBS dump...

So, if you have the same issue, please raise your voice, we might find why this is happening.

depending of how many people, I will open a new thread somewhere else, but it could be good to see if we all have a S2 for instance...

you can PM me if needed.

In my case, I have a Galaxy S2 (I9100) and I'm on Tmobile UK.

I'm putting my BBS dump here so you can see for yourself there is nothing showing up and explaining such a drain.

thanks
[BetterBatteryStats] slicetwo:
interesting. my network actually only ever has maybe 3 wifi things on it at any time. 2 phones and a tablet. i'll have to look into all this. thanks!
[BetterBatteryStats] CharliesTheMan:
Re: [APP][2.1+][01 Apr. - V1.13RC1] BetterBatteryStats

It looks like some users on the last few pages may benefit from this app

http://xdaforums.com/showthread.php?p=29443538
[BetterBatteryStats] Tungstwenty:
Sharing the 4 files to Drive and Dropbox both seem to be working fine on RC1.

Masking working as well - in my case just a couple of email addresses

For the masking, I wonder if you feel it's worth changing from the plain md5 so that precomputed tables can't be used - a salt prefix would achieve this.

And if reversing through trial and error / brute force should be avoided altogether, even with public sources, adding a unique random value computed during installation would also achieve it without preventing that the same string is produced every time for the same user.

In the meantime, here's a possible issue report. I don't have a very stable installation due to the constant boots for dev purposes, but I think I can quickly tell you how to reproduce. If it still happens, that is, which was true for me at least for the previous betas:

When active monitoring was turned on and I had a significant uptime - maybe 3 or 4 days - loading BBS would take a noticeable couple of seconds before showing the "Computing" toast. Iterating through the ~100 references caused it, but IIRC there wasn't any explicit time difference in that loop but rather on the Dalvik GCs.

Sorry if I'm not able to post a logcat :o but if you compile the sources with no lower limit for the active monitoring delay and let it populate about a hundred of those, you should see the same.
[BetterBatteryStats] razen_kain:
Re: [APP][2.1+][01 Apr. - V1.13RC1] BetterBatteryStats

I have a dump file of the time/percentages error again, however it is not using the current version. U can check it out if you'd like. I will upgrade to latest version tonight

http://db.tt/LmvRWxCO
[BetterBatteryStats] knorde:
I has this version of wifi on/off.

https://play.google.com/store/apps/details?id=com.curvefish.widgets.wifionoff

Is it possible that this is the reasson of my battery drain?

I will give it a try so i deinstalled it now and fingers crossed :)
[BetterBatteryStats] pat357:
Anyone can have a look and give some hints ?
[BetterBatteryStats] pi-xel:
Same for me, I'm on GT-i9100, tried different 4.1.2 and 4.2.2 roms (stock based + AOKP/CM based), different kernels (based on stock, siyah, dori) and a bunch of different modems. Carrier networks are Lebara over KPN Netherlands and O2 Germany, drainage remains similar to yours.
[BetterBatteryStats] psydex:
I need some help! Few days ago i've upgraded to the official 4.1.2 (not rooted) and i can't get half a day the way i normally use my SGS2...

Let the screenshot speaks for itself.As you can see huge (instant 20%+) battery drop occurs when i restart my phone.I'm not using GPS , Bluetooth or whatever, just Wi-Fi. Only Chrome and Facebook was used when i took that screenshot. AND YES - IT LASTED ONLY THREE HOURS NORMAL USE.

I'm attaching BBS stats below (i hope this is the file you need). Thanks in advance!!!
[BetterBatteryStats] megosu:
S2 GT-I9100 too.... interesting...

when did you start to have this issue ?

do you see any wakelock during the night ?

can you provide a dump file from BBS ? maybe somebody will see something...

@Chamonix: is it possible your app misses something ? where do the battery % go ? :)
[BetterBatteryStats] pi-xel:
Below I cite one of my older posts, that already shows the problem. I don't have more recent bbs, will try to make an update over night. Recently (after some kernel and rom updates, new, larger 2000mAh battery) my battery life slightly improved, but is still one order of magnitude away from the results of some other users. I dunno how long the problem exists on my phone as I did not start evaluating wakelocks and battery issues in general before flashing Android 4.2.2 (but I know for sure that it also exists on Android 4.1.2, as I tested it afterwards).
[BetterBatteryStats] megosu:
it would be interesting to see what they can tell reading your dump, personally I don't see anything strange... like in my BBS dump...

I see we have the same hardware revision:

HARDWARE: smdk4210

anybody else with a S2 and strange battery drain even in flight mode ?

please tell and join us :)

---------- Post added at 08:48 PM ---------- Previous post was at 08:15 PM ----------

I have created a thread... I'm hoping to gather "others" with similar issue :(

in the meantime, if someone from this thread can give us his opinion, it would be much appreciated.

Thanks

thread is here:

http://xdaforums.com/showthread.php?p=39858378
[BetterBatteryStats] phoenixfriend:
Re: [APP][2.1+][01 Apr. - V1.13RC1] BetterBatteryStats

How to I add the file to my post on the app?

Note 2, yeah son!
[BetterBatteryStats] chamonix:
Only a dumpfile could tell... everything else would be assumptions
[BetterBatteryStats] pi-xel:
For instance, this user seems to have "normal" drainage on the same device.

And another thing: Do you have an external SD card in your phone? In a last desperate act, I removed it and it seems (tested only 1h) that I have better battery life so far. Will test this further overnight. For reference, my SD card does not contain anything but some mp3s and some CWM zips.

Edit: Original post with dump files: http://xdaforums.com/showpost.php?p=38489335&postcount=13663
[BetterBatteryStats] chamonix:
Re: [APP][2.1+][01 Apr. - V1.13RC1] BetterBatteryStats

This dumpfile shows 10 minutes screen on for 11 minutes runtime. My interpretation based on that info: the reason for the drain is you using your phone.

I know this is not what you are looking for but based on the information that you provided that is the only answer I can give you. Please take a few minutes next time to look at the dumpfile before posting it.
[BetterBatteryStats] chamonix:
Re: [APP][2.1+][01 Apr. - V1.13RC1] BetterBatteryStats

If bbs misses something then it would be a bug but there is no known error like that. For more in depth analysis please provide a dumpfile documenting the described behavior and I and others would be more than happy to look into it.
[BetterBatteryStats] chamonix:
Re: [APP][2.1+][01 Apr. - V1.13RC1] BetterBatteryStats

I indeed have seen a few occurrences of that problem without being able to tell I'd it is something that becomes more frequent recently (I have no representative stats in sufficient volumes for that yet but am working on that idea, that's the reason of the json exports).

Now bbs not showing anything does not mean that there is no known cause for the drain that you describe: the device being in deep sleep only means that the cpu is inactive but you still have a few pieces of your phone running. To name one there would be the radio (aka modem) that communicates with the cell network independently, consuming power that is not documented in bbs.

Have you tested if the radio/modem firmware has any effect on the drain that you describe?
[BetterBatteryStats] ram3n:
Not yet.

We have to live with it.
[BetterBatteryStats] tboooe:
I too have this problem. I am not sure if there is a reason or fix. It seems to come and go without any rhyme or reason. I have turned off sync, backup, etc. Even Log Service (Google Services) will go away for a few hours then come back...I think we may have to just live with it.
[BetterBatteryStats] :
Could be a coincidence, but when I'm on 3G I get similar amounts of wakelock (3-4 min/charge) from ActivityManager-Launch. I don't have auto sync on, only background data. If I'm on WiFi the wakelock is typically <60 seconds per charge.

I'm not overly concerned with the 3-4 minutes of wakelock.
[BetterBatteryStats] chamonix:
no bbs uses the batterystat service of android so it's userland not kernel. that is the reason why the proc dumb doesn't show userland details. At some point and for certain situations (eg no deep sleep) proc will certainly be helpful but we would need to think about the method before offering that info in bbs. Technically it's a no-brainer to render the result of a cat in the app. If you have knowledge to share about processing the data please feel free to post it here and I will take it up as a feature request to improve the overall process
[BetterBatteryStats] :
Just to follow up on this, and apologies if this is a slight derailment because of my lack of attached stats :o but as my email sync schedule (note: auto-sync always off) moves from "push" during working hours to "manual" after work, the ActivityManager-Launch wakelock time STOPS increasing. So it seems it's related to email. It seems to have a 1:4 ratio with MAIL_SERVICE wakelock.

I'll grab stats once I flash a new ROM later today and the experts can chime in on whether my assessment is correct.
[BetterBatteryStats] suku_patel_22:
Today I saw a strange behavior in my Desire battery stats.

When I woke up in the morning, i noticed that the graph go slightly up, marginally......

Dont know what happened, unfortunately, I ran out of juice in office and had to charge my phone and lost this graph

Hope to see again and post it here
[BetterBatteryStats] liquidzyklon:
Can anyone help?

I am having a battery drain problem. It comes and goes and I cannot pinpoint it to a specific or process. So here's the overview of the problem:

1) When the battery is behaving, the drain rate is about 2-3% / hour. I know the best battery drain rate can be as low as 0.5%/hour but expect somewhere about 1%/hour.

2) If the battery is not behaving, the drain rate is anywhere from 4-6%/hour. Below is my screenshots and I cannot figure out what is going on...

Over 7.5 hours, battery drained from 100% to 75% averaging 3.5%/hour drain rate. Not acceptable. From the screenshots, we can see that the phone had long awake times from the first screenshot. Better Battery Stats points to AlarmManager. I think there was a command that shows more details from the AlarmManager. What was it?

But then in my second set of screenshots, we still see that AlarmManager is the highest is wakelocks... I can't figure out the battery drain....

First Set of Screenshots - Wakelocks, higher battery drain

Second Set of Screenshots - Minimal Wakelocks, still high AlarmManager partial wakes
[BetterBatteryStats] chamonix:
The two first things I noticed when looking at your battery graph:

- in the first (bad) run wifi was on all the time, in the second not

- in the first run you have quite long awake times in the second not

The looking at the wakelock figures what I see (from the times) ist, that wakelocks can not be responsible for so long awake periods in the first run so I'd bet on wifi.

What sleep policy are you using?

Are there known problems with wifi on your ROM (e.g. VR3.0 has known cases of *****y wifi)
[BetterBatteryStats] chamonix:
Here's a little sneak peek into the new features I've been working on last week:

The battery graph had been requested for froyo but I noticed that the graph was missing on honeycomb as well. What it is going to be when finished:

- graphs for charge, wakelocks, wifi on, phone, scanning etc

- all series available as text and as dump

- larger timeframe than GB default

- precise timescale of events like long wakelock periods or high drains

Hope you like those.... I'm testing now so expect a release soon
[BetterBatteryStats] mauricetmk:
hi everybody,

i've brought a uk atrix weeks ago, rooted and everything, installed difference atrix rom and still experiencing the same problem - wake lock

i have searched everywhere, i tried turning off calender reminder, not using alarms, even switching to different roms and radios and yet the problem persisted, i really hope someone could shed some with the dumpsys that i provided.

at the moment my phone is up for 3 h and a bit, and on bbs, my alarm manager stated that the partial wakelock time is 1h 3m, and is increasing every second.

and i've spent days if not weeks searching for solution, and thanks for ur help in advance!
[BetterBatteryStats] chamonix:
First impressions:

- 14 minutes of wakelock goes to you listening to music while screen was off: this is normal behaviour and there is nothing wrong about it

- you have a few sync wakelocks (among other Gallery): you may want to check if the sync options are set as you want them to be and if you really need all those syncs

- I see a lot of network location activity so I assume you have one or more location aware apps/widgets: I suggest you check those and their refresh rate

- you are using cerberus (com.lsdroid.cerberus.Cerberus); I understand that app is suppose to just lay there till you need/use it so I wonder why it causes wakelocks. That app looks suspect to me

Summing up those and considering the side effects you should be able to reduce your awake time by more than a factor 2 (considering those same conditions)
[BetterBatteryStats] chamonix:
I'm sorry but I feel we are starting at thr wrong end here. I assume you have done your homework but please give us the possibility to follow your analysis and post the full BBS dump. Especially with custom ROMs I'd like to see the whole picture before starting to look at alarms.
[BetterBatteryStats] crypticc:
Thanks for your analysis on this...

Where did you see gallery wakelocks? I cannot see that all.

I did install google plus. I now see in sync settings it enabled a gallery instant upload and g+ sync even though I de-selected all those options in the app - naughty! I'll de-select see what happens.

I am pretty sure it isn't cerberus. that's the one thing that's never been changed, or ever a challenge to me - Yes - I also understand it uses push notifications. It's precursor simchecker pro was more of a challenge, but not this one.

Anyhow, good stuff for me to be trying out. Thanks for your time.

Chris
[BetterBatteryStats] liquidzyklon:
Thanks chamonix for your input. It was puzzling when I could not see anything in Better Battery Stats with such long Partial Wakelocks. From your pointer, I figured out that I have a i897 modem on an i9000 kernel. Long story short, I messed up a flash recently where I reverted back to JF6 ROM, updated to CWM3, and then Nandroid flash back to Apex 10.1 without updating the modem... Silly me. I've changed the modem back to KG3 (i9000 modem). Will monitor for a few days and keep my fingers crossed.

1) My wifi policy is set to Never sleep. Which I understand will still sleep the Wifi after 15 min of inactivity or something along that line from reading other threads.

2) I do not know of any problems with wifi on my ROM version: Apex 10.1. Also, my brother is running the same phone on the same ROM but does not experience that long duration of wakelocks.

The new version of Better Battery Stats looks pretty informative. Seems like a blend of MIUI's battery detail information, Battery Monitor Widget Pro, and stock Gingerbread battery detail information. Definitely look forward to the update.
[BetterBatteryStats] mauricetmk:
thanks for the reply, ive done lots of homework (i think lol), but just never ever be able to pin point the problem. and i couldnt quite understand the alarm dump, so hopefully you can have a look at it.

anyway these are my screen shots!!

and attached the full bbs dump too!

I own an UK atrix, currently running aura 1.2.2.0, using faux kernel, non-oc but uv, installed the 01.77.30p radio

tried different roms, eg alien, homebase, tried different radio, still no improvement, and if i remembered correctly, even cm7 suffer from wakelock problem.

please do give it a look if anyone have some free time, greatly appreciated..

p.s attached the alarm dump just in case!
[BetterBatteryStats] tboooe:
Event Log Services driving me nuts!

I cant take it anymore. Event Log Services (Google Services) is remains my #1 wake lock cause. No matter what I do I cannot pinpoint what is causing it. I've tried turning off Backup and AutoSync. Still no luck. Any more ideas anyone??
[BetterBatteryStats] beepsilver:
I didn't look back too far to see if you've posted this info already, but what are your stats? Phone, rooted/unrooted, ROM, kernel. When did your problem start? Have you loaded Gemini? If so, did you disable anything that could be causing your problem....like google framework services? Have you installed anything else to prevent google from being able to send/receive its logs? If rooted, did you wipe cache/dalvik cache?

Have you posted a dumpfile? Screenshots?

With more evidence we may be able to help.
[BetterBatteryStats] dzontra11:
Somebody can help about this huge wakelocks....?

I am on ki8..with speedmod k-10..

I have Gemini..cpy spy shows deep sleep around 95%.....so my question is....if my phone sleep well..what the hell is that blue brick during my screen is off?

Tnx a lot
[BetterBatteryStats] Karpfenhai:
Re: [APP][2.1+][01 Apr. - V1.13RC1] BetterBatteryStats

I can confirm it's not device specific, currently battery consumption on jb is a problem, on all Samsung devices (s2, s3, s3 mini) but on flightmode I personally lose around 0.1 % / hour on cyanogenmod.

For the s3 there was a fix recently, since then the standby drain was back to normal (also cm10.1).

I expect a hot fix from Samsung addressing this issue quite soon, the only reliable solution right now is going back to ics, or using cm10.1.

Only speaking for standby consumption!

All stock Rom users, I strongly recommend speedmod or speedmod based kernel for at least 2 full battery cycle, I bet you will see a noticeable difference.

And now please back to topic, this discussion is not bbs related or based on a dumpfile, thanks.

@Sven, could you implement a kind of verbose mode which suppresses wakelocks to appear after reference creation?

I mean the famous deleted wakelocks which appear also right after unplugging even if they should not be measured in the current period, it seems many people get confused and maybe it ruins the calculation as well?

Hope you got my point :D

Tapatalked from my Galaxy SII
[BetterBatteryStats] chamonix:
Re: [APP][2.1+][01 Apr. - V1.13RC1] BetterBatteryStats

I wanted to ask you guys if you can reproduce what may be a reproducible way to get empty stats in bbs.

I have done this test a few times and was able to reproduce it more that 50 put of the times.

The starting point is with the bbs main activity disposed, and watchdog active. I have two widgets 1x1 and 2x2 on my home screen and both are set to update at screen on time. I have debug logging enabled as well as root features.

When I turn on the phone and start bbs straight away I get the main screen shown from to from my prefs as unplugged to current but the stats are empty. If I look at the logcat I see that the references read are not the ones shown in the spinner (in my case the stats shown are screen on to scree the on and explains the empty stats but still the spinners are not showing that.

My theory is that this is a concurrency problem leading the stats that ai habe selected in my prefs are not available at the time of refresh because they are getting updated.

Why am I writing this?

Timing and concurrency can unfortunately not be debugged as the debugger introduces other timing conditions as does the simple fact that the phone has to be plugged in.

So I wanted to ask you if you can reproduce the problem under the same parameters before investing a huge amount of time adding traces that could help me in breaking down the problem.
[BetterBatteryStats] megosu:
I have tested several ROM with different modem firmware but it is always the same.

If the phone is in flight mode, the radio shouldn't be busy and drain the battery, should it ?
[BetterBatteryStats] Thomas_BA:
Sorry a little bit OT on/

Recommendation for ICS Stock on RAZR?

OT off/
[BetterBatteryStats] chamonix:
Re: [APP][2.1+][01 Apr. - V1.13RC1] BetterBatteryStats

That is correct, your battery should last a week at least with a drain << 1%/h

I know it's hard to implement but how long does it really last? The purpose of my question is to make assert that the battery level loss is correct.
[BetterBatteryStats] Karpfenhai:
Re: [APP][2.1+][01 Apr. - V1.13RC1] BetterBatteryStats

I'm sorry, the discussion turned around Samsung devices, so this recommendation is only valid for s2, s3 and galaxy note, my bad..

Tapatalked from my Galaxy SII