yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] mapal123:
motorola droid xt894 - HW problem??

Hi,

I have a motorola droid xt894 and heavy battery problems.

It seemed they started when I replace the battery (because the phone was a used one and I think I would gain in battery time).

Anyway, when I bought it the phone was rooted, running Cyanogenmod 12.

Since the problems started I checked everything you said, and since it seemed I had wakelock problems (btw others Goole play services) , in the end I flashed to CM11 (stable version), only with "Pico" openGapps (basically only the store).

Still the battery is drained in 8-9 hours in Airplanemode, standby only, nothing else.

It's my second Droid xt894, the first one in standby only with GSM + wifi did even a couple of days.

So I put back the old motorola battery in case the new one was defective, but I get the same...

And by the way I have a Usb current measure thingy and the battery still has 1700 mah to charge from 0 to 100%, so it looks like its really draining too fast, not dead..

I cannot find the problem..running your apps it seems nothing is going on...basically one full night of deep sleep, no radio nothing, still drains the battery.

Only thing I touched maybe too much was build prop, having had 3g problems, but this was before flashing.

And when I boot back into motorola stock I still get the same awful times..

Any ideas? I have a feeling this is a HW problem, but don't know where the leakage could be...

Here I join my dump from a night of doing nothing but sleeping ;) It seems to me not showing problems, but you tell me.

pastebin.com/download/yaERgPUP

THANKS IN ADVANCE!!!

ps...

btw, I love the phone as its the only qwerty android with reasonably good specs that I found !!
[BetterBatteryStats] Perseus:
Log missing please attach. Otherwise difficult to analyze. :p
[BetterBatteryStats] :
Hi, I'm running the latest version of BBS and have a question about the stats. According to the screenshot attached, I'm getting doze interactive time and high sync. Are these detrimental as I've been searching here but there isn't any mention on what is it exactly.
[BetterBatteryStats] aashgaur:
Had a overnight drain of 8% . can someone take a look at the log. Many thanks.
[BetterBatteryStats] TNSMANI:
You have way too many alarms and some WiFi issues.

Get Amplify and start limiting wakelocks and alarms.

Let someone more knowledgeable than me also see the stats and comment.

---------- Post added at 02:22 PM ---------- Previous post was at 02:21 PM ----------

Switch off auto sync and see whether things improve.
[BetterBatteryStats] mapal123:
I know it shouldnt be done like this, but I cannot post links nor attachments since I am a new user.

I actually visited the site many times but never posted before.

pastebin.com/raw/yaERgPUP
[BetterBatteryStats] iovaniorgovan:
Everyone, this might be oldfashion already, but I'm limited to using a non-rooted OS (standard Galaxy S5) due to company email restrictions. What is the recommended way to work around a non-rooted device and still spot battery drainers? Thanks!
[BetterBatteryStats] :
My auto sync is permanently off, it's weird because I am not on marshmallow yet I get these readings on my stats. Phone isn't awake either for the duration of interactive times.
[BetterBatteryStats] TNSMANI:
Which version of BBS are you running? Install the latest beta from the OP and then take a dump.

---------- Post added at 12:04 PM ---------- Previous post was at 11:46 AM ----------

Do you have mobile signal issues?

You have used the phone for 8+ minutes before taking the dump. Next time save the BBS log as soon as you open the screen.

You also have some alarms which could be limited with Amplify.

Alarms: 75, Intent: com.android.internal.telephony.data-stall

Alarms: 17, Intent: {com.google.android.gms/com.google.android.gms.checkin.EventLogService$Receiver}

Alarms: 20, Intent: com.google.android.gms.gcm.HEARTBEAT_ALARM

com.cyanogenmod.lockclock (): Wakeups: 36 (3.9 / h)

Alarms: 12, Intent: ALARM_WAKEUP71633328

Install the latest beta of BBS from the OP.
[BetterBatteryStats] chamonix:
in fact there are news in that area. If you have a custom recovery and install the system app using the zip you can run the latest beta without root
[BetterBatteryStats] chamonix:
2.2B5 is up
[BetterBatteryStats] :
Here're my dump files. It looks like the interactive time and sensor seem to follow mo on screen time though
[BetterBatteryStats] Qrckko:
Hi!

In last few weeks I discovered faster than usual overnight discharge on my Xperia ZL.

I am on factory ROM, rooted.

Attached is 4 hours of BBS log and I would appreciate if somebody take a look and point me how to resolve problem.

Thanks in advance,

Boris
[BetterBatteryStats] gaich:
[MENTION=1330150]chamonix[/MENTION]

confirming kernel wakelocks on LG G4:

:D
[BetterBatteryStats] GeNiO790:
[MENTION=1330150]chamonix[/MENTION]

I don't read de kernel wakelock in my LG G2

The app starts up, but when I enter the first time to see the kernel wakelock tells me what are the wakelock active. If within a second time, the wakelock present a few minutes before are gone, they disappear.

BECAUSE?!?!
[BetterBatteryStats] chamonix:
how can I tell without a proper logcat?
[BetterBatteryStats] GeNiO790:
https://dl.dropboxusercontent.com/u...Battery Stats/logcat-2016-01-10_201539426.txt

Here the logcat, tell me if it's OK or if you need more.

I point out that the problem exposed before I was presented with both CM 12.1 that with the current 2.1 NoName.
[BetterBatteryStats] chamonix:
The log is missing some info. Could you please tick the debug logging in the advanced settings and repeat
[BetterBatteryStats] GeNiO790:
https://dl.dropboxusercontent.com/u...Battery Stats/logcat-2016-01-10_214951268.txt

The new logcat!
[BetterBatteryStats] drewmiranda:
Better battery stats refuses to install the system app, both as an in app install or as a recovery zip. Tried to use the uninstall and install recovery zips. Any ideas?
[BetterBatteryStats] ppaasseeii:
Would it be possible to have the breakdown for the sensor time? I had 45min overnight in flight mode, phone sitting on a table, and I really wonder what it could be.
[BetterBatteryStats] lemba:
hello, m using samsung galaxy s duos 2. my battery drain quickly. and also the battery % reach 30 then it will skip to 15% and then 0%.

m uploading bbs.text and locat of my device. please check if theres any problem.
[BetterBatteryStats] suku_patel_22:
Widget isn't showing awake time correctly. It's a custom reference.
[BetterBatteryStats] patt2k:
Hey good people. I need some help. I have Moto X Pure Edition. As soon as I unplug from charger and do browsing for 1-2 minutes I already lose about 1-2% within those 1-2 minutes.

In kernel wakelocks I constantly see this power display wakelock and searched on google and can't find anything on how to stop it.
[BetterBatteryStats] d_Schizzo:
Parser for Kernel Wakelocks on LG G2

Hi [MENTION=1330150]chamonix[/MENTION],

can you please add also an Parser for LG G2 as you did it already for G3/G4?

KWL are not shown on LG Stock-Rom 5.0.2. (didnt tested AOSP).

Thank you in advance!

Regards,

Schizzo
[BetterBatteryStats] Perseus:
The log you have posted is from the time when the phone was in use. In order to better analyze, it is necessary to provide Idle log where the phone is left alone in standby for at least 5 hours. Preferably overnight. Do reboot the phone before leaving alone so BBS Reference is set correctly.

Power Manager Display is a wakelock for when screen is on. Typically Kernel wakelocks are just high level symptoms. You need to look at alarms and Partial Wakelocks for real reason.

In your case, all you were doing is browsing after unplug, I'd look at network activity as well.
[BetterBatteryStats] chamonix:
For that I would just need you to copy and attach following file: /sys/kernel/debug/wakeup_sources
[BetterBatteryStats] chamonix:
wow! this thread has passed 6 Mio. views! Thanks to all interested users active testers and patient supporters: this is your success!
[BetterBatteryStats] d_Schizzo:
Great! Thank you

File is attached

Regards,

Schizzo
[BetterBatteryStats] patt2k:
Thank you for your response. I am attaching logs after it drained 50% but most of the time it was deep sleeping at night. Also [MENTION=5867207]v7[/MENTION] if this is good enough then I would apperciate any help. Since 5.1.1 on any rom or stock drain is just bad and I don't know what to do anymore.

I am attaching as many things as I can to help me identify the issue as well as GSAM SS.

PS. today morning I was listening to music via BT and watching a movie off plex. Hence why bluetooth in the logs/ss
[BetterBatteryStats] Perseus:
You really should have picked up the log before you started to use the phone. Now its bit difficult to identify background processes. Its near impossible to tell what the state was before plex downloaded 743 MB of a movie.

Use any of the Startup Manager apps. Make sure both contacts and dialer are unchecked. In other words they do not start at boot. Please post another Idle log. This time, first thing in the morning, pull the log before you start using the phone.
[BetterBatteryStats] patt2k:
Thanks for the response :) which startup manager would you recommend? so in another news: charge phone to 100% before going to sleep,leave it over-night,and do a log after waking up. Would that be right?
[BetterBatteryStats] Perseus:
I use System Tuner since I need it for other tweaks. As to the rest of the process you mentioned, make sure to unplug before leaving overnight.
[BetterBatteryStats] patt2k:
Will get in touch tomorrow thanks!
[BetterBatteryStats] chamonix:
Added #756

And I forgot to ask you for an info: can you please post the header of a dumpfile created on that device so that I have the vendor/build/model infos needed for processing
[BetterBatteryStats] d_Schizzo:
Do you mean this?
[BetterBatteryStats] deepu458:
HI [MENTION=1330150]chamonix[/MENTION], i would like to start of saying a big Thanks for this wonderful app it saved me a lot in LP Now i have flashed MM CM13 Based ROM. My issue is when i try to open the stats to identify the culprit in alarm senction it only shows the name as

com.google.android.gms (): Wakeups: 68 (2.4 / min)

. Before in LP i used to see all the list of what are all the list fo alarms that made to the final number. Now i dont see that anymore. Please help me as i want to control them via Amplify.

New BBS LOg from MM ROM: BetterBatteryStats-2016-01-14_092242198

OLD BBS LOG from LP ROM: Best -BetterBatteryStats-2015-10-17_082140948

Attached for reference what im talking about.
[BetterBatteryStats] chamonix:
would you mind testing the current 2.2 beta? there was a problem with the dumpsys parser that I have fixed in one of the first betas
[BetterBatteryStats] deepu458:
Thanks for the reply, but if i install the Beta Version its treated as a different app. I mean after flashing the Beta APK its treated as new app and in my launcher i can see twp apps with same name? is that the way it works?
[BetterBatteryStats] chamonix:
yes, the xda edition has a different package name but you can run them side by side
[BetterBatteryStats] jabbermacy:
what's 'sensors' and why is at ~30% keep awake? I don't have any gesture wake or DTTW going, so WTH? Nex 6P, BTW.

Other Usage

===========

Deep Sleep (): 4 h 20 m 13 s 64.0%

Awake (Screen Off) (): 1 h 31 m 52 s 22.6%

Screen On (): 54 m 12 s 13.3%

Wifi On (): 1 h 27 m 55 s 21.6%

Wifi Running (): 1 h 27 m 54 s 21.6%

Doze Interactive Time (): 54 m 11 s 13.3%

Doze Idle Mode Time (): 5 h 22 m 44 s 79.4%

Doze Idling Time (): 5 h 30 m 16 s 81.3%

Sync (): 7 m 53 s 1.9%

Sensors (): 3 h 22 m 33 s 49.9%

No Data Connection (): 4 m 27 s 1.1%

No or Unknown Signal (): 4 m 27 s 1.1%

Good Signal (): 7 m 21 s 1.8%

Screen dark (): 10 m 2 s 2.5%

Screen dimmed (): 44 m 10 s 10.9%

..

what's THIS?

Kernel Wakelocks !!! wakeup_sources !!!

================

PowerManagerService.WakeLocks (): 2 h 11 m 22 s Cnt:(c/wc/ec)545/58/0 32.3%
[BetterBatteryStats] Fir3lordZuk0:
Battery Drain Rate when phone is idle

Battery Drain overnight (7 hours) is around 40%. I kept phone idle at night (Wifi Off, Data Off, WiFI scanning Off, Greenified Facebook, Google Apps, Twitter, Mail).

Kindly check the logs and screens.
[BetterBatteryStats] :
[MENTION=5584249]fire3[/MENTION]lord.. : Didn't see the logs, but with that much battery drain, i wouldn't try to fix it. I would do a factory restore first.

From the pics, phone doesn't sleep correct. About 1hour is working with screen off.

Also play services consumes to much battery, but this is a problem for most. There are threats how to make this better. Google it.
[BetterBatteryStats] Fir3lordZuk0:
Thanks, i shall factory reset and check the stats again. Will post the new logs again.

BTW, i am using Greenify, Naptime & Power nap to keep background process minimal.

EDIT: what is 'No Data Connection', 'No or Unknown Signal', 'PowerManagerService.WakeLocks'?
[BetterBatteryStats] italia0101:
Does anyone know what the Doze counters actually mean ? i'm confused by them ..

Doze interactive time

Doze idle mode time

Doze idling time

?? anyone
[BetterBatteryStats] Ok_Kaleidoscope5109:
I thought about this more today. I've been unrooted for some time now til recently on my 6P. And in tracking down wakelocks, I think its important to know when specific wakelocks occur. The existing graphs is just telling you when wakelocks occur, but if you've got a few wakelocks that are all occurring, its important to be able to see when they are happening. So that's why I was wondering if there could be a graph option to look at individual wakelocks or even how they all line up.

Also, it would be nice to be able to calculate screen on vs screen off drain rates. I think too much focus is on SOT which varies from user to user, but OTOH, Screen Off Drain, should be pretty constant and low for most individuals. It's safe to say those with high screen off drain rates have rogue apps running. You can't make that distinction between SOT because SOT drain could be low for an eBook but high for 3D gaming.
[BetterBatteryStats] lemba:
battery problem

As u tell me, i have save the logcat for unused overnight. i found 2% drop. yesterday i have buy a new original battery and when i use the new 1, it also drop my battery 1%per 1 min when browsing. anyway please check my logcats. thanx in advance
[BetterBatteryStats] Jleech330:
Help with high awake (screen off)

I have been having horrible battery life on my nexus 6p. I apologize in advance because I am not sure how to interpret the app stats very well. I have a lot of time with phone awake but screen off which appears to be killing my batter life. I was unable to find any kernel locks or wake locks that look like they are the cause. I would greatly appreciate any help. thank you in advance.
[BetterBatteryStats] azsl1326:
Looks like you are using Franco's kernel. Get his app from the Play store and disable the wakelocks under kernel settings. Also, I am no expert at reading these logs, but it looks like Lightflow is a possible culprit, along with DKSports(?) And EmailWise(?). Maybe turn off Wi-Fi overnight and see if that makes a difference?
[BetterBatteryStats] BRKotucs:
Could anyone here please help me check this?

https://copy.com/oCAsu0tXZcfdK9iy

I'm having a crazy drain over night.

Nexus 6 / Pure Nexus / ElementalX / V4A.

Thank you!!
[BetterBatteryStats] Jleech330:
Thank you. I will try those suggestions. Appreciate the help.
[BetterBatteryStats] dragsterman:
I'm noob in the topic of wakelocks yet.

I would like to run a FTP server on my OnePlus One (CM13-6.0.1) all day long with minimal battery drain.

What app do you suggest which will do this with no wakelocks. (I don't know if it is possible)

I think that the best would be an app which wakes my phone if there is an FTP connection reqest and let it in sleep mode when all FTP clients are disconnected.

I dont know how Doze mode affects this or should I select "not optimize" for the FTP server app?

Sry for my noob question but I would like to see clear in this topic.
[BetterBatteryStats] gufoman88:
I have some problem with partial wakelock with the new facebook app (facebook, messenger and page manager). All the 3 app have some problem with the service com.facebook.bugreporter.scheduler.LollipopService. dump on pastebin http://pastebin.com/ws6bH0zk

Inviato dal mio Nexus 5 utilizzando Tapatalk
[BetterBatteryStats] Portgas D. Ace:
com.google.android.gms (): Wakeups: 91 (22.7 / h)

Alarms: 46, Intent: ALARM_WAKEUP_LOCATOR

This one should be related to location management. Seems that it has been triggered every ten minutes. You could try to limit it with Amplify according to this thread.
[BetterBatteryStats] vsr625:
hey dev [MENTION=1330150]chamonix[/MENTION] thanks for the very useful and very beautiful app....

I have one question..

Can you explain me what the doze statistics mean in the BBS app?

and whats that sensor statistic?

(if this was already asked by others then pls link me that post anyone)
[BetterBatteryStats] jabbermacy:
^^ back to my sensors question... what is it? Can somebody check this over, I'm lost... I can't attach files, but I posted my wakelocks. Using Elemental on Nexus 6p
[BetterBatteryStats] IronTechmonkey:
Level lost [%]: Bat.: -5%(100% to 95%) [1.2%/h]. 1.2% per hour is within reasonable range, although that range is wide considering the variety of devices and usage scenarios. What is a normal statistic for %consumed/hour for you under the same usage scenario?. Wifi Running (): 4 h 1 m 43 s 100.0%. I wonder what it would be with Wifi disabled. Also, in re Awake (Screen Off) (): 19 m 6 s 7.9%, something is going on during those 19 minutes of awake with screen off but am not adept enough at reading these logs to figure it out.

---------- Post added at 10:42 PM ---------- Previous post was at 10:37 PM ----------

Good sir, in spite of the truth that members of XDA etc may contribute to the success of BBS I'm just not going to let you be so modest. ;)

Thanks to your responsiveness and activity BBS is in a fairly small group of key apps and utilities that plug holes in the Android universe and complete the devices, so thanks and cheers to you as well.
[BetterBatteryStats] jabbermacy:
I'm getting horrible battery life, using N6P on Pure Nexus with elemental (all latest). Can somebody please help me? I have greenify, but Amplify says Xposed is not compatible? I don't know how to kill these wakelocks. Seems centered around google play services. I'm behind the great firewall, so google access is not possible. I turned account sync completely off. What can I freeze (using TB)?

Help, please...

http://pastebin.com/4nkAaCqM
[BetterBatteryStats] Fir3lordZuk0:
Hi,

I observed drain from 61% to 27% overnight (8 hours). WiFi, data & location are off..I am using Naptime and Power nap.

I think the issue is with alarms but i am no expert. Can u please take a look at logs and screenshots and let me know what i can do to resolve this?

Using naosp 6.0 on Xperia S.
[BetterBatteryStats] aadithpm:
Naptime settings? From the log, your phone hasn't gone into Doze at all.

It says:

Doze Interactive Time (): 12 s 0.0%

I see no Doze Idling or Idle Mode Time on there.
[BetterBatteryStats] Fir3lordZuk0:
Using 'Aggressive Doze' in Naptime. Have not change any other setting. Check screenshots of Naptime settings.
[BetterBatteryStats] aadithpm:
Sorry to say, I have no idea. I'd recommend trying disabling Power Nap. Give it a shot; however, I don't think it'll make any difference, because logically, Doze isn't going to be blocked in any way by that, but I might be very wrong. So give it a try.
[BetterBatteryStats] Fir3lordZuk0:
In Power Nap, i have added Naptime in active app list.
[BetterBatteryStats] Portgas D. Ace:
You have used your device for nearly one hour. This way it is impossible to determine the major drainers.

How to produce proper dump files:

Generally a dump "since unplugged" is better than "since charged". When you start your analysis make sure to follow following procedure:

- plug the charger and charge your device to 100%, afterwards unplug it

- leave the phone alone 4 to 8 hours and don't use it during this time

- open BBS and save a dump (preferable as .txt file) and check that the chapters "Kernel wakelocks" and "alarms" (if you have root) are populated

- Post the dump as attachement

Best way to do so is over night while you sleep.

---------- Post added at 07:36 ---------- Previous post was at 07:33 ----------

You have a lot alarms from Google and Facebook Lite. Use Amplify and follow this guide by Celestial Fury to reduce your drain.
[BetterBatteryStats] der_Kief:
Hi @ All,

since BetterBatteryStats_xdaedition_2.2.0.0B5.apk and BetterBatteryStats_SystemApp_xdaedition_CWM_1.3.0.0.zip i have the problem that there no more kernel wakelock shown anymore.

I'm rooted with SuperSu 2.66 on a Galaxy S4 (JFLTEXX) with AOSP 6.01 ROM.

What could be the problem here ?
[BetterBatteryStats] Sir_gpm:
Could someone check and advice how to improve my drain. http://pastebin.com/0skdYzAN
[BetterBatteryStats] FernBch:
I have the same issue. A quick logcat search shows:

01-18 15:40:10.435 806 976 E KernelWakelockReader: neither /proc/wakelocks nor /d/wakeup_sources exists

01-18 15:40:10.436 806 976 W BatteryStatsImpl: Couldn't get kernel wake lock stats

This issue is also present on any CM ROM I have used.
[BetterBatteryStats] der_Kief:
ahh i see.... but is this an ROM or app problem ?
[BetterBatteryStats] Nightshadow931:
Why are my kernel wakelocks always empty like this?
[BetterBatteryStats] Nimueh:
I'm using BetterBatteryStats_xdaedition_2.2.0.0B5.apk on a CM13 based rom (latest Resurrection Remix) and it shows kernel wakelocks just fine. Also S4 i9505, but with SuperSU 2.52 (built in).

No idea what's causing kernel wakelocks to not show for you two, but it can't be the fact it's CM based ;)
[BetterBatteryStats] FernBch:
It is possible to be CM based. I have the SCH-I545 on VZW and have this issue on every CM or CM based ROM I have tried. The issue showed up about a week or so ago. Looking at a logcat the file/folder that it is looking for does not exist.
[BetterBatteryStats] tangcla:
[MENTION=1330150]chamonix[/MENTION] remember the issue where I can't see the details of alarms when clicking on package details under the Alarms screen on my Samsung? It seems to be kernel related. I flashed another kernel and the list of wakelocks showed up. Flashed back to stock and disappeared. Could it be seandroid enforcing related?
[BetterBatteryStats] Nightshadow931:
I'm actually using LG G2 with stock based ROM, so yeah, has nothing to do with CM I guess.
[BetterBatteryStats] RASTAVIPER:
Using latest B5 version and I get totally wrong readings at my MEIZU M1 NOTE (Android 5.1).

Any ideas?
[BetterBatteryStats] Portgas D. Ace:
Either clear app data, do a clean install of BBS or open BBS and go to Settings -> Advanced -> Use API for Kernel Wakelocks.
[BetterBatteryStats] Shivank Magotra:
Hey! Just installed this app and wanted to know why my device was awake in the night. It causes a lot of drain on my battery. Can someone tell me how can I use this app to improve my device's battery?
[BetterBatteryStats] Portgas D. Ace:
Quite simple. Read the OP, there you'll find information about how to produce a proper dump file.