yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] DB126:
There are dozens of partitions on most Android devices. A full firmware refresh updates most/all of them. In contrast a simple ROM install typically only updates the 'system' partition. Me thinks the kernel or one of those other partitions has a problem.
[BetterBatteryStats] richtofen_13:
normally when i update lineageos i do a full clean install -->wipe all> firmware>rom>gapps, do you suggest doing something different?
[BetterBatteryStats] DB126:
Consult your device forum for guidance on performing a full restoration using a factory image. Details are far beyond the scope of this forum/thread.

The approach you have been using is fine for installing/updating ROMs which represent the most visible software on your device. There are numerous other partitions that do not get touched by this simple procedure. Me thinks your problem may lie deeper based on what you have shared and BBS dumps that did not reveal any culprits. Also recognize you may have a hardware problem. Dirty/damaged fingerprint scanners are notorious for blocking sleep.
[BetterBatteryStats] richtofen_13:
thank you for your help...i will contact the seller and try to exchange my device.
[BetterBatteryStats] schum121:
Hello,

Something always keeps my Xperia Z C6603 (5.1.1, 10.7.A.0.222, stock, no root) awake.

I installed BBS and seems like culprit is something called "wakeup_monitor" under Kernel Wakelock section. No strange behavour on Partial Wakelocks, just this "wakeup_monitor", which is always active. Any ideas what could it be?

I'd really appreciate your help.
[BetterBatteryStats] jckjr:
adjust from/to references to 'screen off' and 'screen on'

Where is this adjustment located?
[BetterBatteryStats] chamonix:
tbh I have not tested yet and would be happy for any reports
[BetterBatteryStats] chamonix:
I have started working on the P preview but there is a long road ahead: bbs gets its data through non-public APIs because google never cared about exposing such data. I don't complain as the fact that this could be worked around is the whole reason why bbs exists.

Now with P things become complicated: a new feature restricts the use of non-public APIs: https://developer.android.com/preview/restrictions-non-sdk-interfaces

.... so I need to come up with something. But be sure I take the challenge, it's not the first time google works against apps giving insights into the usage of our precious battery.
[BetterBatteryStats] chamonix:
A little update as I imagine more and more users will start wanting to use BBS on the P review.

Note: my policy has always been to try supporting preview as early as possible but please be aware that you should consider BBS to be broken on P preview atm. Things will change over time and I don't want to spend too much time and energy running behind, esp. knowing that google will fix certain things and break others.

I will update this post as I proceed and will also link it to the FAQ as soon as I have released something (currently these results are based on my local build, but I will release on hockeyapp once I feel I have reached something worth showing)

Broken:

- Kernel wakelocks

- Network stats

- Sensor stats

Working:

- Summary (except sensor stats)

- Partial wakelocks

- Alarms

- CPU states

- Processes
[BetterBatteryStats] yochananmarqos:
I'm able to login with my hockeyapp.net credentials and it functions just like the original app. However, it appears the Microsoft app is geared toward Enterprise users so there's not much point in using it. That is unless development stops on the original app.
[BetterBatteryStats] crixley:
Thanks for the info and for the years of hard work!
[BetterBatteryStats] IanHodgson:
I'm having trouble getting a sump since screen off to screen on. I don't seem to have the option. I'm running Pixel Experience 8.1.0 on Redmi Note 4. I have followed instructions in OP, enabling what I need to enable in settings. This was after leaving phone overnight with both WiFi and data on before turning screen off. Anyone facing similar issues? Is it that BBS sometimes doesn't work with Oreo? I downloaded the latest version from this site. Any advice appreciated.

Ian
[BetterBatteryStats] DB126:
Try enabling Watchdog service in settings.

As an aside you probably won't get much benefit from collecting/submitting an idle dump (unless experiencing unusually high drains) as Oreo pretty much takes care of itself.
[BetterBatteryStats] crazyninjah1992:
Hey if you guy can please help. Any way to stop this Android alarm? Or at least not so many wake ups. Anymotiondetector I believe that is doze. But seems like it hurting my battery. Not sure. Thank in advance!!!
[BetterBatteryStats] DB126:
- what makes you believe this alarm is waking your device (it probably isn't)?

- idle dump contains 2½ hours of 'screen on' time; not useful for idle analysis

Seems something is keeping your device awake *some* of the time. You will need to collect an proper idle log for accurate analysis.
[BetterBatteryStats] crazyninjah1992:
I may have posted wrong log?*♂️I have another from that day. It should represent the pictures from bbs. I made the connection with the alarm bc it says 3.8 \min so 3.8 wakeups per minute and I only used phone for 37minutes. I do understand some are necessary but I felt it was to much. I may be wrong tho.
[BetterBatteryStats] DB126:
19 min of screen on (in use) time; not useful for idle analysis or nailing down root cause.
[BetterBatteryStats] crazyninjah1992:
Okay. So to get better results would you charge and not use it for the day? Take a log of battery drain without use?
[BetterBatteryStats] DB126:
See first couple posts in this thread for guidance or this.
[BetterBatteryStats] crazyninjah1992:
Thank you! Will do.
[BetterBatteryStats] IanHodgson:
Thanks for your reply. Pretty sure I did enable watchdog service in settings. Cleared cache and data and tried again: still same. The reason I've started looking for culprits is that my battery drain has suddenly noticeably deteriorated. Phone gets warm, sometimes hot, while not in use ; battery drains much faster then before; so something must be happening in the background. Will try complete uninstall and reinstall and see if that makes any difference.
[BetterBatteryStats] githyanki:
If you clear data, it will reset that setting, in addition to losing all accumulated data.
[BetterBatteryStats] Koong1:
Woah. I noticed something incredible. After removing Greenify and Naptime from my phone. My idle battery drain improved significantly. Over 9 hours of sleep and a little bit of usage, battery drain at 0.7% per hour. It used to be at least 1.1% per hour during sleep.

Also I can't seem to upload the screenshots from BBS to here. Always says network error, even though I am on 4G+ and fibre WiFi....
[BetterBatteryStats] strongst:
Better to upload the dump file instead of screenshots for analyzing purposes.

Your observation is the same like mine on my setup: I have only disadvantages with both(after lollipop) .
[BetterBatteryStats] Koong1:
Alright, after tonight's charge and discharge,I will upload my dump file TMR morning.

I am using LG G6 H870DS on stock rom nougat.
[BetterBatteryStats] DB126:
Your observations parallel many others. Most power management tools cloak underlying issues that can usually be addressed through careful app selection and configuration. In some cases the tool itself consumes more power than it saves depending on environment and tool use/configuration, especially on an otherwise well tuned system.
[BetterBatteryStats] Koong1:
https://drive.google.com/file/d/1o-H9RBfiu5W7DaMAGIR8dntdeQr3pFmH/view?usp=drivesdk

As promised,my dump file for last night. I went to bed with 81% and woke up with 73%. For 8.5 hours of sleep.
[BetterBatteryStats] Koong1:
The screenshots attached are from yesterday morning.(yesterday I couldn't upload the screenshots)

The only difference between yesterday morning morning and today morning is that yesterday morning I was sleeping with mobile data on. And today morning I was sleeping with WiFi on. Could WiFi be the one draining my battery?
[BetterBatteryStats] Mandraker64:
Oneplus One RR8.1 Franco Kernel draining fast!

Hi all,

My OPO is draining like there is no tomorrow, and I can't find what the problem is. CPU is running at 300 Mhz all the time, deep sleep is hardly kicking in. I'm no Android or BBS guru what so ever, so I would really appreciate if someone could take a look at the logcat file. I charged the battery to 100% and left the OPO alone (no touchy!) until this morning, the battery drained around 50% overnight.

I have the Resurrection Remix 8.1 rom installed with the latest Franco kernel. I have no Gapps installed. If I need to provide more information, just let me know. Thanks in advance!

Regards,

Mandraker64
[BetterBatteryStats] strongst:
You have attached a logcat instead of a dump file from better battery stats :silly: just look at first page how to provide a dump file please, then we can see what we can do for you.

---------- Post added at 11:33 AM ---------- Previous post was at 11:25 AM ----------

The app com.tencent.mm.WeChat is exposed in the dump and also polls your LGE Step Counter Sensor for nearly 12h.

You can make a test without that app again to see if you can lower your 1.2%/h drain.
[BetterBatteryStats] Koong1:
alright thanks. Wechat is my main chatting app. Without it I would lose contact with 95% of the people I know. I will uninstall it tonight and see what can I do.

Any idea how can I shut down my LGE step counter? The LG health app. I never use it at all.

Once again thanks for your insight.
[BetterBatteryStats] Mandraker64:
Thank you! and Apologies!

I will get back with the correct file.
[BetterBatteryStats] strongst:
Just freeze this health app with titanium backup or other methods like rename it with any file explorer.
[BetterBatteryStats] TNSMANI:
The dump has screen on time of nearly 35 minutes skewing the readings. Next time save the dump as soon as you unlock the screen ensuring screen on time of less than a minute.

Wifi was not running for about one hour or so and your mobile data was on and all background downloads took place under mobile data.. Did you switch wifi off in between? If not, there is an issue with your router. Mobile data will drain more than the wifi. Reset your router if it had not been reset recently. Try a static ip for your phone. If there are other wifi devices connected to the same router, switch them off and check.

Tencent, Cloud Music and Google app were active in the background. But Tencent was way too aggressive. Tencent was also polling the sensors almost the whole time as the other member said.
[BetterBatteryStats] Koong1:
Thanks for you insight! Next time will definitely keep my screen on time to below 1 minute. I have a habit of reading news the moment I open my eyes.

Nope I did not touch my WiFi at all. My router has not been reset for 5 years... Guess I should reset it. I am a noob, no idea how to set static IP for phon, sorry. And yes, there are at least 4 other devices connected to the same WiFi.

I turned off the body sensor permission for Tencent. Cloud music wasn't UI opened since yesterday.

I will do the test again tonight, with the appropriate WiFi settings. thank you so much once again!
[BetterBatteryStats] TNSMANI:
Don't attempt all the suggestions at once. A reset of the wifi may solve the issue; if not go for static ip (search in Google). Static ip may be required if you are not able to switch off the other devices for any reason.
[BetterBatteryStats] Koong1:
Alrighty. For tonight. I have turned off the body sensor permission for Tencent. Disabled VoLTE and mobile data. connected to WiFi, changed my device to use static IP. Let's see how it performs tonight once I charge it up to around 90%.

Thank you guys so guys for your kind help. Love this community.
[BetterBatteryStats] Koong1:
After over 6 hours of sleep. My phone drains at 0.8% per hour. Which is a improvement from the previous 1.2% per hour. I have WiFi (static IP), location (high accuracy) and sync turned on. Mobile data, VoLTE and Bluetooth turned off. Tried to keep my screen on time to a minimum. I guess 0.8% per hour is quite respectable for my device (LG G6 H870DS)

I tried taking a look at the dump file myself. And realised that Tencent Wechat is still using the LGE step counter sensor 100% of the time. Even though I have DISABLED the body sensor permission for Tencent Wechat before I went to sleep yesterday. Is this some kind of bug? Or maybe I should re-install Tencent Wechat to try and fix?

Anyway here is my dump file.

https://drive.google.com/file/d/13-rAK_c9fWe8K4wYwNPzBfwXLqlPbiin/view?usp=drivesdk

Once again thank you guys for much for your time and help!!!
[BetterBatteryStats] IanHodgson:
So, have managed to save a successful idle dump, overnight, leaving WiFi and data on to see if phone would properly go into deep sleep. Running Pixel Experience on Redmi Note 4. Looking at the data from BBS, it looks like the WiFi is both on 100% and actually running 100% too. I am using Windscribe VPN, which previously was set to always on. So I changed it to 'battery saver' mode in VPN settings. However, I noticed today that even though it is still in battery saver mode, and indeed when I open the app interface, Windscribe is off, when I pull down my quick settings from the status bar there is a persistent notification saying Windscribe is connected. I don't know for sure that the VPN is the main reason for my high battery drain. If anyone has a little time and know-how and wouldn't mind taking a look at the dump I've linked below, is appreciate it very much. Please let me know if I have included sufficient info or not.

Ian

https://drive.google.com/file/d/1aYL-6ae9mPs6Fr_umrP0krb5k2tj6PUD/view?usp=drivesdk
[BetterBatteryStats] strongst:
WiFi scanning is also a battery drainer. And your chat program(wechat), it's exposed as we can see. Make another test:freeze the Chat over night and test again with the same parameters. Static ip won't save any battery.

---------- Post added at 07:19 AM ---------- Previous post was at 07:10 AM ----------

What I can see is that you have nearly half of the time a moderate signal. That's draining your battery, I explained it here https://xdaforums.com/oneplus-5/how-to/op5-battery-life-thread-t3624705/post76537616

On the other hand: 0.4%/h is very good! Imho no need to dig deeper, it's just for statistics and you won't gain real benefit,just a waste of time.
[BetterBatteryStats] Mandraker64:
OPO RR8.1 Franco Kernel overnight battery drain

Hi all,

Yesterday I also posted this problem, but with a logcat file instead of a dumpfile. So here's the dumpfile. I have a overnight battery drain, better said I have a constant battery drain of around 10% per hour without using the OPO. The OPO wil not go into deep sleep at all and CPU is at 300 Mhz all the time. I have no Gapps installed. I can't find what causes this, and I was hoping I could find the help to solve this here.

If I have to provide more information, please lett me know. Thanks in advance.

Regards,

Mandraker64
[BetterBatteryStats] strongst:
[MENTION=8736152]Koong1[/MENTION] sorry I meant location in general, even high accuracy.
[BetterBatteryStats] TNSMANI:
Your mobile signal is very poor most of the time and it is a major drainer. Try to locate the phone where you have a better signal and repeat the test. Or switch to 3G/2G and see whether your signal improves and repeat the test. I am sure your drain will come under 1% per hour if the signal issue is resolved.
[BetterBatteryStats] IanHodgson:
Hmm, thanks for taking a look. I still see my battery drain is significantly worse for some reason. Now I get about 4 hours SOT whereas before it would be approx 8. I haven't changed anything. I know SOT in and of itself is not a good indicator or measure; but previously it was much higher. For example, overnight it would drain just 1%. I just wish I knew what was causing it.
[BetterBatteryStats] strongst:
Thanks for providing a new dump.

What I can see:

-extreme bad mobile signal nearly all the time of the measurement! Check my post above.

-device idle at 300 MHz

-line 133 is an /init process keeping the device active over 2h

-line 134 there's 1h 22m sensor activity

Imo the first 2 are the main culprit you need to work on.

I recommend to reinstall the rom and change the kernel,entering no deep sleep is mostly a kernel fault. Then make a dump with same parameters so it can be compared.

Signal quality is the next big thing. See post above. There's less you can do. If it's only in your house maybe you can switch off mobile and use wifi?

The other 2 I would exclude until the first ones are managed to fix.

---------- Post added at 08:35 AM ---------- Previous post was at 08:33 AM ----------

You mean you have and high sot drain instead an high idle drain?
[BetterBatteryStats] IanHodgson:
You mean you have and high sot drain instead an high idle drain?[/QUOTE]

I am seeing low SOT and my battery is draining faster than it did before. For example, right now it is showing battery at 35% with SOT of 2 hours 19 minutes. I have not been using Spotify (the only app I use regularly with screen off). That coupled with the phone being warm when not in use, made me look at idle drain. Do you know why WiFi shows 100% running during deep sleep?
[BetterBatteryStats] Koong1:
Oh I see. I have uninstalled Wechat and set location accuracy to battery saving. Will do the test for a 3rd night tonight.

Although I am already quite happy with the 0.8% per hour idle battery drain.
[BetterBatteryStats] strongst:
Do you have location scanning activated? Settings - location - advanced?

The idle drain isn't the best the problem as I mentioned before. 0.4%/h is very good. I don't know what average sot other users get with this device but if the battery isn't in good condition, the sot will be low and the average drain is high when the capacity isn't the same as on a new battery.
[BetterBatteryStats] Mandraker64:
Thank you strongst! Just to make sure, install the rom again and then install the Franco kernel? Thats no problem but I did that several time's

I have set mobile data to 3G and rebooted, that doesn't seem to make a difference. Then I switched of mobile, makes no difference. So it must be the /init process, whatever that may be, and the sensor activity. Is there a way to find out what these exactly are?
[BetterBatteryStats] strongst:
At first clean flash the rom with stock kernel, no 3rd party kernel and see if it enters deep sleep. After that we will see.
[BetterBatteryStats] Mandraker64:
Thanks again strongst, I really appreciate your help.

The reason I switched to the Franco kernel is that the stock kernel gave me the exact same problems as I have now. A very stubborn and almost extreme battery drain and no deep sleep except for a short time right after a reboot, I thought I could solve that with the Franco kernel. But if you say I should install the rom and stock kernel again I will do that.
[BetterBatteryStats] strongst:
Oh, you didn't mention that! Please tell us such important details at first ;) maybe it's the rom? You can also try changing the rom and going back to stock rom and check if it enter deep sleep. Hardware fault can also be a problem, but you need to check with stock rom.
[BetterBatteryStats] Mandraker64:
I apologize, I should have mentioned more details.

Stock rom, ok .. Not sure where to get that for an "old" OPO but I'll try and get it.
[BetterBatteryStats] strongst:
You need to check any possibilities and if your phones won't enter deep sleep after a clean installation, you can change rom, kernel and maybe(I forgot) to check if there's a firmware update available.
[BetterBatteryStats] CZ Eddie:
How do you export a text log dump of everything that tells me what's sucking up battery?

I looked through the menu but I must be blind?

EDIT:

Found it.

It's not in settings.

It's in the "share" symbol icon at the top of the app.
[BetterBatteryStats] Koong1:
Uploading dump file for a 3rd consecutive day. Solved the Tencent Wechat using step sensor can problem. Had to force stop it before I went to sleep. And another problem occured. Google services used over 7 hours of significant motion detector sensor. Please do exaplin to me what does this do?

I also noticed the wlan in kernal wakelocks woke my phone over 6000 times in 9 hours. Any idea why is this happening? I have disabled ipv6 on my router and is using static IP on my phone.

https://drive.google.com/file/d/14K_JUqA_GN4uWmgqD3BYG9a0fhZN3QqY/view?usp=drivesdk

Battery drain at 0.9% per hour.
[BetterBatteryStats] strongst:
Every Google app that uses sensors calls the play services which access the sensor.

The wifi wakelock is there since you connect your device to wifi all the time. In most Android wifi settings you can disable wifi during idle mode. If you don't enable this setting, your wifi keeps your device awake.
[BetterBatteryStats] Mandraker64:
Hi strongst, I think its clear that there's something going on within the RR8.1 rom. Not sure about the stock RR kernel and the Franco kernel I installed later. Or both kernels have an issue. The stock OPO CM 13.1 doesn't seem to have an issue with deep sleep. What do you recommend for now? I really would like to make use of Android 8 / Oreo on my OPO.
[BetterBatteryStats] strongst:
Ok, what I see from the dump you've attached(changes to your last one):

-you charged your device nearly one hour, therefore the dump is useless ;)

-the device enters deep sleep(don't know what you've changed, rom kernel, please explain changes)

-the mobile signal is good now, no problem that impacts as before, very good!

It would be helpful if you provide a new dump file, without charging in between :good: also please mention rom/kernel if you changed it(which seems obvious).
[BetterBatteryStats] Mandraker64:
What I did was follow your advice (to also check if there is no hardware issue) and went back to OPO stock rom, being CyanogenOS (13.1.2-ZNH2KAS3PO-bacon Kernel: 3.4.110-cyanogenmod-g326cf3a)) So my OPO is back as it came out of the box. It is however unlocked and Magisk and BBS are installed. I think it's safe to say there is nothing wrong with the hardware. My point was, I think the problem is within Resurrection Remix rom and not with both kernels I tried, the stock and the Franco kernel. But I might have that completely wrong.. Beyond a doubt the CM stock rom goes into deep sleep and has no problem with the mobile signal.

Not sure what happened with the charging, I charged it to 100% last night and left it alone overnight until this morning to save a dumpfile. But I can do it again, that's no problem.
[BetterBatteryStats] strongst:
Thanks for the insight!

About the log, maybe you changed the reference point to boot instead of unplug or a custom reference point, I don't know.

About the RR issue: well, that seems to be the problem. Stock rom works and RR with its kernel or other kernel won't let your device go into deep sleep.

I would recommend to check the RR rom thread about this issue ;)
[BetterBatteryStats] Mandraker64:
Now why didn't I think of that? :rolleyes: Thank you strongst! danke schön!
[BetterBatteryStats] DB126:
Sometimes. Depends on ROM, kernel and (to a lesser degree) hardware. I have numerous devices that sleep fine with WiFi enabled 7x24. That said, wakes may be more frequent and of longer duration (ie: doze maintenance windows) with an active data connection depending app portfolio/configuration. Don't sweat it unless power consumption becomes excessive. Most modern devices idle very efficiently at low CPU frequencies. Minimizing wake time is no longer the golden benchmark...nor has it been for some time.
[BetterBatteryStats] the_reckoner1_1:
hi Everyone.. I have BBS (no root, but with ADB) installed on my OP5T running Oxygen OS on Oreo 8.1. After a phone reboot, I need to go and clear data and cache for BBS to work else it doesn't capture any details. Is there any workaround/fix for this? I have the latest version of BBS which its said to support Oreo so is it something only in my phone? In OOS? Or something else? Google didn't help with the specific issue which is why I'm posting here

TIA