yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] TKD29:
I have a problem with AlarmManager...

https://www.dropbox.com/s/ebdk9ccfn89z5fj/BetterBatteryStats-2014-05-31_204134536.txt
[BetterBatteryStats] navdra:
Same here. It started to chew through my battery yestwrday.

https://www.dropbox.com/s/sqlf7f9347hk0no/BetterBatteryStats-2014-05-31_211655060.txt
[BetterBatteryStats] Kalaxy:
Battery drains

Hello sir, last night I did the factory reset and the phone was 97% charged. This morning it only 46%. So I was right about factory reset, it doesn't help. I have already done it before so what now might be the problem..?? Any suggestion from you.

Thanks.
[BetterBatteryStats] Cano3247:
My battery is draining during the night

I alredy try another battery but the drain coninue, usually it's like 20% in 5 hours, please check the attached files.
[BetterBatteryStats] Karpfenhai:
Okay, let's try to get this straight [emoji3]

There is one part of your device which you cannot control or measure, which is independent from your Android.

That's the gsm part, also known and baseband or modem.

This tiny little black box here is unfortunately able to produce a tremendous amount of drain, per example if your network coverage is really bad.

You have already ruled out the battery, it's working normal in other phones, good.

Your dump looks almost perfect too, so the Android part had been ruled out as well, good.

What's left is the modem part , to disable it, simply turn your device into flight mode, and check if the drain persist.

If yes, bad, then flash another modem. If if cannot be solved this way, bring your device back to a dealer and claim for warranty, the s4 should still have one.

If the drain is gone, you should concentrate to your gsm part, like flashing other baseband or setting your device to use 2g only over night.

Good luck!

Regards

Tapatalked from my Galaxy SII
[BetterBatteryStats] matejdro:
How is it possible that PowerManagerService.WakeLocks shows a lot longer time than all partial wakelocks combined?

For example in included log, PowerManagerService.WakeLocks shows nearly 8 hours, but longest partial wakelocks are 30min, 11min, 10min and then bunch of very short wakelocks (< 10min).
[BetterBatteryStats] Rangs641:
Hello All, I recently purchased BBS when I realised that the phone wake time is way more than screen on time. Sometimes the wake time is at least an hour more than the screen on time in just one night. I am on resurrection remix 5.1.3 with Boeffla kernel. I had the same problem on 5.1.1 also, but only worse. So I did a full wipe when I flashed 5.1.3 a week ago. I have taken a bbs dump as suggested in the first post. Please have a look and suggest what could be done to fix this problem.

P. S I use a zerolemon battery 7000mA in my phone
[BetterBatteryStats] Avishai1b:
My nexus 5 is loosing 1precent per hour approx when sleeping but if I start using it battery flies down, might be because using app root I have set many apps off at "keep awake"?

Thanks
[BetterBatteryStats] chamonix:
I have created two CWM ZIP packages for those who have problems installing the system app from the app.

Once tested/validated they will go to the release post.

If something does not behave as expected please post the CWM log (from advanced). I'd also be happy to hear if the packages work on other recoveries.

The CWM scripts were moved to post #3
[BetterBatteryStats] chamonix:
Wow!

I just notices the thread has passed the 4 Mio. views. That is thanks to your tireless support. You have made this thread to place to go to when it comes to understanding the battery drain of your favorite smartphone.
[BetterBatteryStats] Shahan_mik3:
Hey can u please update the thread title?? Ppl might think app is not being updated from NOV.

Just a suggestion :)
[BetterBatteryStats] chamonix:
It will be update when 1.16 reaches the release candidate status (RC). I tend to not actively advertise betas as it is not about distribution but about feedback.
[BetterBatteryStats] harrisc:
Motorola Razr M

My Motorola Razr M often has high power usage. Today My phone was not used very much at all and used 99% of the battery in approximately 5 hours. I have attached the Better Battery Statistics. I cannot see what is causing the problem.

I would appreciate any information to indicate

1. What is using the battery.

2. What can I do to reduce the battery use in these circumstances.

Regards

Chris Harris

Adelaide

Australi
[BetterBatteryStats] passlogin:
I want to given an advice how I can improve my battery life

I need GNow and it's location services.

Thanks in advance
[BetterBatteryStats] Perseus:
First off, you need to enable Root features of BBS from under settings. Otherwise we can't see Alarms in the Log. Next, your wireless was on and running during this time. This made several apps such as Facebook, Droidmail, G+ to not sleep. Out of your 5 hours and change of Log, the phone was awake for 3 hours or so. There's your problem. First off go to settings > Wireless > Advanced and then set "Keep Wifi on During Sleep" to Never. Don't worry about your notifications as they will come when the phone wakes up. If notifications are critical to you, then the cost is in battery life. Do please turn off Google Location Reporting or Location Services. In this log, the phone was extensively used. Can you reboot after the above changes and leave the phone alone overnight ? Post the log again in the morning.
[BetterBatteryStats] mdamaged:
Also, disable fast dormancy and reboot, recharge, let sit idle and see if it's helped.
[BetterBatteryStats] Perseus:
There is a Mod by [MENTION=4355376]Karpfenhai[/MENTION] that was posted earlier in this thread. I had re-linked several times. Please apply that. You will need System Tuner app.
[BetterBatteryStats] passlogin:
Without the mod, is there anything else that causes drain?

Edit: I don't have Maps installed, and disabling Location wrecks GNow
[BetterBatteryStats] Perseus:
Yes I saw you don't want Location touched. So I Did NOT suggest that in the first place. The Mod is the only thing else that can help you save the battery. If anything remove Facebook.
[BetterBatteryStats] SteveMurphy:
Perseus, haven't had the chance to congratulate you on the new title; very well earned!
[BetterBatteryStats] chamonix:
Gee I didn't notice at first. Look very fancy [MENTION=3639717]Perseus71[/MENTION] , congrats!
[BetterBatteryStats] harrisc:
Motorola Razr M

I changed WiFi on during sleep to off except when plugged in. I turned off location services. I could not find any reference to fast dormancy.

I recharged the phone and then rebooted and left it all night. The new battery stats is attached.

Is there anything else I need to look at?

Cheers

Chris
[BetterBatteryStats] mdamaged:
FDCompleteTime is killing your battery, that has to do with fast dormancy and your provider. Contact them to see how to disable, or flash a different rom/radio, or reset to factory, or change providers, or change devices, or live with it.
[BetterBatteryStats] Karpfenhai:
First get fast dormancy sorted, then we take care for what's left.

Freeze Modem Fastdormancy Monitor service with titanium, set email client to pull every 15 minutes instead of push (if applicable at all).

This should have a measurable effect on your battery life, please report back, regards.

Tapatalked from my Galaxy SII
[BetterBatteryStats] FrizzerACE:
I'de like some help in this.

I've installed yesterday a new rom (Neat 4.4.2 v5.0) and I saw a anormal battery drain. By some advices I've installed BBS 1.15 but I am some noob in this.

As I have seen in firsts posts the dump files must be in folder Android on sdcard but in my case they aren't.

Do you know any post or any place I can learn some more about the process?
[BetterBatteryStats] Perseus:
Thanks Guys for the kind words. Its just like Directory Assistance.

Since you are on Kitkat, your file will be under /data/data/com.asksven.betterbatterystats
[BetterBatteryStats] FrizzerACE:
Do you mean on sdcard?. I haven't any "com.asksven.betterbatterystats" on any folder data,
[BetterBatteryStats] Perseus:
No I do not mean SDCARD. I am referring to the path from Root. You may need a Root Explorer for this.

You may also set the location BBS data to /sdcard from within BBS Settings.
[BetterBatteryStats] FrizzerACE:
Ok, I think I find it. BBS generated file attached. It will be just this or I need any more info. Thanks for the help.
[BetterBatteryStats] Karpfenhai:
No clue what you did but this file you attached is wrong :)

It looks like a config file but not a dump, try again, btw, I'm on kit Kat I've installed bbs as system app but my dumps are showing up in the root of my internal sd anyway.

Take a closer look.

Regards.

Tapatalked from my Galaxy SII
[BetterBatteryStats] ccoager:
How am I looking now? Still getting deleted wake locks, I think they are coming from Tasker but not sure. How does K-9 mail look since I've changed it to poll instead of push?
[BetterBatteryStats] winamp26:
my battery usage on 3g. i think its good.

isnt it?
[BetterBatteryStats] linus98:
Hello guys, you can take a look at my log? Thank you.

https://www.dropbox.com/s/1e0j1b4wskitlwe/BetterBatteryStats-2014-06-04_073943725.txt
[BetterBatteryStats] Vlad Paul:
Hi! [MENTION=1330150]chamonix[/MENTION] , add please battery percentage feature in status bar. Thank you!
[BetterBatteryStats] amjath:
nlpcollectorwakelock help

Hi,

Any suggestions for my nlpcollectorwakelock

https://drive.google.com/file/d/0B5X_w2X1foo5cDBzRERsNG9fYzg/edit?usp=sharing
[BetterBatteryStats] Perseus:
K9 is looking good. You will have to reboot if you see deleted wakelocks. Yes Tasker might be the cause.

Yes looking good for normal usage.

Network Location Provider (NLP) Wakelocks occur when Location Services are on and being used in one form or other. I'd turn off Google Location Reporting.
[BetterBatteryStats] chamonix:
There are many apps doing that and I don't consider that as a feature fitting to the use case behind bbs. please feel free to try convincing me of the benefit of such a feature if you think otherwise
[BetterBatteryStats] donalam:
what is the main benefit of this app ?
[BetterBatteryStats] Vlad Paul:
I think the battery percentage in the status bar is one of the most important indices battery monitoring. In fact this is the objective of BBS application, to monitor the battery. Why should I install another application for that if BBS is the most important application for monitoring the battery of my phone? Please take into consideration my proposal. Thank you!

I give you one example: when the battery is discharged too quickly, that percentage in the status bar might turn red and we would warn that way to check battery monitoring parameters in BBS.
[BetterBatteryStats] Perseus:
Are you Serious ? You clearly DID NOT read the First 1 or 2 Posts of this thread. If you really need to know that, then you really should not be using this app.
[BetterBatteryStats] mdamaged:
It's helped me loose over 50lbs in 15 days! Women who wouldn't speak to me before, flock around me since using this app!
[BetterBatteryStats] RJQXCV:
Don't forget the money you won. Sooo much money.
[BetterBatteryStats] Osid:
Samsung Galaxy Nexus GSM (maguro)

Android 4.4.2 (ShinyROM)

Franko Kernel r396

Stock Battery

Attached a normal session.

How Can I reduce battery usage?

Average battery consumption, under a lot of 3G/HSDPA+ and screen on, is 14-16%/h. It's normal?

I need geolocation.
[BetterBatteryStats] harrisc:
Motorola Razr M

I changed WiFi on during sleep to off except when plugged in.

I turned off location services.

I froze Modem Fastdormancy Monitor service with titanium

I set email client to pull instead of push.

I recharged the phone and then rebooted and left it all night. The new battery stats is attached.

Is there anything else I need to look at?

Cheers

Chris
[BetterBatteryStats] Karpfenhai:
Okay, it's still far from perfect but way better this time!

Next step, rework your sync settings, do you really need all those?

Or would it be sufficient to sync them either manually or 1-2 times a day using tasker / Llama per example?

First turn it completely off, also for g+, then enable what you cannot resign.

Wow, sync is really tremendous...

Mail.. 821 alarms out of 8 hours is one alert every 30 seconds, don't seem like pull every 30 mins to me :D

Maybe it doesn't like Wi-Fi being off, set to never sleep again.

Don't give up, you're on the right path to eternal battery life [emoji14].

Regards

Tapatalked from my Galaxy SII
[BetterBatteryStats] Avishai1b:
My nexus 5 is loosing 1precent per hour approx when sleeping but if I start using it battery flies down, might be because using app root I have set many apps off at "keep awake"?

Also sometimes while charging in my car using original charger, and multitasking (Waze Bluetooth call) battery goes down!

Thanks in advance
[BetterBatteryStats] Nightshadow931:
Guys, what is multipdp wakelock?
[BetterBatteryStats] chamonix:
revoking the permission of an app to hold a wakelock is not a wise thing to do. You will cause erratic app behavior, most probably causing a higher drain because steps can not complete when the app can not hold a wakelock. Remember that a wakelock is not the cause of the drain but a a symptom.
[BetterBatteryStats] Perseus:
Don't believe that's normal. If you want Geo Location of the Photos then that's fine. But please freeze Google Search instead. Also please post an Idle Log overnight for more accurate analysis.

I believe that's Samsung's Version of Bam_Demux I guess. Goes towards a tower lock.
[BetterBatteryStats] Osid:
Yes, I want Geo Location On and Location reporting and history. I've always searched a tool for limiting rate of Nlp requests but I haven't found anything.

Regarding Photos, I want location only when I shoot photo with camera.

Freezing Google Search? How? With greenify?

Freezing broke functionality of Google Now in foreground and background functionality like measuring time walking vs driving and/or last park location and/or meteo, etc.?

I use Google Now "on demand" but I would to record some info like park location for example.

How can I achieve this in a battery friendly mode?
[BetterBatteryStats] Perseus:
These Apps are not Battery Friendly. There's nothing that can be done in this case.
[BetterBatteryStats] Sir_gpm:
What is the difference between the two apps? (paid & free).

Enviado desde mi Nexus 4 mediante Tapatalk
[BetterBatteryStats] Osid:
Even using Per App Hacking (an Xposed module) in order to delay Alarms, setting a large alarm multiplier (ex. x10) as a trade between functionality and battery?
[BetterBatteryStats] Perseus:
Don't believe so. These apps being so tightly integrated, they are likely to ignore this setting.
[BetterBatteryStats] monkeyjustin22:
Can anyone help me with this? It is on an AT&T S5 with an extended battery. I seem to be getting worse life than some people with stock batteries. But it is still better than when I was using the stock battery. I'll charge it up and do an overnight, I didn't know that was what I was supposed to do until I just read this thread. I just have no idea what I'm looking at.
[BetterBatteryStats] Perseus:
Yeah Overnight Idle Log will help. Unfortunately you are not rooted. So it does not help a lot.

Based on what I do see, you have significant wakelocks while on Wireless. Perhaps there are chatty devices on the wireless network.
[BetterBatteryStats] speedy56:
I´ve been digging a bit this thread and I´ve found this, but I couldnt find which app is that. Does anybody know?

Sorry for jumping like crazy into the thread with this (unusual) question :o
[BetterBatteryStats] an0n981:
Android Tuner
[BetterBatteryStats] snapdesign:
Hey guys... every now and then my screen refuses to go to sleep... today i was napping and received a whatsapp msg and my screen was awake for more than 1 hour...normaly a reboot fixes this...

I have bbs stats but i don't see nothing... anyone can take a look? thanks

Nexus 4 - SlimKat - Hellscore kernel
[BetterBatteryStats] Perseus:
Check your Rom Settings for Screen timeout. It could also be the SlideLock you are using. Mini Tasker has been keeping your phone awake.
[BetterBatteryStats] FrizzerACE:
Hi

Can anyone take a look at this files?

The first the phone was almost quiet with no operation in general and the second taken after some frezzes when the wifi turned on.

https://www.dropbox.com/s/20rtwzhzlb1fjwj/BetterBatteryStats-2014-06-06_121526101.txt

https://www.dropbox.com/s/z74megsgs0tmxz6/BetterBatteryStats-2014-06-06_150037884.txt
[BetterBatteryStats] Perseus:
I'd take a look if you can post the log here as attachment. I have firewall issues.
[BetterBatteryStats] FrizzerACE:
BBS creates the logcats with this text only "Unable to open log device '/dev/log/main': No such file or directory"
[BetterBatteryStats] Perseus:
Did you install the App as a System App and Grant Root privileges?
[BetterBatteryStats] FrizzerACE:
Yes
[BetterBatteryStats] Perseus:
In that case you should be able to get a Text log to post here.
[BetterBatteryStats] chamonix:
Are you maybe using a custom kernel with logging g turned off?
[BetterBatteryStats] FrizzerACE:
I don't know. I'm using Apolo_7.0b_CM_Regular
[BetterBatteryStats] Karpfenhai:
Then you need to re enable it via plain text file here:

But hey, this information is not a secret, don't bother reading the op of your kernel thread...

http://xdaforums.com/showthread.php?p=41742325

Regards

Tapatalked from my Galaxy SII
[BetterBatteryStats] Nightshadow931:
I found this

The multipdp / svnet-dormancy wakelock

This wakelock indicates a high network usage. If this wakelock is #1 go to the Network Stats to find out more.

But there's nothing unusual in network stats though.

Any way to reduce it ? 'cause it's happening a lot lately, keeping my phone away from going into deep sleep.
[BetterBatteryStats] Perseus:
Toggle Airplane mode briefly or reboot.
[BetterBatteryStats] frankieGom:
Using BBS on a Note 2 (N7105) running DN3v4 beta 2 (Kit Kat based)

I get the install as system app failed as well. I did what you recommend, and still BBS system app menu tells me BATTERY_STATS & DUMP are not granted, and when I go to menu/more/graphs, I get the popup about BATTERY_STATS not bein g available anymore, yet see the graphs being displayed in the back until I touch OK.

Is this what is expected? I'm not quite sure what to expect, but on the face of it, it does not sound right...
[BetterBatteryStats] fndpena:
Anybody else notice data-stall wakeups, from phone process, after 4.4.3 update on Moto X?

I never had this on this phone until now :/
[BetterBatteryStats] Bonoboo:
[MENTION=1330150]chamonix[/MENTION]

Thanks for unique app!

I have two questions.

1. Is it normal, that app consumes a lot of RAM in background?

Due "Process stats" in developers menu on 4.4 it's on top with peak 81 Mb.

On second place usually apps with 15-30 Mb

No, I have a lot of free RAM, but guess this really huge value in compare with other.

Screenshot:

2. Why app sends some data over Internet even if Google Analytics disabled in settings?

Is this silent crash-reports? But button for send it available while crash too.
[BetterBatteryStats] damian5000:
Is this not working for Aliyun based ROMs? The kernel wakelocks are completely blank even though GSAM is showing kernel is keeping the phone held awake.

Perhaps kernel wakelocks are logged differently with Aliyun?
[BetterBatteryStats] chamonix:
Thanks for the warm words.

I am working on the memory leak issue #450

The data traffic that you mention must be the retrieval of the knowledge base, a regular check is made to look for a newer version. I you want you can disable that from the advanced settings.
[BetterBatteryStats] chamonix:
The only way to tell would be if you provide a logcat
[BetterBatteryStats] Bonoboo:
Thanks for quick answer, now it's clearer.
[BetterBatteryStats] allansy:
Wakelocks!

Unfortunately, my phone is not rooted. Any other way to investigate on the cause?

Thanks!
[BetterBatteryStats] chamonix:
1.5RC3

1.5RC3 is up, I hope this is the golden candidate.

Changes since last RC:

- added "-" between filename and timestamp for all dumps

- fixed FC occuring upon dump under certain conditions

- added a service to avoid leakage of broadcasts (ACION_BATTERY_CHANGED)

- added proper message for any stat/stat type missing a reference (yet)

- updated readme

Thank you @suku_patel_22 for you systematic testing and precise error reports.

File is in post 2
[BetterBatteryStats] suku_patel_22:
NP always a pleasure

Swyped from my Desire S
[BetterBatteryStats] suku_patel_22:
We never needed a service for BBS to work, why the sudden need of a service? What data leaks were occurring?

Swyped from my Desire S
[BetterBatteryStats] suku_patel_22:
This looks fine, no force closes

would suggest to add a toast notification with file name once dump to file is completed. Hard to know if dump is completed

Will run app on logcat and let you know if I find anything

Swyped from my Desire S
[BetterBatteryStats] chamonix:
The need for a service is related to the automatic creation of references for kernel wakelocks (and in future for creating references when screen is turned off in order to collect precise data "while screen was off").

In order to create a reference for "since charged" there is a broadcast ACTION_BATTERY_CHANGED to register to in order to recognise when battery is full (BatteryManager.BATTERY_STATUS_FULL).

Unfortunately there is no way to register to this broadcast declaratively by adding a <receiver> to the manifest because that broadcast is not supported in the manifest as you can read here: http://developer.android.com/reference/android/content/Intent.html#ACTION_BATTERY_CHANGED

Now to solution is to programmatically register that broadcast as suggested in the SDK. In order to do that it must be made sure that the Activity registering the broadcast is not removed from memory so it can't be done by simply registering the receiver from the main screen (as every activity can be removed from memory at any time when not displayed). That's where the service comes in, to provide a proper place to hold the registered receiver.

You can seen the code here:

- the receiver itself doing nothing that waiting for the battery to be full: https://github.com/asksven/BetterBa...betterbatterystats/BatteryChangedHandler.java

- the service doing nothing except registering and holding the registered receiver: https://github.com/asksven/BetterBa...erbatterystats/BetterBatteryStatsService.java

The alternative to that design would have been to poll on the battery status but this would have involved alarms and wakeups. For that reason the alternative is not good for me as in my opinion the service is no cause for wakeups, cpu usage or wakelocks.

Edit: The leak I mentioned earlier is a "broadcast receiver leak" and is reported when an activity that registered a receiver is removed from memory without having unregistered that broadcast.
[BetterBatteryStats] chamonix:
I noticed two things in the log looking for "StatusBar":

- it seems that you have some CPU usage display in the statusbar

- there are occurences of adding/removing "MiniCon" from the status bar (whatever that is"

- I see quite a lot of "UPDATE" event

If this is not complete nonsense I would try to remove whatever addons are running in the statusbar to see if the wakelock settles. From my perspective is looks like some addon misbehaves but again, maybe my understanding is not right.
[BetterBatteryStats] chamonix:
First make sure you are using the current version of Maps, there has been some fixing since 6.0x in the last weeks.

There there are some advanced settings in Maps controlling the way maps caches data (Settings - Cache Settings).

And finally the activity of Maps in depending on what (if any) location provider you have active (network/wifi or GPS).

If none of these explanation helps I suggest you clear Maps data from Settings - Apps and see if it has any effect
[BetterBatteryStats] bala_gamer:
Thanks for the response, and yes I'm running CPU usage display on the status bar, but it dindnt cause any wakelock in the past, any way will diasble it tonight and give it a try