yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] Perseus:
Ok That's the Case then Forget about Airplane mode. I suggested that because like [MENTION=4620757]m0han[/MENTION] said, I was under the impression that you didn't use it. My Corrected steps as bellow.

1. Get to Work, Explicitly turn off WiFi as you do. Turn off GPS completely as well, just this one time.

2. Reboot then leave the phone alone all day. Try not to use it at all.

3. If you have to use the phone, then first grab me a Text Dump. NO NOT LOGCAT! The Logcat is useless to me. I need the Text Dump.

4. If the phone is unused all day then in the evening before leaving work, grab the text dump before using the phone.
[BetterBatteryStats] TA123:
Could someone kindly take a look at the log? Recently I have started getting less juice from my battery. It used to last for at least a day but now I have to charge the phone in the afternoon. I wonder what is a culprit.
[BetterBatteryStats] TNSMANI:
Update BBS to 0B6 from its thread in XDA. What you have attached is an in use dump. What we need is an idle dump.

Charge your phone 100%, unplug and leave it untouched for 6+ hours. As soon as you unlock the screen, save the dump from BBS and post it here.
[BetterBatteryStats] lepa71:
Hi guys

I'm on BBS B6 version and when I look at a specific alarm like for Google Play services I see the text being cut off at the bottom and there is no scrolling to get down. Is this a known bug?

Thanks
[BetterBatteryStats] APTX-4869:
why doest it always fallback to "since boot"?
[BetterBatteryStats] SedyBenoitPeace:
Can someone help me to see what keeps my phone awake?

Besides the usual battery hogs I cannot understand other things.. Here is the text dump
[BetterBatteryStats] Snowby123:
For a proper analysis, the display should be on for less than one minute before capturing the text dump. Yours was on for about two and a half hours
[BetterBatteryStats] Rotpot09:
Has anyone been able to get any stats from a zte maven z812 running lollipop using the xda version? This device has no known root method and its own power manager only says display for all battery consumption. BBS says all stats either can't be accessed or require root which doesn't exist. Will the play store version be of any use without root and no access to kernel wakelocks in the xda version?

Edit: my error, other is accessible in textdump but not kernel wakelocks. Will try try doing an overnight dump and see if anything other than what I already know from ' running apps ' shows up. Thx
[BetterBatteryStats] lexxx84:
Hi all, I would appreciate it greatly if someone could take a look at my BBS dump file and give some suggestions on how to improve battery life. I have updated BBS to latest XDA version, charged phone to 100% and left it alone overnight for ~8hrs before saving the logfile. Thanks!

BBS Dump File
[BetterBatteryStats] SedyBenoitPeace:
It was a the end of the day.. Well I will post a better dump later then
[BetterBatteryStats] Perseus:
Ref Points are since last reboot unless you manually set one or briefly Plug in and Disconnect.

Nothing Big honestly Jumps out. It can be either the Doze not letting the phone reach C3 State or the battery dying.
[BetterBatteryStats] APTX-4869:
Oh, i see.
[BetterBatteryStats] lexxx84:
The phone is around 3 months old so I don't think the battery is reaching end of life but thanks for the input. Guess I can't do anything about the doze?
[BetterBatteryStats] jukyO:
17% down overnight. No wifi, data, BT, GPS, sync.

Main part:

Battery Info

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

Level lost [%]: Bat.: -18%(85% to 67%) [2.7%/h]

Voltage lost [mV]: (4063-3912) [22.3%/h]

===========

Other Usage

===========

Deep Sleep (): 6 h 42 m 3 s 99.1%

Awake (Screen Off) (): 3 m 13 s 0.8%

Screen On (): 31 s 0.1%

Doze Interactive Time (): 31 s 0.1%

Doze Idle Mode Time (): 5 h 3 m 6 s 74.7%

Doze Idling Time (): 5 h 24 m 13 s 79.9%

Sensors (): 3 h 10 m 3 s 46.8%

Screen dark (): 31 s 0.1%

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

Wakelocks (requires root / system app on Android 4.4+)

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

*alarm* (com.android.providers.calendar.Calendar Storage): 1 h 23 m 5 s Count:4 20.5%

*alarm* (Google Services): 1 h 23 m 1 s Count:103 20.5%

*alarm* (com.android.vending.Google Play Store): 1 h 23 m Count:5 20.5%

Icing (com.google.android.googlequicksearchbox.Google App): 1 h 9 m 4 s Count:1 17.0%

*alarm* (com.facebook.orca.Messenger): 1 h 1 m 50 s Count:3 15.2%

*alarm* (Android System): 24 m 30 s Count:46 6.0%

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

Kernel Wakelocks !!! wakeup_sources !!!

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

PowerManagerService.WakeLocks (): 2 m 13 s Cnt:(c/wc/ec)103/20/0 0.5%

qpnp_fg_memaccess (): 1 m 5 s Cnt:(c/wc/ec)55/7/0 0.3%

qpnp_fg_update_sram (): 45 s Cnt:(c/wc/ec)30/6/0 0.2%

PowerManagerService.Display (): 31 s Cnt:(c/wc/ec)2/0/0 0.1%

qpnp_fg_update_temp (): 16 s Cnt:(c/wc/ec)20/3/0 0.1%

How to find the root cause of it?

And disable wakelocks?

Thanks!
[BetterBatteryStats] Perseus:
Look in Display Settings or elsewhere. There's typically a way to turn off Doze. If you can't find one, ask in your Device's Forum.

Alarm Wise, Facebook and Google Launcher are culprits. Either Launcher or Google Now. whichever you have. As to Rest, Blame Doze.
[BetterBatteryStats] APTX-4869:
The other night it was only -2%. But last night it was like this. I dont know what happened. Anything i can do?
[BetterBatteryStats] kmarc33:
##############

Level lost [%]: Bat.: -18%(100% to 82%) [3.2%/h]

Voltage lost [mV]: (4318-4062) [46.0%/h]

===========

Other Usage

===========

Deep Sleep (): 2 h 52 m 3 s 51.6%

Awake (Screen Off) (): 2 h 41 m 31 s 48.4%

Screen On (): 7 s 0.0%

[snip]

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

Wakelocks (requires root / system app on Android 4.4+)

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

*backup* (Android system): 2 h 38 m 54 s Count:14407 47.6%

[snip]

###############

notice how your backup was about the same amount of time as Awake (Screen Off)? You might want to look at a different way of backing up, unless you just turned it on and then went to bed and it was the initial full backup...
[BetterBatteryStats] APTX-4869:
Could the culprit be the titanium back up? Since I set it to back my files up every sunday.
[BetterBatteryStats] kmarc33:
Actually, I don't know. I also have TiBu backup every sunday so I'm careful to always plug in before bed on saturday night. So I don't know what TiBu looks like in BBS since BBS isn't doing it's thing while TiBu is running for me. However, I'd expect to see "Titanium Backup" there, not "Backup"...
[BetterBatteryStats] Perseus:
No That's the Android Backup as set in Settings > Backup & Reset

On a minor note

DHCP (Android system): 14 s Count:14419 0.1%

Your Router shouldn't take 14 seconds to issue a IP, unless the Wireless signal was really lousy where the phone was.
[BetterBatteryStats] APTX-4869:
What should i do to stop it. Aready acquired 80k from it and counting. Should i limit it?
[BetterBatteryStats] Perseus:
Its a One off thing after you clean flash a rom. If it continues over time, then turn it off in Settings > Backup. Do see my edit to my last post above yours.
[BetterBatteryStats] APTX-4869:
I turned it off in settings and it has stopped. Still gonna do some testing tonight though,
[BetterBatteryStats] ranaxda200:
I'm having a trouble of battery drainage on my Resurrection Remix ROM Moto g3. Here attached my BBS logcat. Hope someone could help me out.

https://drive.google.com/file/d/0Byg6DQfSgk17SUVmSmRLaHZ0SWc/view?usp=drivesdk
[BetterBatteryStats] TNSMANI:
Reddit, BitTorrent and k9 mail sync ate some battery. See whether you are comfortable with delaying sync using Amplify.

Your sensors were active for more than half an hour. Most likely a proximity sensor issue.

RILJ (Phone Services): 8 s Count:1333 0.0% - can be limited with Amplify but wifi calling issues are possible.

*net_scheduler* (Google Services): 5 s Count:303 0.0% - can be limited with Amplify.

Some kernel wakelocks - see whether any custom kernel can be flashed.

Alarms: 69, Intent: com.android.internal.telephony.data-stall - can be limited with Amplify.

Alarms: 5, Intent: com.google.android.gms/.checkin.EventLogServiceReceiver

Alarms: 6, Intent: CONTEXT_MANAGER_ALARM_WAKEUP_566577 - again use Amplify.

Basically, install Amplify and follow this guide:

http://xdaforums.com/android/general/guide-0-0-hour-idle-battery-drain-stock-t2973588

And you were on mobile data, not wifi, so you have to expect some drain.
[BetterBatteryStats] valerossibzh:
Hi!

Thanks for your app that provide many usefull informations.

I have a Homtom HT3 Pro and i'm facing a battery drain problem. Thanks to BBS, i could see a kernel wakelock of 100% from "leds wakelock ". Is there any way to find wich service is associated to this wakelock ? I didn't find any parameter to deactivate this led...

I tryed to install Xposed modules to have more informations but it seems that the framework is not available for this version (SDK version 22, arm64-v8a).

Thanks for your help !
[BetterBatteryStats] TNSMANI:
Logcat is not useful for finding the culprit.

Post an idle dump from BBS.
[BetterBatteryStats] flegma3124:
Would anyone be willing to look at my idle dump and tell me what the culprit for my battery drain is?. I do have a lot of apps installed though, and get anywhere from 2.5-4 hours SOT. Sometimes it drains overnight, sometimes it doesn't. I'll do one when my phone is almost dead and another tomorrow after it's not used throughout the night. Thanks in advance.
[BetterBatteryStats] chamonix:
I have added post #4 as a reference for enabling non-rooted devices to run BBS. Please feel free to comment or suggest editions, and enjoy!
[BetterBatteryStats] thechints:
Hi,

Is there any way to retain BBS as a System App post dirty-flashing a custom ROM?

Thanks.
[BetterBatteryStats] thomashofmann:
ADB Permissions on non rooted device work! I will test over time and report back. Thank you.
[BetterBatteryStats] monza1412:
I tried the xda version and it worked well. The kernel wakelock section is not showing anything, should be that way?
[BetterBatteryStats] Hirtec:
Hello,

I flashed a CM rom on my wife's I8190N which had a 4.1. stock rom. But now the battery is draining very fast.

I hope somebody can help. Stock rom is not that fast, but the battery lasts longer.
[BetterBatteryStats] TNSMANI:
[/COLOR]

The screen on time should be as less as possible, definitely less than one minute. Save the BBS dump as soon as you unlock the screen.

You seem to have kernel issues. See whether any custom kernels are available.

You also have wakelocks which can be limited with Amplify. Try this guide: http://xdaforums.com/android/general/guide-0-0-hour-idle-battery-drain-stock-t2973588

You also have some alarm issues which can be limited with Amplify. There was also a background download by Google of 1 MB.

How old is the battery?
[BetterBatteryStats] APTX-4869:
Any advice or suggestions? Btw, can i safely limit this:

com.google.android.apps.maps.Maps
[BetterBatteryStats] chamonix:
no but the current beta does not require installing the system app anymore.
[BetterBatteryStats] chamonix:
that does not depend on perms but whether your kernel exposes the wakelock file or not. if they do not show either when you switch to the API mode in the advanced prefs then your kernel does not comply with Linux standards or has non standards too restrictive permissions
[BetterBatteryStats] Hirtec:
Hello,

thank you for the reply. Yesterday I got a brand new battery with 1700mAh as a replacement for the 3 year old original battery. The battery is a lot better. Lost 5% over night. I also flashed an alternate kernel and a new baseband. I also tried to keep the screen time as less as possible for the logfile.

Nevertheless there are many wakelocks. When I look at the graphs I can see constant wakelocks (one big bar). My other phone has ups and downs (how it should be I think). I will try to work with that Amplify guide, but as I understand you cannot freeze the kernel wakelocks. Maybe i should go back to stock.
[BetterBatteryStats] Tech 4 9:
Can't delete pics?
[BetterBatteryStats] Tech 4 9:
Hello all, I'm flaling here. I have questions but first of all.. How does one construct posts? As in.. Some text then a pic then more text and another pic? It ain't intuitive for sure. Thanks all

---------- Post added at 06:28 PM ---------- Previous post was at 06:18 PM ----------

Well..anyway...sorry for the mess. My question is: Ive spent hours searching both goog and xda for this answer. Learned some new settings in phone and THE ONLY WAY I could figure out how to get the gauges to go from high to low is to have everything in phone off ie scanning, WiFi, nfc, location..etc..AND.. (this is what confuses me) mobile data ON..not off. Following this logic..for me to save battery my data must be ALWAYS on?!

Any input appreciated.
[BetterBatteryStats] :
Normally you just write the text and embed/attach pics after. I think the data connection can be ignored, it just tells you how long are you connected via data.
[BetterBatteryStats] Tech 4 9:
Thanks for the reply.

Those gauges go from higher to lower the longer time goes on (with all off and data ON) so I don't think they're registering time. If I turn data off the peg out 100% and stay pegged...as if phone is working it's batt off trying to find signal...which doesn't make any sense if data is off.
[BetterBatteryStats] Tech 4 9:
I think the gauges represent how hard phone is working to find signal. With mobile data on and in a good signal area they are low. Turn data off or go where there's limited signal the peg out 100% without much (if any)fluctuation...which still begs the question: to save batt I have to leave data on? This can't be right. With data off SOMETHING in phone is STILL scanning for that mobile data signal. Something I can't find/turn off. Cell Radio perhaps?
[BetterBatteryStats] :
If your phone signal is good most of the time then it shouldn't be a problem. The gauges also show your data connection, it shouldn't be a problem if they go at 100%. Not everything means bad if they are at a high rate.

Edit: they do reference time, connection over total uptime multiplied by 100 and you get the percentage. That's why with data connection turned on it decreases
[BetterBatteryStats] Tech 4 9:
Pretty misleading. All my searching said not one thing about THOSE being the only ones Ok at 100%. Everyone was trying to fix them to be low like the others flanking them. Everything suggested turning everything off because something is pointlessly scanning. In the bbs tutorial these two qauges are the only thing NOT discussed. All that reading and all those questions and the answer is simply "leave my data on" which flys in the face of EVERY "save battery" thing I ever read.
[BetterBatteryStats] :
Not sure about that, I've had the same thing on my connection and nothing seems out of the ordinary. Data turned on for a short while, after that there's nothing in my stats to suggest a huge drain.
[BetterBatteryStats] Cobalt765:
This is my first post to this forum but have been lurker for some time. Briefly my experience with this stuff is that I've put custom roms and recoveries on various devices such as Ainol Aurora II, Nexus 7, Samsung Galaxy Tab 3 and never had an issue, at least not one I couldn't fix. I've got a Motorola Defy and lately its been a bit laggy needing to put the battery out as a quick reset, probably every few days or once a week. Given that I can now buy a phone with similar specs at the local supermarket I thought I'd have a go at putting on a custom rom.

AT first I flashed Paranoid Android but that seemed laggy so now have Slimrom which is good however it seems to have played up with my battery. It will drop from say 95% down to 50% in an instant. I've tried to do calibration but not going that well. I've tried to insert images but can't as a I'm a junior member.

I've been using Better battery stats to try if something is chewing something heaps but doubt this is an issue as its goes down in an instant rather than a few mintues. Any suggestions to help, I'll upload screenshots as soon as I'm able.

I've seen someone below inserting image as a thumbnail, can I do this rather than photobucket?
[BetterBatteryStats] chrcol:
anyone managed to get this properly working in touchwiz 6.0.x?

works fine on CM13 but on touchwiz marshmallow these three stats do not work.

kernel wakelocks - empty data

partial wakelocks - empty data

alarms - needs battery_stats permission

yes it is installed as system app and phone is rooted, tried the install system app via gui and recovery.

--update--

I noticed the version here on XDA is newer than whats on the play store, I guess dev doesnt support play store as much. Alsrms I think is fixed on XDA version, but now I have a messy situation.

When I removed the play store version, I noticed I could only disable not uninstall, after I did that I tried to uninstall via titanium backup which failed. I then ran the CWM recovery file to uninstall the system app which said it had succeeded but I have now a ghost install of the play store version which I had to freeze to get it out of my app drawer.

I then installed the XDA version but oddly it doesnt ask me to install as system app, so I now think I have the play store helper app mixed with the XDA user app, which I need to fix somehow. If I unfreeze the system app remains from the play store it appears twice in my app drawer and the one from the play store doesnt launch or anything but it also cannot be uninstalled.
[BetterBatteryStats] TNSMANI:
According to the Dev, the current version in XDA doesn't require installation as a system app.
[BetterBatteryStats] chrcol:
yeah it works without system app, I fixed the ghosted app by reinstall google play, then uninstalling that again. Now its all good :)

However I think he should update the play store version as people pay for that version and it doesnt work properly. :)

---------- Post added at 14:12 ---------- Previous post was at 14:12 ----------

yeah it works without system app, I fixed the ghosted app by reinstall google play, then uninstalling that again. Now its all good :)

However I think he should update the play store version as people pay for that version and it doesnt work properly. :)
[BetterBatteryStats] chamonix:
bbs will be released to playstore once we are through beta and release candidates, as it has always been.

One of the new features of the current beta is that you don't need the helper app anymore. As the packages between xda and gplay are named differently to support parallel installs there is no overlap. If you have problems removing the gplay helper just remount /system to rw and delete any bbs apks from priv-app.
[BetterBatteryStats] tiner:
Hi!!!

I'm facing problems with the next alarm or wakelock:

Com.android.providers.calendar

How could I solve it? It's constantly waking my Meizu.

Tried uninstalling calendar storage apk but I lost calendar properties.... Needed to revert back.

Thank you.
[BetterBatteryStats] gaich:
Continuing to fight EINT wakelok on MTK-powered phone. As far as I found, it`s highly fingerprint-dependant:

View attachment 3823921

View attachment 3823922

There`s engeneer menu on this kind of phones - you can find Hardware testing-IO-EINT entry inside:

[MENTION=1330150]chamonix[/MENTION] [MENTION=3639717]Perseus[/MENTION] what do yu think - is it possible to use this to improve the EINT situation? I have tried to input different values there, it returns an error:
[BetterBatteryStats] Ruka82:
I'm testing the battery on my nexus 5x but there is something strange.

On the kernel wakelock i found on the first place PowerManagerservice. and reading around internet i see that apparently is the sum of all the partial wakelock, but in my case is very much bigger.

At the momento i have PowerManagerService 22m 10s but the sum of the partial wakelock is 5min 2s.

I also have the wakelock detector apk and there appear the same rows that i found on partial wakelock.

I also have xposed greenify on my rom (pure nexus with elementalx), is it possible that greenify with his doze settings can increase the amount of the PowerManagerservice?

Thanks
[BetterBatteryStats] v7:
Can you post the BBS dump here?

__

v7

XDA Assist
[BetterBatteryStats] Ruka82:
This is the first time i save the dump, hope all is correct.
[BetterBatteryStats] Portgas D. Ace:
Screen On (): 35 m 37 s 9,2%

Please refer to post #6 of this thread about how to produce a proper idle log file.
[BetterBatteryStats] Nokiacrazi:
Updated log. Android wear disconnected. Dynamic IP on the wireless. HTC 10 custom rom custom kernel. Amplify and greenify used as per guide instructions and tweaking.
[BetterBatteryStats] chrcol:
ok so using this MM friendly version of BBS, I now see my doze seems to be kicking in right away (very short interactive time) and then running constantly.

But this seems to be still affecting k9 mail notifications (led light doesnt always flash), I dont have aggressive doze enabled in any apps, and doze in the system menu is actually off, but doesnt seem to have any affect, has anyone here managed to disable doze on MM?
[BetterBatteryStats] :
Can you point out for me waht is MM friendly version (I only found one version of BBS) and how do you see when doze kicks in? Thanks
[BetterBatteryStats] J.L.C.:
Wondering if anyone can help me figure out what's draining my battery.

Lately my Nexus 6P has started draining double the battery while idling. I don't see anything obvious in the GUI, so I'm hoping someone who understands the logs might be able to help.

Attached are the text dump and logcat from overnight. WiFi is all that was on. GPS, Bluetooth, Cell Data, and NFC were all off. "Sensors" seem to be active almost 100%.

Thanks for any insight!
[BetterBatteryStats] papakitou:
Hello..

What about this wake lock?
[BetterBatteryStats] Perseus:
Please turn off Doze and in WiFi Advanced Settings Set "Keep WiFi On" to Only when Charging or something to that effect.

Same for you as well in terms of Doze and WiFi Signal. Also God Knows what Google Docs is up to for you but its sure sending 5 MB of Stuff to Mothership.

Chatter from WLAN Device. Maybe a Chatty wireless Printer or something ?
[BetterBatteryStats] Nokiacrazi:
How do I turn off Doze? Is this a setting on stock android? Running HTC 10, so might be slightly different to stock. I can greenify google docs, it that helps. I've made the WiFi to only remain on during sleep when plugged in.
[BetterBatteryStats] Perseus:
Doze Settings depend on device to device. Usually its located under Display Settings. Might not be called Doze, sometimes its called Active Display or Hybrid Sleep or such. Please google it or ask on HTC 10 Q&A.

Yes Greenify GDocs and reboot.
[BetterBatteryStats] Nokiacrazi:
After doing a quick google, it appears that disabling doze is identical to stock. Seems like I have to manually select all apps one by one and turn off the battery optimisation. Surely a toggle all feature would be easier :(
[BetterBatteryStats] J.L.C.:
Are you referring to adaptive display/brightness? Ambient display? Or battery optimization (android doze)?

On my 6P battery optimization (doze) can only be enabled/disabled for individual apps, not as a system-wide function.

I already had all adaptive display stuff off. Is there something in the logs that points to that?

Edit: I just found "Daydream" and turned that off.
[BetterBatteryStats] TA123:
Finally managed to do it. Please take a look.