yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] pmd5700:
I finally got a decent idle dump. Anything look way out of the ordinary here? It seems to be a little high for my battery drain over 8 hrs. The android battery information shows the biggest two uses as AndroidOS and Android System.

http://pastebin.com/Fh4TBRMi

Thanks for all the help so far!
[BetterBatteryStats] chrone:
Any update regarding the mipi_link kernel wakeclock on vanilla jelly bean?

I couldn't find any deep information regarding what is mipi_link.

Thanks in advanced.:)

Sent from my Galaxy Nexus
[BetterBatteryStats] alexinna:
Attached dump shows that phone was awake 1 h 15 m 12 s during 7 h 53 m 51 s

I would say you do have room for improvement.

Your biggest issues are Exchange service and Google maps. Both have been discussed many times in this topic.

Please read post #3 (How-to and FAQ) that explains how to deal with maps and location services in general.

If you must use any other e-mails on top of gmail please look in this topic for recommendation but in general reduce refresh intervals or use "push". Also look at following apps to see if you can configure them better in terms of refresh:

com.fivemobile.thescore (): Wakeups: 32

free.reddit.news (): Wakeups: 31

com.bellshare.beweather (): Wakeups: 8
[BetterBatteryStats] truewt:
Ah having such poor battery life due to something, can any experts kindly help me on this please??

Attached is the dump..

By the way, can anyone advise how do I upload attachments through tapatalk app? Or is that not possible?? I read that tapatalk app itself should be possible, is xda blocking the functionality?? sorry for derailing the thread a little..
[BetterBatteryStats] alexinna:
Please follow instruction on how to create a proper dump file in post #1.

Phone needs to be idle. In your case you are still actively using it.
[BetterBatteryStats] paranoid2007:
Hi, can you please have a look at my battery stats? I'm getting the impression, my phone doesn't enter deep sleep at all. Is this correct?

Thanks for your help! :)
[BetterBatteryStats] chamonix:
The reading does not confirm that. I highly recommend that you update to the current bbs version as you will have many improvements.

Based on this reading I'd say that Wifi being on is the main cause of awake. An idle dump with current bbs will tell us more
[BetterBatteryStats] chamonix:
Please be more specific about the behavior persisting. Have you installed supersu from Google play? Please provide a log file showing what happens
[BetterBatteryStats] paranoid2007:
Thank you! Will check back with a new reading.

Gesendet von meinem GT-I9300 mit Tapatalk 2
[BetterBatteryStats] Rob2222:
@Chamonix:

BUG Report:

At least "since screen off" dumps by Tasker are still not complete.

Please take a look at that two dumps.

The first is created with Tasker, the second dump is created by hand.

Feature wish/idea:

Please include start ref and stop ref battery percentage. For example:

Level lost [%]: 9 (85% to 76%)

BR

Rob
[BetterBatteryStats] chrone:
care to check my BBS dump file? the highest reading is from mipi_link.

i also don't know how to read on what mah or watt i consumed per hour, and how to read the BBS 1x1 widget.

please shed some lights. thanks :)
[BetterBatteryStats] RickROM:
I am having this problem on the lastest version with Bugless Beast and ParanoidAndroid... had to uninstall the app cause it kept asking for permissions even after allowing them.

Not sure what changed recently with the app to cause problems, but I will reinstall it once this issue is fixed.
[BetterBatteryStats] Noed:
Searching the thread found I'm not the only one.

Using Revolution Rom 3.0.3 AOKP JB, comes with superuser 3.2

BBB keeps asking for su permissions

As a workaround, in superuser app, security options, I made it allow as default every request... not safe, but for now it works
[BetterBatteryStats] Emir5kurt:
Hello. Thank you for this helpful app.

I have a question. Even though I turn off GPS and disable maps. I still get ALARM_WAKEUP_LOCATOR a lot of times while the phone is supposed to be on deep sleep. I'm using a beta jelly bean rom on I717. I'm suspecting it might be because of google now app. Anybody could be able to prevent this wake up location on jelly bean roms?

I don't have a dump file right now but I'll leave my phone at night and I'll post a dump file in the morning. Thank you.
[BetterBatteryStats] ufjay5:
I am having a stay awake time on android os and car seem to figure out why. I am running synergy Rom 1.7 on Verizon s3. I have a friend with same phone and he had no stay awake time. I notice the time increases then decreases. Any help wouldbe appreciated. Thanks
[BetterBatteryStats] alexinna:
Not sure why did you provide so many dump files.

Anyway I didn't review all of them but the one I did shows that FB app is waking up your phone way too often:

com.facebook.katana (): Wakeups: 181 in 2h 50 min. To reduce battery usage please review update/refresh interval.

Next one would be Wi-Fi that was On and running all the time and this is reflected in a dump:

"wlan_rx_wake" (): 17 m 16 s (1036 s) Cnt:(c/wc/ec)931/0/931 9.5%
[BetterBatteryStats] ajskhan:
I'm in the same boat here. And I'm getting 0byte log files! (CM10 JB)
[BetterBatteryStats] erew1:
My phone used 12% of battery overnight with mobile data/wifi/auto sync off, which is not good.

Hope someone can have a look at the dump file and give me some advice.

Thank you.
[BetterBatteryStats] chamonix:
Instead you may want to read post #3 and fix the problem where is occurs: in the app managing su rights (not the one requesting for su)
[BetterBatteryStats] chamonix:
That is pretty unsafe. Read the FAQ in post #3 for a better alternative
[BetterBatteryStats] chamonix:
Next version of bbs will not have Alarms and network stats on by default. Users will be able to turn them on after having had a chance to understand that the application managing su rights is not bbs. I'm pretty frustrated by the negative ratings based on a wrong understanding of root on Android.
[BetterBatteryStats] chamonix:
I believe your problem is related to the Wakeups shown in Alarms.

50+ Wakeups on a few apps listed there means that you phone does not sleep for intervals longer than a few minutes.

The worst of them because I see nothing requiring a wakeup up would be mobile bible. If this app involves a widget then it's a design flaw as widgets should not use Alarms causing Wakeups but stick to non intrusive Alarms for refreshes
[BetterBatteryStats] Rob2222:
Maybe you should write in BBS market description, that this is a superuser issue and that they can resolve it by switching to SuperSU?!

Thats the case, if I understood it correct, right?

BR

Rob
[BetterBatteryStats] ykphuah:
That's a good option. I definitely did not and will not give you low ratings.

However, being a software developer myself, I failed to understand why is BBS the only app that have this issue. The popup will only be triggered whenever an app called the su binary, it makes no sense for the superuser app to keep prompting for permission when there's nothing that is done by BBS. With the superuser binary being such a common tool in Unix, my gut feel tells me the issue should be in BBS.

Having said that, putting an option to turn this off will be nice. I remember that BBS is useful despite not having root on my phone, maybe instead enabling/disabling Alarms/NetworkStats, just enable/disable root request straight away?

Peace.
[BetterBatteryStats] Miche1asso:
HI Chamonix,

it seems that after I reboot the phone AND I plug/unplug it, the 2x2 widget doesn't update clicking on it. I have to click on the bars to start the app and close, then it updates. Actually I think this is an old issue.

Among the other things, is there any explanation about what the bars in the 2x2 widget mean?? I looked everywhere, I couldn't find it! Thanks.

---------- Post added at 11:06 AM ---------- Previous post was at 11:03 AM ----------

I switched to SuperSU since the Superuser update of July, 1st. I've never been happier. Anytime I get Superuser back because I try a new ROM or kernel I b*tch for hours. Superuser became a POS. Just get a rid of it.
[BetterBatteryStats] alexinna:
Statistic from the dump file doesn't look scary.

Your phone is awake for ~25 min when screen was up for ~21 min during 6.5 h:

Statistic Type: (3) Since Unplugged
Since 6 h 41 m 22 s
Awake (): 24 m 53 s (1493 s) Ratio: 6.2%
Screen On (): 20 m 57 s (1257 s) Ratio: 5.2%

So it makes it 4 min actual awake time and I think it's pretty good.

Can you please try to reset battery stats as I described in this post and see if it will help.
[BetterBatteryStats] poundesville:
I have done something similar to what you've written. I drained the battery till zero and fully charged it to max with phone off. I didn't do the battery pull though, so I will try what you suggested.

Btw, I've also delete battery statistic from recovery and use ex-tweak reset fuel-gauge chip. And I have done factory reset and now running dual ROM, where on the second ROM, I installed the least apps.

I am very closed to conclude that the failure is on the battery itself. Remember, the 5.6% drain per hour is when the phone on flight mode, without sync and any wireless or data. I use to have 2% to 4% when I turn on everything at night. The drain is much worse when I actually used the phone.

Drain.. Drain.. Go away.

Please don't come another day

Little children wants to play...

Drain... Drain... Go away.

Thanks for your reply.

Anyone else can study my dump file?
[BetterBatteryStats] paranoid2007:
Hi again, I'm back with a dump from the latest version of BBS. Now can you please look at what is eating my battery?

Thanks in advance. :)
[BetterBatteryStats] AJerman:
Sorry if this has been discussed. I'm on mobile so my searching is a little limited, but I'm getting asked for root access repeatedly even when I tell it to remember the app. I'm not sure if this is something with the app or with my ROM (ATT One X w/ CM10). I'm using Superuser for my SU frontend, and I notice that Superuser is showing BetterBatteryStats twice, but both should be set to remember regardless.
[BetterBatteryStats] alexinna:
I was on the same boat and finally changed the battery. After stats reset new one works fine for me.

Good luck!
[BetterBatteryStats] :
Are you using superuser v3.2? That was the reason in my case, switching to SuperSu v0.94 was the solution. Now everything is fine.

Sent from my Galaxy Nexus running cm10
[BetterBatteryStats] alexinna:
Please start looking at the following apps:

com.rageconsulting.android.lightflow (): Wakeups: 5621
com.facebook.katana (): Wakeups: 3736

These two are biggest offenders for now.
[BetterBatteryStats] chamonix:
That option aims at two things:

- as long as su rights have not been granted references will not get saved as eg when the screen goes off the user won't see the prompt

- it's a good way to educate

About superuser failing I have a theory but have not studied the code yet: from what the change logs say the checks if an app had been granted so rights has been moved from database to file. BBS has the specificity to have two commands for network stats and alarms. Assuming a right is identified by the caller uid and the command and there are two entries in the file (for 2 commands) a sequential search for the first occurrence of a uid may deliver the Wong command, depending on how the sorting and sequential search is made.

Another thing I have seen but can't explain or reproduce is that on cm10 latest the requesting uid sometimes appears as 0 (root) and sometime as the correct uid (that suggests a problem in the su binary). But again, this is just theory, there may also be a problem in the way I issue su commands leading to this behavior.

Unfortunately I don't have the setup to compile superuser not to debug it remotely. I have dropped the author a mail but have got no reply yet so I may invest some time writing a test app to provide more details to reproduce the problem
[BetterBatteryStats] chamonix:
The answer is in post #3
[BetterBatteryStats] chamonix:
Even if the dump file looks borked your problems are light flow and Facebook, waking up you phone.
[BetterBatteryStats] paranoid2007:
Thanks for your input! Will have a look. Facebook of course is well known suspect.

Gesendet von meinem GT-I9300 mit Tapatalk 2

---------- Post added at 09:09 PM ---------- Previous post was at 09:08 PM ----------

Thanks for your help. Will try to uninstall both and see if it helps.

Gesendet von meinem GT-I9300 mit Tapatalk 2
[BetterBatteryStats] AJerman:
Perfect, thanks guys. Installing SuperSU from the market and reinstalling the su binary for SuperSU fixed the issue as mentioned. Sorry I missed that, I read the first post and then saw a huge changelog and missed the third on mobile. Keep up the fantastic work chamonix!
[BetterBatteryStats] itsLYNDZ:
I'm still getting bad battery life after replacing my phone and flashing a custom ROM. Even went thru 3 different batteries, so its not that. Any ideas? Bad flash? Was never bad on old phone. Could I just reflash? After my nightmare of trying to odin to stock on my last phone I really don't want to do that. Bad root or CWM? Dropped from 94 to 70 in 2 hrs just sitting on my desk
[BetterBatteryStats] truewt:
hi guys i try to follow the instructions, leaving the phone untouch for a good 7 hours (while sleeping).. please help!! batt drain like crazy :(

on wanam lite ROM with siyah 1.5 rc1 kernel
[BetterBatteryStats] xelra:
Location, plume, doggcatcher.

Check those out, then make another dump.
[BetterBatteryStats] truewt:
Thanks for the prompt response! How do I turn off location? Under the location app?
[BetterBatteryStats] alexinna:
Please read this post by Karpfenhai for detail instructions.
[BetterBatteryStats] shawnaye:
anyone?
[BetterBatteryStats] poundesville:
Hi Alexinna,

Done all the steps. Still draining like nobody business. Grrrr....
[BetterBatteryStats] alexinna:
One last thing you can try before concluding that battery is not good would be full factory reset.

The same happened to me. I tried everything and nothing helped until I changed the battery.

Sorry but I don't have any other suggestions.
[BetterBatteryStats] flute:
Can anyone suggest how to solve this wake lock

AudioOut_3

1013

Is draining my battery so fast :(

Thanks

Inviato dal mio GT-I9100 usando Tapatalk
[BetterBatteryStats] alexinna:
Based on a dump you lost 0% in 5+ hours. Something is wrong. Maybe you can try to follow steps described in post #1 and create dump since unplug. Current file shows that location, maps and exchange are the biggest offenders:

com.google.android.location (): Wakeups: 163
com.android.exchange (): Wakeups: 35
com.google.android.apps.maps (): Wakeups: 27
[BetterBatteryStats] Rob2222:
This is possible. At least with some cheap batteries. Take a cheap replacement battery from china, it has a high input resistance. Now create a huge drain f.e. by watching youtube video. Cause of big drain the battery voltage decreases (for example to 3,70V) for the time of the big drain. After a while the fuelgauge shows the % value for 3,70V. Now end Youtube, hit power button and let the phone idle. The battery now almost has no drain and the voltage is relaxing to maybe 3,80V. But the fuel gauge will not raise the % again. Then you can let the phone idle for some hours and the voltage goes to 3,70V slowly. Now switch on the phone and see that the fuel gauge didnt changed the % for some hours.

I had this phenomenon also.

A similar phenomenon you can produce, by creating a high drain on SGS2, shut it down, remove battery. Now fuel gauge is reset. Now insert battery. Fuelgauge must make a initial % estimation but the battery voltage is not relaxed, cause you created a huge drain, short time before. Now the fuel gauge makes a "to low" % estimation. But now it doesn't increase the %, cause it would be a "self charging battery". Instead of that it just hangs at the % value, until the real value is meeting the real % again.

I made a BMW screenshot from such a sitiation.

Blue line is the real charge state, yellow line is the "real" % state.

BR

Robert
[BetterBatteryStats] itsLYNDZ:
Thanks! Ill try resetting the battery
[BetterBatteryStats] shawnaye:
Well. The percentage lost isn't really bugging me. More of how I lost it. Maps and exchange you say. But both my Wifi and data aren't switched on. For exchange that is.
[BetterBatteryStats] poundesville:
If I understand you right - the battery % gauge is based upon the Voltage. It's estimated the battery % too low after a huge drain and therefore will not self-adjusted itself to higher number (e.g. if it's estimated 40% although it's actually 50%, it won't adjust when the voltage return to normal 'relax' stage).

If that's the case - it happens to both Galaxy S1 and my Galaxy S2 before. If you use ex-tweaks and reset fuel-gauge chip, it'll drop the battery % to a low level and it shall remain there when the actual value catch up with the earlier lower estimate.
[BetterBatteryStats] alexinna:
I think app will wake the phone even if data/wi-fi is not on. Also I only pointing out what BBS dump is showing.
[BetterBatteryStats] itsLYNDZ:
Anything from mine on the last page?
[BetterBatteryStats] alexinna:
Please look at location services:

com.google.android.location (): Wakeups: 31

Also

"sdio_al" (): 7 m 1 s (421 s) Cnt:(c/wc/ec)-259/0/78 -1.2%

is on top of a list and needs to be reviewed.

Not completly sure what it is but it could be related to sd card if you are using one.
[BetterBatteryStats] Rob2222:
On the SGS2 and SGS3 that battery % gause is based on "long time voltage observation" by the fuel gaue ICs (MAX17042, MAX17047). The gauge IC is relative correct and cause it only listens to the voltage. The positive sideffect is, that it needs absolutely no calibration like coulomb counters need. The problem is, when you insert a new battery, the fuel gauge IC has to make a initial guess. And the IC is assuming, that you put in a relaxed battery. I think I read that the battery is relaxed after 30 minutes of no drain.

Cause of that problem, it can happen that the fuel gauge makes a "to low" estimation. And then, after a while, even if the IC knows that the estimation is to low, it wont correct the % to the correct state. If it would correct the % upwards, I think the hotline would get thousands of calls, why theire smartphone battery "charges without charger".

And cause of that "not correcting upwards" problem, our drains in %/hour we talk about in this thread can sometimes be highly incorrect.

But unfortunately we cannot do something against it.

best regards

Robert
[BetterBatteryStats] alexinna:
Interesting information. Now I understand why after I replaced bad battery I didn't see any improvments right away.

Thanks for sharing.
[BetterBatteryStats] Rob2222:
Even one more problem raises when using different batteries.

Just think you have a original battery with real 2000mAh and a second, cheap china battery which is labeled with 2000mAh but in reality the cheap china battery has only 1000mAh. (Just to take an example)

Now, when the phone has a real drain of 200mA, you will loose 10% / hour when using the original 2000mAh battery.

Now, when the phone has a real drain of 200mA again, but you are using the real 1000mAh battery, you will see a drain of 20% / hour.

The real drain of the phone is the same, but with one battery you get "10%/h" and on the other battery you get "20%/h" for the same real drain, caused by the difference of real battery capacity.

On SGS3 my original battery had a real capacity of 2050mAh, and the four tested china batteries all have 1300-1400mAh only, but they all are labeled with "2100-2300"mAh.

Best Regards

Robert
[BetterBatteryStats] alexinna:
And sometimes we are paying like for a real thing but it behaves as a cheap clone. :)

The original battery in my SGS3 was made in China btw.
[BetterBatteryStats] Rob2222:
I have no problem with these batteries, 1400mAh für $2.99 incl. delivery is perfectly OK.

The problem is just that they are labeled with 2100mAh and when you make drain comparisation with such a cheap battery you maybe hunting a ghost drain, cause you didn't know that the battery just has 1400mAh.

BR

Rob
[BetterBatteryStats] alexinna:
Yes this is exactly the point I'm trying to make.
[BetterBatteryStats] chamonix:
Stay tuned, when I get up in the morning I'll push 1.10b1. Teaser is in the changelog
[BetterBatteryStats] :
Hello to all,

I am speaking for the Atrix 4G CM10 community. We are having a high battery drain related to mobile data connection and no one seems to have an idea of what is causing it. I am still learning how to use this useful app, but all I have or now is this screenshot.

See the bottom two bars? It shows some usage, after a couple of hours of having the phone only on mobile data, it shoots to the top of the list. I know there is a way to generate a dump file, can anyone tell me where this file is saved? Thanks everyone for their time and help.

Sent from my MB860 on CM10
[BetterBatteryStats] Tungstwenty:
Is there a way to know the real mAh's?
[BetterBatteryStats] itsLYNDZ:
Does anyone know what I can do to fix the sd card thing? Or how to stop that location service issue? I have everything under Maps and Google services framework disabled in Autostarts. Also logged out of laditude. Not sure what else to do. But whatever it is, its sure sucking the life out of my battery. Losing 20% while sitting on my desk untouched for an hour sucks.

Edit: i just charged it to 100%, unplugged it, plugged it back in and it said 96%. I even wiped battery stats before booting the phone and charging it fully.
[BetterBatteryStats] Rob2222:
Yes, but you need additional hardware.

Variant A is a professional li-ion / li-poly charger/discharger, which can evaluate the capacity. (around 80 Euro upwards) For example Hyperion EOS.

Variant B is you build yourself a constant current sink (google). I have a constant current sink, that sinks contant 250mA in the voltage range of 2,5 to 5,0V. Then you just charge the battery, connect the constant current sink and then you take the time until the battery is at 3,0V (or at the voltage youre interested in). So if the battery is at 3,0V (empty) after 5 hours, x250mA, the battery has a capacity of 1250mAh.

Most easy current sink (I know) is a LM317 with a matching resistor. (google)

REALLY important is, that you have to disconnect the current sink manually at 3,0V. If you forget it, you deep-discharge and damage the battery.

BR

Rob
[BetterBatteryStats] alexinna:
Dump file will be in a root directory: /mnt/sdcard or something like this

Also 2 last bars have nothing to do with battery drainage and only shows that phone didn't have Data 3G/4G connection (Wi-Fi was used) and last bar reflects information about signal. In your case both values are the same because you didn't use Data connection.

Please follow up directions from post #1 in this topic to generate dump file.
[BetterBatteryStats] poundesville:
Another piece of good info. Thanks
[BetterBatteryStats] wadokai:
Hey guys,

I'm having two things on my list that are of concern "Overflow" and "audio"

I have my haptic feedback and touch tones and all that disabled...

please take a look at the dumpfile and please advise on how i can decrease the wakelock power consumption, thank you
[BetterBatteryStats] alexinna:
Attached dump file shows lots of 1013 processes. I believe 1013 is a media server process.

Are you using some kind of Audio related app?

Phone needs to be idle to make the dump that will be useful for research.
[BetterBatteryStats] fiendskillz:
Can anyone help me understand what may be draining my battery? And how to fix it? I have a 4200mAh battery and I should be getting more juice out of it
[BetterBatteryStats] chamonix:
Release 1.10b1

Release is up as well as change log. I hopy you like it!
[BetterBatteryStats] M.A.K:
The new beta force closes when I press the menu button.

Still getting the 'no reference set' for kernel wakelocks but I'm also getting it for the 'other' stat's too.

Can't check the dump as I can't access the menus.
[BetterBatteryStats] suku_patel_22:
What is the menu item "Test" supposed to do?

Tapatalked from a Desire S with Kernel 3 built from One V sources. Take that HTC!!!!!!