yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] theguy:
Attached the dump file.

Thank you very much for anything you can identify.
[BetterBatteryStats] japhar:
Can't attach files (or I can't find it) so here's gdrive share with both dumps, named accordingly. Results are:

https://drive.google.com/open?id=1eHXHuGSWzXDTQpIK8cPZwP0pLobrnbGK

WIFI ON during sleep:

Level lost [%]: Bat.: -5%(45% to 40%) [3.8%/h]

WIFI OFF during sleep:

Level lost [%]: Bat.: -1%(38% to 37%) [1.5%/h]

Both test were done in exact same place, although cell reception (3G) is different for each measurements, but I am not sure if it justifies such difference.

I might be able to repeat it with 2G tomorrow (more stable), but if I recall correctly I have done this already earlier today and results were the same.

I found this as a difference between both logs:

(Android System): Sensor: sns_smd_wakeup(8), wakeup=true, Time: 41 m 2 s

Not sure if I've missed something else.

Any help would be much appreciated.
[BetterBatteryStats] pjadec:
Too much SOT read op

Active resource: ads_rx_wake (*api*): 3 h 3 m 50 s Cnt:(c/wc/ec)11119/0/0 515.7% culprit ?

com.tommasoberlose.anotherwidget (): Wakeups: 36 (1.0 / min) probably to remove? keep phone awake

Reboot and take new dump file
[BetterBatteryStats] strongst:
You have a oneplus 6, update 5.1.7 and 5.1.8 impacts the battery drain, that's officially acknowledged. What rom version do you have?
[BetterBatteryStats] japhar:
5.1.8, but my battery life is fine on data, just WiFi sleep is problematic. Does sensor have anything to do with it?
[BetterBatteryStats] strongst:
I can't say more cause your dump files have not the same amount of deep sleep(30mins and 1h) therefore please read first post whats necessary.

WiFi can impact too cause of bad signal, different broadcasts etc. But that's not measurable through bbs in a detailed way.
[BetterBatteryStats] michaelarnauts:
I have a Nexus 5X, and since the battery was draining quite fast, I've had replaced the battery (almost 2 years old). I've also factory reset my device (and reinstalled my most used apps). The problem seems to persist, so maybe the new battery was faulty, or I have a hardware issue, or something else?

Left my phone unplugged for the night and uploaded the log to pastebin:

https://pastebin.com/giAMGAsh

Anyone has an idea?
[BetterBatteryStats] githyanki:
Facebook and some messaging apps kept phone awake some, but i saw nothing that shows why you have such a large drain. Hopefully one of the big guys can help you.
[BetterBatteryStats] TNSMANI:
Though the dump shows some drain as stated by githyanki, the level of drain is not backed up by what is shown in the dump. I suspect the battery. Is that a genuine OEM battery? If you have any warranty on the battery, return it.

Wait for others also to comment.
[BetterBatteryStats] pjadec:
Battery faulty probably. There are no big drainers in dump.
[BetterBatteryStats] michaelarnauts:
It's a new OEM battery from a decent webshop. I've contacted them, but I'm not sure if it really is related to the battery itself.
[BetterBatteryStats] DB126:
Voltage falloff is notable and could reflect a bad battery pack - most of which are not fresh despite being sold as new. Me thinks otherwise. More likely a misconfigured low level component such as modem, radio, kernel, etc. Taking an educated guess: problem started around the time device updated to Oreo?
[BetterBatteryStats] michaelarnauts:
Not sure if it's related to oreo, but I started noticing it in the last few months, so it's possible. I've contacted the webshop, and they will ship another battery. The packaging looked fine, and the date was only a few months old, but it can indeed just be an old one with a new label...
[BetterBatteryStats] strongst:
That's sadly a common practice to sold old or bad batteries as new :rolleyes:
[BetterBatteryStats] vasujahagirdar:
HVDCPD_WL & NETLINK wake locks with battery drain

Hi all, all of a sudden I'm having this HVDCPD_WL & NETLINK wake locks with battery drain without any obvious reasons!! Since 2 days, on my HTC 10 device running viperone 6.0.0 rom. Battery draining from 100 % - 30% within 3 hrs with screen off!! Battery was decent earlier. Any help very much appreciated!!
[BetterBatteryStats] maybeme2:
DELETE
[BetterBatteryStats] strongst:
Can you please provide an dump file?
[BetterBatteryStats] vasujahagirdar:
As draining was too much, I stopped using the device for daily usage. Hence to produce dumpfile, I took 3 min duration of BBS.is it OK, or require longer period??
[BetterBatteryStats] strongst:
It's really too short and it only drains 1% of your battery so please record longer(with screen off)
[BetterBatteryStats] Fahrilubis:
Anyone know what is doze interactive time?
[BetterBatteryStats] vasujahagirdar:
Issue resolved!!

My issue resolved!! It's related to phone's USB port!! Because of dust quick charging was not connecting, hence HVDCPD_WL wake locks. After cleaning & bending a bit down of middle metal piece works enabled quick charger!! & NETLINK wake lock is because "enabled double tap to sleep ".

Thanks anyways
[BetterBatteryStats] nu_skool:
Anyone able to provide some guidance please...

I get "No stats have been collected yet" when selecting Kernel Wakelock.

I'm running OnePlus One with official Lineage 14.1, I'm not rooted and running BBS xda edition v2.3-248

I've added all required permissions via ADB and have confirmed they are okay in the settings menu.

Thanks
[BetterBatteryStats] kewinhw:
I havet this problem to on my oneplus one on many ROM also. I have tried the force enable but not the ADB but I'll try force enable one more time on one plus one with omnirom. On my Samsung galaxy s4 how ever with resurrection remix it works without force enable. RR selinux is set to permissive. Opo omnirom is enforcing.
[BetterBatteryStats] zulusik:
This is getting totally out of hand. I've replaced my battery, and the phone has improved a lot - no more shutting down at 20-30%, the phone mostly lives through the day. However, idle drain was still abnormally high - approximately 30-35 % in ~8 hours. But tonight it was awful - it lost more than 60% overnight. Can someone help me find the culprit?

Thanks in advance!
[BetterBatteryStats] mattie_49:
Looks to be by just glancing google play services,facebook maps. Find a wakelock thread and learn to stop them. That's your route
[BetterBatteryStats] KingMinePlay:
Thank's for helping me, I won't disable it.
[BetterBatteryStats] strongst:
Nothing I can see. It's not going to deep sleep all the time, but why isn't clear. I would recommend to backup and clean flash the rom and check the drain without User/3rd party apps that are not included in the rom.

Please share some more details about rom, version, gapps, kernel etc.
[BetterBatteryStats] zulusik:
It's an HTC 10 with LeeDroid v.5.2.1 R149, Cleanslate kernel. Will probably do what you recommend - clean install, just need a less busy time for this.
[BetterBatteryStats] strongst:
Thanks for information. Maybe it's a kernel related problem. So recommendation is to just flash the rom without the custom kernel and user apps. You should test one thing after the other and as your said: you need some time :svetius:
[BetterBatteryStats] DB126:
For gawd sakes don't do that until all other options are exhausted. There are almost always better choices.
[BetterBatteryStats] vasujahagirdar:
Hi, [MENTION=4138220]fossils-n-dents[/MENTION] ,I'm on viperone 10 ,version 6.0.0 ,wanted to know is the setting given in the link https://xdaforums.com/showpost.php?p=73693320&postcount=32709 still holds good? I mean for Oreo?? for battery optimisation. As I tried, there are many files missing or not present in given in Google play store/play services,in broad cast receiver /service section as in the link.

Another issue I noticed is, after disabling whatever present files, the BACK UP services is broken!! Even after retoring then back & removing My Android tools app ,etc also the Google back up not came back !! Only way to get it back is to fresh clean installation of rom.

Any suggestion, help?

Thanks
[BetterBatteryStats] strongst:
I tested this linked post too and experienced NO improvement on Android 8.1.
[BetterBatteryStats] DB126:
There is no need to go through this extensive reconfiguration to realize good battery endurance on Android 6+ with the latest core libraries. Just asking for trouble, often at later time when the correlation between action and outcome is not immediately clear. Pick your apps wisely, lower screen brightness, toggle off radios when not in use, use BBS and native tools in Android 7+ to monitor and quell bad actors. Greenify can also be beneficial in some edge cases. Avoid squashing services, alarms and wakelocks. Only use ROMs and kernels well optimized for the target hardware. That ROM some kid spun up as an afternoon project probably ain't gonna yield the best experience.

Edit: also consider disabling location services (via settings...not some hack) when not needed.
[BetterBatteryStats] maybeme2:
Could you explain what you mean by that and how to do it in practice?
[BetterBatteryStats] DB126:
Well, if you are not going to use WiFi for an extended period (hours/days) turn off WiFi in settings or quick settings. Same for bluetooth. If you are asking about automation (ie: toggle WiFi radio based on some trigger like location) I am not a big believer in that. The automation often isn't foolproof and typically consumes much of the potential savings monitoring for magical trigger(s).

Forgot to mention: disable location services when not needed. That can yield considerable savings depending on app portfolio, permissions granted and how frequently the device is in motion.
[BetterBatteryStats] strongst:
According to [MENTION=5488402]Davey126[/MENTION] recommendations: NFC is also a good idea to turn it off while not needed. SIM cards too if you are in an area with no coverage.
[BetterBatteryStats] strongst:
Hmm, no cpu details recorded, maybe an issue cpu won't go into deep sleep, but I can only guess since it's not recorded by bbs.

Please post an screenshot of battery detail screen of Android battery settings(graphs).
[BetterBatteryStats] mas-slon:
Did not take a picture.

The phone is charged in the morning.

The statistics are different.

Tonight I'll take another log in safe mode.

BetterBatteryStats will put in system\priv-app.

Tomorrow I'll ask you to explain.
[BetterBatteryStats] yochananmarqos:
There's no advantage to installing BBS as a system app any longer. Either root or granting permissions via adb will suffice.
[BetterBatteryStats] mas-slon:
In safe mode, BBS does not work.

The system does not resolve, because the application is not system.
[BetterBatteryStats] yochananmarqos:
What's the point in running BBS in safe mode? Whatever is draining your battery won't be running there.
[BetterBatteryStats] mas-slon:
And what should I do?

How to identify a service that does not give a deep sleep to the phone?

Sorry, I'm using Google translator.
[BetterBatteryStats] strongst:
You should provide at least the battery stats screen from android as I wrote before. Otherwise a clean flash of the rom can also be an workaround, without the hassle of investigating ghosts ;)
[BetterBatteryStats] strongst:
The dump file shows 3min screen on time while the screenshot shows 1h:57min:47s screen on time. That does not match. The screenshots are not from the same dump record time.

Dump file also provides no cpu stats hence its not clear if cpu/kernel is the culprit.

As I said before: make a clean flash. Saves you time :good:
[BetterBatteryStats] Hari Haran:
I'm using official Lineage 14. 1 on Moto G4 Plus. Any help
[BetterBatteryStats] strongst:
Is it you on the first picture? Or where's the relation to your issue?

Please provide a full dump file according to the first post or read back. Pictures are useless until they are complete.

And please provide every mod you mentioned here https://xdaforums.com/moto-g4-plus/help/help-thread-question-noob-friendly-t3526598
[BetterBatteryStats] Hari Haran:
Sorry that pic was wrong attached. ? It's a upcoming movie from here local. Sorry for that. I've attached the full dump below
[BetterBatteryStats] strongst:
You didn't read the instructions in first post :silly:Please read the instructions in the op and read last 10 pages(it's useful).

Your provided dump is useless...
[BetterBatteryStats] Hari Haran:
What about thus
[BetterBatteryStats] strongst:
Logs won't help to investigate battery problems.
[BetterBatteryStats] mas-slon:
Thanks to all.

Reinstalled the firmware.

Everything was normal.

1% for 9-10 hours.
[BetterBatteryStats] :
So after 2-3 weeks I'm back here since I couldn't figure out the problem.

Stock ROM, Galaxy S9, no root no nothing.

In the meantime I factory resetted and reflashed the ROM through Odin a couple of times.

Location, Wi-Fi, Mobile Data (the Network Switch is on, so basically Data is turned off while I'm on Wi-Fi) and Sync are on.

Still 0.8% per hour discharge.

It seems that I'm currently having "poor signal" and in the Alarms tab, the one with the most wakelocks is "com.sec.epdg".

Thanks!
[BetterBatteryStats] Vahooli:
i have high count with smartmanager framework .what should i do ?
[BetterBatteryStats] DB126:
0.8%/hr average hourly idle drain on a S9 running unrooted Android 8.0? You're fine. Enjoy the device for what it is.
[BetterBatteryStats] mattie_49:
It's xda even off of chrome. Will be fixed soon. Many users posting screenies broke it. He he
[BetterBatteryStats] aerozolic:
Can anybody confirm or deny that Spotify is constantly using linear acceleration sensor?

[IMG="Screenshot"]https://www.upload.ee/image/8670683/Screenshot.jpg[/IMG]
[BetterBatteryStats] all the pugs:
Not on my device. But the Google Play Services and Huawei Health are constantly using sensors. Huawei Health sounds right (but why even in the night when the device is in deep sleep?), but Google Play Services is weird. I even revoked the permission to use body sensors for the Play Services but still...
[BetterBatteryStats] aerozolic:
What version of Android are you using?

From the looks of it using the sensor doesn't seem to keep the device awake. But I'm not sure if it causes the app to use more battery.
[BetterBatteryStats] all the pugs:
No, it doesn't keep it awake. No idea if it drains the battery, I just think it's interesting the "rapid movement" sensor (which is a "virtual" sensor afaik) is on for a whole night. I noticed this behaviour on 8.1.0.128 as well as 8.1.131... I noticed this on two separate P20 Pro's, so I guess it must be normal. Interesting, though. Do you also register many ts_wake_locks (Touchscreen wakelocks) even though the device is untouched?
[BetterBatteryStats] aerozolic:
From which menu can I find ts_wake_lock?
[BetterBatteryStats] all the pugs:
In BBS, go to Kernel Wakelocks. Touch events will fire a ts_wake_lock which is fine. However, I have these wakelocks also when running BBS during the night when the device won't get touched. But don't know if "ts_wake_lock" is something every Android Device registers or if there are also device/manufacturer specific wakelocks.
[BetterBatteryStats] aerozolic:
Nope, zero ts wakelocks under kernel wakelocks.
[BetterBatteryStats] all the pugs:
Good to know, thank you.
[BetterBatteryStats] aerozolic:
Would a BBS log help any?
[BetterBatteryStats] all the pugs:
I'm not an expert in this issues... Just started looking into it because my P20 Pro has a less than stellar battery life and stumbled about the weird sensor usage. So maybe some of the experts here can say something about the sensor usage even when the device sleeps....
[BetterBatteryStats] TNSMANI:
Basically it is your mobile signal strength which is poor most of the time. Take another dump where you have better signal. Or if you are on 4G, switch to 3G or 2G and take another dump. I am sure that the drain will improve by atleast 0.3%.
[BetterBatteryStats] trentonite:
Ran a "test" a few days back and let the phone go overnight without charging. BBS didn't really report much other than a very high sensor number for Play Services. The result of the test was a 22% idle drain over about 6-7hrs. This seems a little high and I'm trying to understand if it's just the battery or something actively draining the phone. Can sensors from Play Services cause that high of a drain? I don't really even know what those are/are doing tbh.

x-post for details: https://xdaforums.com/oneplus-3/one...ageos-15-1-oneplus-3-3t-t3739169/post77061372
[BetterBatteryStats] strongst:
Can you please attach the bbs dump file instead of screenshots? Screenshots wohnt contain everything for deeper investigation ;)
[BetterBatteryStats] DB126:
Given favorable [deep sleep]/[awake screen off] ratio something else is going on at a fairly low level. Possibly bad battery or 'stuck' hardware sensor that BBS can't see. Make sure fingerprint sensor (if so equipped), headphone and usb ports are glick free. Definitely NOT Android or Google Play Services based on info presented. A BBS log would be better - although probably would not change diagnosis.
[BetterBatteryStats] trentonite:
Thanks for the quick reply. The weird part about it all is that it was after a completely clean wipe. I have a hunch that it's just the battery being awful. The phone is almost 2yrs old now but there was a point that I can recall the drain occurring much more prominently that before. I'll try cleaning up the ports and finger sensor and run it through another overnight test.
[BetterBatteryStats] bradld:
Loooking for feedback on the following log. Hoping to squeeze additional battery out of this Rom/Kernel combo but not sure what to target or how to interpret some of these log entries.

https://drive.google.com/open?id=0ByYzLH8OkE29SmlWUV9EQl96UDJ1dUtQTkxPR21FUVR6amhR

Thoughts/Solutions?
[BetterBatteryStats] trentonite:
I'll do the test again this evening and make a dump file in the morning
[BetterBatteryStats] strongst:
You charged your device while recording the dump file. Please read OP how to provide a useful dump file :)
[BetterBatteryStats] AkCullen:
Battery drain

I'm using a Mi A1 and I've been having huge battery drain for the past two months because of 700000.ssusb kernel wakelock and I do not know how to fix it. I'm posting dump files from BBS, if someone can analyze and let me know how to fix it that would be really helpful.
[BetterBatteryStats] strongst:
Yeah this wakelock seems to be a common problem on several devices. But there seems to be no real solution other then install a custom rom/kernel.
[BetterBatteryStats] AkCullen:
The custom ROM / Kernel hasn't helped wither. That's what a lot of people say.
[BetterBatteryStats] LFCFredda:
Trying to figure out why my galaxy S9+ drains battery with about 3% per hour. I have tried a lot of things and now i need help. Im going to post a dump but dont know how to do this:

- adjust from/to references to 'screen off' and 'screen on'
[BetterBatteryStats] strongst:
Take it simple, like I did for idle drain observation.

Method one: charge it to 100%,unplug it and turn immediately screen of and let it settle over night for at least 6h with mobile data or wifi on. Turn screen on and immediately save the bbs dump file within the apps sharing symbol.

Method two(if you don't want to charge to 100% or its not possible): go to bbs app, 3 dots, set custom reference. Then let it settle like method one and save the dump file the same way.

Attach only the dump file here with some nice words;)

---------- Post added at 11:57 AM ---------- Previous post was at 11:56 AM ----------

Then maybe a usb port issue like others say or a general hardware problem, but I don't think so since multiple manufacturers affected :rolleyes:
[BetterBatteryStats] LFCFredda:
Thank you ??
[BetterBatteryStats] DB126:
Device never enters deep sleep. Freeze (or uninstall) WhatsApp, reboot and test for a couple hours. Long shot at best.
[BetterBatteryStats] AkCullen:
Worth a shot though. But if I replace just the USB port, I'm afraid it might affect the charging speed of the phone. Because the service center won't replace just the USB port and if I buy a USB port online I'm not sure if it would be OEM.

---------- Post added at 02:22 PM ---------- Previous post was at 01:46 PM ----------

The wakelock is not from WhatsApp but form system Kernel.

I've tried uninstalling everything, but still did not help.
[BetterBatteryStats] DB126:
Kernel wakelock is a symptom - not a cause. Apps can (and do) engage sensors which can trigger kernel wakelocks in response to app request. USB port cannot be replaced w/o advanced soldering skills - although doing so would have zero impact on charge speed assuming swap was performed properly.

Me thinks you either have a hardware problem or crappy/corrupt kernel/ROM combo that isn't playing nice with the hardware. Make sure usb port is free of pocket lint and other more nefarious debris. Or maybe Whatsapp continuously engaging the accelerometer (meh, WDIK).

Good luck.
[BetterBatteryStats] AkCullen:
It's not whatsapp, I've tried without it. I'll look into the other ones though. Thank you
[BetterBatteryStats] LFCFredda:
Hmmm chsrged to 100% just before i go to sleep. When i woke up 8 hours lster the phone had 95%. But on the days when im carrying the phone with me it drains like 3%/h. Is that normal? I guess the dump is normal?

Edit. The phone is a Samsung S9+ with stock rom unrooted
[BetterBatteryStats] strongst:
0.6%/h is an excellent idle drain. You must understand, that moving around your device drains more battery in first place because of cellphone tower roaming.
[BetterBatteryStats] DB126:
[MENTION=1377329]LFCFredda:[/MENTION]

Try disabling location services when not in use. Will likely yield a significant improvement in battery endurance when device is in motion (eg: pocket) unless you routinely frequent poor reception areas. 2%+/hr idle cell drain is excessive in the absence of other factors.
[BetterBatteryStats] mattie_49:
And sensors that wake the device when it's moved. Hence how trustagents can offer staying unlocked while it's being carried.
[BetterBatteryStats] soilentgreen:
I bought My phone befor 9 mounth, and now it shut down itself when the battery rich to 18%-19%.

When I conect the chrger it start to charhe from 0.

I run BBS and it lost 0.5%/h.

I noticed that the percentage dropdown faster around 45% .

I get 4-6 screen time.

And get a day and few houres with low use.

What the chances it happen becuse the phone doesn't "read" right the battery percentage?

There is anyway to "Reset" the battery?

There is any way to test the battery functioning for all day with BBS to find out what the problem?

Thanks for the help.
[BetterBatteryStats] DB126:
BBS stats look fine. Calibration will automatically reset after an auto shutdown due to low voltage. If purchased new it should still be within warranty. Have the battery replaced.
[BetterBatteryStats] fcaronte:
Any info about my drain? Is possible using smartwatch is cause of battery drain?

Ps

I think to never see this warlock

androidx.core:wake:com.google.android.gms/.auth.authzen.GcmReceiverService

What is it?
[BetterBatteryStats] mattie_49:
Try not using the smartwatch for a day or so and you will have your answer. I'd say it is. But I'm no expert
[BetterBatteryStats] DB126:
- log too short (not enough time) to derive any meaningful info; 6+ hrs needed

- smartwatch/fitness device almost always drives increased battery use

- don't worry about the wakelock - nothing you can do about it on an unrooted device (not there is any need to take action)
[BetterBatteryStats] fcaronte:
For me there is to much different from smartphone stay on table and when stay in my pocket. I would to have low discharge on my pocket too. At work I don't use to much but I'm on movement with my s7 in the pocket and difficult stay at 5%\h but when not moving go down to 1.5\2 X hour.

It seem that disable position is not help
[BetterBatteryStats] kapil_dheer:
Please try naptime app & enable option of motion detection during Doze.
[BetterBatteryStats] fcaronte:
Just try but give more problem because is continuing enter and exit from doze causing more wakelock