yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] DiamondJohn:
But it is from what you say. Never assume, prove it to yourself.

My suggestions are as before. see the post and the two posts it links off to: https://xdaforums.com/showpost.php?p=82611997&postcount=37141

A lot of information is stored in the battery history. The above posts also explain how to get to graphical displays and how to drill-down into the details.
[BetterBatteryStats] rkj911:
Hello Guys.

I always see 2 to 3 % per hour drain even during nights. I did clean flash and changed many kernels and roms still its not making any difference.

Can anyone see what is causing this. Thanks.

Logs , Bug reports and everything you might need : https://drive.google.com/open?id=10t1JXywdD5x2P-uML7PZo1lzCGr-GD6o
[BetterBatteryStats] DB126:
Here's the telling stat:

Deep Sleep: 99.3%

Awake (Screen Off) : 0.5%

Your problem lies deeper than Android. Do a full clean flash of original stock components (Oreo and ASUS kernel). My guess is you'll see significant improvement. Build up from there until the culprit is exposed.
[BetterBatteryStats] krus5:
cubot A5

Please check, I don't know why I left my phone during night as per instruction for about 11 hours but BBS says 21 hours but probably it doesn't matter, so actually my battery drain is about 3% per hour without even touching my phone, anyone please help.
[BetterBatteryStats] TNSMANI:
Sorry, it is not a proper idle dump. The screen on time is nearly 12 minutes as against the requirement of less than a minute. So a proper analysis is not possible. Please save a proper dump and post it.
[BetterBatteryStats] Dennis.se.foon:
Please provide an indication of what I should do to stop battery drain when the phone is supposed to be sleeping. My drain was about 1% per night when the phone was on Android 9. Since the update to Android 10, the standby drain is about 1% per hour.

I have was initially on the stock rom and recently updated to the EU rom build in the hot that it would be better, they both have very similar battery drain during sleep. View attachment BetterBatteryStats-2020-05-31_064933778.txtView attachment dmesg-2020-05-31_064934159.txt
[BetterBatteryStats] umartariq:
Please review my dump file and suggest improvement steps.
[BetterBatteryStats] DB126:
Your device is performing normally and 'slept' through most of the monitoring window. An average drain rate of 0.6-0.8%/hr is expected on most (virtually all) modern devices running contemporary ROMs. A 1% drop per "night" is an outlier and likely reflects a flaw in the way your previous install reported idle battery consumption. Either that or device was in a comma which a very hard to reproduce and usually leads to other issues.

---------- Post added at 02:07 PM ---------- Previous post was at 01:47 PM ----------

Ugh, where to begin. Another high-end Samsung device running tons of native services that can not be easily disabled. Email app quite active; might consider the GMail app or a 3rd party alternative (don't forget to remove your account info from the Samsung email app). Lots more going on which I don't have the time/will to unpack.

Maybe try the built in optimization tool. I've had good luck with that; seems to quell the biggest abusers without crippling the device. Unfortunately, most Samsung apps/services are exempted from the most effective power mgmt techniques. Might have to accept the monster for what it is.
[BetterBatteryStats] mrjuniork:
As already mentioned, samsung email client is quite active and constantly using push inquiries.

I'd suggest using an app like Aquamail and using a setting to automatically deactivate syncing during a customized time window (over night, weekends etc.)

That could improve your idle drain.

As well as the AOD implementation, which is also contributing to your idle drain.

You gotta ask yourself what's necessary and what's not.

WhatsApp also did the nightly backup, which again contributed to more drain.

And Facebook and the likes are also known to "harras" your idle drain.

For the next time, try to get a log of at least 7+ hours for having a more thorough analysis for certain culprits, since 4 hours did give us some Intel, but I'd be better to have a more stretched timeline.

Otherwise, enjoy your device and don't let it get the better of you :)
[BetterBatteryStats] umartariq:
Thanks a lot, that was helpful!
[BetterBatteryStats] PrevedMedved:
Hi Guys,

Could you please help me out with my Samsung S20. I got a problem with battery drain over night and battery life overall during day use. I am getting around 15-16% battery drain over night and 2-3 hours screen on time per day. FYI, AOD is always on and screen refresh rate is always 120Hz.

I would really appreciate if someone could give me a hand and take a look at the DUMP file.

Samsung S20 BBS Dump
[BetterBatteryStats] krus5:
Thank you, I tried again :) please check.
[BetterBatteryStats] TNSMANI:
BBS doesn't recognise the phone make or model. May be an uninstall-reinstall of BBS may help.

The mobile signal stat is also missing in BBS. How is the mobile signal at the place where the phone sleeps?

Is any other device, especially a printer, connected to the same wifi? If so, disconnect it for the next dump. For good measure, reset wifi (switch off the modem, wait for 10 sec and then switch on).

GPS is on or off? Location/scanning seems to be on. You don't need it while sleeping.

Do you use TTY? If not disable it in Settings.

- looks like a process relating to the screen stuck at on. Search Google for this process relating to your phone.

A lot of Location related alarms. Switch off Location/scanning.

Stat regarding data downloads missing. Something wrong with CPU stats also.

Check the above and do the needful. After reinstalling BBS, take a new dump.
[BetterBatteryStats] TNSMANI:
The dump is not as per requirement. The screen on time is more than 2 mts whereas it should be as less as possible, definitely under a minute. So please attach a fresh dump.

That said, AOD seems to be the major culprit and also Location/scanning. For the next dump, switch off both as a test.
[BetterBatteryStats] chevi7:
CPU always running

Hello,

I am seeing in the application BBS that the cpu is always active, even at the lowest frequency, and never goes into deep sleep.

I don't quite understand how it could have happened.

Can someone tell me the process exactly to make the dump and I give it to you?

Thanks.

EDIT: I am now reading how to dump in the 1st post. I will try to do and upload here.
[BetterBatteryStats] PrevedMedved:
Sorry for that.

I have taken another one. I turned off AOD, Wi-FI and location service. Now it is much better 0.6% /h

Could you please check the DUMP again.

Samsung S20 (AOD, WI-FI, LOCATION OFF)
[BetterBatteryStats] TNSMANI:
I still see a lot of Location alarms. Did you disable Scanning in Settings>Location and also all of Google's settings within Location? Any other app persistently asking for location? Do you use Geofencing? There are some alarms related to that and may be it is the one which is causing all the Location alarms.

Samsung Push and FaceBook also caused some alarms.

Lastly the Significant Motion detector sensor. You have any gestures or DT2W etc on?

You could have left the wifi on since it is more battery efficient when compared to mobile data.
[BetterBatteryStats] TheGripper:
Can anyone share the same screenshot from their app? Wondering how many alarms per hours is google making. You should have location always enabled.
[BetterBatteryStats] jaggy989:
How much active and how much idle drain is considered to be decent for a general day of usage ?

Screenshots show my typical daily usage, just wanted to know are these stats good enough or could be better.

These are from OnePlus 6 Havoc OS & Radioactive kernel.
[BetterBatteryStats] TNSMANI:
[MENTION=4217815]TheGripper[/MENTION]

Another person's screenshot is not going to help you. Drain depends on so many variables, it is not even possible to enumerate all of them. Some of them are the installed apps, the mobile signal, the condition of the battery, whether in use or idle, the OS, the kernel etc etc. That is why only the idle drain is analysed here. Please read the first couple of posts of this thread on how an idle dump is to be made and post it here, if you want help.

[MENTION=7492960]jaggy989[/MENTION]

The above apply to you also. In addition, if you are on Android 10, idle drain from 0.5% upto 1% per hr can be considered as ok depending on various factors. Here I am talking about drain as measured by BBS and not by other apps.
[BetterBatteryStats] jaggy989:
Thanks

I will post a logcat tomorrow for my overnight drain for better analysis
[BetterBatteryStats] DB126:
BBS idle log per OP, not logcat
[BetterBatteryStats] jaggy989:
My bad, i meant the same.
[BetterBatteryStats] krus5:
Thank you my phone is cubot A5 mt6753 BBS won't see my phone or model because I installed generic project treble android 10 ROM and now my phone is unknown which is ok, this ROM is better then stock one but still battery drain is quite big in my opinion. I did search on internet about this process but there is nothing about my phone or any phone.

Just in case I reinstalled ROM and BBS so please see my new dump, maybe you can tell me how and which process to disable and then maybe finally my phone will go to proper deep sleep.
[BetterBatteryStats] pjadec:
Major problem kernel side

ttyC0 (*api*): 1 h 1 m 57 s Cnt:(c/wc/ec)3724/0/0 10.2% This keep your phone awake. Info that https://xdaforums.com/android/help/how-to-fix-ttyc0-wakelock-t3606484

So i don't know to how to fixit.
[BetterBatteryStats] TNSMANI:
See the other member's post above.

You haven't indicated whether you did any of my other recommendations made earlier. This time the drain is slightly better. CPU stats are available and they indicate that the CPU was at an elevated level though the device was on doze for almost 99% of the time.

Kernel and TTY seem to be the main culprits.
[BetterBatteryStats] pentel:
Thanks Chamonix :)

There is no google account setted (that.s why a use bbs xda edition).

I.m thinking SIMcard problem:confused:

As i said i knew it was a long shot..:(

I.v saved a clean dump file (everything off - just GSM) just for infos:
[BetterBatteryStats] noke955:
First you should change your stats from "since charged" to "since unplugged". (settings, preferences, default stat type)

Then do following:

Plug in/Plug out the phone

Let it sleep at least 1 hour (better more)

get the dump file and post it here as file
[BetterBatteryStats] olidie:
Done.

By Plug in/out you mean connecting the charger? I will charge the phone tonight, unplug it when I go to bed and post the dumpfile tomorrow.

Thank you.
[BetterBatteryStats] noke955:
Yes, exactly!
[BetterBatteryStats] chamonix:
The awake time vs. runtime is pretty good but I see portential in the wakeups / alarms. Unfortunately the dump does not show those, please post another dump for "since unplugged"
[BetterBatteryStats] chamonix:
it's the same as before. I wouldn't draw any conclusions. Please take this to the device forum to start with, I can not imagine you are alone on this one and you should get help from people who have analysed this more in depth that we can do without device specific knownledge. Whenever you feel that or device agnostic know-how is asked please feel free to post here
[BetterBatteryStats] chamonix:
I have checked the source and could not find anything obvious about bad handling of alarms > 999

Could you post the result of a 'dumpsys alarm' so I can use this as an input for debugging?
[BetterBatteryStats] jeremysherriff:
@chamonix, my 2 cents: perhaps get rid of the "since charged" option? I was originally going to suggest that you change the default to "since unplugged", as most of the advice here is to use the since-unplugged view and post a dump file. But, if you're starting to have issues with the 100% level (perhaps, unconfirmed for now) - I would ask - what use is the "since charged" time anyway? We can set a custom reference if needed/desired. Just a thought..
[BetterBatteryStats] ybres:
I will as soon as possible, Sunday most likely. Sorry for the delay...
[BetterBatteryStats] olidie:
Like noke955 advised me I changed the setting of the stats, charged the phone and left it alone for almost 11 hours. Battery dropped from 94% to 69% in this time.

To me, remember a noob, everything looks pretty normal. I don't see any differences to the time when I got more battery life. Just days before this change in battery behaviour I managed to get 4 days without turning the phone into airplane mode during the nights. This would be impossible right now even without touching the phone. That's my indicator that something has changed. Strangely not even a wipe could cure the phone. All I can imagine is one of the updates of google's services that was done after the wipe. Well, that's all guessing...
[BetterBatteryStats] jeremysherriff:
Hi, would you be willing to root your phone so we can get the "alarms" information?

There's nothing suspicious in the dump you provided, but without root access to some advanced information (alarms) we are missing part of the puzzle..
[BetterBatteryStats] olidie:
I am currently thinking about root since there's a manual on how to root without unlocking the bootloader which seems not to violate the phone's warranty. Or does it? Another option is to either wait for google to roll out ICS again or to just try the version they shortly distributed.

Talked to friend who own the Galaxy Nexus. He lost 9% over night with bluetooth on... Hmm, I really wonder what's wrong with my phone.
[BetterBatteryStats] noke955:
Maybe we can start also from an other side...

- which apps do you regularly use?

- do you use location services?

- does your carrier support fast dormancy and is it enabled/disabled? (*#9900#)

- do you use monitor programs like "Battery Monitor Widget", if yes, which settings?

- do you have Titanium Backup Pro? (you can temporarily freeze apps with it, very usefull...)
[BetterBatteryStats] olidie:
Most importantly aCalendar. Also K-9 (without push), GTasks, Quickpic, AK Notepad, MusicFolderPlayer, Dolphin Browser Mini, Dopbox, Google Reader, KeePass Droid, Maps, Silent Toggle Widget. That's about all I use.

No. GPS is constantly turned off. About every two or three weeks I turn it on to see my location in maps.

"Connection problem or invalid MMI code". My provider is e-plus.

No. All I use is the "Battery Widget" from geekyouup that shows the battery percentage and provides shortcuts.

No, since I do not have a creditcard to buy apps :-(

Thank you very much for your efforts!! Very much appreciated.
[BetterBatteryStats] noke955:
Titanium

@olidie

I'm sorry, i forgot you would also need root for Titanium Backup or any other app, which can freeze apps

You should really think over rooting...

I don't use GTASKS, but does it sync something and how often?
[BetterBatteryStats] olidie:
I am definitely thinking about rooting. Still I am a little concernced since I would loose warranty to a 4-month old phone. Root without unlocking the bootloader seems a solution. Still I have to find out about warranty in that case.

GTasks doesn't sync by itself. I do it manually. Same with K-9
[BetterBatteryStats] cdmackay:
Google Reader can also optionally sync, so you might want to check that.
[BetterBatteryStats] olidie:
Thank you! Indeed an hourly sync was activated. I will check over night if turning it off changed anything. Still the battery problem started way after I started using google reader and I am positive that I disabled sync in the app before the wipe.
[BetterBatteryStats] cdmackay:
Sounds good; you can also check the Sync section in main Settings, to see if anything else Googley is enabled and syncing...

[oh, and you can hit "thanks" button without having to reply :)]
[BetterBatteryStats] _Raziel666:
My phone cannot enter Deep Sleep these last days.

I tried wiping /system, changing kernels, freezing recent apps, but for the life of me I cannot pinpoint the cause of the problem.

Any help is appreciated.

https://pastebin.com/6tucGsM4
[BetterBatteryStats] mcchieftan:
Hi guys,

Just a quick Q. Running a Moto G8 plus. Battery loss at 0.5% when not in use, but phone never enters deep sleep. Any ideas? Is there really more battery life to be squeezed out of this....?!

I tried linking my dump, but unfortunately I'm a new user here and haven't yet posted enough to be able to post outside links. This should work without the spaces:

h t t p s://pastebin.com/raw/09Hrz5K7

Thanks for your time :)
[BetterBatteryStats] TNSMANI:
The dump you have provided is not useful.

Please read the first two posts of this thread on how to obtain an idle dump. Note that it has to be for 6+ hrs atleast and with screen on time as less as possible, definitely less than a minute. Then take a new dump and post it here.
[BetterBatteryStats] TNSMANI:
The major issue seems to be with the sensors. Deactivate all settings connected to sensors like DT2W, Lift to silence, Flip to mute and especially Camera Gesture. Then take another dump and post it here.
[BetterBatteryStats] mcchieftan:
Thanks for taking the time to reply. I will do that.
[BetterBatteryStats] DB126:
Entering 'deep sleep' is unnecessary to realize low idle drain rates on modern devices. Forcing the matter may score a 0.1%/hr reduction (if you're lucky) while crippling the device by inducing an artificial coma (requires root) that almost always carries post-wake side effects. 0.5x/hr idle drain is excellent; enjoy your device.
[BetterBatteryStats] Samiii2:
Samsung S20+ Exynos version known for being a killer in idle draining battery.

- All instant message notifications are coming OK (I didnt receive any this night though when the dump was taken).

- I have debloated the main draining apps like facebook and such

- Mobile network only.

Full log here:

https://pastebin.com/Yx87tsn9

Anyone willing to take a look and assist me?
[BetterBatteryStats] TNSMANI:
I refuse to look beyond this:

On Android 10, this is as good as Nirvana. Enjoy your device!
[BetterBatteryStats] mrjuniork:
I couldn't agree more with our beloved FM!

As a wise person once said, enjoy your device! This idle drain is as close as it gets to Nirvana, especially when it smells like the perfect idle spirit ;)

(Brief remark: for the love of privacy, don't use BlueMail!)
[BetterBatteryStats] TNSMANI:
That wise person (you know and I know who we are talking about :p) said it not once or twice but multiple times and continues to do so where appropriate. :highfive: In fact I learnt the expression from him. :angel:
[BetterBatteryStats] Oswald Boelcke:
He was and still is also my tutor and mentor. Thanks for all I'm allowed to learn from you, [MENTION=5488402]DB126[/MENTION]!

I hope this slight off-topic is allowed to credit when credits are due.
[BetterBatteryStats] DB126:
:o ?
[BetterBatteryStats] bigknowz:
Frozen

Noticed today, the app stopped working, it had kept my phone awake since unplug. Widget was dead, app just has spinning circle. Delted and reinstalled, rebooted phone, no change. Pixel 4XL, stock with custom kernel.
[BetterBatteryStats] Samiii2:
Having issues now instead :(

Awake (Screen Off) is keeping my phone awake. I tried to narrow it down to 1.5hour log and got this log here. Location disabled as well.

https://pastebin.com/YQL6E6DR

For longer logs see here (location enabled). So location is not making the difference here.

https://pastebin.com/W3EZh0Mm

and

https://pastebin.com/aUK8s89d
[BetterBatteryStats] mrjuniork:
Sorry mate, but all those logs aren't good for a thorough analysis. First one way too short and the last ones have way too much screen time.

The more screen usage you got, the more difficult it gets to find any culprits.

But then again, you have already submitted a log where there is absolutely nothing wrong with your idle drain.

What aren't you satisfied with?
[BetterBatteryStats] Samiii2:
I understand fully, I will return with better logs then.

I am having about 12-15% on average Awake (Screen Off) (about 1.5-2hours per charge cycle) which I want to try to eliminate as much as possible.
[BetterBatteryStats] Lughnasadh:
Just note that decreasing Awake (Screen Off) time will not necessarily give you a better idle drain and in fact messing with things to decrease the Awake (Screen Off) time could actually increase the idle drain.

In the past (a long ago past) I have played around with trying to get my Awake (Screen Off) time down in hopes to decrease my idle drain but when I did it either didn't make a difference or actually increased the idle drain percentage. In my experience, there isn't necessarily a strong correlation between a low Awake (Screen Off) time and low idle drain.

On my phone I average about 14% Awake (Screen Off) time but my idle drain is still very respectable at .6%/hr.

Just my thoughts...
[BetterBatteryStats] Samiii2:
Thanks for your valuable input. I experience the same numbers as you do actually so perhaps I'm just over-respecting the word Awake in the overview page while it might just be another word for sleep/idle :)

I will still experiment a bit with airplane mode and disable various things to see wether Awake (Screen off) decreases. I'll update here in a few days.
[BetterBatteryStats] TNSMANI:
All the three contain too much screen on time. We only look at idle dumps. These dumps and the earlier ones should not be compared. It is like comparing chalk and cheese.

Still I looked at your first dump for about 1 hr and 39 mts. Obviously the phone was not in the place where it was (at home?) before. The mobile signal was patchy and that is a huge drainer. The wifi also had issues. There was constant switching between mobile data and wifi. BT was on.

If you are able to use the phone where the mobile signal is better and where the wifi behaves properly, the excess drain should go away.

EDIT: Hadn't looked at the others' posts before replying to you but basically what they say is true. My advice is not to meddle with the setup.
[BetterBatteryStats] mcchieftan:
Thanks for the reply. I think this is the question I was really asking. I started playing with BBS because I was having high drain from Play Services, but it seems that clearing the cache fixed that.

Thanks!
[BetterBatteryStats] DB126:
Reinforcing 'up-vote' with a direct response. As [MENTION=6530865]Lughnasadh[/MENTION] and others accurately state - screen off wake time (numerator) and overall power consumption do not have a strong correlation on modern devices & ROMs.
[BetterBatteryStats] _Raziel666:
Hopefully my new dump meets the requirements!

https://pastebin.com/p6W2jkAX
[BetterBatteryStats] pjadec:
It's a fine dump. But you have major kernel problem. That keeps your phone awake

IPCRTR_lpass_rx (*api*): 9 m 21 s Cnt:(c/wc/ec)297299/0/0 2.5%

Sorry, but I don't know how to fix it

Something to do with sensor. Also in kernel

sensor_ind (*api*): 7 m 5 s Cnt:(c/wc/ec)436830/0/0 1.9%

My XDA app doing something, it didn't apply full info to the this post?
[BetterBatteryStats] _Raziel666:
Thanks. So there's no rogue app or any Google services weird activity?

Can this be solved by changing kernel? (already on a custome one)
[BetterBatteryStats] TNSMANI:
Your mobile signal strength was good but not great. BT was on and Fitbit remained connected. In my observations, BT connections to smart watches/bands always drain battery. If you need it, you have to be prepared for the consequences.

Instant Messaging Service fired many alarms. Location/scanning was on. If you need it while sleeping, be ready to sacrifice some battery.

Too many widget updates. Either reduce the number of updates if possible or the widgets themselves.

Facebook, another known drainer, was active. If possible discard it and use the web based alternative.

Many apps triggered background uploads/downloads.

Do you have any gestures enabled? They kept the Significant Motion Detector sensor awake for a long time.

With the above information, restrict what you can and are willing to.