yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] TNSMANI:
IMS seems to be an issue. Its alarms are at 8.5 per hour. Find a way to control it.

Facebook was another issue.

Your mobile signal strength was also not very great.

These are the issues as per the dump. That said, 0.7% per hour drain on Android 11 is not very bad.
[BetterBatteryStats] ronnysusi01:
Thanks, I will try to fix these problems.
[BetterBatteryStats] ronnysusi01:
I tried to fix these errors, now I get this 0.3%/h. I think I can be happy with this result, or ? Thank you for your help.
[BetterBatteryStats] TNSMANI:
0.3% drain on Android 11 is very good. Enjoy the device!
[BetterBatteryStats] DiamondJohn:
Just a conceptual thought, when getting down to the smaller % drain values and even smaller changes in min drain. When getting an idea of just how good a device is, in comparing it to others, should we consider the size of the battery? For example, 1% drain on a device with a 50% bigger battery isn't as impressive as the smaller battery device. Remember, its just a random inconsequential thought in passing. It came to me as my new phone (Pixel 4a) has a larger battery than my previous phone, so I thought as an interesting comparison, i would some day get around to comparing the % as a mA/h drain.

I am actually surprised with how good my min battery drain is on my new phone, without any effort on my behalf.
[BetterBatteryStats] sinanlenfom:
Hi i'm using Evolution X 5.1(A11) rom on Xiaomi Mi 9T.

Too much battery drain. If you don't mind, would you check?
[BetterBatteryStats] sinanlenfom:
https://filebin.net/xzq2ht6p0fzzcj20/BetterBatteryStats-2021-01-13_140630786.txt?t=8qyulang

https://filebin.net/xzq2ht6p0fzzcj20/dmesg-2021-01-13_140630971.txt?t=8qyulang

https://filebin.net/xzq2ht6p0fzzcj20/logcat-2021-01-13_140630874.txt?t=8qyulang

Sorry for the multiple message. I could not attach files.
[BetterBatteryStats] TNSMANI:
Three things.

1. You are using a very old version of BBS. Update.

2. The dump time should be not less than 6 hours. Yours is only 4+ hours.

3. The screen on time should be as less as possible, preferably under a minute. Yours is more than 52 minutes.

Please read the first three posts on page 1 of this thread and please post a fresh idle dump file.
[BetterBatteryStats] vctrrl:
I'm experiencing some bad draining overnight. Phone is on airplane mode, just wifi on. Any help would be really appreciated
[BetterBatteryStats] vctrrl:
The dump file btw. I couldn't attach it on the last message

https://filebin.net/wjkd7nvtyxrum054/BetterBatteryStats-2021-01-13_141100182.txt?t=kebzegi1
[BetterBatteryStats] TNSMANI:
@vctrrl

IMS is having 4.8% per hour wakelocks. and 17.2% alarms.

Wifi seems to be having issues. Switch off the router for 10 seconds and then restart it. If you have any other devices, especially like printers, connected to the router, disable them.

Samsung Push also sets off 7.5% alarms per hour.

Location/scanning seems to be on. Switch it off for the next dump.

Facebook and Instagram are the other issues.

Fotos, Duo & Whatsapp had background downloads of 36+ MB.

Some sensors also had issues which may be looked into later if the issues persist.

Attend to the above and take a fresh dump.
[BetterBatteryStats] vctrrl:
Hi,

thanks for your assistance! I have some questions if you don't mind. What's IMS services? I've seen it on my dumps before. Is it related to voice over WiFi?

I'll try your WiFi. I don't have any printers connected, just a Chromecast device and other phones but I've seen this pattern on my dumps for a long time (since I bought this phone, at least).

As for the Samsung Push, what I was able to do is to stop showing notifications + force stop. I'm not able to uninstall nor deactivate it. Also I can't stop it from using battery in the background because it's baked in the system and I can't root this phone mostly because of my banking apps.

For the purpose of this dump, I can disable location on the toggles, right? I don't think WiFi + Bluetooth scanning is active.

Facebook and Instagram are both now set to not run in the background.

Duo was baked into the system too but it was deactivated. For the sake of the next dump I've uninstalled the updates and it seems to be gone now, I guess (I can't find it on the apps list anymore at least).

Thank you again! Really appreciated. I will take another dump and post it here.
[BetterBatteryStats] TNSMANI:
@vctrrl

IMS is the Instant Messaging Service, though I am not 100% sure.

I think that you can check whether the scanning is on and disable location from Settings for the next dump. After that, you can use the toggle for your daily usage.

Fotos, WhatsApp and Duo behavior is normal. I pointed it out since that also contributed to that particular day's drain. It is not everyday that they behave like this.

With a Samsung, your options are limited(especially without root), so try to make the best out of the situation.
[BetterBatteryStats] vctrrl:
Here's the new dump after the changes I've mentioned. No discernable improvement on the drain

https://filebin.net/2kdcjwlw08jydsgp/BetterBatteryStats-2021-01-19_113806757.txt?t=7eug4uwk
[BetterBatteryStats] TNSMANI:
IMS is still active with excessive wakelocks and alarms

Wifi still has issues.

FB has 3.5 alarms per hour.

This time Galaxy Store, Duo, Gmail, Whatsapp, Playstore etc had downloads in excess of 55 MB.

Something seems to be keeping your device awake. The OS was trying to shut down everything for nearly 2 hours. I am not able to pinpoint any other culprits.

Better wait for better brains to comment.
[BetterBatteryStats] meroupow:
Hello I am trying to optimise the standby time and I feel Google location services are driving too many alerts. How can I optimise while keeping the service?

I attach for reference the Battery stats during the night when the device was fully charged and left untouched.
[BetterBatteryStats] vctrrl:
Yeah, it's very weird actually. If you don't mind to take a look I managed to reduce the drain by removing Google Duo and pre installed version of Facebook via adb command. Then installed Facebook from Play Store and restricted battery usage in the background.

Filebin

Upload files and make them available for your friends. Think of it as Pastebin for files. Registration is not required. Large files are supported.

filebin.net
[BetterBatteryStats] TNSMANI:
The drain has come down to 1%.

The Awake Sceen Off is still high at nearly 2 hours.

IMS still stands out with 4.7% per hour wakelocks and 17% alarms.

Wifi also continues to have issues.

mmc0 kernel wakelocks are the cause for 3.4% drain. Read THIS thread in full.

Facebook still has 1.1% alarms.

Do you have DTTW or something similar enabled? It seems to have held the phone awake for the entire duration. Disable it for the next check.
[BetterBatteryStats] vctrrl:
Thanks again! The best I could do is to keep it 1% steady. Don't know what's happening to wifi even after researching about the wakelocks related to it. Restarted the router multiple times. Maybe it's related to my ISP. Still haven't figured out about the IMS as well but I don't think it's recommended to disable it. What's is DDTW?
[BetterBatteryStats] TNSMANI:
Sorry, it should have been DTTW (Double Tap To Wake).
[BetterBatteryStats] vctrrl:
I had hold start button to wake active but it's disabled for this dump. I've checked the thread and formatted my internal sd card. Here's (another) the dump

Filebin

Upload files and make them available for your friends. Think of it as Pastebin for files. Registration is not required. Large files are supported.

filebin.net
[BetterBatteryStats] TNSMANI:
Awake screen off has reduced but still over an hour.

IMS is still an issue.

Wifi also.

mmc0 has reduced but still at 2.9% Why don't you try removing it for another dump?

Location alarms are also firing, from Samsung and geofence.

FB at 1.4% now.

Wakeup Motion Sensor was active almost the entire time. This is why I asked about DTTW last time. Check your Settings again to see if anything connected is enabled.

If you are not able to control IMS and eliminate or reduce Wakeup Motion Sensor activity, this is the best drain rate you will have. The others may cause very little drain when compared to these two. So there is no point in concentrating on the others.
[BetterBatteryStats] vctrrl:
I haven't found a cause for the IMS so far, even after a lot of research but today I've just flashed the latest ROM that I haven't received thru OTA. Hopefully it may reduce the IMS issue. Also wiped the cache partition just to be safe.

I'll remove the SD for the next dump. I've also found a lot of settings that may relate to the sensor usage. They will be disabled as well for the next dump.

It's been really frustrating to reduce this drain but I'm really thankful for your insights. Much appreciated
[BetterBatteryStats] vctrrl:
For this dump I tried to address the issues you've pointed out but as you'll see nothing seemed to change

Filebin

Upload files and make them available for your friends. Think of it as Pastebin for files. Registration is not required. Large files are supported.

filebin.net
[BetterBatteryStats] amn1987:
Could anyone please take a look? For the better part of last year idle drain had been pretty good averaging 0.1-0.3%/h. But after installing a bunch of apps it has worsened to 0.7-0.9%/h. Freezing those apps however didn't make a difference. Day before yesterday I put the device in airplane mode and drain fell to 0.11%/h. For this dump I had only set data off. Mobile network from what I can tell is very good, - 75dBm signal strength and SNR at 15-20dB. Operator is 4G-only.
[BetterBatteryStats] TNSMANI:
Same observations as earlier. If possible, try a custom ROM, if available. Otherwise be content with this. Sorry, couldn't help further.
[BetterBatteryStats] TNSMANI:
The dump shows only 0.5% drain which is ok. The network stats is not available in the dump. The mobile signal is "good" as per the dump but not "great". Reset your wifi (switch off router and switch on after about 10 seconds) since the phone tried to connect to mobile data for some time.

As you said the apps might be the reason so in addition to freezing, clear atleast their cache if not their data.
[BetterBatteryStats] amn1987:
Thanks for checking it out. It looks like WhatsApp might be the culprit. To reduce idle drain I had configured in Tasker Battery Saver to be on when display was off and vice-versa. It didn't help much if at all. Subsequently WA was not receiving any messages so I had to disable Battery Optimization for it. Enabling it back and keeping mobile data off has reduced idle drain to under 0.2%/h over the last 2 days although overnight drain is a bit higher. Gonna clean flash a new update and check how it goes.

P.S. There's no Wifi connection although I use it as a Hotspot occasionally. Also since the OS is Nougat under Battery info, Cellular strength is still available and its a solid dark green line almost always which corresponds with the excellent speeds even during peak hours. Let me check after clearing cache of those apps.
[BetterBatteryStats] R1kki:
Hello.

I'm really need your help.

My issue is in really high drain when WiFi or mobile network is ON.

Sometimes more than 6-10%/h.

Sometimes 1-2%/h.

And I want to find the drainer.

So, today's night I've made the BBs dump in accordance with general rules (WiFi, network is off).

On the first view, I didn't find anything abnormal or anomaly.

But, for the experiment, my wife's phone (the same model) with installed more then a year ago firmware don't have any issues that I've describe above.

I'm sorry for the Russian lang on the screenshots
[BetterBatteryStats] TNSMANI:
Screenshots are not required at this stage.

The dump file is also in Russian. I am not able to read it. The requirement for an idle dump is to charge/drain the phone to about 85 or 90%, wifi and data on, leave it untouched for about 6+ hours, unlock the phone, immediately (within seconds) save the dump "screen off" to "screen on" and post it here. And use English for the dump, please.
[BetterBatteryStats] R1kki:
here the dump created with your recommendation.

10% drain at night.

looking at the chart, it looks really abnormal.

Could anyone have a look at this?

Betterbatterystats_2021_02_02 - Pastebin.com

Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.

pastebin.com
[BetterBatteryStats] R1kki:
and one more

03/02/21

todays with disabled Wifi and data.

10% per night

04/02/2021

WiFi and Data On

I really need your help!
[BetterBatteryStats] TNSMANI:
I examined your 04/02/2021 dump with data and wifi on.

Your mobile signal strength is not ok where you keep the phone. That usually is a huge drainer. Try to locate it in a place where the signal is better, for the next dump.

Yandex music had some wakelocks. Control it if you can.

BT was an issue and your watch also, in kernel wakelocks. See if you can live without the watch connectivity while sleeping.

The watch also caused 10.8% per hour alarms.

AOD was the cause for another 8.5% per hour alarms.

Location and/or wifi and location scanning was on. Do you need it while sleeping?

Xiaomi Push was the cause for 6.1% per hour alarms.

SAR detector sensor was awake all the time.

Significant Motion Detector sensor also was awake almost the whole time.

See if you can rectify any or all of them and then post another dump with wifi and data on. Sorry for the late reply.
[BetterBatteryStats] R1kki:
Thanks for the reply!

Will fix Yandex Music and BT/Watch.

AOD is disabling automatically from evening to morning.

Scanning Wifi and BT is disabled in settings.

Will investigate the problem with Xiaomi push.

Could you tell more details about SAR / Significant Motion detector? Is it possible to turn on those?
[BetterBatteryStats] TNSMANI:
BBS shows AOD as running. So physically disable it for the next dump.

Location seems to be on. Disable it.

Some sensors can be shut down with certain ROMs. I am not sure whether you can do it in your phone. If you are not able to, don't worry, attend to the others and post another dump. We will see.
[BetterBatteryStats] R1kki:
- Removed almost applications from auto start & tuned energy options for all apps

- Physically disabled AOD before sleep

- Physically disabled GPS before sleep

Could you have a look?

Looks really better, but have an wakeups on the chart
[BetterBatteryStats] TNSMANI:
Locweather(from your watch) had some wakelocks. Was it still connected? It seems yes since it caused 10.7 alarms per hour. Your drain will not go down further unless the watch is disconnected.

Xiaomi Push caused 6 alarms per hour.

SAR Detector sensor was running all the time.

And you had only 0.4% drain per hour which is good, despite having background upload/download of about 65 MB.

If I were you, I will simply disconnect my watch and accept whatever drain is reported. Trying to reduce the drain further is a very tedious job and is not worth the effort.
[BetterBatteryStats] gigel20007:
I am seeing constant "Unaccounted" battery usage in SystemPanel r2 on BV9900Pro OEM ROM. I've read authors' description of unaccounted but at the moment I am not able to root to further gather kernel accounting

I can go into shell top command to see that no processes are using significant cpu time (except a few all the time: system_server 10%, android.system.suspend@1.0-service 10%, and occasional com.google.android.* short spikes. sorting them by CPU TIME, the top consumers I see are surfaceflinger, system_server, android.hardware.graphics.composer@2.1-service pasted top -s 11 output at the end of the post)

What I would like to know is did I provide enough information to try to find the cause of "unaccounted" battery usage in SystemPanel2? And second, it 1% pe hour drain normal, or do I expect too much from the device+os?

During BBS data collection the phone was left on the table, face up, connected to 5GHz wifi, DND mode on, connected to both SIM operators, first SIM 2G network with no data, second SIM 4G network with data.

Attached as well screenshots from battery historian showing the same huge Unaccounted, I am unsure if it's safe to upload raw adb bugreport zip file here.

Tasks: 604 total, 1 running, 602 sleeping, 0 stopped, 1 zombie
Mem: 7.4G total, 6.7G used, 764M free, 427M buffers
Swap: 4.1G total, 1.2G used, 2.8G free, 2.9G cached
800%cpu 15%user 1%nice 22%sys 762%idle 1%iow 0%irq 0%sirq 0%host
PID USER PR NI VIRT RES SHR S %CPU %MEM [TIME+]ARGS
531 system 12 -8 361M 24M 15M S 0.0 0.3 198:04.04 surfaceflinger
13110 system 18 -2 8.0G 284M 191M S 15.0 3.7 168:54.18 system_server
508 system -3 0 294M 6.4M 5.4M S 0.0 0.0 93:03.76 android.hardware.graphics.composer@2.1-service
524 nobody 20 0 36M 3.5M 3.4M S 0.0 0.0 48:13.38 ashmemd
465 system 20 0 94M 3.1M 3.0M S 10.5 0.0 36:07.76 android.system.suspend@1.0-service
13322 u0_a122 20 0 1.6G 182M 135M S 0.5 2.3 28:10.06 com.android.systemui
812 cameraserver 20 0 632M 45M 31M S 0.0 0.5 22:34.65 camerahalserver
824 system 20 0 116M 3.8M 3.8M S 0.0 0.0 18:29.80 vendor.mediatek.hardware.pq@2.2-service
12998 root 20 0 2.4G 10M 6.4M S 0.2 0.1 13:28.82 netd
807 system 20 0 77M 3.6M 3.1M S 0.0 0.0 13:01.81 android.hardware.sensors@2.0-service-mediatek
409 logd 18 -2 145M 5.3M 2.5M S 0.5 0.0 11:48.04 logd
25112 u0_a128 20 0 5.9G 234M 196M S 0.2 3.0 11:32.67 com.google.android.gms.persistent
692 root 20 0 0 0 0 S 0.0 0.0 11:07.07 [jbd2/dm-2-8]
410 system 20 0 35M 2.6M 2.3M S 0.5 0.0 10:30.19 servicemanager
804 mediacodec 20 0 45M 7.6M 6.5M S 0.0 0.0 9:50.21 media.codec hw/android.hardware.media.omx@1.0-service
398 root 20 0 40M 3.1M 2.1M S 3.2 0.0 9:49.26 ueventd
208 root 20 0 0 0 0 S 0.2 0.0 9:32.31 [pbm]
314 root 20 0 0 0 0 D 0.0 0.0 9:31.56 [ipi_cpu_dvfs_rt]
24397 u0_a293 20 0 5.0G 129M 98M S 1.0 1.6 8:34.12 com.evozi.network:service
[BetterBatteryStats] baioss:
why I can't upload text files or image files?
[BetterBatteryStats] TNSMANI:
Do you still have this issue?

If so, can you describe the steps and results?

And do you have it only in this thread or elsewhere also?
[BetterBatteryStats] baioss:
Im just trying to upload a text file in attach file and then seems like deleted.
[BetterBatteryStats] TNSMANI:
Yep, just now tried.

But only BBS text file does this. Other text files, pdf and other formats work fine.

Try to zip the BBS text file and attach as a workaround. Meanwhile, I will report this issue to the Admins.

EDIT: Not every BBS text file does this. Some users are able to post such files. But for me and baioss it doesn't work. I don't think that it has anything to do with XDA or XF.
[BetterBatteryStats] baioss:
Yes now it works.
[BetterBatteryStats] TNSMANI:
The dump file shows 0.3% drain per hour which is very good. Enjoy your device.
[BetterBatteryStats] gigel20007:
Hi, would you mind taking a look at my dump attached/uploaded on previous page, please?
[BetterBatteryStats] TNSMANI:
Sorry, I am not familiar with SystemPanel or Battery Historian and that was why I didn't reply to your earlier post.

If you have any issues which can be analysed through BBS, please post an idle dump, so that I or someone else can help.
[BetterBatteryStats] gigel20007:
But there IS a Better Battery Stats dump attached at the end of the post, with device idle
[BetterBatteryStats] TNSMANI:
Sorry, didn't notice earlier.

There is an issue with the dump. The screen on time should be as less as possible, in any case within a minute. However, it has over 3 minutes of screen on time. So please take another dump and post it here.

It shows 0.9% drain per hour and your mobile signal is not very good. If possible, locate the phone where the signal is better when taking the next dump.

Rest after reading the next dump!
[BetterBatteryStats] Naudiz:
I received an update for BBS yesterday in Google Play. Strangely it was an update from 2019, so probably Google Play's release prior was even older...

The version is now 2.5-344 and the app is having a persistent notification saying "event processing", which wasn't there before. I have no idea what this is supposed to mean. Is this regular behavior? How can I get rid of this notification?

I'm unrooted and have given all the permissions via ADB.
[BetterBatteryStats] TNSMANI:
IIRC, that update is old though it is the latest on Play Store. But that version installed for me and many others long, long back.

Regarding the notification, it is normal and expected. If you want to stop it, go to Settings, Apps & Notifications, BBS, Notifications, toggle BBS Event Processing to Off.
[BetterBatteryStats] Naudiz:
Thanks! Yes it's weird to get such an old update this late. But until yesterday Play Store showed me a version from 2018 as latest.

I've heard of staged rollouts, but this is quite a long time :D
[BetterBatteryStats] Oswald Boelcke:
That's exactly the version I've installed and am using. Last updated in December 2019 as the SD Maid screenshot shows.
[BetterBatteryStats] Naudiz:
I believe you. Like I said, it's weird. I have no idea why Google Play omitted this update until yesterday for me, but I swear it wasn't there and the latest version shown was some of 2018.

Anyways, this is a Google Play mystery and unrelated to BBS itself, so it doesn't need to be discussed further in this thread.
[BetterBatteryStats] mminoss:
Hello, thanks for the work. What the last version?
[BetterBatteryStats] shaggyskunk:
Latest XDA version is 2.5-341 afaik
[BetterBatteryStats] mminoss:
thanks you. could you send me link?[/QUOTE]
[BetterBatteryStats] shaggyskunk:
Link is in the OP
[BetterBatteryStats] mminoss:
oups merci, j'ai été trop vite ..

Merci :)

Mod translation

oops thank you, I was too fast ...

Thank you :)
[BetterBatteryStats] Oswald Boelcke:
Via Google Play Stote, latest version is 2.5-344 as I've shown in my quoted post above.
[BetterBatteryStats] shaggyskunk:
Maybe - But since I'm using the XDA version & I've already run adb for it.
[BetterBatteryStats] mminoss:
I have 2 messages in red. Do you know how to grant these permissions?

J'ai 2 messages en rouge .. Vous savez comment accorder ces permissions?
[BetterBatteryStats] shaggyskunk:
Yeah - With adb commands
[BetterBatteryStats] mminoss:
damn so we have to go through that ..

However, do I need to do adb if I just want to know which app is consuming battery?

zut on est donc obligé de passer par cela..

Cependant, ai je besoin de faire adb si je veux simplement savoir quelle appli consomme de la batterie?
[BetterBatteryStats] shaggyskunk:
pretty much if you want to use BBS - there are other apps on the play store that can give you some idea - but unless you have root - adb is the only way to get accurate info

à peu près si vous voulez utiliser BBS - Il y a d'autres applications sur le Play Store qui peuvent vous donner une idée - Mais à moins que vous n'ayez Root - adb est le seul moyen d'obtenir des informations précises

I believe that this Forum is English only by the way.
[BetterBatteryStats] mminoss:
Which application do you recommend?

Quelle application me conseilles tu?
[BetterBatteryStats] scoobyjenkins:
I had 2.4-265 installed from Play Store and no issues, but the latest version from here or from Play Store also gives me that event notification, but it's saying it needs APPOPS_USAGE_STATS permission. If I tap ok, it takes me to that setting and it's already granted but the notification still persists.

I went back to 2.4-265 and it doesn't have this issue.

I'm using Pixel Experience android 11 on a OnePlus 5
[BetterBatteryStats] gradesm:
Are you freezing wipeoutreceiver?
[BetterBatteryStats] chamonix:
It would be great if you could post a logcat. Without that info there is no way I can fix it
[BetterBatteryStats] chamonix:
Thanks for the dump, I will use it for some controlled testing and hope to able to put my finger on the problem.

About DPRAM: I'm no kernel dev but that seems to be a module for managing some memory access using semaphores. There is no reason for such high wakelocks from that kind of module imo. Hasv you check in your favorite kernel thread.

alarm_rtc is related to the alarms so it's the same source as AlarmManager.