yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] Perseus:
1 Hour of the 3 hour log, screen was on. Sorry, that's not barely used in my book. Idle Log is what is needed here. That too at least 5 hour long.

Based on what we have, WeatherBug wants to refresh too frequently. Facebook, Chrome and Playstore Downloads contributed to the drain. If you need a detailed analysis, may I suggest you post an overnight Idle log, where you leave the phone connected a wireless network at home ? Oh and do restart the phone before leaving alone so as to start a fresh point of reference for BBS.
[BetterBatteryStats] Perseus:
Your Screenshot says, no Stats collected yet. Was that after you got the unknown Error ?
[BetterBatteryStats] a1exus:
* 1 hour screen is a lot? really? I don't think I ever got 3, maybe something close to 2

* Weatherbug is set to refresh 1 hour.

* I can try to generate/post overnight idle log, however I use Sleep that's connected to my watch to monitor my sleep / smart alarm etc. I don't have WiFi so I use LTE all the time.
[BetterBatteryStats] githyanki:
1 hour sot is a lot when you are supposed to be posting an idle log. You need to have less than one minute screen on time and over 5 hours idle.
[BetterBatteryStats] a1exus:
Sorry, I wasn't aware of format that I need to post, but I'll try tonight and post it tomorrow.

Thanks in advance!
[BetterBatteryStats] wyanar:
Hi,

I find that my phone battery drains close to 10%/hr with 97% in deep sleep.I have taken a bbs dumpfile. Hope someone can help me out here.

Thank you.
[BetterBatteryStats] gvp9000:
I've got the unknown error only at Raw Stats.

At summary, kernel and sensors I get the No stats have been collected yet error.
[BetterBatteryStats] a1exus:
see attached
[BetterBatteryStats] chamonix:
the awake time is almost completely caused by bluesleep. Either you listened to music for one hour or you have an issue with some Bluetooth device not releasing the stack.
[BetterBatteryStats] a1exus:
I went to sleep and didn't listen to any music.. I use watch and bluesleep is always like that(

Issue 198180 - android - NO DOZE - thanks to bluesleep kernel wakelock for keeping my phone awake all the time - Android Open Source Project - Issue Tracker - Google Project Hosting
[BetterBatteryStats] Perseus:
Doze is keeping your screen at ambient setting with a Screen Saver on. The screen never truly turned off. Well it did for 1 Minute 39 Seconds. Can you turn off DayDream Setting ?

That's the Thing. In your last post, you said, you have smartwatch or some Fitness tracker that you use to track sleep. Well, almost all of the trackers out there do not need to be connected to the phone to track sleep. Once you wake up, you can get on the phone and see how the sleep was.

The Point is, Permanent Active Bluetooth connection results in the Bluesleep mentioned by [MENTION=1330150]chamonix[/MENTION]. It does not help with sleep and drains the battery.
[BetterBatteryStats] dax009:
Hi all.

I'm italian and sorry for my bad english.

I find battery drain.. but i don't know what are causes..

Who can help me?

Thank you.

Inviato dal mio Nexus 6P utilizzando Tapatalk
[BetterBatteryStats] gorandroid:
Guys, how am i supposed to change language in bbs? Also will this app work properly since i am on an unrooted i9505 with 0x0 knox flag (never rooted) ty
[BetterBatteryStats] Portgas D. Ace:
First of all, welcome to XDA.

I would suggest that you read the first post (also known as OP), where you find all information about how to get help by posting an idle log file.
[BetterBatteryStats] woodman:
BBS uses the language of your Android settings. But your favorite language is maybe not translated yet.

You can translate yourself here below FYI:

https://crowdin.com/project/betterbatterystats
[BetterBatteryStats] RASTAVIPER:
I have latest version installed and my Meizu with Android 5.1 doesn't get correct readings. The statistics for out of charger or since boot are always wrong.

Any ideas how to fix that.

The app is installed at system.
[BetterBatteryStats] tronderbataljon:
Nexus 6p

Overnight battery loss, right from the charger. Should be only a few per cent down, not 12? I am on a Nexus 6p and it should be dozing. Can someone please help me read the log file and point me in the right direction to fix my problems?
[BetterBatteryStats] Portgas D. Ace:
First of all, update BBS to the latest version (can be found in post #2), as "alarm" stats are incomplete. From what I saw from a first look, you have some kernel wakelocks related to Bluetooth connection. Any wearable device connected? Furthermore, some kernel wakelocks related to WiFI. Check this thread for a possible solution.
[BetterBatteryStats] gorandroid:
Ty, also.. as i was reading the first page i noticed i would need a rooted phone for this app to work, or else to play around with some adb to make it work, but i've just installed it normally and the app works?
[BetterBatteryStats] woodman:
The app can be installed without root but you'll have missing functionalities (starting with KitKat devices) such as Partial Wakelocks. Check OPs again for more info.

AFAIK the adb thing by Looki75 is a way to work around the Google restriction on non-rooted devices and to allow the app to fully work with full stats.
[BetterBatteryStats] dax009:
I can't post my log file because i haven't 10Posts!?

Inviato dal mio Nexus 6P utilizzando Tapatalk
[BetterBatteryStats] gorandroid:
Right, ty, that's why it cofused me since i could install and run the app properly
[BetterBatteryStats] Portgas D. Ace:
You could upload the .txt file to Google Drive, OneDrive or any other online storage and post the link. Alternatively, wait until you reached 10 posts.
[BetterBatteryStats] dax009:
drive.google.com/folderview?id=0B--Pqmg5REl5MHJkQjdydkJKVWc

Add https ?

Thank you all

Inviato dal mio Nexus 6P utilizzando Tapatalk
[BetterBatteryStats] Portgas D. Ace:
Since 41 m 16 s

Screen On (): 31 m 25 s 76,1%

This is not a proper idle log file. A proper idle log file means that you did not use the phone for several hours.

Here is how to produce a proper idle log file:

- open BBS and set the reference to "unplugged to current" (which you already have done according to your log file)

- charge your phone to 100%

- unplug the charger

- leave the phone alone for 4 or more hours. Do not use your device during this time! This is important! You can

- open BBS and save the log file immediately after you turned on the screen

This way we will see what is draining your battery while your device is idle.
[BetterBatteryStats] gerardo87:
Deleted
[BetterBatteryStats] IronTechmonkey:
Hi [MENTION=4752536]FLooDW[/MENTION], XDA Labs thread must be slow today :). For what it is worth, I've seen instances where different ROM, SU and BBS combinations (and the order of events at initial ROM configuration) resulted in a BBS failure to collect partial wakelock stats even in ROMs that are rooted. The fix to which you referred might help in those situations as well. Now that there is a CM14/N version for one of my devices it might be time for some more testing.
[BetterBatteryStats] woodman:
Haha, yeah it's quite silent indeed. :)

Thanks for the heads up, I will keep this in mind.

I use this app for a very long time but I never had enough free time to read carefully here and also to try to contribute.

I love this app, so useful. :good:
[BetterBatteryStats] fhartane:
Hi. I just started using BBS on my HTC One M9 (running Ice Rom with root), as I am facing heavy battery drain. However, I cannot get access to the kernel wakelocks stats, it keeps saying "file could not be read". I have been searching for a solution on this thread for a while and all I found was using the adb method of unrooted devices, which did not work. I installed BBS as a system app from the playstore and from this thread several times and tried changing some settings like "kernel wakelocks using API" but it didn't changed anything. Anyone could help me sort this out ? Thanks
[BetterBatteryStats] metrize:
So much bad battery, never goes to deep sleep any fix?
[BetterBatteryStats] gerardo87:
Anyone can help me to understand why I have that high wakelock?

Inviato dal mio SM-N910F utilizzando Tapatalk

Attached my log

http://cloud.tapatalk.com/s/57e2b77b6e6e9/BetterBatteryStats-2016-09-21_183629727.txt

http://cloud.tapatalk.com/s/57e2b7831f891/dmesg-2016-09-21_183630058.txt

Inviato dal mio SM-N910F utilizzando Tapatalk
[BetterBatteryStats] DummyPLUG:
it seems that it only record slower core cpu states, is there any method to record the faster core cpu states? I am using a HTC 10
[BetterBatteryStats] tronderbataljon:
New log file with updated BBS. Apparently, doze is not working? Tips?
[BetterBatteryStats] dax009:
I have upload my new log file.

drive.google.com/folderview?id=0B--Pqmg5REl5MHJkQjdydkJKVWc

5% in 6 hours...it's Normal? ?

Thank you. ?

Inviato dal mio Nexus 6P utilizzando Tapatalk
[BetterBatteryStats] Portgas D. Ace:
Screen On (): 41 m 42 s 10.6% -> please do not use your device during log period, otherwise stats will be more or less useless. Refer to the OP about how to produce a proper log file without using your device (best way is to do it over night while you sleep).

Screen On (): 46 m 55 s 10,4% -> same as above, that's not an idle log file

Statistic Type: Charged to Current -> please ensure that you set the reference to "Unplugged to Current", otherwise your stats might be misleading. So please set the correct reference and produce another idle log file.

Nevertheless, I will

bluesleep (): 27 m 17 s Cnt:(c/wc/ec)8/0/8 7,3% -> any Bluetooth device connected? If you don't use it, turn Bluetooth off completely to minimize the drain.

Alarms: 648, Intent: *job.delay*

Alarms: 139, Intent: WifiConnectivityManager Schedule Periodic Scan Timer

Alarms: 251, Intent: *job.deadline*

Alarms: 29, Intent: SupplicantWifiScannerImplPno Monitor

Alarms: 35, Intent: DeviceIdleController.light

Alarms: 8, Intent: DeviceIdleController.deep

Alarms: 10, Intent: WifiConnectivityManager Schedule Watchdog Timer -> never saw those before, maybe [MENTION=1330150]chamonix[/MENTION] can give any comment here? :confused:

Beside this, a lot of alarms from Google Play Services, Instagram, Tapatalk, Whatsapp, Facebook, MyWind... But taking into account that your stats might be misleading: my suggestion would be to produce another proper idle log file, so we can check what's draining your battery while xour device is idle and not connected to the charger.

You could also visit one of the two awesome battery saving threads here on XDA and ask for help in one of them:

http://xdaforums.com/android/general/guide-0-0-hour-idle-battery-drain-stock-t2973588

http://xdaforums.com/android/general/guide-extreme-battery-life-t3095884
[BetterBatteryStats] daniap:
My log file
[BetterBatteryStats] Portgas D. Ace:
"l2_hsic" (): 32 m 20 s Cnt:(c/wc/ec)3401/1160/3401 6.0% -> see this thread for more information about l2_hsic

"alarm_rtc" (): 24 m 50 s Cnt:(c/wc/ec)2038/0/459 4.6% -> should be related to real-time clock actions, but haven't come across this one yet (most likely because you are using an outdated version of Android)

Alarms: 1613, Intent: com.google.android.location.nlp.ALARM_WAKEUP_LOCATOR -> for alarms, this is the main culprit for your battery drain. You could use Amplify to limit this alarm.
[BetterBatteryStats] fhartane:
Hi, I tried several of the last versions of the app but still get a "no stats have been collected yet" on the kernel wakelocks section (even after some time leaving the phone). I installed the app as a system app and tried the non root adb method but nothing has changed. Can anyone help ?

Envoyé de mon HTC One M9 en utilisant Tapatalk
[BetterBatteryStats] rajkatiyar07:
how to dump log in latest V2.2RC3 ? i am using it first time as an apk and there is no such option dump to file.

got it never mind :D
[BetterBatteryStats] v7:
Click on the Share icon.You'll find an option to save the dump file.

The file will be saved in the root of your storage.

__

v7

XDA Assist
[BetterBatteryStats] sirxdroid:
[MENTION=1330150]chamonix[/MENTION] - could we have an option in BBS to have a savepoint of stats every time the screen is turned off? What I'm interested in is stats while the screen is off only, collected over time.
[BetterBatteryStats] chamonix:
that's what the watchdog function (settings) will do: save a reference at screen off and on
[BetterBatteryStats] sirxdroid:
Thanks! By the name I thought it served some other function.
[BetterBatteryStats] rajkatiyar07:
http://com.asksven.betterbatterystats_xdaedition/com.asksven.betterbatterystats.services.eventwatcherservice

may i limit this alarm ? if yes then please suggest the frequency too .
[BetterBatteryStats] wyanar:
I turned off DayDream and did another idle log test, but still find it draining 9%/hr.

Can someone help advise?
[BetterBatteryStats] rajkatiyar07:
Post log file so anybody can suggest you to what to do what to limit and what to leave as they are.
[BetterBatteryStats] wyanar:
I thought I attached my log file when I submitted, but seems it didn't got attached. Thanks for highlighting!

I've edited my post with the log file attached.
[BetterBatteryStats] chamonix:
that's not an alarm, it's a service. It is responsible to handle event like plug/unplug so a) it will not cause any overhead and b) if you stop it you will not have any references for these events created.

This service holds a wakelock when saving the reference.

See more here: https://github.com/asksven/BetterBa...atterystats/services/EventWatcherService.java
[BetterBatteryStats] chamonix:
Aside from Wakeups caused by your Wifi gms wakes up your phone 37 times an hour. Time to look into turning off some location stuff
[BetterBatteryStats] joanquro:
Hello.

I attach my stats. I think they are ok, but just in case...
[BetterBatteryStats] RASTAVIPER:
I am rooted and I have Android 5.1

Latest BBS is repeating the computing all the time and gives wrong info, as it can't calculate correct the out of charger period.
[BetterBatteryStats] sirxdroid:
What's a reasonable amount of awake time to see over long periods of screen off, e.g. overnight, on a Nexus 6P still on MM? I'm getting a bit over 30% but I don't see any obvious wakelocks that are kept for a long time. I suppose it could be because of bluetooth staying connected to my Hwatch and perhaps TMobile wifi calling being enabled (top kernel wakelocks are wlan_rx_wake and bluesleep, partial wakelocks well behaved)? Otherwise apps seem to behave, battery drain under 2%/hr. Normal?
[BetterBatteryStats] wyanar:
Ok, I've put apps in hibernation, turn off location service, turn off wifi, turned on battery saver and put my phone idle overnight. I now get 6.6%/hr battery drain. Is this as far as my phone can go?

I've attached the log. Any advise?
[BetterBatteryStats] kryshnakishore:
Significant motion detection sensor is awake for 38min : how to disable this? I
[BetterBatteryStats] kryshnakishore:
Here's my logcat for

1.sensor ( can I know which app is waking motion sensor)

2.kernal (as long as screen is awake, power.Display is awake .Is this normal?)

3.alarm
[BetterBatteryStats] gorandroid:
Charged my phone to 100%;put it to the deep sleep and left it over night, at the morning i created a dump file, here it is, unrooted s4 here. if someone can take a look and inspect this, anything strange you can notice please i would be thankful to know? ty
[BetterBatteryStats] chamonix:
looking into the alarms it seems that your phones reception is not the best (I see data stall). Are you in an area with bad coverage?
[BetterBatteryStats] TNSMANI:
BBS has not been given root permissions nor is the app given permissions via ADB. So stats are incomplete.

Install it as a system app and then take a dump.

EDIT: just noticed that you are unrooted. Give BBS the required permissions via ADB. Search this thread for the commands.
[BetterBatteryStats] chamonix:
the sensor stats should give you more info about the app requesting the sensor. Please note that sensor time is not always equal to wakeup time as sensors have dedicated processors not requiring your cpu to wake-up
[BetterBatteryStats] gorandroid:
Aight, i'll do that asap.
[BetterBatteryStats] spartan268:
Does anyone know what the 4-0048 kernel wake lock is?
[BetterBatteryStats] Benholder90:
Does this look normal? What is the deep sleep part?
[BetterBatteryStats] swallowingled:
Yes, that's normal. Deep sleep is when you aren't using your phone and it's not doing anything in the background.
[BetterBatteryStats] Benholder90:
So why does it use so much battery if its not doing anything? I have another screenshot. What do you think about this one
[BetterBatteryStats] swallowingled:
It's not using battery. Since you've been unplugged that's the percentage of time that it's been in deep sleep, which is a good thing.
[BetterBatteryStats] kyzn:
It's not battery usage, it measures time. How long has the phone spent in a state. Your phone has been in Deep Sleep for 1min and 9s. Awake at 2min and 44s. You've been using your phone for 51m and 42s (Screen On).

What's using your battery is having absolutely no connection, WiFi or mobile since you have unplugged it. Your phone is constantly trying to establish connection and it can't.

Time on Battery - 55m 36s

No Data Connection - 55m 36s

No or Unknown Signal - 55m 36s

Deep Sleep does not kick in the moment the screen turns off.
[BetterBatteryStats] Benholder90:
Ah OK now I get it. Thank you. I had phone on airplane mode, (isn't airplane mode different to just not having a connection? Like in airplane mode the phone shouldn't be searching for signal right?)

but had WiFi on as I don't need mobile network a lot of the time. Is it actually better to have mobile network on? Or is there a way to stop the phone trying to find connection? Would there be a difference in battery consumption between mobile signal on/off?

Also how to see how much battery each thing has used?
[BetterBatteryStats] Benholder90:
What do these mean?

1.No data connection

2. No or unknown signal

I have a connection, so why is it saying I don't?
[BetterBatteryStats] Oswald Boelcke:
How about to read occasionally the OP, in this case post #3. Q&A covers your question, too.

I suggest to also read the XDA forum rules; link is available in the "must read" of my signature block.

EDIT: A bit of proof that you visited the OP at least is when you hit the thanks button in its bottom right corner. Some applies to the Q&A section.
[BetterBatteryStats] Oswald Boelcke:
[MENTION=5901790]Portgas D. Ace[/MENTION]: Since your last evaluation of my log I'd made some changes to my governor and amplify settings and have tried these for quite a few days.

Here's the idle log of last night; WiFi and mobile data were on as required by the OP.

Personally, I'm pretty happy with the drainage as I haven't greenified K-9 Mail, Signal and ChompSMS; however, some of their wakelocks and alarms are "amplified". Nearly everything related to Google Play Services is heavily "amplified".

Comments and recommendations are very welcome. I appreciate the support of the whole team.:good:
[BetterBatteryStats] Nightshadow931:
Hi,

Is this supposed to be like that?
[BetterBatteryStats] Portgas D. Ace:
IpReachabilityMonitor.wlan0 (Android-System): 3 m 9 s Count:54 0,6% -> see below comments, should be related to the dynamic IP of your device

"wlan_rx_wake" (): 6 m 13 s Cnt:(c/wc/ec)705/0/705 1,2% -> see this thread for a possible solution, assigning a static IP might reduce this wakelock

The rest looks good, hopefully the above mentioned recommendations will reduce the idle drain as nothing else looks suspicious.
[BetterBatteryStats] Benholder90:
I don't get these 2, I read the q and a in post 3 but don't get it

1.No data connection

2. No or unknown signal

They are showing a 100% even though I have good signal the whole time
[BetterBatteryStats] Portgas D. Ace:
Was your WiFi connection enabled during log period?
[BetterBatteryStats] Benholder90:
Yesterday yes today no. Yesterday I had airplane mode on but WiFi kept on. Today I had just mobile connection and WiFi off
[BetterBatteryStats] iamatechnoob:
Hi guys,

I am on the latest BBS beta, but even after granting it root in SU it says that BATTERY_STATS and DUMP are not granted, and requires me to install it as a system app. Is there any way around this without installing it as a system app? Appreciate the help, thanks guys..

I am on Lolipop 6.0, systemless rooted w/ custom rom.
[BetterBatteryStats] gorandroid:
Am i supposed to run this command in Terminal Emulator for Android? if yes im getting this error: "error: Device not found"
[BetterBatteryStats] Nightshadow931:
No, you're supposed to do that from CMD on Windows.
[BetterBatteryStats] gorandroid:
Tried, it still did nothing.
[BetterBatteryStats] code010101:
Hi chamonix,

on my device (HTC One X+, android 4.2.2, rooted) the RC3 says "No stats have been collected yet" for both Summary and Sensors, and the new widget does not show the pie graph,

any hint?

Ste
[BetterBatteryStats] Portgas D. Ace:
Did you clear cache&data of BBS RC3?
[BetterBatteryStats] Lownita:
I am currently trying to figure out what is suddenly causing my Oneplus 3 to constantly wake up while sleeping (see screenshot). This happens since about a week. Events that might have caused this were an update to the latest stable Oxygen OS 2.3.6 and the latest version of Google play services. I already tried deleting data of play services, but it didn't help. Most notable wakelocks are wlan_wow_wl and *net_scheduler*. Maybe it's just another bugged release of play services? :confused:
[BetterBatteryStats] pure.by:
Looks like it's your WiFi router. Try keeping WiFi off for a couple nights and compare. If it is WiFi, you need to adjust router settings.
[BetterBatteryStats] woodman:
I have the same problem with RC3 on my SGS3 LTE running kitkat 4.4.4.

I did it and it doesn't help.

Dumpfile, dmesg and logcat attached.
[BetterBatteryStats] Portgas D. Ace:
Hmm, I guess I also have to check my N7 running KitKat. Maybe this is related to KitKat at all.
[BetterBatteryStats] Oswald Boelcke:
No problem with RC3 on my SGS3 LTE (GT-I9305) with Resurrection Remix v5.7.4 Sammy (MM). Exact configuration in hidden part of signature.
[BetterBatteryStats] woodman:
Yeah I also noticed this worked fine with RR MM v5.7.4 a few days ago when I tested it. I guess it's related to KitKat as said by Portgas D. Ace.
[BetterBatteryStats] code010101:
Yes, I tried and rebooted, seems that also RC1 has the same issue,

Summary and Sensors don't work, while the other Stats are OK
[BetterBatteryStats] Benholder90:
I still dont understand this no data connection and no or unknown signal. Mobile signal has been on the whole time
[BetterBatteryStats] gorandroid:
Will someone assist me in giving root permission to bbs? I can't make it work, i followed the steps but no results...
[BetterBatteryStats] pure.by:
I never understood that either, but it's always been like this for me since I started using BBS on my previous smartphone.
[BetterBatteryStats] gaich:
That`s in F.A.Q.:

---------- Post added at 09:48 AM ---------- Previous post was at 09:39 AM ----------

Did you try this?:

Works for rooted phones too, if something goes wrong with the normal installation. You even can run these commands through terminal emulator, just input

su

first, then

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

and

-d shell pm grant com.asksven.betterbatterystats_xdaedition android.permission.DUMP
[BetterBatteryStats] Benholder90:
I know I read it before but I don't get it, could you explain it to me if you understand it
[BetterBatteryStats] gaich:
When Wifi is on, mobile data (celular internet) is turned off. During this period device shows "No data connection".
[BetterBatteryStats] Benholder90:
But I have by mobile data off anyway. And what is the the "no or unknown signal" part?