yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] TNSMANI:
Screen on for more than 13 minutes. Required an idle dump with screen on lesss than one minute. As soon as you unlock screen, save the dump.

Wifi issues are there but understandable since you used the hotel wifi.

A fresh idle dump preferably with home wifi will help in proper diagnosis.
[BetterBatteryStats] zulusik:
bump... anyone?
[BetterBatteryStats] DB126:
Nothing shouts out in the log. Me thinks you have a bad install. Rollback to stock (using the backup you made) to see if the problem persists.
[BetterBatteryStats] zulusik:
Thanks. So since the drain was already bad on stock/locked (it just got worse, probably over time, not related to unlocking/rooting/flashing), I may assume that the battery is practically dead?
[BetterBatteryStats] DB126:
Ah - new information or detail I overlooked in previous posts. Yes, bad battery, stuck/dirty sensor (eg: fingerprint scanner) or another failing hardware component. Symptoms suggest the battery pack (ie: erratic partial discharge behavior). Good luck.
[BetterBatteryStats] zulusik:
OK, thanks. Probably last question. What about this part:

---------------------------------

(Google Play services):
[BetterBatteryStats] zulusik:
Sorry, my message was cut in half:

In the sensors, there's this:

Sensors

==========

(Google Play services):

Sensor: Accelerometer Sensor(0), wakeup=false, Time: 0 s

Sensor: Significant Motion(13), wakeup=true, Time: 4 h 34 m 30 s

Can this cause drain? If yes, is there a fix?

Thanks again.
[BetterBatteryStats] maybeme2:
Went through the night without touching the phone as directed. Had to reboot this morning because the battery was so low it shut itself off. Here is the logcat I saved before starting to recharge. The earlier log is in my previous message.

There is certainly something wrong. :confused:
[BetterBatteryStats] strongst:
The dump file does not contain anything. Maybe you saved it after the reboot hence it will be cleared depending on the reference point.

You should make a new one again :)
[BetterBatteryStats] maybeme2:
I made a point of making the dump file before connecting the phone to the charger. But the phone had turned itself off when the battery died. So when I booted up it must have restarted the BBS recording.

Here's the dump file just before that if that is helpful. I don't know how to read and analyze them. I suspect SwiftKey or the internet connection because, being overseas, I turned data off to avoid roaming fees. Is there anything that can be deduced from any of these dumps? I may not be able to ever obtain a full 8 hrs with no activity because the battery does not last that long.....

Edit

For some reason I couldn't attach the file using Root Explorer, so I will try using ES Explorer.
[BetterBatteryStats] maybeme2:
Here's the dump file
[BetterBatteryStats] chamonix:
Tasker has quite some settings for controlling the wakeup frequency, depending on the required precision.
[BetterBatteryStats] chamonix:
BBS will offer that, it's in the backlog
[BetterBatteryStats] Settembrini:
Sorry forgot the "log".
[BetterBatteryStats] chamonix:
This is good stuff!

I'll digest that and add it to the online knowledge base with proper credits if it's OK for you. I'll PM you the link for review before pushing
[BetterBatteryStats] chamonix:
I was talking about dumping the raw data from a shell session on your phone; I would like to look at the output.

Assuming you have root search xda or the Android Market for "ControlCenter", go to the "logging" tab, run the "dump alarms" command and retrieve the file created and post it here
[BetterBatteryStats] Settembrini:
Sorry, would like to do that, but cannot find "ControlCenter" neither on the market nor at XDA. Can anyone help?

Thanks!

S.
[BetterBatteryStats] RovG:
It is called " CommandCenter" written by some Sven guy. You know him Chamonix? ;-)
[BetterBatteryStats] Settembrini:
Thanks,

so I installed Command Center and found everything like you said, but I cannot find the damn file to post it. It is not on the sdcard.

More help please!
[BetterBatteryStats] chamonix:
Oops, sorry for the screwup in the name: https://market.android.com/details?id=com.asksven.commandcenter&feature=search_result
[BetterBatteryStats] chamonix:
There are some news regarding that wakelocks you have. I can't tell if it's a solution for you but you may want to look at this: http://xdaforums.com/showpost.php?p=22786143&postcount=3416
[BetterBatteryStats] chamonix:
6 minutes awake in 9 hours. My advise: enjoy the result of your hard work :)
[BetterBatteryStats] chamonix:
What is weird is that your graph suggests longer awake times than the "awake" counter shows.

There are cases where the graph in unprecise because of interpolation. That's why I suggest following:

- charge your phone to 100% to make sure that there as no energy saving effects coming from battery reaching low levels and changing your phones behavior

- reboot

- plug/unplug

- repeat the reading with "since unplugged"

This and next week I will be working on other projects but next iteration on BBS will provide active monitoring for hours-by-hour analysis that may help in your case
[BetterBatteryStats] chamonix:
Your dump is incomplete (no reference for kernel wakelocks and alarms). Please redo and make sure to provide a "since unplugged" dump.
[BetterBatteryStats] jeremysherriff:
It should, yeah.

Perhaps tweak it a bit - remove the notifications? And perhaps the widget? Just let it run in background mode only, perhps that might control the waking...
[BetterBatteryStats] chamonix:
The alarms aside those are your main problems:

SyncService (com.evernote.Evernote): 6 m 23 s (383 s) Count:3 0,1%
SyncLoopWakeLock (Android-System): 3 m 29 s (209 s) Count:4150 0,1%
JuiceDefender.Service (JuiceDefender): 2 m 26 s (146 s) Count:642 0,1%

Let's start from the end: get rid of JD

The second one is tricky. I googled a bit and didn't find anything precise but a few hints. To break this down a few questions:

- what accounts do you have and what sync is on

- do you have google music syncing?

- does this disapear if you disable evernote sync?
[BetterBatteryStats] Settembrini:
Thanks, Evernote's automatic sync is disabled. I only sync it manually.

And I do not sync google music.

DJ useless?

Galaxy 7.7, still no raw alarms, only computing, but no result

So I installed Command Center and found everything like you said:

"go to the "logging" tab, run the "dump alarms" command and retrieve the file created and post it here"

But I cannot find the damn file to post it. It is not on the sdcard. How can I find it?

Thans so much!

S.
[BetterBatteryStats] jeremysherriff:
Well, it's a kernel thing so the easiest way might be to try a different kernel..?

I believe it is access to the sdcard, although Google might say differently (haven't checked).

Something you might try is rebooting after you disconnect from the charger, it might be a hang-over process scanning your sdcard after being connected to a PC?

Regarding this GTALK stuff, the process is still waking to try and connect, whether you allow the data connection or not. Disabling background data doesn't change the app behaviour, it just changes whether it can connect if it tries. Airplane mode is similar.
[BetterBatteryStats] hoopsbwc34:
Isn't it really apps using functionality provided by the kernal though? I actually did a reboot after I pulled the charger to do my overnight test.

The GTALK stuff is annoying... so I have to uninstall and add back in one a day to try and track down the issue... sigh.
[BetterBatteryStats] jeremysherriff:
No, generally it is real kernel stuff. I wouldn't worry about GTALK at the moment, none of your problem wakelocks (kernel or user) are GSF- or GTALK-related so you can come back to them when your kernel issue is resolved.

Focus on these:

Kernel Wakelocks
================
"mmc_delayed_work" (): 1 h 37 m 40 s (5860 s) Cnt:(c/wc/ec)1898/0/1898 24.7%
"deleted_wake_locks" (): 9 m 19 s (559 s) Cnt:(c/wc/ec)1431/0/1431 2.4%
"max8998-charger" (): 4 m 1 s (241 s) Cnt:(c/wc/ec)1032/1394/0 1.0%

And by focus, i mean post in the kernel thread, hassle the dev, or change kernels.

Edit: GTALK is all Google stuff including some real deep internal components. Don't remove/freeze anything that came in the ROM to start with unless you know for sure that it isn't needed.
[BetterBatteryStats] pjadec:
Too long screen on time.

these 2 also cause partially battery drain

com.touchtype.swiftkey

com.rageconsulting.android.lightflowlite

Or maybe battery problem?

Nexus 5 its old phone, have you change battery for your Nexus 5
[BetterBatteryStats] maybeme2:
Thanks. I'll work on both apps and see if it helps.

I changed the battery a few months ago.

Lightflo maybe the culprit because I only installed it recently. SwiftKey I've used a very long time but I'll look into it too.
[BetterBatteryStats] DB126:
Took another look at your log and associated posts. I'm going to walk back my most recent comment regarding the battery and return to 'bad install' or 'stuck sensor'. Device does not enter deep sleep nor doze yet is largely idle. It seems unlikely a software glitch survived the recent Oreo migration unless done via OTA. Advise performing a complete rebuild using the original stock ROM if the Android 8 update did not include bootloader/kernel mods. Of so you'll need to consult your device forum to confirm safe rollback options.

Could the Significant Motion sensor be the culprit? Quite possibly. There have been numerous posts on that topic (search the thread) with various proposed solutions that appear device specific. Your device forum another good source.

What about the battery? Reported behavior (ie: sudden fall off) suggests there may be an issue here too - but it probably isn't primary. Need to address the sleep issue first.

---------- Post added at 01:52 PM ---------- Previous post was at 01:44 PM ----------

Also check/disable body sensor (pedometer).
[BetterBatteryStats] maybeme2:
You're a good man Davey. Thanks.

Also check/disable body sensor (pedometer).

I froze the pedometer (titanium backup) I'm not sure how to check/disable the body sensor. Will research that on the web.
[BetterBatteryStats] KingMinePlay:
WifiConnectivityManager Schedule Periodic Scan Timer

How can I disable it and what does it do? I can't see it on my wakelock/alarm blocker on AEX 8.1.

I am using Xiaomi's Redmi 5 Plus.

Thx.
[BetterBatteryStats] strongst:
What do you mean? Pedometer?
[BetterBatteryStats] KingMinePlay:
Sorry, I mean WifiConnectivityManager Schedule Periodic Scan Timer
[BetterBatteryStats] maybeme2:
Davey was answering to two different user questions.

The pedometer remark was about an app in my dumpfile.
[BetterBatteryStats] leprince2007:
How to disable this wakelock?

"WifiConnectivityManager Schedule Periodic Scan Timer"
[BetterBatteryStats] TNSMANI:
Wifi scanning goes on in the background to keep/maintain the connection to your router and also to see what other connections are available. Usually the scan takes place every 5 to 7 seconds. If you go to Settings>Wifi, you can see the scan bar moving. While some ROMs give an option to lengthen the interval between scans, I don't think that it is possible to completely disable it. Even if possible, I would not touch it since it is a vital part of connectivity to your phone.

Why do you want to disable it?
[BetterBatteryStats] maybeme2:
Feedback (in case it helps someone else):

Replaced Swiftkey with AnySoftKeyboard

Uninstalled pedometer

Uninstalled lightflowlite

Now battery life is back to normal. The first two apps I had used for years without problems, so I suspect lightflowlite was the bad-actor. Will soon reintroduce the first two after a while to see.

Don't know how to "check/disable body sensor". I'm on lineageos 14.1 based on android 7.1.2
[BetterBatteryStats] DB126:
Should be fine if you disabled/uninstalled Pedometer app by j4velin. If applicable can also disable Google Fit sync (settings->accounts->Google) although resource consumption is likely negligible.
[BetterBatteryStats] elraffa:
Hi, I have a problem with partial wakelock values, BBS shows the same time and percentage for all processes. I have BBS 2.4-256 XDA version, huawei p8 lite, aosp extended 4.6 android 7.1, native wakelock blocker of the ROM is disabled.

Could anyone help me please?
[BetterBatteryStats] DB126:
This is a characteristic of AEX (AOSP Extended) ROM on some devices with no known solution...as least to me. Rather annoying as AEX is my goto choice when stock is not an option.
[BetterBatteryStats] :
Can anyone give me a hand with these? My battery life is a mess.

Thanks!

Edit: logcat: https://drive.google.com/open?id=14DZT3sCST8Eyg5n2J0nVXtc7bti5UmcH
[BetterBatteryStats] strongst:
Seems that the idle drain is high cause of the poor signal for several hours. Facebook and telegram can be malicious, but that's just an opinion since you used your device 30min.

Just try to repeat the dump file with a custom reference or with nearly 0 screen on time.

I guess it's the stock Samsung rom? Do you use any mods/magisk modules/xposed/greenify/amplify/similar?
[BetterBatteryStats] :
Yeah I traveled today to another city, but this is the general state of my drain for whatever reason.

I'll upload tomorrow morning a new dump file...
[BetterBatteryStats] strongst:
Traveling causes a lot of wakelocks cause of roaming between cell phone towers. But poor signal too cause the amplifier needs more power to send the same signal.

General a idle drain dump over night(laying the phone on a desk) is the only way to get a reference of your battery behavior. Every variation like mentioned above isn't really monitored by bbs android in general.

I edited the post with another question maybe you can have a look at ;)
[BetterBatteryStats] lukasgur:
Hey, could someone check my dump file, maybe they could notice what is causing my battery to drain. I charged my phone before going to bed, and dump file is made this morning. Very little usage. Phone is oneplus 5.

https:// drive.google. com/drive/folders/1hn8YVnP9ZV9DVdziwu4M5x7qYQqZHCzm?usp=sharing

Edit: After writing this, I found out I cant add external link here, so will try to attach screenshots of the app.

[IMG="Summary"]https://i.imgur.com/4sz7UDL.jpg[/IMG]
[BetterBatteryStats] :
Yeah, it's the stock ROM and I haven't rooted/unlocked it due to the warranty terms. I dont use any of the specified software on unrooted ROMs. I also just did a factory reset on Friday.

Logcat: https://drive.google.com/open?id=1Vt87Swm1AQfcsB668qq5dvXOJoFiqUK0
[BetterBatteryStats] strongst:
You can paste the link separated with spaces while uploading the file to hastebin for example :good:
[BetterBatteryStats] lukasgur:
God, I'm slow this morning.. :)

https:// drive.google. com/drive/folders/1hn8YVnP9ZV9DVdziwu4M5x7qYQqZHCzm?usp=sharing
[BetterBatteryStats] strongst:
Oh then there's only little bit you can do.

Deactivate as many as bloatware shipped with the stock rom(that's a loot on samsung). It will help reduce the idle/usage drain. Also location and wifi scanning should be disabled when not needed.

On the other hand: your standby drain is only 0.8%/h,that's not bad! With moderate signal(coverage in house isn't good) I came up with nearly the same amount on my oneplus 5!

You can test how your wifi impacts that dump(repeat again with same parameters but with WiFi disabled)

---------- Post added at 07:29 AM ---------- Previous post was at 07:08 AM ----------

Thanks for sharing :) I have the same device, so easier to compare ;) can you tell us more about the rom and mods you're using. If it's not stock and bootloader is locked, please give full details.

What we can see, you have over 7h poor mobile phone signal. That can be the main issue of the 3%/h idle drain when you didn't drain the battery within that 3 minutes screen on time.

See my post before about the signal. Op5 is very efficient device and you can reach very high sot(+10h).
[BetterBatteryStats] lukasgur:
I'm using beta from Oneplus. Last update came OTA and I don't see it in their website. It says OP5_O2_BETA_12.

https:// imgur. com/a/klWVvwZ

I have a problem of loosing mobile connection (though phone doesn't show it and I can find it out only if I try to open a web, make a call or send a message, and see it fail). I guess poor battery life and this issue might be connected.
[BetterBatteryStats] strongst:
I'm too on ob12 but drain isn't bad. Even the known H+ problem isn't there.

Do you have unlocked bootloader and additional mods installed?
[BetterBatteryStats] lukasgur:
No, everything is stock.
[BetterBatteryStats] strongst:
Ok, please repeat the test if possible within an area with better mobile coverage.

On stock devices as mentioned before, you can do only minor things. And since the oneplus 5 stock rom has no real bloat Ware, you cannot do debloating the same way like on samsung.

The stock oos is really battery friendly!
[BetterBatteryStats] lukasgur:
Ok, I will try to leave my phone closer to the windows tonight, maybe thick walls block the signal.

However, I'm at 35 % now with only 1h 27m of screen time, last full charge 16h 13m ago. Which is sort of disappointing. But signal here, at work, is not good either.
[BetterBatteryStats] strongst:
Yeah thick walls block signals also isolated walls. I have the same problem @ home.
[BetterBatteryStats] :
I uploaded logs/dump with wi-fi/location closed. :D
[BetterBatteryStats] strongst:
Excellent, you can see that the drain decreased by 0.2%/h to 0.6%/h that's good idle drain with moderate signal imo.

Other things I can't find so far.
[BetterBatteryStats] :
Yeah, so basically bloatware doesn't drain as much as I expected. The signal is the problem. I was thinking it might mean there's an issue with the Oreo modem.
[BetterBatteryStats] strongst:
Maybe the device forum can give you more information on the modem impact. It's not measurable by bbs...
[BetterBatteryStats] Dave^:
I'm having issues with stat collection after upgrading my nexus 5 from lineageos14.1 nightlies with bluspark to DU12 8.1.0 official with elementalx.

With watchdog enabled, when i select screen off to screen on, i get really short durations of a few seconds, and no data when trying to show cpu states from any time period.

Anyone else?
[BetterBatteryStats] ch3mn3y:
Installed 2.3-248 on my Sony Tablet P with Android 4.0.3 and it seems that app, with root (SuperUser), can only access only BATTERY_STATS permission. For the rest it demands adb commands to be used like on unrooted devices, but grant command doesn't work on ICS.

2.2.2.0 seems to be working without any problems.

Is there any way to make log of it? Do You even may need it, as this Android version is an ancient history?
[BetterBatteryStats] githyanki:
Since you have 2.2.2 working, and the newer version only has updates to make it work with newer versions of Android, I would say leave it alone. No new features that your missing.
[BetterBatteryStats] ch3mn3y:
[MENTION=1631192]githyanki[/MENTION]

I know, but maybe [MENTION=1330150]chamonix[/MENTION] would like to know why it doesn't work. It supposed to be working since 2.x Android, so 4.0.3 is one of them.
[BetterBatteryStats] DB126:
Party like it's 1999. Seems like [MENTION=1330150]chamonix[/MENTION] needs to draw a different line.
[BetterBatteryStats] Dave^:
Reflashed DU, didnt flash eX, all is well.....
[BetterBatteryStats] peterlee928:
howdy to all the brilliant minds in this thread. sorry sorry sorry my log isnt starting betweem 95% to 100%, but it does have 6+ hrs idle amd <1 min sot. please let me know if this log is no good.

if the log is legitimate (enough) - any thoughts on potential areas of improvement?

much thanks in advance :)

link to log: https://drive.google.com/file/d/1-4Wj7ivCZcwLuq_Re7txr-E8Wtop_Rji/view?usp=drivesdk
[BetterBatteryStats] strongst:
Howdy :cowboy: the dump is OK since the reference is given.

Well, rarely seen such a clean dump! And: 0.5%/h idle drain isn't worth to complain about nor to investigate one second to minimize that!

You should worry about if it goes above 1%/h idle drain.

Just for interest: can you tell something about your apps, especially Mail, social media, messenger and every app that uses background activities of that you know? Your dump is really clean, so it's unusual if you have lots of them running ;)

Thanks!
[BetterBatteryStats] peterlee928:
super thanks for the quick and efficient response :)

here are my apps:

email: inbox by google

social media: instagram, igtv (just downloaded this yesterday)

messenger: hangouts, textra

apps with background activities that i know (or at least i think): inbox by google, google calendar, washington post (i think... i always turn off sync, but it keeps automatically turning back on), snkrs, adidas confirmed, gravitybox, busybox pro, alarm clock extreme, google phone, acr, google contacts, textra, google hangouts, google play store, adaway, greenify, magisk manager, xposed, bbs, amplify (i know, i know, likely unnecessary... just shut down a few wakelocks alarms i only love my bed and my mama IM SORRY), autorun manager, bitwarden, authy, google play services, google search

i generally turn off notifications and sync (both in-app and settings) for all apps except for apps that i really want notifications from (pretty much only email and chat/text).

all 3rd party apps are battery optimized except youtube vanced and inbox by google.

of my google apps, only inbox by google and google calendar have sync turned on.

i think that covers everything (or most everything). happy to provide additional details if you'd like :)
[BetterBatteryStats] DB126:
In addition to [MENTION=613506]strongst[/MENTION]'s comments me thinks your average hourly idle drain rate is likely a bit less than depicted. Note the near level battery voltage and relatively low screen-off wake time. Guessing total idle falloff was closer to 2½% over 6 hours (~0.4% per hour) which is close to the floor for a Pixel 2 XL in the absence of counterproductive nut-ball tweaks. Nicely done.
[BetterBatteryStats] greenys':
[MENTION=1330150]chamonix[/MENTION] I'd like some words of wisdom from you. I've already read through the comments for a solution but everyone says that No Data Connection 100% is due wifi actively searching for signal. However since I installed the ROM it's never been turned on. I use mobile data all the time and all of the wifi config are turned off including notifications and search for wifi, search via wifi and bluetooth. So I don't get it.

[IMG="Basic Stats"]https://image.ibb.co/jfEss8/1529731408705_896.png[/IMG]

https://drive.google.com/file/d/1aDwfsE2CfR2Ukl-hbAVV4eKLQQEOlTOn/view?usp=drivesdk

Logcat^
[BetterBatteryStats] peterlee928:
wow i must have done something right to get the masters [MENTION=5488402]Davey126[/MENTION] and [MENTION=613506]strongst[/MENTION] to comment on my log! so there are occasions where i get >1% idle time... but most always <1%. given standard deviation/rounding errors, i figure it could be slightly less, so not terribly worried.

very much appreciate the feedback! :)

[MENTION=5488402]Davey126[/MENTION] hows life treating you these days? well i hope... :)
[BetterBatteryStats] DB126:
Beat the odds; damn lucky and doing well. :)
[BetterBatteryStats] peterlee928:
good things happen to good people ?
[BetterBatteryStats] theguy:
Hi guys,

Every treble gsi I use seems to have the same deep sleep issue.

Can anyone figure out what the issue might be with? I'm guessing a kernel issue or could it be a system image problem?

Thanks
[BetterBatteryStats] japhar:
Can someone explain how I'm getting much more alarms while on WiFi?

[IMG="WiFi ON"]https://i.imgur.com/Q7tNMa0.jpg[/IMG]

[IMG="WiFi OFF"]https://i.imgur.com/V0el3Ka.jpg[/IMG]
[BetterBatteryStats] strongst:
Please provide a full dump file and attach it here, otherwise nothing(deep sleep issue) can be figured out according to this screenshots :)

---------- Post added at 07:19 PM ---------- Previous post was at 07:16 PM ----------

Both screenshots show that wifi is enabled :eek: maybe you can also provide bbs dump files.
[BetterBatteryStats] japhar:
I have turned off WiFi during sleep in WiFi settings. I though maybe someone already had this issue.

Dump file incoming.