yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] realista87:
ok but what could be the problem if i kill this alarm? some broken apps....or simply wifi will never search other wifi once already connected to my "preferred" one?
[BetterBatteryStats] DB126:
Try it and find out. I have never seen the need to mess with this alarm.
[BetterBatteryStats] peterlee928:
hi all

apologies if this q was already addressed

if so, happy to be pointed in the rite direction

in looking at bbs

my wifi running is at 100%

despite my wifi not being on at all

any thoughts on wut the cause might be?

much thx in advance :)
[BetterBatteryStats] Portgas D. Ace:
Check the advanced WiFi settings (Settings -> WiFi -> Advanced) whether "notify on open network" is enabled. If yes, disable it.

Second, check location settings (Settings -> Location -> Scanning) whether WiFi scanning is enabled. If yes, disable it.

Reboot your device after changing those options or do a full charge for reference.
[BetterBatteryStats] peterlee928:
it was the latter

much thx :)

u r the man
[BetterBatteryStats] the.Great.Skua:
Hi, does anyone have a remedy for these please?
[BetterBatteryStats] githyanki:
Stop using WhatsApp and leave your display turned off.

Seriously though, those mean nothing out of context. How much did you actually use WhatsApp, and how much was your display on? Wakelocks and interrupts are normal while using your phone.
[BetterBatteryStats] vientito:
Can one actually shutdown bbs to stop tracking?
[BetterBatteryStats] metrize:
How do i give root with magisksu
[BetterBatteryStats] Oswald Boelcke:
Most likely I don't understand exactly what you mean and why to do so.

Ensure that "Active Monitoring" is disabled (see screenshots). If I denied BBS to track there would be no further need to me to use BBS i.e. I'd either uninstall or freeze BBS.
[BetterBatteryStats] Oswald Boelcke:
At initial installation or after an update, BBS requests root. You'll be informed about this request by Magisk and then either grant or deny the request. Within the Magisk app, you can manipulate the SU settings and e.g. withdraw any granted SU permission. In case of further questions regarding Magisk I suggest to consult the Magisk thread.
[BetterBatteryStats] vientito:
I have turned off my bluetooth but from graph i can see bluetooth being switched on at times but there are not obvious hints in the stats to help me to narrow down which apps are the culprits. Anyone has any suggestion how i can pinpoint that?
[BetterBatteryStats] Oswald Boelcke:
Is Bluetooth-scanning disabled at settings => location => scanning (the three vertical dots top right corner)?

Please refer to the attached screenshots.
[BetterBatteryStats] vientito:
Yes both wifi and bluetooth scanning are disabled.
[BetterBatteryStats] metrize:
There's no popup for root access
[BetterBatteryStats] chamonix:
If the watchdog is off there is no active tracking performed by bbs
[BetterBatteryStats] chamonix:
For those who wonder: BBS works pretty fine on O preview 1
[BetterBatteryStats] Limakos:
[MENTION=1330150]chamonix[/MENTION]

If I'm not mistaken couple of posts earlier you wrote that it's no longer needed to install BBS as system app. Does this mean that with root only we will get results with the same accuracy as with system app? I'm asking because in 3rd post it still says that 3 modes exist and installing as system app will give most accurate results.
[BetterBatteryStats] chamonix:
I'll check and update the FAQ, with root and without system app bbs is fully featured. Only without root a few features are missing
[BetterBatteryStats] vientito:
Bluetooth enigma

This graph is getting more strange by the hour. Check out the Bluetooth profile below. And I thought Bluetooth can only be in binary state not something like that. Also I have observed that I never really see WiFi having any sort of signal throughout,which is nonsense since every screen-on moment my WiFi is turned on.
[BetterBatteryStats] joelunch:
Can someone please take a look at this log? Nothing seems to help much. Getting like 6 to 8 % battery drain with the screen off https://drive.google.com/file/d/0B9fanPsHVS2VcG9Sdkw3QWdwd3M/view?usp=drivesdk

I notice this long one. Is it normal?

Sensor: Pickup Gesture(21), wakeup=true, Time: 6 h 3 m 18 s
[BetterBatteryStats] TNSMANI:
Your dump does not reveal any reason for the drain except the sensor pointed out by you. I also notice that you were not on WiFi. How is the mobile signal at your place? Do you have a screenshot of the battery history details page from Settings? If so, please post it.

Also the Alarms stats are not populated. May be uninstall and reinstall BBS and take another dump along with the battery history details screenshot.
[BetterBatteryStats] Michele Lindemann:
Hello guys,

I Just found this post yesterday and i decided to buy this amazing app since i've been experiencing a really high battery drain (last time i got 14 hours with 1,5 house SOT, simply ridiculous).

As usual, my phone (exynos variant) drains a lot during stand-by time, so i hope someone can help me figure out what is going on cause it's driving me insane :D

Here's my dump file done after 6 hours idle and with 100 percent battery (I'm not rooted but i gave all the permissions with adb).

Well anyway, thanx to all of you who can help and have a nice day everyone :D

https://drive.google.com/file/d/0B_V7Ry08UnU3SmNhX1pXaUpBOGs/view?usp=sharing
[BetterBatteryStats] Oswald Boelcke:
I believe there's still the limitation that you require a minimum of ten posts before being allowed to attach a file to a post.

Upload you file somewhere in the cloud and post the URL/a link to it. Might be that you're required to omit the "http.//" in that post.
[BetterBatteryStats] Michele Lindemann:
Oh ok noc thanx for the quick answer :)

Here's my google drive link

Https://drive.google.com/file/d/0B_V7Ry08UnU3SmNhX1pXaUpBOGs/view?usp=sharing
[BetterBatteryStats] hmillos:
Is "Screen dark" related to "Doze interactive time"? I have 31% in both and time are almos the same (4 secons difference).

Also, according to the how-to, Wifi running shows the % of time WiFi was connected to an SSID, mine is showing 100% in both WiFi ON and WiFi running, I'm pretty sure I wasn't connected to any SSID during, at least, 1 hour, so... should i check something?
[BetterBatteryStats] NahuelMS:
Hello! After installing BBS I started seeying qpnp_fg_memaccess wakelock and another similar wakelocks in my moto x style unroot. i never saw it before and i like the app but this wake up get like 40mins. Any fix?

Also i think kernell wakeups are not correctly displayed, they don't reset after full charge. I buyed the paid version so i am a little disappointed.
[BetterBatteryStats] DB126:
- check thread posts #3 and #4 for info on improving the operation/performance of BBS on non-rooted devices

- options to address wakelocks are very limited w/o root

- regardless or root status some (arguably most) kernel wakelocks can only be addressed by changing kernels
[BetterBatteryStats] NahuelMS:
Allready read that!

The problem is that BBS is causing this kernell wakelocks since i used other app for monitoring the wackelock (Gsam and wakelock detector) and never seen them after the moment i install BBS. In the other hand, i charge my device to 100% unplugg it and the kernell wake up still displayed incorrectly. For example it says PowerManagerService.WakeLocks 43 min and in the sum of my partial wake up is 5 min and the total wake up time in summary is 15min. Also the summary stats are correct, the only think is not working ok is the kernell stats.

Thanks!
[BetterBatteryStats] DB126:
Yep - seen various reports of BBS behaving strangely on unrooted devices. Might pursue a refund from the developer (if interested).
[BetterBatteryStats] Michele Lindemann:
Anyone? :(
[BetterBatteryStats] Kaffeetrinker:
Galaxy S7 edge, am I right?

I see about 30 minutes "awake while screen off" out of 6 hours standby with the processor most of this time being at only 440MHz.

30 Minutes wakelock with Whatsapp, Facebook, Google, Telegram and all this stuff isn't great, but it isn't that terrible either...

This shouldn't cause 3.6% drain per hour.

Looks like "old" battery to me.
[BetterBatteryStats] Michele Lindemann:
Yes you're right, i'm a galaxy s7 edge owner.

The phone is 6 months old, i bought it new not second-hand so my battery shouldn't be "that old".

So is there something i can do to improve at least a little bit? Any advice is really appreciated :)
[BetterBatteryStats] Kaffeetrinker:
I put the old into these citation thingies because I know an S7edge's battery can't be old because it's not an old model.

Anyway, it behaves like old.

It's a question of Voltage, Amperage and Energy.

If your phone does 30 Minutes of 440MHz-ish operation, a certain Amperage at the given Voltage is needed. If this Energy-"consumption" lets your battery's Voltage drop by 20% of its Voltage range, then the amount of Energy your battery can hold is relatively small.

It's physics, not software.

Your battery may have a low capacity (that's what I meant when saying "old") because of a lot of reasons:

Error in production, heat, cold, bad wall plug, Khtulu hates you...

I'd guess you should ask Samsung for a warranty replacement. I don't know whether you'll get one or not.

If you want to get rid of the 30 minutes of not-deep-sleep, use Greenify, an alternative Facebook app and limit the amount of location checks.

1st post, xda search and Google are your friends. Your phone's kind of wakelocks are common, the usual tricks apply.
[BetterBatteryStats] Michele Lindemann:
Well first of all, thanx for the "battery lesson" ahaha i am a noob in such things.

So basically, i'll use greenify and Facebook lite or an alternative app and see if that increase my battery life at least a little bit.

Tomorrow i will call Samsung and ask for a replacement hoping they'll accept..

Thank you again Kaffeetrinker for your help, really appreciated :D
[BetterBatteryStats] Kaffeetrinker:
Don't tell Samsung that you've used ADB to read out battery stats. They'll automatically assume that you've tempered with the phone in a way they don't want you to and say you'd be to blame for the defective battery.

Just tell them how much on screen time and how much standby you get before the battery is empty.

Also say you had already done three factory resets.

They will try to temporize with you as much as possible. They'll tell you to do factory resets until hell freezes.

Don't let them fool you. Insist on a free repair.

And be prepared: Your phone will have to be "repaired" two times. The first time, they almost always do nothing and just write "meh, works for me, so what?!" on a piece of paper.

The second repair does the trick.

At least, that's the situation in Germany... Yelling, complaining and being rude to the service staff is the only way to get a warranty repair in here...
[BetterBatteryStats] Michele Lindemann:
Yes i live in Italy, so i think the situation is the same as Germany if not worst, they complain about every single thing, even meaningless ones :mad:

Well good to know i will not tell them about abd for sure now that you reminds me, they can complain about that too.

Ok so i'm prepared to be upset for the rest ok the week, fingers crossed hahah

Have a nice day and thanx again for all those tips and tricks mate :D
[BetterBatteryStats] Kaffeetrinker:
Anytime :)
[BetterBatteryStats] NahuelMS:
With gsam battery i have no problem with kernell wake up so i think it can be solve. In the other hand i check again uninstalling bbs and the mem wake up is still present so i tink is my mistake or maybe it become bigger now. With wakelock detector i have the same problem with the kernell stats, it is not getting correct stats. I don't care much for the mony, where i live 2 dolar is not much money so i think it is not worth asking a refund. Thanks for your time!
[BetterBatteryStats] DB126:
Kernel wakelocks are tough to monitor reliably on an unrooted device. The devs for each app have various workarounds which usually involve giving permissions via adb. I haven't kept up with the details as all my devices are rooted. You'll need to do some digging or maybe someone else will pop in.

Keep in mind the presence of a wakelock does not necessarily mean the device is being woken or kept awake. It really depends on what the receiver does with the wakelock request. Many wakelocks are deferred or ignored.
[BetterBatteryStats] NahuelMS:
I give permission to battery stats via adb, so i don't think i can do anymore. Also, i have a newbye question. Does the numbers of wake ups trigger mean something or the only think that matters is the wake up time?.

For example there are apps like whats app that have like 300 wake ups and only 2 minuts wake up time. I adjunt the picture of like a 12 hours journey with 5 hours SoT.

With my moto x style the big diference is made disabling the moto display wich give me like and hour more of SoT. The shame is that it is usefull.

Thank you very much!
[BetterBatteryStats] Portgas D. Ace:
Another thing beside the suggested repair:

disable the "use API" settings for both "alarms" as well as "kernel wakelocks" to get a proper BBS log file (BBS -> three-dot menu on top right -> Settings -> Advanced). Your current one is incomplete as the "alarms" section isn't fully populated and some of those might be the major cause for the drain.

After doing so, produce another idle log file and post it here.

From what I can see, you have several kernel wakelocks. You could assign a static IP to your device (see this thread) and re-check. Furthermore, some Samsung apps are responsible for several alarms (16,8 / h). This might also be an issue. Also, Facebook and Facebook Messenger seem to drain battery. You could uninstall both and use a more lightweight solution like FB Lite or FB Messenger Lite. Those apps won't drain as much as the regular apps do.

I would try out my suggestions before getting in touch with the Samsung support. If my suggestions don't help, you could still contact the support afterwards.
[BetterBatteryStats] lerkin:
For some reason BBS doesn't ask for root on my phone (op3t with Los 14.1 and magisk root). And on all tabs except kernel wakelocks I get "no stats have been collected yet).

Any help please
[BetterBatteryStats] Michele Lindemann:
Hello Ace,

Speaking of the BBS options, i've posted an image where you can see the 2 options were already disabled, never been on since i downloaded the app. Also, should i keep the third option on as it is or not? I will produce another dump tonight and i will post for sure.

http://imgur.com/a/q6Gsf

Thank you for the static IP thread, i'll do that too.

Do you know exactly which Samsung app is causing the drain? So i can disable it with package disabler. (Or if you need more details, you can wait for my new log if you want)

I know about Facebook and Messenger, thanx to Kaffeetrinker i downloaded Greenify and hibernate both fb and messenger during night (and also some other apps like Telegram for example). Now the situation seems to be a little better indeed (not 25 percent drain during the last night, but 15 instead).

Now with all that being said, i'll tag you asap with the new log file :)
[BetterBatteryStats] Portgas D. Ace:
Hi Michele,

according to your log file, the API method was used to calculate the given values. Maybe a limitation with your device, but I don't think that this is the reason, as Samsung devices are properly supported as far as I know. Maybe you could ask for help on this issue in the BBS thread. Oh, wait, one question: is your device rooted?

For the Samsung app, it is

com.samsung.android.app.aodservice (*api*): Wakeups: 369 (16,8 / h)

which caught my eye. This is related to the "Always On Display" feature of Samsungs smartphones (see here). If you don't use it, you could disable it.
[BetterBatteryStats] Michele Lindemann:
I really don't know, my device is not rooted (I gave all the permissions with adb, maybe i gave an api related permission? Is that even possible?) and now that you tell me, i can see the *Api* thing in my log, really strange i can try to uninstall and re-install the app maybe? :confused:

Speaking of AOD, it's ok i like the feature so i leave it on on purpose :D
[BetterBatteryStats] alex.zaratustra:
Thanks for your efforts, awesome app. Unfortunately I'm not able to submit my dump file as I'm a new member... Hopefully will be able to do it soon.
[BetterBatteryStats] Portgas D. Ace:
Okay, I think this is a limitation with BBS when using the non-rooted method. Nevertheless, let's see how the recommendations work out for you :)
[BetterBatteryStats] Michele Lindemann:
Post it on google drive, than copy the link here w/o the "https://" part :)

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

Ok Ace, thank you for your help :)
[BetterBatteryStats] alex.zaratustra:
Thanks, I can do that :) .

If someone can look into my dump file and advice why battery discharged by 11% during the night that would be awesome.

drive.google.com/file/d/0B0wV_DdJNwxtTUxCeXFLNjFrUDg/view?usp=sharing
[BetterBatteryStats] DB126:
There's a lot going on here. Your messaging app and several others showed periods of activity. Bluetooth radio is enabled. A 7M download from Google Play Services (possibly an automatic update which can be disabled in Play Store settings). No big hitters but lots of small stuff that added up to 35 min awake time over the 6+ hour monitoring window.

I don't have any specific suggestions other than deciding what's important (eg: instant WeChat notifications during sleep) and making sure items that do not have to run during screen off are eligible for doze.

---------- Post added at 02:40 PM ---------- Previous post was at 02:01 PM ----------

Both are important for full optimization. However, I focus on things that wake device or keep it awake when not in use and pay less attention to the reported metrics. Hundreds of wakelocks that only result in a few seconds of actual wake time aren't that important IMHO. SoT is a somewhat meaningless measure due to the number of variables involved. Invariably improving sleep behavior leads to corresponding improvements in SoT as 'battery hogs' tend to get identified and addressed during sleep studies.
[BetterBatteryStats] joelunch:
Here is the dump (lineageOS).

https://drive.google.com/file/d/0B9fanPsHVS2VNDRnRzZrdWx4UFk/view?usp=drivesdk

[IMG="bat"]http://i.imgur.com/yW8JzSh.png[/IMG]

[IMG="batt2"]http://i.imgur.com/Yyl2oqI.png[/IMG]
[BetterBatteryStats] Kaffeetrinker:
98.4% Deep Sleep is great.

Your mobile signal is good too, full green bar.

As wakelocks are definitely not your problem and signal strength isn't either, I would assume your battery has become "old". Even if you drove your deep sleep percentage to 99.9, the battery wouldn't hold for long anymore.

Quick Google research shows this to be a common problem with Huawei 6P and its battery almost impossible to replace... :(
[BetterBatteryStats] alrubenalves:
Hi there.

I've been having some trouble on my Nexus 5 with AOSP 7.1.1, the battery is just completely gone in about 2 hours of browsing on wifi. The "No Data Connection" and "No or Unknown Signal" stand out, since they are active 100% of the time, even when in airplane mode. I have good reception, already disabled LTE with no changes. I have found some posts with the same problem (fast drain and those two wakelocks? 100% of the time), but no solution.
[BetterBatteryStats] Kaffeetrinker:
Your processor can't deep sleep when you use the phone. No processor known to me can do that.

If the on screen time of your phone is bad, wakelocks have NOTHING to do with it.

Deep sleep happens when your phone isn't used.
[BetterBatteryStats] TNSMANI:
No significant wakelocks. Kernel wakelocks indicates a WiFi issue. Try to assign a static IP. Do you have many other devices connected to WiFi?

Alarms stats shows Context Manager and Heartbeat alarms. In 7.1.1, to my knowledge nothing can be done to control them.

There was a background download of about 11MB by Google Play Services. The sensor issue was also resolved.

Still i don't think that all this justifies a drain of over 7% per hour. I think that your mobile signal is not very good since it is not in the same deep green as the other indicators. You may also have a battery issue. How old is the battery?

If the battery is fairly new, take another dump with phone in airplane mode ie. Wifi,BT and mobile data switched off. And another dump with phone switched off ie. charge to 100%, switch off the phone, wait for >6 hours, boot the phone and immediately save the BBS dump. Post both here.

You can also try a clean flash of your full ROM.
[BetterBatteryStats] b00dymoon:
Could any one help ......

How to sleep this kernl wake
[BetterBatteryStats] DB126:
There's a lot of activity in that log including 576M of YouTube, 65M Facebook and many other smaller downloads. Over two hours of usage. When the device was idle it seems to sleep well. I'd say your drain rate is reflecting heavy usage possibly at higher brightness levels. Battery age (charge/discharge cycles) may also be playing a role.

---------- Post added at 11:54 AM ---------- Previous post was at 11:44 AM ----------

There is nothing wrong with those wakelocks (perfectly normal)...and nothing you can do about them anyhow.
[BetterBatteryStats] TNSMANI:
With a dump of 10 seconds, you want help?Davey126 was very kind in answering you.

Read the first post to know how to produce a proper dump, if you want any help.
[BetterBatteryStats] alrubenalves:
I know that, I said "wakelocks" because I don't really know what the "No data connection" and the other one are. I only saw them on the Summary page, not on partial wakelocks or kernel wakelocks.

---------- Post added at 08:15 PM ---------- Previous post was at 08:06 PM ----------

Yes, I was on YouTube until it was about 50% but then I went on chrome and I can't say for sure, but looked like the battery drained faster on normal browsing. What really bugs me is those two "processes" on BBS and how they look like the only possible culprits for the difference between expected and real consumption.
[BetterBatteryStats] joelunch:
So you want me to leave the phone off for 6 hrs to see if it drains during that time?

I've flashed a total clean rom and totally wiped the phone recently. No fix. The battery is about 10 months old.
[BetterBatteryStats] DB126:
I'm not immediately concerned about the no connection indication in BBS; could be a sensor misread. Need to peel back the onion one layer at a time to identify the true culprit(s). First step is to capture an idle log to see what's happening when you are not using the device. Post #6 in [url="https://xdaforums.com/android/general/guide-extreme-battery-life-t3095884]this[/url] thread explains the steps in detail; basically charge your phone to 100%, unplug and leave untouched for six hours. Then grab a BBS log within 1 min of turning on the screen. Pretty straight forward. Post log and someone will likely respond with observations and recommendations.
[BetterBatteryStats] TNSMANI:
Yes, do it in the night when you are most likely sleeping.

So clean flash and battery are ruled out. Do the two dumps and post them.

---------- Post added at 02:17 PM ---------- Previous post was at 02:09 PM ----------

They are neither 'wakelocks' nor 'processes'. That is how BBS reports the mobile signal and mobile data. It means that you had mobile signal and data available for 100% of the time the dump represents. If you didn't have mobile signal for say 2% of the time, the summary will show 98%. This has been explained by the Dev at least a couple of times here.