yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] IronTechmonkey:
It's good that they jumped in before I did. ;)

As to "unworthy": Modesty noted, but if I see that one of your posts is the most recent in a thread I'll jump in to read it just to learn, even if I've no direct interest in the topic. Thanks for the continued education. :)
[BetterBatteryStats] githyanki:
You can try a "dirty" install and see if it helps. Do a backup in TWRP, wipe cache and system. Reinstall lineage and gapps.

Should boot back up and work, but no telling if it fixes a anything. Any other help on this issue, please ask in general forums for lineage or for your phone as it does not apply to BBS.
[BetterBatteryStats] deloj:
Ok that sounds good.. appreciate it
[BetterBatteryStats] m0han:
ditto. thanks for your contribution to android users, [MENTION=5488402]Davey126[/MENTION]. well said, [MENTION=5119654]IronTechmonkey[/MENTION].
[BetterBatteryStats] SacredDeviL666:
Thread Cleaned and posts edited.(Please don't add back the edited posts, if so then we will need to take a different route in that approach :) )

Its very simple if you want to post here on XDA, do so with respect to each other irrespective of how tenure you are here or how new you are here or how tech savvy you are.

If someone is trying to help you please thank that person and if you don't like the help ignore and move ahead instead of trolling. If you think a post is troll or not in its place feel free to hit report.

I am sure the rest is understood why i had to remove/edit last few posts here :o

Peace :highfive:

Thanks

SacredDeviL666.
[BetterBatteryStats] clavierkid:
Battery dropping 40% a night

I have the Moto G7 Power. When I first got it (a month or two ago), the battery would last several days on a single charge, maybe dropping 3-5% in a night at most.

Starting a few days ago, now it drops much faster when it should be asleep. I can't spot any obvious culprits, what's going on?

Assuming my logs uploaded (haven't done this on mobile before ), it looks like I have a lot of wakelocks but very little time awake.

I think I'll try airplane mode/no wifi/no location next and see if that helps.

Thanks in advance!
[BetterBatteryStats] Oswald Boelcke:
[MENTION=7163752]clavierkid[/MENTION] Idle dump is not useful as your screen was on for more than half an hour. Must be less than one minute; please refer to OP for procedure.

Suggest to upgrade from your really mature BBS version.

Third: What did you do to your device between your former "good" experiences and the "bad" one now? Any changes to ROM (e.g. an update), kernel, your home network/WiFi? Is now a wearable in use? Did you newly install any applications, and if affirmative which ones?
[BetterBatteryStats] clavierkid:
Sorry, hope I did it right this time haha.

I didn't install any new apps, but I noticed a few Google apps updated (Carrier Services, Google, Gmail, YouTube). I'm running stock/unrooted Android, haven't even unlocked my bootloader.

I guess there's one thing I can think of? I dropped my phone on some gravel around the time this happened, and the fingerprint sensor stopped working. So I turned off the screen lock (set it to "swipe"), but now the option to add a fingerprint doesn't even come up in settings. That might just be coincidence though.

Thanks again for your help!
[BetterBatteryStats] strongst:
There are no cpu stats within the dump unfortunately. I guessed the device did not enter deep sleep very well, but without stats it's not possible to investigate here.
[BetterBatteryStats] clavierkid:
Okay, thanks for the quick reply. Would I need root access to get CPU stats? The other thing I noticed was that WiFi was running 100% of the time (from the screenshot), I don't know if that's normal or not though.

Thanks for your help!
[BetterBatteryStats] strongst:
CPU stats should also be collected without root, but every stat depends on device /rom/kernel. There are no big downloads ongoing and normally you won't get that high drain just by wifi.
[BetterBatteryStats] dheigan:
Is this from rom/kernel issues?

tiny.cc/bbstxt

Sorry first post cant provide link/upload
[BetterBatteryStats] AquariumVitae:
Try disabling "wifi scanning" under:

System settings -> Security -> Location -> Scanning

(LineageOS 15.1/Android 8)

Keep in mind that Android - no, Google - will eventually suggest to enable it, eg. when changing location service from GPS="device only" to "Accurate" or "Battery saving", for me especially when Maps navigation starts.

Let us know. :)
[BetterBatteryStats] TNSMANI:
Were you on airplane mode while taking this dump? This is not useful for analysing battery drain except as a reference point. Take a fresh dump with mobile data and wifi switched on.
[BetterBatteryStats] R1kki:
Hello everybody!

I'm sorry for a short-time created dump. But I have a problem with battery draining in idle time.

Could you check my dump to see what's wrong?

Thank you!
[BetterBatteryStats] strongst:
If you already know that your dump file won't met the requirements, why you just post it anyways? :rolleyes:

It's quite annoying that instructions are simply ignored again and again... That's just time consuming for everyone and won't give you any benefits.
[BetterBatteryStats] GeNiO790:
Good morning,

I'm trying to install better battery stats on xiaomi redmi note 5 (whyred) without root, but I can't do it. Can anyone help me step by step?

Thanks, I'm in big trouble.
[BetterBatteryStats] chantoine:
Just follow instructions on play store (for example) with adb. Nothing special with that phone.
[BetterBatteryStats] clavierkid:
Tried that, didn't seem to help. I also tried keeping it in Safe Mode for the night, but that didn't do anything either. Idk, maybe I'll see if airplane mode does anything? Or maybe I'll post in my device forums. Thanks for the help.
[BetterBatteryStats] GeNiO790:
Hi, I managed to install BBS, but now I would like to be helped in reading the statistics because I can't understand what the phone doesn't do in deep sleep.

Last night I unplugged the phone and left it offline for about 5/6 hours. The phone never went into deep sleep. I saved the Dump file, I attach it below to ask you for help.

Can anyone tell me what the problem is?

Thank you!!

P.S. if needed I also have the log and dmesg files, just ask me for them
[BetterBatteryStats] strongst:
Your Accelerometer sensor was polled over 5h from Xiaomi game rotation vector and Nova Launcher has used the Accelerometer too for over 5h hence no deep sleep at all. That's your direction you need to look at.

Furthermore your screen on time is several minutes which is to much(please refer to first post instructions), but that's just a recommendation for posting further dumps ;)
[BetterBatteryStats] GeNiO790:
Do you have any suggestions for me to solve the problem related to the sensors for which I have attached a dump just above ??

Thank you
[BetterBatteryStats] Oswald Boelcke:
Did you already check in your device's forum if a solution is available?

BTW: Concuring to [MENTION=613506]strongst[/MENTION] assessment.
[BetterBatteryStats] strongst:
In addition to Oswald Boelckes suggestion you can try to break down the issue by freezing the mentioned apps(one after one) or just check the app permissions if they are necessary, one after one.

Without breaking down the issue, you cannot fix it :good:
[BetterBatteryStats] GeNiO790:
and how do i block them ??
[BetterBatteryStats] strongst:
Nobody said to block them :rolleyes: blocking doesn't help you to know the root cause. I gave you 2 suggestions and Oswald 1.
[BetterBatteryStats] fossils-n-dents:
1. You have not met the 6 hour minimum threshold for a proper idle dump. See Photo #1 below.

2. You cannot use/ touch/ play with the device. It ruins the validity of the dump because should 'Idle' idle. Screen on time must be one minute or less. See Photo #2 below.

3. There is no Cellular/ Wifi network running in your dump. Pick one, and create a proper dump.

4. For me, force stopping/ disabling/ clearing all data, deleting...then re-installing Nova Launcher rid me of my excessive accelerometer issue. Why it started, idk.

5. Stellar battery life is any drain below [0.5%/h]. Anything below [1.0%/h] is acceptable. Anything above [1.2%/h] while in Doze Mode deserves your attention that may lead to some hard choices.
[BetterBatteryStats] lm089:
Referring to BBS 2.5-330 on OnePlus6 (Pie):

I'm not permanently observing BBS (unless there's an unusual battery drain, I don't feel I need to...). Every now and again I realize that BBS's notification icon is gone from the status bar. Happened again this morning, so I called the app. The statistics screen showed up and told me that my device had 10days + of uptime since last unplugged!!!! This is not true, of course: in the last 10 days I used it frequently, charged it at least 4 times, and last night I also had to reboot the phone. Apart from that the statistics where completely empty (see screenshot). I killed the app but that didn't help. Then I deleted the app's cached data (through settings), but again it didn't help. Only after I killed the app then cleared all user data BBS returned to behave normally.

As I wrote: this hasn't happened for the first time, although not often. It doesn't really bother me, but if someone's interested in looking into this, and you need some kind of log please let me know which kind of log you want to see (I don't think that a logcat would help much, but I may be wrong).
[BetterBatteryStats] Nekromantik:
Hi is minus hourly drain reading correct?

I can't seem to set it back to normal. Even tried uninstalling and reinstalling.
[BetterBatteryStats] strongst:
Negative drain comes from charging the device while taking a dump file, that's the common mistake.
[BetterBatteryStats] AllexRo:
Anyone willing / kind enough to look into the logs i've attached?

My current Samsung S9 (Exynos), inspite of all optimizations i've tried, seems to happily drain the battery as a thirsty b***h - or maybe my expectations are too high from this phone and everything is normal...

Either way, please help!

Regards,

Alex
[BetterBatteryStats] Nekromantik:
Nope not taking dump file
[BetterBatteryStats] strongst:
We cannot see what issue you have nor did you answer if you charged your device or not. Providing screenshots, dumps logs anything could help to resolve your issue.
[BetterBatteryStats] Nekromantik:
I did charge device yes.

Screenshot attached
[BetterBatteryStats] strongst:
That's the problem like I mentioned already: https://xdaforums.com/showthread.php?t=1179809&p=79799862

It's also logic: charging the device must cause a negative drain, otherwise you cannot bring capacity to the battery.

---------- Post added at 04:47 PM ---------- Previous post was at 04:43 PM ----------

Please read instructions how to provide a dump file carefully, your dump could not be used...
[BetterBatteryStats] chelsfc2108:
Hi,

I'm new to BBS, just installed yesterday and having a hard time reading the stats.

I choose from [Unplugged] to [Current] and it shows the combined drain per hour (eg, -0.9%/h). How do I make it to show stats like in AccuBattery (screen off average drain per hour since unplugged, screen on avg drain since unplugged, shown separately)?

In addition, what stats does it display when I choose from [Unplugged] to [Screen Off] or from [Unplugged] to [Screen On]? I see that the numbers in these 2 options are very close, but I don't know the difference between the 2...
[BetterBatteryStats] strongst:
Please read the conversation above why you have a negative drain: - 0.9%/h

Akso check the first posts for instructions.
[BetterBatteryStats] AllexRo:
Apologies! I overlooked the explanation on 1st post. I assume this is the correct procedure, right?
[BetterBatteryStats] Nekromantik:
the phone was taken off charge more then hour ago,

this screenshot was when device not charging.
[BetterBatteryStats] strongst:
Exactly :svetius::)

---------- Post added at 05:59 PM ---------- Previous post was at 05:54 PM ----------

But according to the screenshot you have set UNPLUGGED to CURRENT. And one day+ unplugged before.

I recommend to full charge the device, unplug it(don't change any of the bbs settings and check after 2h again(you can use your device heavily to get drain).
[BetterBatteryStats] Nekromantik:
Attached is screenshot showing last time I charged phone which is 4 hours ago and another BBS screenshot still showing minus drain
[BetterBatteryStats] strongst:
BBS shows 39% battery, but rom screenshot shows 89%.

Did you really charged your device to 100% like I mentioned before and did what I suggested? BBS seems to have another unplug reference or not reset upon unplug if you charged it.
[BetterBatteryStats] chelsfc2108:
I cannot get BBS to produce the info I need like in AccuBattery.

In AccuBattery, I am able to see these stats (for example):

Total screen on time (since unplugged): 1 hour.

Total drain with screen on (since unplugged): 10%

Screen on drain rate (since unplugged): 10% per hour

Total screen off (since unplugged): 2 hours

Total drain with screen off (since unplugged): 1%

Screen off drain rate (since unplugged): 0.5% per hour

In BBS, it does show total screen on and off time, but it doesn't show the battery drain rate separately for total screen on and off time, it only shows the combined drain rate.

I can select from [Screen off] to [Screen on] but that just shows stats for only the last time I put the device to sleep, not total screen off time.

Is there anyway I can produce these stats with BBS? Thank you.
[BetterBatteryStats] AllexRo:
Hope this time is usable - well, it looks readble, compared to what i've attached initally. :D
[BetterBatteryStats] drezz2:
Does anyone see something weird in this log?

normally at night , in airplane mode it is usually between 4-6%
[BetterBatteryStats] R1kki:
Hi, everyone!

Could you check my log?

So, I have a problem with battery drain with turned wifi. My phone doesn't sleep correctly and it has a lot of wakeups when the screen is off.

But I've created the dump keeping whole rules of a correct dump.
[BetterBatteryStats] strongst:
0.7%/h isn't that bad. Facebook messenger is always a drainer and also alarm timer(alarm clock). You need to choose if you can get rid of them. I guess you can also try a dump with similar runtime without wifi connection(just with mobile connection) to see if there's a difference.

---------- Post added at 07:25 AM ---------- Previous post was at 07:21 AM ----------

[0,3%/h] = AWESOME!

The wakelocks you're observing are absolutely within ranges. There's nothing to worry about. You have only moderate signal strength and gathered this awesome drain rate.

No need to dig deeper or figure something out.
[BetterBatteryStats] AllexRo:
Hey strongst! Thanks for your input!

Ok, so i'll uninstall FB Messenger - however, alarm clock is not functional. I found the default entry created by Samsung (every working day @ 6AM) but i don't use it.

While idle consumption seems ok, my problem is with the daily usage. I've attached a log of what I've been doing this morning while stuck in traffic (I've set a custom ref, to a certain point) - that would be internet usage, while on 4G, no voice calls.

Is this normal? Am i expecting too much of this small battery? And, btw, what's with the "NO DATA CONNECTION" [MENTION=1412615]100%[/MENTION] - is this stating that the phone was connected to any-form of internet-service 100% of recorded time?

Thanks & regards,

Alex
[BetterBatteryStats] strongst:
The usage dump is always dependent on a majority of environmental facts and individual ones which cannot been compared as good as a idle dump.
[BetterBatteryStats] AllexRo:
Yeah, I assumed this is the case when I wrote the previous reply but I chose to ask you, as a confirmation.

Anyway, i formatted the phone and this time i chose a clean installation (as opposite to previous time, when I had chosen to restore from backup). Seems the phone is performing a little better in terms of battery consumption.. hope it's not a placebo.

Could you please help me understand how should i interpret the % under "No Data Connection"

Thanks,

Alex
[BetterBatteryStats] Oswald Boelcke:
I assume you most likely didn't read beyond the OP. Post #3 contains a few FAQ. Below is a partial quotation. Please advise unless it answers your question.
[BetterBatteryStats] TNSMANI:
Screen on time was higher than stipulated in the OP. That might be the reason for the elevated drain. Or the age of the battery.
[BetterBatteryStats] drezz2:
the 2 minutes of screen on do not think they are the reason, the age of the battery could be .. but after restarting has returned to normal consumption, I guess it has been some application, but I can not know which

When I use one of the bank applications that I have when I leave, it seems that "weird things" happen with regard to the battery consumptions
[BetterBatteryStats] fossils-n-dents:
Your first course of action should be to disable/ delete those banking apps, observe device behavior for a few hours just in case it's something else, then settle down for an idle test as per the OP instructions.

*For an added level of security, maybe you should consider not storing financial information on your device(s). Just a thought.

If you think your battery has aged, try idle testing from 75% or lower.

1. Charge up to 75%/ unplug the device, immediately turn off the screen...walk away.

2. Don't touch the device for at least 6 hours. If you do...start over.

3.Then come back, and let the fellows help you up by submitting a proper dump. The answer is in there.

Good luck!:good:
[BetterBatteryStats] drezz2:
the thought of banking applications is an assumption, but I do not really see them appearing in the log, so I understand that that should not be the problem

What mobile and what variant of android do you have? its great in 7h30m 0%

I've also noticed that with lineage 16 sometimes, if I used the phone as an access point or as a gps ... even if I turn them off for a variable time (sometimes 20 minutes, sometimes 4 hours) with the processor at 300mhz instead of as iddle
[BetterBatteryStats] fossils-n-dents:
Yes, my "Disable/ delete banking apps" assumption was built on abnormalities after use. I also suggested running the system without banking apps to rule them out in case the abnormality arises again. Standard procedure from such an issue.

HTC 10 running Nougat. For me, the key was not giving Google Play Services and downloaded apps much to do while idle, and taking the paranoid steps to get there. My daily driver over my S10+ stock because no custom ROM yet.

Are you also disabling Wifi/ BT Scanning, and Location when you turn off GPS?
[BetterBatteryStats] beatschubser:
Ok, my new Xiaomi Mi Mix 3 is driving me crazy. It often (not always!) loses around 15% battery over night in airplane mode, and I can't seem to find the reason.

As you can see in the first screenshot, I started at 100% shortly before bed time. I then put the phone into airplane mode, which switches everything off except Bluetooth (radio, wifi, nfc). I then listened to VLC via bluetooth-headphones for half an hour and switched off Bluetooth as well.

The other screenshots show details for partial wakelocks and alarms. Is there anything you guys can see that might be responsible for the battery drain?
[BetterBatteryStats] strongst:
[MENTION=5711694]beatschubser[/MENTION] please provide a dump file.screenshots only are not enough.
[BetterBatteryStats] DB126:
And take care to create an *idle* dump (<1 min of 'screen on' time) of proper duration (6+ hours). Avoid streaming during sampling window; better yet, don't touch the device. See OP for further guidance.
[BetterBatteryStats] beatschubser:
I did the 6 hours test as described, but there was no battery drain at all during this time. Then I went to my usual routine (VLC via bluetooth, then idle) and the drain was there again.

I'm attaching both files, the 6 hours test and the extended one. Maybe this already gives some insights - if not, I will try to repeat the initial test until it records the battery drain.
[BetterBatteryStats] githyanki:
Your one dump looks great, as you knew. The other is unusable for analysis because of the screen on time. BBS does not show how much drain each activity caused, so all I can tell from it is that VLC was the most active process. Can you use a different app for music playback and see if the drain continues?
[BetterBatteryStats] TNSMANI:
Your idle dump is ok since there is no noticeable drain.

But you seem to have an issue with your Significant Motion Sensor. It kept the phone awake even when you were on airplane mode. Plus Location seems to be on in both the dumps.

I think that if you take care of these two, your problem will be solved.
[BetterBatteryStats] DB126:
Second dump is unusable for reasons already explained. That said, streaming services appear to be the source of drain and may remain active for a period after you stop listening. Actively stopping them (multiple) may help. I wouldn't worry too much about sensor activity and location setting at this stage. The former may be a red herring while the latter is not a significant drainer when the device is stationary. Good luck.
[BetterBatteryStats] beatschubser:
It's not really streaming, I listen to locally stored audio books. Additionaly, I have created a task that checks every 15 minutes if audio is still playing, and if not, disables Bluetooth for the rest of the night. So after the audio book is finished, all radios including Bluetooth are disabled.

But I'll try another audio player just to be sure.
[BetterBatteryStats] strongst:
Maybe your task helds your device awake.
[BetterBatteryStats] DB126:
It's not necessarily the app; VLC and audiomixer (to name just two) remained active for an extended time with periods of high CPU utilization. Simply killing BT is not sufficient. Simplify, segregate and retest individual usage scenarios.

Bottom line: You are not experiencing an idle drain issue.
[BetterBatteryStats] fossils-n-dents:
I cannot see how your devices' interaction with GMS/ Installed apps/ Android System can be fully analyzed with all data turned off.

"No Data Connection (): 5 h 49 m 37 s 100.0%" and no stats in the 'Network' section.

This is an Airplane Mode dump.

I would suggest another proper idle dump, wifi or cellular connected, with at least 6+ hours of untouched idle.

Are you running a radiation detector on your device? "Sensor: sar_detector Non-wakeup(32), wakeup=false, Time: 5 h 49 m 37 s "

Do you use a magnetic cover/ case with your device? " Sensor: Hall Effect Sensor(54), wakeup=true, Time: 5 h 26 m 47 s"

Just curious.
[BetterBatteryStats] beatschubser:
I want to find the reason for the battery drain in airplane mode first before I allow data connections and add more potential wake lock-sources. So you are saying a BBS dump with no radios doesn't make sense?

No and no. I'm running stock MIUI 10.3 and don't know what these sensors are or why they are being used.
[BetterBatteryStats] DB126:
Airplane mode dumps are fine for isolating/identifying drains that do not involve external connections.
[BetterBatteryStats] fossils-n-dents:
I'm late with my reply, my apologies. It's been answered by DB126.
[BetterBatteryStats] J.L.C.:
I'm trying to find the source of my battery drain. BBS doesn't seem to be able to pull battery data correctly.

When I launch the app it falls back to "since boot", but shows that time as 63 days, even immediately after a reboot.

Within BBS it shows all permissions have been granted.

Does anyone have any suggestions?
[BetterBatteryStats] ZeUbermensch:
Finally decided to do an idle dump to try and find out what's causing my high idle drain (2,4/s approximately).

The screen on time is because of ambient display turning on whenever I get notifications, not because of me using the phone. Any ideas about what could be causing this drain?

(File didn't upload, it's in the next post)
[BetterBatteryStats] ZeUbermensch:
Here's the log.