yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] DB126:
Higher frequencies get the job done quicker so your device is ready to process another task or enter a lower power state (race to finish). The only time high frequency use is undesirable is when the CPU isn't fully loaded or if more heat is being generated than the device can dissipate. Tinkering with frequencies is a fool's errand on modern devices with big/little cores and sophisticated scaling algorithms. Stock governors get it mostly right most of the time for most workloads. Unfortunately, many modders use edge cases to justify mucking with stuff they don't understand.
[BetterBatteryStats] DiamondJohn:
A coupl of tool,s I found useful are:

A few posts above your may help. https://xdaforums.com/showpost.php?p=82136035&postcount=37010

and also battery histoirian:

https://xdaforums.com/showthread.php?p=77731268#post77731268
[BetterBatteryStats] james.iha:
Hi guys, please help me analyze my BBS dump.

So I just bought Huawei p30 pro a week ago, after 7 days of use I get 6-7 hours of sot and about 1%/h drain when sleep overnight. From what I read on the internet, people get more Sot (over 10h) and less idle drain.

I have WiFi off, BT off, WiFi and BT scan off, NFC off, data on, sync on.

Thanks
[BetterBatteryStats] TMonte87:
Can someone please help me with Xiaomi Mi Mix 2S? I'm running Pixel4 rom and I'm having severe battery drain from what looks like Google Play Services. Any help would be appreciated.
[BetterBatteryStats] pjadec:
Unable analyze this dump. SOT too much. Then gms drain battery badly. Try it like OP instructed.

---------- Post added at 06:44 PM ---------- Previous post was at 06:10 PM ----------

That getting into long SOT times depends on the use of the phone. If you play games then the battery will drain quickly. If you use mobile data on the internet it consumes more battery. Wifi saves battery and screen brightness by adjusting it a little dark also save battery. But battery consumption depends on how it is used.

Example with WiFi I can get almost 11h SOT, but mobile data SOT is about 7-9h.
[BetterBatteryStats] james.iha:
Thanks for ur reply. I haven't install any games yet. Only whatsapp, facebook, ig, twitter. And i use it moderately. I just never thought that using wifi instead of mobile data could make a huge different.

Anyway, do you see anything unusual or potential battery drainer in my bbs dump?
[BetterBatteryStats] pjadec:
No Sorry. Probably something about sync and no networkdata info. Try reboot phone and take another dump. But no necessary.
[BetterBatteryStats] methuselah:
My phone not going to deep sleep. Infact I factory reset it just 2 days ago. It's motorola G8 plus stock 9.0 ROM. These. Some sort alarms keeping device awake.
[BetterBatteryStats] pjadec:
That is not helping to analyze at all. Do dump like OP instructed. Then come back with dump to get analyzed. Or wipe internal storage also and start again flashing rom. There are problems with android system something corrupt something?
[BetterBatteryStats] DB126:
Wrong analysis (jumping to conclusions) and certainly not root cause. Need an idle dump, 6+ hours with <1 min screen on time. Not screen shots.
[BetterBatteryStats] tomhouf:
Hello,

Little up please ?

If my captures are wrong, do not hesitate to tell me.

Thanks in advance !
[BetterBatteryStats] TNSMANI:
Neither of them are idle dumps. Both are from 100% to xx% which include screen on time of 28 + minutes. Please read the OP and post idle dumps.
[BetterBatteryStats] DB126:
I'll take a look in a bit and comment. Unfortunately, pastebin doesn't play nice on some mobile devices/configs.
[BetterBatteryStats] DB126:
As noted by [MENTION=5656100]TNSMANI[/MENTION] neither log is a true idle study due to excess 'screen on' time. That said, I can say with reasonable confidence that your device is behaving normally with no zombie drainers. Look back through the last dozen or so posts for suggestions on improving battery endurance. In the absence of a rogue process or hardware fault SOT is largely within your control (obviously constrained by device attributes such as battery capacity, SOC efficiency, etc). Good luck!
[BetterBatteryStats] SkylineDiT:
Hi, I have LG G6 H870 Stock V30B ROM.. And I need your help figuring out what causes inconsistent battery drain when idle it varies from 0.5%/h to 3.0%/h Sometimes magic happens and I get 0.1%/h. It was when I disabled LDB but it was for 1 night. And drain begin next day when I charged phone to 80%, drain went up to 3.0%/h in idle. I added 2 dump files. One is at night 1.4%/h (screen of) and another is for a day 1.5%/h (screen of). I dont understand why during the night idle drain is high, and in the day idle drain is same like at night.

Also tried to reflash roms, put custom rom too. Low idle drain stays for 2 days, after new install and then fun starts with idle drain
[BetterBatteryStats] TMonte87:
I've re-uploaded with much less SOT
[BetterBatteryStats] pjadec:
Still too much SOT. Try different kernel there are some problems. There was updates done with GPlay wich also cause drain. Do dump like OP instructed.

---------- Post added at 02:02 AM ---------- Previous post was at 01:46 AM ----------

Both dumps too much SOT. Mobile signal when it's not in good then it's drain more battery. Also battery is 3 years old. Because it's sleep well and no major problems found. Try again do the dump with SOT less than 1 min.
[BetterBatteryStats] TMonte87:
I will try again but correct me if I am wrong. I only had 8 min screen on time? What should I be aiming for? Due to work schedule it's difficult to get a good window of no use.
[BetterBatteryStats] m0han:
minimum 6 hrs idle (don't even touch the device), unlock and save dump immediately (screen on less than 1 min while doing this). best done when/after your rest after work.
[BetterBatteryStats] TMonte87:
Ok I did a full charge at work and took it off the charger and DID NOT use it for 6 hours straight. Why it has 8 minutes SOT is beyond me. Maybe possible from phone calls, texts, notifications lighting up the screen. Either way I didn't touch it and this is the best its going to get. Prior to doing this I flashed my latest ROM version and latest kernel version. Hope its something that can be worked with now.
[BetterBatteryStats] pjadec:
Sorry, but still not good dump. Too much SOT. No analyze can't be done.
[BetterBatteryStats] SkylineDiT:
Hi, again I did what you asked, added a new dump. But tonight I got discharge rate of 0.6%/h when last night it was 1.6%/h
[BetterBatteryStats] TNSMANI:
OK, I will try to analyse this dump but it will not be accurate since I don't know when the wakelocks/alarms etc triggered, while idle or while the screen was on. There is no info on network (background downloads etc). You seem to have an older version of BBS installed. Update from Play Store and take another dump while you sleep so that disturbances will be minimal. Also locate the phone where the mobile signal is better.

Your mobile signal was patchy and that is a huge drainer. Try to locate the phone at a place where the signal is better.

Do you have any other device like a printer attached to your wifi? If so, switch it off or atleast disconnect the wifi from it. Because your wifi caused some wakelocks.

TG and Nine Folders caused wakelocks and alarms. If possible, try to reduce the number of times they wake up. BT was also on. Do require it while idle?

Location/scanning was on. Once again, do you require it while idle? It caused a lot of alarms.

Tencent, MS Office, Instagram and Nine Folders caused a few alarms. If possible, try to reduce the times they wakeup.

This is all I can find out for the present. If you post another dump after rectifying the above, I/someone else will try to help you further.
[BetterBatteryStats] TNSMANI:
You have a very poor mobile connection where you kept the phone. Locate it elsewhere where the signal is better. Because poor mobile signal is a huge drainer.

Your wifi was also disturbed by some other device like a printer on the same wifi. Disconnect that device from wifi.

Facebook had a few alarms but then unless you use the web for it, there is no other way to control it.

There is no data on network like background downloads etc. May be that caused additional drain for the 1.6%/h result earlier.

The current drain of 0.5%/h is good and if you are able to attend to the mobile signal and wifi issues, it will be better. If you can't, then this drain is very much acceptable.
[BetterBatteryStats] mh_:
Hi, could you analyze this please? ? My phone can't deep sleep for most of the time and drains the battery... (5%/h)
[BetterBatteryStats] pjadec:
Because, your phone doing something background thats why higher battery drain.
[BetterBatteryStats] tomhouf:
Yes, I did not understand the OP perfectly.

Anyways, thank you very much for your time !
[BetterBatteryStats] gorrinho.jr:
Hey there!

I have a Xiaomi Mi Mix 3 with Android 9 and the latest version of BBS from the Playstore. I have no root access but have granted all the necessary permissions (BATTERY_STATS, DUMP, PACKAGE_USAGE_STATS), as well as access to hidden APIs. All the sections from the app work perfectly, except the CPU States, which just doesn't show anything at all.

Any help would be very much appreciated.

Thanks.
[BetterBatteryStats] gorrinho.jr:
Device doesn't deep sleep

Hey everyone, serious problems here. I have a Mi Mix 3 5G and it has had a serious battery drain while screen off for a long time. Rebooting the device seems to work, but only for a day or two before the battery drain kicks in again. So I installed BBS with GSam to determine the cause of this drain, along with Naptime and Greenify to see if they could help me with this problem, dozing at all costs. Here comes the interesting part:

I have repeated the experiments for two days in a row, at night while I sleep. In both of them, my phone is in airplane mode with everything turned off (Wifi, GPS, Bluetooth, NFC, etc) and only four apps in the background (BBS, GSam, Naptime, and Greeneify).

The first night (04/26) I got a 2% drain (0.3%/hour), which is pretty darn good, being the phone in deep sleep almost all of the night.

The second night (04/27) however, is completely different. I got a 23 % drain (3.5%/hour), being the phone in deep sleep for 0 SECONDS, it was awake the whole time while screen is off. The conditions for both tests were EXACTLY THE SAME (mentioned above), with the same apps installed and running in the background, the phone in the same place, and both tests lasted around the same time (6h and 30 min). I have looked at both logs from BBS and both look pretty much the same, except the deep sleep time (duh) and the Processes section, in which I can see that the second night there a lot more processes running and consuming CPU usage, especially kworker processes. I have no idea what to do or how can I solve this. Any help would be very much appreciated and needed. As I said, rebooting works, but only for a day or two tops

I will attach the BBS logs, as well as screenshots from GSam and BBS. PLEASE HELP!!:(:(:(
[BetterBatteryStats] DiamondJohn:
The following provides a visual representation over time of both Doze and Battery drain. Also, it has a link to a post to help identify any sudden peak in battery drain; and much more.

https://xdaforums.com/showpost.php?p=82136035&postcount=37010
[BetterBatteryStats] Bonvaz:
What is the last xda version stable version? I'm having problem with the last one, on android 10 and OnePlus 7 pro. As I reported recently, it doesn't refresh the values after I unplug the phone.

Inviato dal mio GM1913 utilizzando Tapatalk
[BetterBatteryStats] DB126:
Greenify? Naptime?? This mix is toxic on modern devices. Please reset your clock to 2020 and catch up on the last 3 years. :)

Use the tool suggested in this post to figure out what's borking your doze. Better yet, reflash a stable ROM and resist tinkering. Recent Android builds are quite good at taking care of themselves. Good luck, mate.
[BetterBatteryStats] gorrinho.jr:
Yep, did just that. Flashed a custom ROM, in my case, Pixel Experience. For the moment, battery life has improved ENORMOUSLY, this same night I got a 0% drain with the same apps installed and the same scenario. I Will inform in a couple of weeks to notify progress (hopefully).

So to clarify, you wouldn't recommend the use of Naptime or Greenify? I'm not a fan of Greenify really, however, Naptime has improved my battery drain in most cases. Is there something you would recommend to improve battery life, apart from the obvious recommendations (no GPS, no syncing, no background apps, etc)?

Thanks for your response, cheers!

---------- Post added at 11:54 AM ---------- Previous post was at 11:46 AM ----------

Will try that on my new ROM, thanks man!:)
[BetterBatteryStats] Oswald Boelcke:
Up to Nougat, I was a heavy and convinced user of Greenify etc. as you'll most likely recognise in the respective Greenify threads. I've abandonned them all since I'm using Oreo respectively Pie (as currently LOS 16). I will not convert to Android 10.

TL;DR: No longer required on latest Android's, I absolutely confirm what [MENTION=5488402]DB126[/MENTION] stated.
[BetterBatteryStats] DB126:
As noted by [MENTION=7408621]Oswald Boelcke[/MENTION] no need for Greenify on devices running Android 7.x and above. Was never a fan of Naptime. Any (cough) "savings" observed during periods of inactivity were usually offset by a rush of 'catch-up' activity when the device arose from its stupor. Really no need for active power management tactics on modern devices/kernels/roms. Manufactures have become attune to consumer desire for increased longevity and adjusted hardware accordingly. Google has been a huge proponent of reining in misbehaving apps, including their own suite of offerings (eg: Play Services is no longer a pig although it can seem that way to the casual observer). Yes, there are sill warts but they are comparatively small relative to past sins. Sit back and enjoy your modern device. Alternatively, find a 5-7 year old dinosaur to rip into if you must tinker.

Actually, one of the best ways to

increase

overall power consumption while reducing device stability is to install a custom kernel or (less egregious) ROM on a modern device. Particularly one that comes with a relatively clean stock image. Just say'in ...
[BetterBatteryStats] jaggy989:
Hi, could you analyze this, please? if there are any abnormalities
[BetterBatteryStats] TNSMANI:
I am not able to find any single reason for your drain which at 0.9%/h is not very high for Android 10. I would say anything upto 0.6%/h is good.

The Airtel app, widget update, WhatsApp seem to have some part in the drain. That is all. Try to contain them, if possible.

Try a reset or a clean flash. I won't advice further tinkering since the drain is not alarming but only slightly higher.

Please also read the last page or so of this thread about the behaviour of modern devices.
[BetterBatteryStats] jaggy989:
Thanks mate ?

I already disabled any background activity for airtel app, can't do much with watsapp as it's a necessity & will look into widget also.

Further, I recently updated OS via dirty flash, you believe clean flash would make a difference in battery drain.
[BetterBatteryStats] Oswald Boelcke:
Idle dump of last night. Really satisfied with the drainage (0.4%/h) despite the poor mobile reception we've at our home.

I was just wondering how the voltage of the battery could increase? But I assume it's just a false indication most likely due to the kernel. However, open for any idea how to fix it although I don't really bother.
[BetterBatteryStats] TNSMANI:
These are the major drainers:

The first lot, I think is related to your mobile signal about which you may not be able to do anything, except may be trying to locate the phone where the signal is better.

The second lot relates to Conversations. If possible, try to restrict it.

The third one is App widget update. Try to reduce the number of widgets.

The increase in voltage must be a hiccup.

As you said, the drain rate is good considering the weak signal.
[BetterBatteryStats] TNSMANI:
Most of the times, a dirty flash leads to issues, sometimes minor, other times major. Clean flashing is not going to cost you anything except some time, which in these Corona times, everyone has in plenty. Try it.
[BetterBatteryStats] Oswald Boelcke:
I appreciate that you had a look into the dump. Yeah, the voltage is certainly a hickup. Actually, I'm more than happy with my setup; the reason why this was my first dump after about six or even nine months. System is intentionally setup this way.

Conversations is intentionally not battery optimise or otherwise restricted. Same applies to Fairemail and the very few applications, of which I'm using widgets.

And living on the German country side about 1 km to the Dutch border, signals of all mobile providers are simply poor. There's no place in the house to achieve a higher signal; mobile data only works on 2G. Outside occasionally 3G pending on the location in the garden. If I walk into the fields towards the next town, I can get a 4G signal. That's just life here, which has other advantages on the other hand... But I'm happy that I don't depend on a mobile data connection.

Gratefully, I don't use Whatsapp & friends, no Google services but µG, (modified) Google Play Store is always frozen unless I decide to check for updates.
[BetterBatteryStats] DB126:
Unstable voltage is symptomatic of an aging (albeit not necessarily failing) battery. On the other hand, it could reflect a change in ambient temperature. Use a tool like GSAM to monitor device thermals when idle. Voltage tends to rise as the device warms all else being equal. Heavy loading (drain) just prior to becoming idle can also depress the starting voltage which sometimes takes a bit to recover.
[BetterBatteryStats] karamancho:
how to update app? I get a prompt every time I open BBS but when I press 'update' the app just crashes, restarts and gives the update prompt again
[BetterBatteryStats] tsiftsism:
I don't know if i have the same problem, but in my case after I unplug my Mate 20 Pro, the timer doesn't reset so I guess all the values are wrong.

For instance now it says Unplug 3d 14h 14m (I unplugged the phone 4 hours ago), and the percentage battery has a minus indicator (-24%).

Is that right?
[BetterBatteryStats] Bonvaz:
Yep, same problem here. OnePlus 7 pro, android 10.

Inviato dal mio GM1913 utilizzando Tapatalk
[BetterBatteryStats] DB126:
If not obvious BBS performance on Android 10+ is inconsistent at best due to increasingly restrictive Android permissions. Reliability will likely degrade even further in Android R as Google seems intent on locking down capabilities that were once easily exploited. The era of utilities such as BBS is quickly drawing to a close. Your modern device is what it is, like it or not, unless one goes to great lengths to disable native protections. Few quality developers are going to cater to that already narrow and rapidly shrinking community. Life evolves.
[BetterBatteryStats] lazostat:
Why this app has so many negative reviews the last months? Does it work with android pie rooted?
[BetterBatteryStats] DB126:
Reports from Android 9.x users have generally been favorable.
[BetterBatteryStats] viucorp:
Hello

He guys, can you please have a look at my dump file and give your opinion please.

Thx in advance :)
[BetterBatteryStats] Oswald Boelcke:
From my point of view, it couldn't be better! Just the voltage lost calculation is wrong for whatever reason but you can do that manually with the provided values.
[BetterBatteryStats] viucorp:
Thx for the quick answear, after starting to use the phone, it quickly went down to 90% :))))
[BetterBatteryStats] DB126:
Yep - no zombie drainers. Whatever happens after wake is a consequence of running apps, panel brightness, signal strength, location services, battery condition, aggressive widget refreshes and a bunch of other variables largely under your control. Start by lowering screen brightness and checking native battery tool for high consumers. Might not need that fitness, social or weather app that is taxing your battery. Good luck.
[BetterBatteryStats] Bonvaz:
Thanks for the answer! I'm not updated about Google behaviour, so I really not to know about that. I'm really sad that I can't use BBS on Android 10, it's really one of the best I app I ever used.. and it's frustrating not know what's happening with my battery, since android battery stats are trash..

Inviato dal mio GM1913 utilizzando Tapatalk
[BetterBatteryStats] DB126:
Native battery stats aren't "trash" but rather focus on the big picture vs minutia. Once upon a time such detail was essential to identify misbehaving components that would seriously degrade battery life. Moving into the third decade of the current millennium Doze and other native system management capabilities, with rare exceptions, handle the heavy lifting. Not to mention improved app behaviors, much of it driven by Google and consumer sentiment around privacy and battery life. Those obsessed with turning knobs and dials will miss BBS and similar utilities. I prefer to use my devices vs manage them, only doing the latter when necessary. 2015 was nice - but I'd rather not return. ;)
[BetterBatteryStats] Zrbtfm:
Fixed counters reset issues on Android 10 by moving from bbs xda to bbs beta from play store.

Fixed on both pixel 3a and one plus 5t.

Still need one shot ADB shell permission commands three of them as far as I remember after BBS reinstallation.

And yes, adios greenfy and co. Bbs is there to keep an eye on any application abusing background activity. Then android 10 offers background activity blocking by application.

Tbh, only one app needed a such restrictions. 2020 android is self-sufficient for battery optimization!
[BetterBatteryStats] tom_xda:
Please help, having very high battery drain, 9% per hour in deep sleep.

Hi Guys,

Really appreciate any pointers on my battery stats. I am currently using Asus Max Pro M1 with Android Pie, unrooted.

Issue:

I have been having 10% / h drain in idle mode, it went down by a percent in deep sleep. The screen on drain easily reaches 20%.

Another issue I have seen is my battery refusing to charge to 100%, it says 4 mins remaining and doesn't budge from 99% even after an hour. The phone heats up crazy too. So I fear charging it further. I have seen it touch 100% hard 2 or 3 times in last 2-3 weeks, since the time I have been trying to identify issue with it, but couldnt understand what triggered it to go to 100.

The same phone used to stay charged more than 24 hours easily before the update, but now 12 hrs is a dream.

Background:

I got 2 FOTA .061 and .063, in last 1-2 months. I had already noticed my phone heating up, battery draining + slow charging after upgrading to .061, I thought something might be rectified with this immediate .063 update but it didnt help.

I have taken this battery dump with NO SIM Card inside the phone, Wifi Off, Flight Mode on. I have Greenify installed.

I feel like this is a hardware issue with the Battery, but the timing around the FOTAs does not feel like a coincidence. I have also seen other folks complaining about bad battery post the FOTA.

Appreciate all the inputs.

Thanks.

PS: Just joined the forum, I dont see the option to attach file. Sorry for pasting the dump in the post.

BBS Dump - https://pastebin.com/mqVBUnmE
[BetterBatteryStats] githyanki:
Please don't paste dumps in thread. Hide tag does not work on XDA app.
[BetterBatteryStats] DiamondJohn:
The other solution is to use a text hosting site such as www.pastebin.com or del.dog etc etc You could also zip up the files and place them on filebin.net

for the benefit of the people using the XDA app, you can edit your post and transfer the text.
[BetterBatteryStats] tom_xda:
Thanks for the advice, I updated my post to add a pastebin link.