yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] gritts:
Ambient display is turned off. There is no screen protector on the phone, and the screen is clean. I downloaded a proximity sensor monitor app and the sensor is not triggered with the "close" reading unless I put my finger right up against it. The monitoring app indicates the hardware is working correctly. I am not sure why BetterBatteryStats picks up the proximity sensor as running 100% of the time.
[BetterBatteryStats] TNSMANI:
I am not very sure about this, the experts and devs will be more knowledgeable, but my two cents:

The sensor may very well be working correctly but it seems to be holding a wakelock and awake when it shouldn't.
[BetterBatteryStats] DB126:
Last dump showed a 0.7%/hr idle drain rate with 35 min of wake time over 8 hours on a Pixel 3 running Android 9. Perfectly normal.
[BetterBatteryStats] peterlee928:
hi all... i know my dumpfile doesnt meet the exact specifications, but im hoping that it is a proper enough sample size. wanted to see if there are any obvious red flags to reduce idle drain? much thanks in advance! :)
[BetterBatteryStats] TNSMANI:
Mobile signal is one of the issues. Not very good.

Proximity sensor was awake most of the time. Looks like the off-screen gestures is keeping it on.

Apart from that, this is the first dump I am seeing with so much sensor activity. May be one of the reasons for the heightened drain.

I don't find any other reasons for the drain. Let the others also see.
[BetterBatteryStats] peterlee928:
much thanks for the notes! interesting on mobile signal as i am on wifi during the dump file recording. would it help if i turn off the data while wifi is on?

i noticed that sensor_ind wakelock being a persistent bad guy. i tried turning on auto-rotate, but that didnt work. i am now trying to turn OFF all ambient display notifications. already had most gestures turned off except for double tap to check phone... which i have now turned off.
[BetterBatteryStats] TNSMANI:
Turning off data may not help since it comes into play only when the wifi is not available for whatever reason. The signal itself is weak, so if you are on 4G/LTE, shift to 3G/2G for the night. In some places 3G/2G signals are better than 4G/LTE. You can even automate it if you find the drain reducing.

Most of the sensors had a 'false' reading, so no real worry. But Proximity had the 'true' reading and that was why I mentioned it.
[BetterBatteryStats] peterlee928:
gotcha. im trying to think of what could be triggering the proximity sensor... :confused:
[BetterBatteryStats] TNSMANI:
IIRC, double tap was the culprit for Proximity.
[BetterBatteryStats] plusminus_:
Sorry to quote posts from so long ago, but I am trying to make sense of an app I recently installed - it is absolutely blowing up my *job.delay* count to several a minute.

One particular service is being launched thousands of times in a day (dumpsys batterystats lists this service as Created for 0ms uptime; Starts: 0, launches: 4349) and I think this is what is causing the majority of the *job.delay* alarms.

But I don't understand what it's trying to do. I logged DNS requests in AdAway to see if it was trying to connect to something - nothing while it's running in the background. Does the fact that there is a high *job.delay* but no *job.deadline* suggest that the service is trying to keep an active connection? >.>

Despite all these service launches, the total partial wakelock time of the job related to this service is less than a minute so the battery consumption I can directly attribute to the app is negligible! But my awake % is noticably higher with this and I don't like it lol :o I wish I could just disable the service but the app doesn't run without it.

Is there anything I can do about it? Should I?

Thanks

(P.S. I have attached a dumpsys batterystats just for the app in question. I had disabled it when I recorded the BBS idle log so it wouldn't be useful here!)
[BetterBatteryStats] peterlee928:
so i did a test last night and left my phone in a spot where i knew that the phone would not move and/or no motion sensor should be triggered. also with double tp on (all other gestures off). my thesis was that i was jostling/tapping the phone inadvertently while sleeping, causing the sensors to continue firing off. (does my thesis make sense?)

the idle battery drain was substantially less last night. one test doesnt prove anything, but its a data pt. going to test this further to see if i can get a consistent result.
[BetterBatteryStats] TNSMANI:
Since no one has answered you for three days, I venture to do so despite knowing that I don't fully understand this.

I think that this is where the number of wakelocks comes into the picture. Usually we look at the time that a wakelock is held for, but repeated firing of the wakelock thousands of times results in some other process (like Doze) trying to keep it under control and that results in drain. This is my theory not based on any fact.

But if you can't dispense with the app in question, then there is no other option than grinning and bearing with the drain. One thing you can try is to uninstall and re-install the app (with a reboot in between) and see whether it makes any difference.
[BetterBatteryStats] Djadityar:
Anyone get update for fingerprint?
[BetterBatteryStats] DB126:
TMI - will take weeks to digest all the material provided. :rolleyes:
[BetterBatteryStats] DiamondJohn:
This not "my thread", and I don't want to come across as the thread police, but considering how helpful posters are on this thread when questions actually relate to the topic of the thread (ie BetterBatteryStats), please correct me if i am wrong, but maybe other help would be better requested in another existing thread (eg https://xdaforums.com/showthread.php?t=2601318 or https://xdaforums.com/showthread.php?p=79327480) or starting a new thread. I have to admit this is the best active thread regarding lowering battery consumption I can think of, but it is not a thread generally about lowering battery consumption, or dumps from dumpsys, but how it can be analysed using BetterBatteryStats. I know I have seen posts I think I may be able to help with, but have resisted since they are OT.

Sorry if I have overstepped my bounds, but its pretty prevalent in my mind, as I have been know to cross the same threshold myself.:o
[BetterBatteryStats] DB126:
Unless someone actively enforces dicipline keeping ransom posters relevant is akin to herding cats. Gave up long ago as noobs multiply like bunnies. Layer on the current "me centric" mindset, tweet size attention span and a dash of entitlement (because volunteers are well compensated) and you have XDA and just about every other tech enthusiast forum. Is what it is.
[BetterBatteryStats] Djadityar:
Hello how much best dischager battery until recharged again?
[BetterBatteryStats] Oswald Boelcke:
There isn't any requirement to discharge the battery to a specific level to take usuable battery statistics with BBS (what this thread is about). The actual requirements are spelled out in the OP i.e. in regard to charging "full charge device then let it run down to ~95%" and then "put device to sleep for at least 6 hours (no touchy!)" . Discharging is time dependent and independent of a level.
[BetterBatteryStats] peterlee928:
so i turned off all active gestures including double tap. the significant motion sensor still fires off at what appears to be a high amount. or am i incorrect and this is normal? taking a step back, idle drain isnt bad at all. now im more curious than anything :)
[BetterBatteryStats] Djadityar:
What this is normal on s10+?

Using original charger
[BetterBatteryStats] TNSMANI:
Proximity sensor time is only about 41 minutes as against the full time of the dump earlier. And it fired only 17 times. Much better. But your drain rate has not improved, most probably because of the mobile signal issue. Still not something over which you have control. 0.8% drain per hour is decent given your setup/usage.

---------- Post added at 02:10 PM ---------- Previous post was at 02:05 PM ----------

What is your question? If it is about the rate of charging, don't rely on any apps.
[BetterBatteryStats] Oswald Boelcke:
Just for information: This thread is now sticked in the forum.
[BetterBatteryStats] plusminus_:
Thanks for replying!

I tried uninstalling and reinstalling with a reboot in between, with no change. I have just been trying Amplify(!) for the errant service - awake % time during this (shortened) idle study is lower, so I suppose that's an improvement.

Nevertheless, it's slightly annoying but I'll have to deal with it, like you said. I'm just obsessing :p

very late edit: This service... cannot be stopped. I'm not sure Amplify was actually helping - does it work on job services? I don't know. I tried changing permissions with cmd appops, that didn't help either. From what I've read the purpose of the service is specifically to keep the phone awake (on Chinese ROMs) so notifications arrive in a timely fashion.

I have just tested a very kludgy workaround - I isolated the one service in the app that I actually need for notifications to work and started it with 'am startservice' without touching the app itself so that awful job service doesn't start. It seems to be working like this.

You're right, I was off-topic, it was just that I had been searching this thread to find out more about an alarm that had been discussed in some detail and it seemed like the best place to ask as I was still unsure. I could have quoted the posts from this thread in another one, but that may have caused confusion. Sumimasen.
[BetterBatteryStats] MasterFURQAN:
I'm unable to find the cause of idle battery drain on my phone. It's a little more than 1 % per hour with WiFi and mobile data disabled. It's not a huge drain but still.... I am used to get 0.3 to 0.5 % per hour on the same ROM and kernel. As the stats suggest PowerManagerService.WakeLocks is 21 % but every partial wakelock is 0 %. ?

I've also uploaded the graph and summary screenshots as they contradict each other. The summary points that the phone is mostly sleep while the graph shows peaks in wakelocks.

I took the stats many times, uninstalled and installed BBS, reflashed the ROM and Kernel but I still get the same stats.

Most probably it's a rogue app/activity.
[BetterBatteryStats] strongst:
You have 3h 28min screen on time along with 4h Youtube running. Did you simply watch YouTube while taking the stats?

2.8%/h drain seems to proven this. Or did you upload wrong screenshots and dump file?

I recommend to make a hew dump with 0 usage and screen on time like described numerous times ;)
[BetterBatteryStats] MasterFURQAN:
The dump and the screenshots are both from the same period from when I took the stats. Yeah I was using YouTube vanced while BBS was running in the background.

The stats include an approx 8 hour idle time when I went to sleep. The phone was at 64 % when I went to sleep and went to 54 % in the morning.

Am I supposed to NOT watch YouTube while taking the stats ? ?

I simply charge the phone to 90% and start BBS and then use the phone as i would normally with BBS running in the background. Am I doing it wrong ?
[BetterBatteryStats] strongst:
You are not supposed to do anything with your phone while recording a dump like described in the instructions in the op and explaining numerous times. Otherwise it's not possible to analyze a idle drain.

It's simply not an idle drain dump, cause you use your phone.
[BetterBatteryStats] MasterFURQAN:
Ok. I get it now. I'll come back with only the idle drain dump. I had a screenshot of an IDLE DRAIN ONLY BBS stat but it won't be that useful without the dump. I'll be back with the dump file and proper screenshots.

Thanks for your help.
[BetterBatteryStats] timbiotic:
Phone awake alot with Screen off on S10 Plus

I purchased BetterBatteryStats because i felt that my new phone was draining too quickly when idle. I found a few things but it was still draining 1-2% per hour. But that is a different issue which i am guessing I will need a full dump analysis for. What I really need help with is 75-100% Awake (Screen Off) issue. I just got a samsung galaxy watch active and didnt notice this behaviour until then. Do i need a full 6 hour dump or is there something i can check for during shorter time? If so what screens in the app should i look at? Attached is a 30 minute screenshot i just grabbed but i am seeing same behavior for hours and lowest i get has been 75% Awake (Screen Off). It doesnt seem right.
[BetterBatteryStats] strongst:
See tab kernel wakelock - > hal_bluetooth_lock

You must understand that Smartwatches need a connection to your mobile phone over Bluetooth and are syncing data etc. even after screen off >>> Awake (Screen Off)

Therefore obviously you'll have that observed behavior :)

For further detailed analysis, you'll need a idle dump file(as I explained above your post) and stated in the first post.
[BetterBatteryStats] antoscara88:
Good afternoon, unfortunately I am here again .... The phone was doing great after the change you suggested to me and the procedure I did that I described a few posts back. But the other day I restarted the phone, after 30 days of flawless operation, after the restart it stopped going to deep sleep. There is no excessive battery consumption like the last time, but the CPU remains active. The changes you suggested remained unchanged even after rebooting, I don't understand what could have been changed ....
[BetterBatteryStats] bradical711:
Without a dumpfile from BBS I don't think anyone can help identify what the cause is... The root cause could just be an app going rogue for a minute or a lot of other things like an app update etc etc.. just do another test in BBS tonight and I'm sure you'll get help after posting another dump for us to look at.
[BetterBatteryStats] justjr:
So, I finally got a phone that get the big LITTLE CPU tech, and saw that the CPU tab on BBS just only show the little cpu stats, it must be knew already, sorry I didn't search the entire thread. But if not, want to report it here and to know if this is on a todo list or something like it. On Galaxy S7 Edge stock Oreo.
[BetterBatteryStats] antoscara88:
Immediately after sending my post, I re-read the previous ones in order to remember what I had done a month ago that had solved the problem for me. I simply cleaned the USB port and the phone immediately started going into deep sleep regularly. Furthermore, the very famous wakelock 9-0022 has disappeared.
[BetterBatteryStats] timbiotic:
Major drain idle

So i disabled my watch bluetooth and put it in airplane mode and then followed the dump directions. This morning after 8 hours it lost 20%?! Can someone analyze and advise?
[BetterBatteryStats] githyanki:
There is a wakelock qbt2000_spi_lock keeping your phone awake. I had never seen that, neither has Google. Try asking in your device ROM forum.
[BetterBatteryStats] timbiotic:
Device ROM? For the watch or phone?
[BetterBatteryStats] dominicstg2:
Has it been solved yet where it will work on a s10 plus?
[BetterBatteryStats] timbiotic:
It’s working on my s10 plus if you are talking about the battery app. Or is that app causing the issue?
[BetterBatteryStats] dominicstg2:
Do you have wake locks eta I only have this
[BetterBatteryStats] MasterFURQAN:
Strange behaviour on my phone. I am getting idle drain of 10 %+ on my phone overnight which is almost 1%+ per hour. But now whenever I try to get the stats (with watchdog processing) overnight, there's minimum drain (2-3%) ?. Tried this for 2 nights and the same thing happens. This only happens when I turn on watchdog processing.

I charge the phone to 92% , Use it until 91% and then install BBS-xda and and give it su permissions and also turn on watchdog processing. Then I just turn off WiFi and mobile data while BBS is running in the background, lock the screen and go to sleep.

Can this be some kind of malware that's detecting that BBS is running in the background and thus stops it's activities ?

I'm using a Pocofone F1 on MIUI EU rooted with magisk 18.1.
[BetterBatteryStats] TNSMANI:
Phone.

---------- Post added at 12:27 PM ---------- Previous post was at 12:19 PM ----------

I don't think so. If in doubt, uninstall BBS and check.

Further, you are supposed to enable wifi and mobile data while taking the dump unless you are specifically advised to switch them off.
[BetterBatteryStats] MasterFURQAN:
I already did. I disable watchdog processing / uninstall BBS and the 10%+ drain is back.
[BetterBatteryStats] TNSMANI:
Hearing about it for the first time. Don't know what to say:confused:
[BetterBatteryStats] timbiotic:
I factory reset which killed the 100% active issue but it still drained 20%in 8 hours overnight. Will get another dump tonight. I didn't restore from backup as I was scared a rogue app caused it.
[BetterBatteryStats] DB126:
Look at the native battery tool which may offer clues to the source(s) of drain if having difficulties with BBS.
[BetterBatteryStats] exeon:
I doubt there's any way to read battery info from galaxy s10 series sigh.
[BetterBatteryStats] Szaby_88:
S8 battery drain

Hey all,

I have a S8 that I have been using since launch. I recently upgraded to an android 9.0 (LightRom) and I have some very strange behavior.

I have added a screenshot: in there you can see when I went to bed (my screen was completely off) yet I have lots of wakelocks going on. I have about 1% drain per hour, which is higher then 8.1. I don't have a screenshot from there but I'd see somewhere around 0.2 / 0.3 with Wifi.

I have added a zip file with all the logs as well from BBS. I'd appreciate any help!

It's a Magisk ROM with only one module: BusyBox. I have things like WhatsApp and Nine email installed and syncing. Otherwise I don't have apps that should be running in the background. I have had all the apps battery-optimized by Android as well.

I have wifi-connection active and bluetooth was on but disconnected. The same situation was also the case with 8.1. I would always have my bt on but disconnected.

Cheers!
[BetterBatteryStats] DB126:
- Deep sleep ratio as expected

- Mobile signal poor throughout most of sampling period contributing to drain - - Syncing apps also busy

- Don't obsess over wakelocks and BBS depiction of screen on/off; drain rates are all that matters
[BetterBatteryStats] timbiotic:
It doesnt show much other than google play services. After adding the watch back and samsung health the deep sleep issue seems to return. But the 2-3% drainage overnight happened with or without the deep sleep problem. Am I right that 2-3% drain while idle is problematic or is that just normal for samsung? I decided to switch from apple since innovation was lacking, but apple always has basic functionality down. I love the phone but the battery is driving me nuts.
[BetterBatteryStats] timbiotic:
Yes i have kernel and partial wakelocks, did you give it permissions using adb? -> https://www.xda-developers.com/betterbatterystats-2-3-android-oreo-support-unrooted/

---------- Post added at 05:07 PM ---------- Previous post was at 05:05 PM ----------

From looking around i believe it is the ultrasonic fingerprint reader "Biometric security is added to the display subsystem using the only Qualcomm part we have found in the Exynos Galaxy S10+ so far. This new, ultrasonic sensor uses sound waves generated using a piezo-electric component. The entire solution is provided by Qualcomm and includes their QBT2000 ASIC assembled to a flex substrate. There are a couple of advantages for using sound waves instead of an optical in-display fingerprint sensor like we first saw in the Vivo X21 UD"
[BetterBatteryStats] DiamondJohn:
No, its not a "Samsung" issue. I drain less than 1% / hour on my samsung, and samsung count for a major percentage of the android market. ie a lot of people here would have samsung.
[BetterBatteryStats] Neodrox:
Is it normal to drain 1-2% overnight with airplane mode on and and connections off except for location? I have a Samsung Exynos 10+
[BetterBatteryStats] strongst:
Overnight is a great variety of time. But 1-2% is OK.
[BetterBatteryStats] Neodrox:
Overnight saying from 10pm to 6am
[BetterBatteryStats] strongst:
That's 0.25%/h and with your settings it's OK.
[BetterBatteryStats] Neodrox:
Thanks, I just wanted to see a different opinion
[BetterBatteryStats] DB126:
Per hour or in total? Former suggests an unwanted drain; latter is quite good over a 6-8 hour window.
[BetterBatteryStats] strongst:
I guess in total
[BetterBatteryStats] detpruf:
Sony XZ2 Compact

Hello,

Could anyone please assist with this battery drain on Sony XZ2 compact?

I am trying different aprroaches for months.

Thank you!

I am not allowed to post external links and can't see how to upload an image, so => please remove the () to access the screenshots imgur(.)com/a/3L3Fhtk
[BetterBatteryStats] TNSMANI:
While you seem to have followed the OP for recording the drain, you have posted only screenshots and not the dump as a .txt file. Upon unlocking the phone, immediately save the dump and post it here. If you are unable to attach it here, upload it to any other site and post the link here. How old is the battery?
[BetterBatteryStats] giovag7:
Hi all,

I have 2 questions:

1. Bbs works on S9+ no root with the latest stock rom?

2. Bbs itself can cause an increased battery drain due to its work?
[BetterBatteryStats] DB126:
- If running "pie" BBS may or may not work on your S9

- BBS does not drain in background; only uses battery when the UI is active

- You phone is likely power optimized as-is; no need for BBS unless experiencing a problem
[BetterBatteryStats] tsiftsism:
Hello.

I'm running for almost a week the official open beta Pie for Oneplus 3 and i would like you to tell me if the battery drain in my device is normal.

I'm sharing with you two pairs of dump files. The 1st pair is what suggested i the op (named it OnOffScreen). I unplugged my device, let it reach 95% and let it the whole night (from 23:50 to 6:00 if i'm not mistaken). The drain was 1% per hour, so i think that you are going to tell me that the behaviour is fine.

So, i saved a 2nd pair of files, which are showing the drain from when i unplugged my device to the time i arrived back home from work (by that time the battery was showing 51% if i'm not mistaken). Can you please tell me if the behaviour since the time i unplugged my device is fine?

I don't know if the 2nd pair of files can be taken into consideration in order to get a good picture of the battery draining. I just share them with you in case you can tell me.

Thanks in advance for your answers.

OnOffScreen links

link1 link2 link3

link1 link2 link3
[BetterBatteryStats] strongst:
For the first idle dump: Instagram, Gmail inbox causing wakelocks and com.adguard.android.AdGuard downloaded several MB.

Besides that, pocket detection is on and polls the proximity sensor.

Mobile phone signal is also not good at all(both dumps), which can be the most impact on that idle dump imo. 1%/h is higher than average, but considering the age of the device/battery(guess it's not new), it's OK so far.

For the usage dump: well, it's not useful to analyze here cause the app impact on usage, screen brightness, roaming etc. Cannot be measured by bbs.

The best you can do: compare the idle dumps of Oreo and pie :good: with the same parameters, times, place. It's the only way to have a comparison what's after the update happening.

Nobody else can see what values you have compared to oreo :D
[BetterBatteryStats] detpruf:
The phone was bought new 5 months ago.

The dump file dl2.pushbulletusercontent(.)com/WeEg01f2fR55omOaNjOqMoKdhWjCpXkD/BetterBatteryStats-2019-04-26_054734283.txt

Please remove () to access the link.

Thanks a lot!
[BetterBatteryStats] akira888:
I saw in another thread where some folks managed to use the app on a S10/S10+. I thought there was no working version on S10 as yet? 2.4-265 is the version the folk was using.