yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] TNSMANI:
Apart from high wakelocks from various apps, Location also was one of the culprits. Do you require Location to be on always? If not, change its settings. Google app also was keeping the phone awake. Almost all the apps you use seem to have been active.

For some reason, most of your wakelocks show the same time frame for the wakelocks being held.

Battery Monitor from kernel wakelocks sapped some battery. After a long time, I am seeing 'suspend backoff' that too on a 7 ROM. When most of your apps decide to be active in quick succession, the system decides to keep the phone awake for the whole duration which is the reason for this wakelock. You can use LeanDroid from PlayStore to keep your wifi off when not needed (whether screen is on or off). It may help since you also seem to have wifi issues. When was the last time your router was reset?

UC mobile will eat your battery if you don't know how to control it.

There was a background download from Google Play.

It looks a real mess. If you were getting better battery previously with this ROM, try clean flashing it. If not search for a better ROM. Also control all the apps that you have by restricting their individual wakeups to only when needed.

---------- Post added at 05:20 PM ---------- Previous post was at 05:09 PM ----------

You can start from 100% itself. But some phones/batteries have a tendency to drop steeply initially from 100% and then stabilise. That is why the recommendation to start from 95%. If you want to start from 95% or any other percentage, simply charge the phone till that percentage and then unplug and let it sleep. Or use your phone till it comes down to the percentage you want and then set a custom reference point in BBS and then let it sleep. There are many other ways of doing it.

The main point is, after monitoring in BBS starts, the screen should not be on for more than a minute.
[BetterBatteryStats] fossils-n-dents:
Brilliant diagnosis by Tnsmani! I too was about to suggest a possible reflash, and if all stays the same, a kernel audition. Also to cut down on Google Play Services chatter, my personal list of services that can be safely disabled.

It can be found here...https://xdaforums.com/showpost.php?p=73693320&postcount=32709

The conversation(s) on why this helps start on page 3271.
[BetterBatteryStats] rjm831:
I'm one of the people having problems with controlling UC mobile wakelocks. Don't want to go off-topic, but any advice on how to deal with this would be appreciated. Thanks.
[BetterBatteryStats] fossils-n-dents:
Pardon my ignorance, what is a 'UC Mobile Wakelock'?
[BetterBatteryStats] TNSMANI:
Use MyAndroidTools and block Services and Broadcast Receivers related to UC mobile one by one. While most of them can be blocked, some will be required for running it. If you block such an essential service or receiver, UC mobile will crash. If it happens, unblock only the last service or receiver that you blocked.

I don't use UC any longer so don't have the actual names of services and receivers. Armorfly suits me better.

---------- Post added at 07:26 PM ---------- Previous post was at 07:25 PM ----------

UC mobile is a browser from the Alibaba group.
[BetterBatteryStats] mrjuniork:
Hello guys.

I was wondering why "No Data Connection" and "No or Unknown Signal" is on 100%...It doesn't make any sense, since I do have data connection and signal..
[BetterBatteryStats] Oswald Boelcke:
Personally, I would not use any browser coming from PR China - and promising security (doesn't that contradict automatically?). I'm not wondering that anyone of them is calling home frequently...

Post #3 provides an initial answer (as probably a search with the definitely powerful XDA search engine in this thread does); however, for a good assessment screenshots aren't useful at all. If interested, please provide an idle dump in accordance with the procedures multiple times available in the thread.
[BetterBatteryStats] Sam Nakamura:
From as much as I know you this has to be wouldn't, right? Just a typo I'd guess... :)
[BetterBatteryStats] chamonix:
This is 'android' for 'data was disabled because wifi was on'
[BetterBatteryStats] allroy75:
I'm running stock rom with magisk root on my U11. I'm getting the no stats have been collected message under my kernel wakelocks. Is there something I need to do to be able to see them? I've searched this thread and the help for the app but can't find anything. Thanks
[BetterBatteryStats] Bubba:
[MENTION=4138220]fossils-n-dents[/MENTION] I think I am pretty well set now. I think my only remaining issue is battery health and that will soon be replaced. Thanks again for your input.
[BetterBatteryStats] fossils-n-dents:
1. Download BBS

2. Sideload BBS

3. Connect the smartphone or tablet to the PC with a USB cable

4. Type the following command into the Command Prompt. . .

5. adb -d shell pm grant com.asksven.betterbatterystats_xdaedition android.permission.BATTERY_STATS

6. . . .then press the Enter button on the keyboard

7. Now just Launch the BetteryBatteryStats application again

This is the extent of my knowledge. Chamonix (OP, and BBS Creator) may have a different procedure for Oreo with a Magisk install (I'm still on Nougat). You may have to disengage Magisk first to complete BBS/ ADB install. idk.

*Make a backup first!

Bubba, I am glad to be of some assistance. 0.5% h battery drain means you can now simply enjoy your device. Well done.:good:
[BetterBatteryStats] hampa:
I just followed your steps and still gets the "no stats have been collected yet"

I'm running xda version and having magisk installed if that helps.

Included a logcat with debug activated from the settings.
[BetterBatteryStats] fossils-n-dents:
There may be a problem with Magisk installed as opposed to SU. Turn off Magisk, and try to install BBS as a non-root app. You may have to wait for Chamonix (OP) to answer this particular detail if you're unable to install on stock Android (No Magisk)..
[BetterBatteryStats] dilruk:
[MENTION=4138220]fossils-n-dents[/MENTION] One more for you as I felt my idle drain has increased a bit than before. Please check if you can find anything out of place.
[BetterBatteryStats] fossils-n-dents:
If you have added an app(s), your device configuration may change to reflect the difference.

In your 'Alarms' section...

Alarms: 77, Intent: com.android.internal.telephony.data-stall- Possible poor reception issues raise 'Data-Stall' alarms from 3G/ 2g switching. Fix: Switch radios/ audition another rom/ move device to best position for better 3G reception/ switch 3G carriers.

*Always make a backup before swapping radios/ roms.

*If this is your first time with this issue, you may simply have been where reception is poor. Try positioning the device for best reception first.

If you have not followed my guide for reducing Google Play Services wakeups, it can be found here...https://xdaforums.com/showpost.php?p=73693320&postcount=32709

The discussion on why I recommend them starts on page 3274 of this thread. Every bit helps. (Unless you have already done so)

Disabling location, sync (Optional, but recommended) when not in use may gain instant results. Disabling/ removing Google Search Box helps more, checking installed apps and lowering their update frequency (Gerenciador Financeir, WhatsApp), removing any app that is not used/ little used/ unnecassary apps. (Less apps equals less interaction between Android System and Google Play Services which saves battery)

ForceDoze from Play Store (Free): I would suggest you try this app, simply for the feature to 'Disable Motion Sensing' and 'Turn Off Wi-Fi During Doze'. Your 'Pocket Detect' sensor was awake for 7 h 42 m 13 s. While minimal in scope, why deal with it at all? List this app as 'Do Not optimize'.

I am nitpicking, but a lean system is paramount to great battery life. System bloat with every feature enabled will eventually drag your system down. Android is a system of compromise no matter what the advertisements say.

Your device is running wonderfully with what you have installed, but you can try a few things. Experiment with my suggestions, reboot to recovery, wipe Davlik/ ART cache and Cache (5-6 times each)...reboot,and try an idle run.
[BetterBatteryStats] dilruk:
I installed ForceDoze and enabled the above 2 settings. Should I also disable mobile data during doze. Will this stop messages and syncing on maintenance windows during doze too?
[BetterBatteryStats] Oswald Boelcke:
I guess it will. My ROM (Resurrection Remix) offers the capability that I've always enabled to turn to 2G when screen is off. With this setting I receive all notiications I require. However, certainly not sufficient for synchronisation but from my point of view that's a battery drainer anyway.
[BetterBatteryStats] atarek:
Hello,

PFA idle dump for more than 6H.

I'm using myAndroid tools to stop some google services. Also i use greenify4magisk module and force doze.

PS: i noticed that mobile stay awake only 9m in 6h idle which sounds good. But sometimes it stay awake for more than 1h and 2 while screen off.As posted here.

Edit:Wrong screenshot inserted.

Please advice.

Regards,

Ahmed
[BetterBatteryStats] TNSMANI:
Buddy, you have achieved Nirvana. Your drain is 0.2% per hour.

Don't meddle with the setup and enjoy your phone.
[BetterBatteryStats] Ikkuh84:
Is the plugin for Tasker decapitated? I don't see the option to use this BBS in Tasker anymore
[BetterBatteryStats] atarek:
I know that this dump is perfect and has nothing to worry about but during normal usage i see huge percent for phone keep awake while screen is off. Which was shown in my original post linked in 2nd one.
[BetterBatteryStats] dilruk:
But I thought being on wifi was easier on the battery. [MENTION=4138220]fossils-n-dents[/MENTION] what do you think? Is it beneficial to select Turn off WiFi on doze since the phone will be switching to mobile data?
[BetterBatteryStats] Oswald Boelcke:
Okay, I guess I need to explain my personal habits and best practice a bit. First, I don't use ForceDoze. Second, I don't have any issues with my motion sensor (if I had I'd probably try ForceDoze). Third, I always only have WiFi or mobile data enabled if required i.e. in turn never ever simultaneously. At home I always use WiFi (also during night if a data connection is required) besides the fact that in house mobile data only goes with 2G due to poor reception (or better transmission/tower availability) very, very close to an international border.
[BetterBatteryStats] MACHEK:
Note 8 looking for some advice on why my phone be isn't going into a full sleep. Any advice would be appreciated did two dumps. Got two texts right before these but otherwise no interruptions thank you!
[BetterBatteryStats] fossils-n-dents:
Kernel Wakelocks:

'msm_serial_hs_dma' -Sometimes hand in hand with 'Bluesleep'.

'Bluesleep' is a wakelock that is an error on part of the Bluetooth System missing a few binaries. Possible Fix: Turn off Bluetooth/ Android Wear/ Pebble? when not in use. Audition kernels/ Roms.

'bam_dmux_wakelock' is for mobile data so anything that keeps mobile data connection open it will show up. It stands for 'Broadband Access Multiplier' demultiplier. It's normal. It simply means something is keeping data connection alive. Start with turning Bluetooth off and testing while disabled, then apps using Bluetooth and/ or sync.

'Ril-fd' = Fast Dormancy- It's a device feature that enables mobile devices to notify the cellular base stations when the radio resource allocated to the device is no longer in use, so that the radio resource could be immediately released other than waiting for a timeout event.

It seems results will vary, and heavily depend on if the network can utilize it to begin with. Possible fix: Try clearing Davlik/ Cache, or audition another kernel.

*Create a backup first before testing kernels/ roms*

However...you're enjoying supreme battery life, the small gains you seek may not be worth the bother, but I understand your concern.

It depends. I get better standby times on data (+0. 3- 0. 6% h) than on Wi-Fi (Modem location in the home), unless I position the phone closer to the modem (On another floor). So, disabling Wi-Fi during doze works for me. Try each, and see what's best for you.

[MENTION=7408621]noc.jfcbs[/MENTION] method of disabling each radio as needed (But never both simultaniously) is a great way to handle it also. But, I am forgetful.

Taken from your 5 h 25 m idle log.

In your 'Wakelocks' section:

'ImsService' (Android System) Turn off messaging sync in your device, then clear the cache in 'Messaging' app in your device. turn sync back on. Do not disable ImsService- possible dialer/ freezing related issues.

Most of your wakeup drain seems to be from Bluetooth related issues. If Bluetooth is 'Always On', these wakeups are somewhat normal. For further relief, disable all Bluetooth related devices/ turn off Bluetooth when not needed.

Otherwise, your device is operating normally, (And quite nicely) as a stock system.
[BetterBatteryStats] MACHEK:
Bluetooth was on all the time, how do I turn off messaging sync? I can't seem to find where that is? Is it the same as going to the messages app, force close and clear cache? Or different?

If you are talking about the exchange server sms that was already turned off. I have dual messenger turned off, can that be the culprit?
[BetterBatteryStats] fossils-n-dents:
My apologies, lowering the email messaging sync settings frequency.

Messaging app> Force Close> Clear Cache.

If dual messenger is disabled, leave as is, it won't be a culprit if disabled. I'm leaning towards Bluetooth services being a bigger drainer overall.

Greenify may help also.
[BetterBatteryStats] MACHEK:
Thanks. E-mails are not syncing except for when I actually pull to sync, all push sync on emails is off.

Is something like greenify not necessary or does that help in things like messenger, Instagram, maps, Amazon shopping etc?

Also with checking another app that monitors batteries, shows lots times waking device from Google services, Amazon shopping, and maps. Is that something that would help?
[BetterBatteryStats] fossils-n-dents:
Greenify puts all unused apps and their processes to sleep until used, it can help with the apps you mention. Conversely, you could check each of those apps individual settings and lower their update frequency (Amazon Shopping, Instagram, Messenger). Greenify cannot 'Greenify' Google Play Services, as it is exempt system wide from such tactics for those who are not rooted. You could disable location and sync in settings to lessen Google Play Services load. Personally, I disable Maps until I need to use GPS.

Without root, there is only so much one can do to tame Google Play Services.
[BetterBatteryStats] mrjuniork:
[MENTION=4138220]fossils-n-dents[/MENTION]

Thank you very much for your extensive list.

I deactivated everything listed and also installed wakeblock.

Now those are the results:
[BetterBatteryStats] fossils-n-dents:
Simply beautiful! All seems to be in harmony with the apps installed. Thank You for trusting my list with your device.

I you wish to nitpick, Instagram and WhatsApp are known battery drainers. Check thier settings to see if notification frequency can be lowered. My rule of thumb: Any device idle draining at 0. 5% /h or lower is doing great. Enjoy your device!

App usage may or may not be found in every section of your log.

1. For analysis, your log must have at least six hours of idle (No touhing the device).

2. 'Screen On' time in the 'Other Usage' section of your log must be under one minute.

3. In the Better Battery Stats menu> Settings> Advanced> 'Kernel Wakelocks Using the API'..select this option. Do the same for 'Network Stats Using API'. These stats are missing from your log.

4. Create an updated idle log and submit. Good Luck.:good:
[BetterBatteryStats] pjadec:
Not good log. Too much screen on time. Also too short time. RILJ count too high without data trafic. Try diffrent kernel?. Probably wifi problem?.

I have same phone D855 with RR rom and no problems.
[BetterBatteryStats] championc:
Many thanks all - I'll charge it up to 100% before bed tonight.

I did some further checking and with AppOpsXposed discovered that the app "Network Signal Info" (by Kaibits Software Gmbh) seemed to be very active. In section Personal, it was listed as 0 mins even though I wasn't using it at all. I've now removed it. Maybe that could account for high RILJ or Wifi stats ??
[BetterBatteryStats] fossils-n-dents:
That would remain to be seen. I/ we would not/ could not surmise your issue(s) by diagnosing an incomplete log. That would not be fair to you should other issues arise after an educated guess.
[BetterBatteryStats] rajkatiyar07:
Can somebody look into the logs? Getting too kuch screen awake time when device screen is off.
[BetterBatteryStats] fossils-n-dents:
I will require your dump file, as stated in the OP. My apologies.
[BetterBatteryStats] rajkatiyar07:
here you go sir.thanks in advance
[BetterBatteryStats] fossils-n-dents:
You're pretty much runnning an awesome configuration. Your device runs great, except for a hiccup or two.

'netmgr_wl' in your 'Kernel Wakelock' sextion is related to cellular data. Maybe switching between towers? Poor reception with high traffic will drag on your devices' cellilar radio causing wakeups and battery drain..

'IPA_WS' is an emergency broadcast. Why it goes crazy for some I don't know. Temporary fix: Reboot to recovery, clear Davlik and cache...reboot. Or look into another kernel, Franco Kernel blocks IPA_WS by default. There are others...research.

*Always make a backup before swapping kernels.

I notice your CPU hovers at 307MHz f0r about 13 minues, coinciding with netmgr_wl, check update frequency of all installed apps, lower them if possible, and disable location when not in use. (Optional) Also try this...

https://xdaforums.com/showpost.php?p=73693320&postcount=32709 It may help you close the gap on cellular usage/ wakeups (Or attempts) while device is idle by hacking a few tentacles off of Google Play Services' background escapades.

Make a backup, and get busy. Get back to me, and good Luck.:good:
[BetterBatteryStats] Mister_Diamond:
Android 7.1.1

11 hours of deep sleep: during this time I received just two email (the phone was set to DND mode, so no sound/alarm) and there I've lost -3%.

The curious thing is that after I reactivate my phone and I do simple things, I start to lose more battery life. And obviously this doesn't occurs when I have the phone set to plane mode.

By looking at others BBS's logs which I have, the main culprit seems to be Google Play Services (com.google.android.gms): unfortunately I don't have have the root enable.

In the meantime can someone take a look to the last BBS log and give me some suggestions?

Many thanks.

Better Battery Stats log attached.
[BetterBatteryStats] fossils-n-dents:
Log looks outstanding! You state you lost 0. 3% h drain in 11 hours, are you normally seeing signifigantly lower drain in other instances? Because, this is awesome idle unto itself.

All of your numbers are sooooo low, even Google Services isn't offending. Your 'com.google.android.gms' alarms made me salute them.

Even while idle, there will be background activity that has nothing to do with messaging or update notifications. Nature of the beast.

To get possibly lower (Miniscule) gains, you could reboot to recovery, and wipe Davlik/ Cache (5-6 times each), use Greenify to tamp down on any loose apps (Which I see none), check notification/ update frequency in all apps, go into the Play Store app and dissable Automatic Updates, and if you really wish to micromanage...turn off autosync, delete/ disable unused/ little used apps (AdGuard), and then reset your app preferences. Without root, there is not much you can do to with Google play services, even though it seems to be in perfect, perfect, perfect harmony with your devices' ecosystem.

In my honest opinion, don't fix it if it ain't broke.

But, I understand/ share your contempt for uneccessary idle drain.
[BetterBatteryStats] jelive:
Any solution yet on kernel wakelock no stats have been collected yet. On Nougat 7.1 magick rooted Htc U11 custom rom and kernel using Bbs 2.3 beta. All other stats work.
[BetterBatteryStats] daninantro:
Hello :)

I am using OP3 device with AOSPA rom 7.3.0, rooted with SuperSU 2.82.

Since past week I am having massive battery drain. I have not installed any new app or updated anything manually. Play store auto updates are also disabled. Google location reporting is also turned off. Did a clean flash but no luck.

I have attached the log and screenshots. I had kept my phone idle for nearly 3 hrs after charging the device to 100% before starting this battery drain test.

Can someone please look into it and let me know the issue? As far as I can workout, some app is causing job scheduler to go crazy.

Thanks! :)
[BetterBatteryStats] fossils-n-dents:
Did you try collecting wakelock stats by going into BBS? Settings> Advanced> Force Kernel Wakelocks from API.

After that, I 'm stumped.

Your log must be at least 6 hours minimum. It gives a more complete picture. My apologies.
[BetterBatteryStats] daninantro:
[MENTION=4138220]fossils-n-dents[/MENTION] i tried to take the log as you said after keeping it idle for 6 hrs, but my phone doesn't wake up after that. I have to do a force reboot. Also, I was going through the log, can you please tell me what is fusb301_otg_wl in kernel wakelock? I am getting it 100% usage against it. Is it normal??
[BetterBatteryStats] jelive:
Yep
[BetterBatteryStats] Mister_Diamond:
First of all many thanks for your friendly reply :)

Today I went out of home for about three hours, in various places where my phone operator (4G/LTE) switch to H+ and Edge, since the signal cover of LTE isn't always available everywhere.

Apart of this, as I've said, after a deep sleep time, as I wake my phone and I do simple/light things, the battery starts to drain more evidently... In fatcs in about three hours of deep sleep I lost again 3% of battery (Level lost [%]: Bat.: -3%(27% to 24%) [1,1%/h), as you can see in the next BBS's log.

com.google.android.gms/.measurement.PackageMeasurementService / com.google.android.gms is always on the top list of drainer: unfortunately, as i've said my phone is not rooted (just becase if I root this phone, the Sony's camera will lost DRM).

If during 11 hours I do nothing (and I don't receive notifications) the battery drain is of 0% hours. But the strange things is that the battery drain occurs when I do light things...

I set Play Store App to check updates only on wifi, I don't have extra apps (I have only the necessary apps for me: Whatsapp on the top list): did you noticed something that I missed? Also without root, by using ADB, i can disable a lot of apps, and for the these wich I regularly use I set the automatic updates to off, and I've also set the autosync for very few things (eg: contacts).

AdGuard is very necessary/mandatory since it block all ADS..

I miss something? I have the habit to set the phone as best as I can, so tell me every consideration which You want :)

You've said a valid suggestion, the one of delete the dalvik cache, but since I'm unrooted I have no idea how to wipe the dalvik cache. Looking at the next BBS's log the Play Services is again the most drainer. Without root I cannot doing nothing? the only thing that I've been able to do is to disable a lot of authorization (camera, mic, and fit - which I not use at all) and to delete its cache: I've already deleted just the cache of Play Services.
[BetterBatteryStats] PackElend:
Hallo,

I've been recommended to post my problems in regard of battery drain here as it seems that there isn't anyone in the Fairphone forum who can support me in such detail.

I put a lot of pictures in the Fairphone forum, there are in the thread Battery life in LineageOS.

I'll try to explain it in a nutshell. When I put the phone in flight mode it can run for several days. When I roam or roam (and being connected to to slow Wi-Fis) it will run for than a day.

As soon as I'm back home it may runs for 14h, even if use only Wi-Fi and rarely use it. I have to admit when I home I receive more message via mail and messenger services.

I'll added BBS dump etc.