yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] duowing:
I'm running the official 7.0 update on my HTC 10. Installed Magisk thanks and the latest BBS RC3, even installed the companion app. I can get all stats except for alarm stats. I can get vague alarm stats by telling it to use the API in advanced settings, but it's not the most useful. I was wondering if any one has encountered this or has a solution? I haven't been able to find the right search term, or no one seems to have this issue.
[BetterBatteryStats] TNSMANI:
Use the adb solution which is referred in the post above yours. It may solve your issue.

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

Sorry that I missed that you are on N.

Why don't you try My Android Tools from the Play Store? However I am not 100% sure that it is compatible with N.
[BetterBatteryStats] ramiwi:
My nexus 5 battery drains very fast, Im using dark rom (CM14.1 CAF based rom). My brother`s phone (also nexus 5 with same rom) lasts much longer. Both phones logs are attached.

Thanks.
[BetterBatteryStats] Sneakdovi:
This is my situation,i have nougat cm14
[BetterBatteryStats] Sneakdovi:
I have cm14 nougat with boeffla kernel 6.0 alpha 5, this night with airplane mode my battery has gone from 18 to 12%... never happened
[BetterBatteryStats] TNSMANI:
One hour and 21 minutes idle is too low. We require 6+ hours idle dump so that a proper study can be done.

---------- Post added at 05:04 PM ---------- Previous post was at 04:59 PM ----------

First install RC3 version of BBS from its thread in XDA. In your version, no alarm details are available.

Next, did you install it as a system app? Because battery stats permission was not granted and so no useable info is available in the dump.

Further, whether the reading is from 'unplugged to current' or from custom to current, starting the stats collection from 16% of battery may not give a proper dump. Try to start it as high as possible, at least from 50%+.
[BetterBatteryStats] Sneakdovi:
Okay thank you very much for your answer as nobody has given me an answer expept you. Thank you again and I'm gonna try what u said and than I'll post here the results
[BetterBatteryStats] ragilcepot:
hay can you help me why can't i see any information when clicking on an alarm in alarm section ?

thanks so much
[BetterBatteryStats] bknez:
Hi all, I have 100% wakelock vfsspi_wake_lock. How to solve this. Phone is never in deep sleep. I have A5 2016
[BetterBatteryStats] TNSMANI:
I think that you are on an older version of BBS. Update it to RC3 from the OP of this thread and you should see the details.

---------- Post added at 06:21 PM ---------- Previous post was at 06:13 PM ----------

Don't know what it is, but you can look for some other kernel if this is a kernel wakelock as I suspect it to be.
[BetterBatteryStats] bknez:
I'm on stock kernel rooted
[BetterBatteryStats] gene.pavlovsky:
Did anybody find any solution to this problem, or any other wakelock detector app that works on ROMs with wakelock blocker? In my experience starting from Android 2.3, there are always intermittent idle awake issues. Because of that, I've always considered BetterBatteryStats (or another equivalent app, I haven't tried any) the single most important feature that I need to have.

On Resurrection Remix on my Moto G3 (Osprey), though, it is practically useless because of this issue - the partial wakelocks have a lot of spurious entries, can't ever find what was the cause of battery drain (which happens maybe once a week, on average).

I'm wondering if I could recompile the part of the ROM responsible for this issue (i.e. remove Wakelock Blocker and recompile)?
[BetterBatteryStats] elhennig:
How can I find out which process/app continously switches on the display?
[BetterBatteryStats] shaggyskunk:
If you're using a Rom that has Privacy Guard - You can look to see which apps are waking and keeping the device awake and deny them permission to do so - You can also Wakelock Detector to see how often which apps are running - Same as with BBS and Processes running.

Sent From My SM-N910W8 ??
[BetterBatteryStats] mkr2511:
these days i did clean flash so i dint have any problem. today i did a dirty flash and the same problem appeared. as u said i tried adb commands too and still the problem exists. any ideas?

im on RC3 version from op.

using oneplus 3 RR N

EDIT: found this script from the post below but this is also not working

http://xdaforums.com/showpost.php?p=57153962&postcount=26830
[BetterBatteryStats] weeka89:
I'm facing the same problem with the same device and rom, after dirty flashing today's and yesterday's build BBS stopped showing me my precious stats, tried the adb commands still no love, tried reflashing the rom only, still no love. if any one has expertise with this i'd be grateful, when i open raw stats it says batteryinfo service could not be contacted
[BetterBatteryStats] mkr2511:
[MENTION=1330150]chamonix[/MENTION] can you look into this issue please? i searched all possible thread and asked everyone but no one knows how to fix this. clean flashing everytime is real pain. i love this app and i want to use it after dirty flash too
[BetterBatteryStats] weeka89:
I can find these

1. BatteryStatsService: Timeout reading modem stats (thats first line about battery)

2. BatteryNotifier: batterystats service unavailable!

3. BatteryStatsService: power: Missing API

4. BatteryStatsService: no controller energy info supplied
[BetterBatteryStats] ThunderWolf78:
I thought I'd go wakelock hunting on my htc 10, but even though it's rooted and bbs is installed as system app it won't collect any kernel wakelocks, it just says "no stats have been collected yet" regardless of what I do, now what?
[BetterBatteryStats] weeka89:
I fixed my problem with a full charge and then voila everything was there
[BetterBatteryStats] betovanbuuren:
Is this app working on Nougat beta on the SGS7E? i installed it but when open a message indicating that some dump failed and that i need a recovery version of the app... what to do?
[BetterBatteryStats] phantomblu:
Did I do it right granting permission? http://i.imgur.com/Oo5MusN.jpg
[BetterBatteryStats] ThunderWolf78:
So I try again, newest release from this thread, rooted HTC 10, Leedroid 6.01 build, cleanslate kernel, ivcasks pm improvement tweaks, bbs installed as system app, have even granted permissions manually, no go at kernel wakelocks, just displays "no stats have been collected yet" ? something is burning battery with screen off
[BetterBatteryStats] mkr2511:
so just charging to 100% will solve the issue?
[BetterBatteryStats] weeka89:
Yes I can confirm that, happened with me again today after flashing latest eliminater Bjrr, full charge, unplug screen off for like 5 seconds and all the stats will come running :D
[BetterBatteryStats] chamonix:
2.2 final is up (no functional changes from RC3). GPlay rollout is starting in the beta channel later today
[BetterBatteryStats] FernBch:
You'll need to put in a bug report/request with the kernel developer to enable wakelock reporting.
[BetterBatteryStats] GeNiO790:
Do you solve this my problem??

http://xdaforums.com/showpost.php?p=69414906&postcount=31320

Thanks!
[BetterBatteryStats] githyanki:
Did you provide the file he requested?
[BetterBatteryStats] DB126:
Apparently so: http://xdaforums.com/showthread.php?t=1179809&p=69424575

That said, no assurances of a 'fix' if LG is doing something non-standard. BBS can't cater to individual devices.
[BetterBatteryStats] gvp9000:
Same message all the time "No stats have been collected yet"

the logcat file and a screenshot attached.

With 2.2.0.0 RC1 there is no such problem.

After version 2.2.0.0 RC1 all have this problem.

Any solution ?

Note 3 android 4.3 noroot.
[BetterBatteryStats] mkr2511:
did you try the solution from this post?

http://xdaforums.com/showpost.php?p=70074759&postcount=31476
[BetterBatteryStats] gvp9000:
Yes, same message all the time

Version 2.2.0.0.RC1 works fine!
[BetterBatteryStats] yomiguy:
Wow! I didn't know about the chance to use bbs without being root!! I must try it on my un root note 4!thanks for keep improving these wonderful tools!

I recently discovered how to use adb for aggressive doze permissions in greenify. So I guess it won't be difficult to use it with bbs.

My question is, do I install the last apk in first post?

And once installed, may I use it like I use it with my rooted tab 2 after using adb? Or are there limits for not being root?

And last question, if I uninstalled bbs the changes made with adb will be deleted to, won't they?

I would really appreciate your useful answers for these questions mates ;)

Enviado desde mi Galaxy Tab 2 mediante Tapatalk
[BetterBatteryStats] yomiguy:
I finally decided to give an opportunity to bbs on my note 4 non root and I think everything is working fine! It shows the same info my rooted tab 2 shows! So congratulations to make it working for non root devices too :)

I've happily seen that after installing yesterday greenify with aggressive doze my note 4 likes deep sleeping quite a lot! And that's really good! At least last night.

I'll take a look at it with calm after the next charge and I'll let you know to help me to deal with my consumptions :)

Being non rooted may I take logs or something? Or just show you screenshots of bbs stats? I'm a bit confused about the process com.android.bluetooth being in alarms section with 4 wakes per hour last night although I have the Bluetooth off. Is that normal?

As I've said I'll try to get the info in next charge tomorrow morning and I'll try to show you in case you can help me to understand it better ;)

Thanks!

Enviado desde mi Galaxy Tab 2 mediante Tapatalk
[BetterBatteryStats] nicesoni_ash:
Never get any kernel wakelocks, always no stats have been collected yet.

I have oneplus 2 on 7.1.1. All permissions are granted and the app is installed as user with no system add-on installed.

Logs.

http://cloud.tapatalk.com/s/585769f279e5d/BetterBatteryStats-2016-12-19_103206971.txt

http://cloud.tapatalk.com/s/585769fa371b2/dmesg-2016-12-19_103207291.txt

http://cloud.tapatalk.com/s/58576a1631d65/logcat-2016-12-19_103207057.txt

Sent from my "1+2" powered by Unofficial RR 7.x.x

Compiled by myself
[BetterBatteryStats] Plonkplonk:
On my device (Fire Phone with CM11) V2.2 does show everything but "summary" and "sensors", which show "No stats collected yet" only. Even the graphs work fine.

I already tried fully charging, reboot, remove-reboot-install-reboot-charge-wait and nothing changed. RC1 worked fine instead.

Thomas

[edit: I used RC

1

recently]
[BetterBatteryStats] JumboMan:
[MENTION=240712]tweakradje[/MENTION], Don't paste full log directly into post rather just upload log in txt file here. that would be more than sufficient.

By the way you have done second thing but take care about first thing.
[BetterBatteryStats] G1Master:
I hate to be this person and have to bother Chamonix with this but I need some insight here.

I have the LG V20 and I am using a custom rom right now but I can assure everyone the same Battery Stats showed on the Stock Rom and Now on this Custom Rom.

Wi-Fi shows to be "Running" but its not the same as "Wi-Fi On".

No idea how or why. Nothing is enabled. Wi-Fi calling is also off.

Thank you in advance!
[BetterBatteryStats] DB126:
WiFi radio power state and enabled/disabled status are different things. WiFi functionally can be disabled by the ROM while the radio remains powered up. The ability to power cycle the WiFi radio is device and kernel dependent.
[BetterBatteryStats] G1Master:
Thank you Davey. So if I am understanding you correctly this is by design via the kernel? Which is the stock LG kernel. So nothing to worry about?
[BetterBatteryStats] chamonix:
Starting with BBS 2.2 the system app is not required anymore. If you have root just run BBS and it will take care of getting the required permissions by other means, if your device is unrooted see here: http://xdaforums.com/showpost.php?p=67819528&postcount=4
[BetterBatteryStats] chamonix:
Assuming you are running the xda-edition yes. Does the app behave as expected?
[BetterBatteryStats] chamonix:
The only restriction of the non-root-version is that the alarm details are not as exhaustive as for the root-version. I know how to fix that and I will. Uninstalling the package will indeed cause the permissions to be deleted as well so you will need to re-grant them when installing the new version. The permissions granted with ADB survive reboots as well as upgrades though.
[BetterBatteryStats] chamonix:
Apologies for missing the answer, my bad. I will look into it and continue providing special treatment for any device with a special kernel wakelock formating as good as I can. The implementation is trivial but unfortunately I can't test: https://github.com/asksven/AndroidCommon/tree/master/src/com/asksven/android/common/kernelutils
[BetterBatteryStats] DB126:
I don't have familiarity with your device so can't confirm it is by design. Just pointing out the two are not directly linked (hardware and software states). I have owned devices where the OS/ROM could power down the WiFi radio, others not. The best devices handle WiFi power levels transparently with little or no intervention required by user or operating environment. Similar to the mobile radio.
[BetterBatteryStats] yomiguy:
Thanks a lot! I noticed what you say about alarm details because I also have bbs on my rooted tab 2 :)

I'll wait for that new version then because it's useful to know as much as possible about our alarms ;)

Thanks for your answer!

- Enviado desde mi Pepinote4 -
[BetterBatteryStats] infatality:
Same here. Not working on oneplus2 and oneplus one.
[BetterBatteryStats] Frenzi2012:
In location option search you have disabled wifi?

I could become that, I'm not sure

---------- Post added at 05:13 PM ---------- Previous post was at 05:11 PM ----------

It happens to you that in android 7 it takes quite a while to open bbs? Compared to android 5/6.

It takes 15 seconds in the message calculating
[BetterBatteryStats] tweakradje:
vbus_wake_lock problem solved!

The problem is Android 4.1 and Google Play Services GCM (Google Cloud Messaging).

Android 4.1 does not have support for that in Google Services Framework. It is missing services. Instead Android 4.1 is still using gtalk push notifications.

The GcmService is started on Android 4.1 and initially has the RECONNECT mode set to OFF.

(am start com.google.android.gms/.gcm.GcmDiagnostics)

It will KEEP trying to connect every 5 seconds. It will drain your battery. vbus_wake_lock is of the USB bus where the Wifi module happens to sit on. Somehow this is related to the Gcm connect retries.

Solution: On Android 4.1 disable the GcmService of Google Play Services.

But you need Google Talk or Hangouts to be installed. Else no push notifications!

This is not a problem from Android 4.2 and up.
[BetterBatteryStats] chamonix:
Can't be the same as we were talking about LG. Please provide a copy of /sys/kernel/debug/wakeup_sources so that I can look into it.
[BetterBatteryStats] Icetea:
just a stupid question:

is there a functionality difference between the xda version of BBS and the one from Playstore?
[BetterBatteryStats] kyzn:
They're the same.
[BetterBatteryStats] FireBlast:
Could you help me solve problem with deep sleep of the xiaomi mi5s? It doesn't go into deep sleep at all due to qfp-service partial wakelock. Maybe it is related with fingerprint scaner. The problem persists on all roms - official china and unofficial. The only way it sleeps if I turn off fingerprint at lock screen. But scaner works pretty well. Here is a log. Please help.
[BetterBatteryStats] infatality:
The said folder is empty.
[BetterBatteryStats] Icetea:
are you sure? I think, they have different sizes.
[BetterBatteryStats] chamonix:
If your kernel does not respect Linux standards for kernel wakelocks that's the problem right there. You could also check the 'old' location: /proc/wakelocks
[BetterBatteryStats] infatality:
No such folders. Anyway this happens on both oneplus one and oneplus2 on official cm14.1 nightly. No issues in on n5x.
[BetterBatteryStats] dimm0k:
using an LGV20 on T-Mobile and the latest 2.2 version of BBS, but I'm seeing "No stats have been collected yet" in a few categories, specifically summary and partial wakelocks. I've tried clearing data and BBS has been granted access to battery and dump... is this another case of LG as mentioned previously or is this something new?
[BetterBatteryStats] lepa71:
Having issues with latest from play store on TW 4.3. Summary screen does not show any data.

Does anybody have same issue?

Thanks
[BetterBatteryStats] VivaErBetis:
Quick question...

Does anyone know why in my nexus 4/nexus 10 the bars are blue but in my nexus 5x are red? I didn't find any option to change these bars color...

Nexus 4:

Nexus 5x:

Thanks and best regards.
[BetterBatteryStats] belloni:
Hi all, so I left my phone off charger all night it lost 0.4 over 10 hours but the battery graph wasn't flat but BBS tells me that it was in deep sleep for 98% of the time? It said doze interactive time of 3 minutes, does this seem right?!
[BetterBatteryStats] Perseus:
Not Really Sure. I have always seen the Blue Bars. Could be theming. I know in the prior versions of the app, it permitted you to change the colors.

Yes that's correct. Doze does appear as awake, because technically phone is not in deep sleep. Its dozing.
[BetterBatteryStats] VivaErBetis:
Well, in this case I'm using the same BBS version in all my devices (2.2.0.0 Play Store). The only theming option I found offers only to choose between light and dark theme, no changes in bar color.

I'm wondering if that red color means something bad or incorrect :?
[BetterBatteryStats] Sam Nakamura:
Can i push this issue again, could not find any answer yet - not sure if someone even has an idea...

TIA
[BetterBatteryStats] chamonix:
You may have noticed that I have started porting BBS from the "old" eclipse workflow to the "new" android-studio. In the process I have invested in continuous integration and automatic testing and this lead me to identify two bugs that cause certain stats to show "no stats have been collected yet" errors on pre-lolipop devices. I will ship 2.2.1 with the fixes later tonight.
[BetterBatteryStats] dimm0k:
using an LGV20 with Nougat on T-Mobile and the latest 2.2 version of BBS, but I'm seeing "No stats have been collected yet" in a few categories, specifically summary and partial wakelocks. Not sure if it's related? I've tried clearing data and BBS has been granted access to battery and dump, but no change. Something odd however is that a few reboots of my device ago it did populate those categories and I was able to pull a dump for reading, however rebooting my device after brings it back to the "No stats have been collected yet" again... rebooted a few times and still empty... of course waiting about an hour in between for readings to populate
[BetterBatteryStats] infatality:
The "no stats have been collected yet" happens on Android 7.1.1, nougat too.
[BetterBatteryStats] Callliope:
Any idee i can see which program is using my proximity sensor for so long?

Are the rest of them in normal state? That google play service alarm for exemple, its ok to be on first place as consumption?
[BetterBatteryStats] githyanki:
Probably the setting to avoid accidental waking the phone. On my rom it is under display settings.
[BetterBatteryStats] dimm0k:
anyone know why my device is always awake and to lower battery usage?? help!
[BetterBatteryStats] Callliope:
What can i do about that sent idle alarm?
[BetterBatteryStats] Perseus:
This one is bit hard to track. The only clue I see is

system (Android System): Uid: 1000 Sys: 20 h 40 m 42 s Us: 44 m 36 s Starts: 0

Doesn't mean much.

Just for experiment's sake, can you please turn off Location Service ? Also get into advanced Wireless settings and set "Keep WiFi On During Sleep" to "Only when charging". This setting might be slightly differently named depending on your phone. Also search this thread for [MENTION=4355376]Karpfenhai[/MENTION]'s Modifications to the Google Shared Framework (Now in Google Play Service) for GCM related receivers. Make appropriate changes. Once done, please reboot and then leave alone overnight for the log.

Pretty Much Nothing. Its a Heartbeat Ack. Side effects of Goog Play Service. I'd ignore it.
[BetterBatteryStats] chamonix:
Well, it doesn't happen on my devices and no-one has sent me any logcat to work with so there is nothing I can do about that error situation right now
[BetterBatteryStats] nicesoni_ash:
Few people including me reported that and provided logs too.

Sent from my "1+2" powered by Unofficial RR 7.x.x

Compiled by myself
[BetterBatteryStats] chamonix:
2.2.1 is up. Please test if you are on pre-lolipop.
[BetterBatteryStats] lepa71:
Is there a beta on the play store? Everytime I go between an xda version and play store one I have to reset the app.
[BetterBatteryStats] chamonix:
No but it will get uploaded as soon as I have a positive feedback from some1 who can test and confirm on pre-lolipop
[BetterBatteryStats] lepa71:
Summary screen shows stats now, but Sensors screen does not still.

Thanks
[BetterBatteryStats] Plonkplonk:
Same here on my Fire Phone with CM11.
[BetterBatteryStats] vasileios:
Updated to 2.2.1.0 my Cubot S128 with Kitkat 4.4 and shows summury just fine now, but I have it charging now, haven't checked any other option

About half a day and 40% battery later, I still have summary statistics, but the problem persists in kernel wakelocks and sensors, where no stats have been collected yet.

I installed earlier the latest 2.2.2.0 version, I have sensors stats, but no stats collected for kernel wakelocks yet. I will be waiting for 2.2.3.0
[BetterBatteryStats] dimm0k:
done as you've asked with turning off Wi-Fi and location... here's my stats now, though not as long as the previous... let me know if anything stands out or if I should do a longer log
[BetterBatteryStats] Perseus:
Might be just me or there might be XDA issues. Can't open the attachment. Can you post the log on pastbin or something ?

EDIT - Its not me. Site issues.
[BetterBatteryStats] dimm0k:
thanks for the quick response... I'm going to pull a new log for you tonight since I noticed in the last log when I tried to repost that it said Wi-Fi was on... thought I did have it set off, but I'll make sure it's off tonight.
[BetterBatteryStats] kartik93:
Best app
[BetterBatteryStats] dimm0k:
[MENTION=1330150]chamonix[/MENTION] this Nougat issue of collecting stats seems to come and go... I was able to get some stats the other day, but now none. what's the best way to get a catlog to you at this point? just start catlog now and open BBS up for an hour or so or should I reboot first?
[BetterBatteryStats] chamonix:
Just reproduce the error and use the "share" function in BBS to grab a logcat + dumpfile
[BetterBatteryStats] chamonix:
Unfortunately the link is giving me a 404. Could you please repost the file as well as a dumpfile so that I have the values of Build.BRAND and Build.DEVICE?
[BetterBatteryStats] dimm0k:
easy enough, here they are...

EDIT: looks like xda is having issues with attachments. here's the dumpfile http://pastebin.com/s7KeRt2p and here's the logcat http://pastebin.com/pFtDW8kG
[BetterBatteryStats] chamonix:
Unfortunately the logcat does not show enough info for me to analyse further
[BetterBatteryStats] chamonix:
Please understand that it is hard and time-consuming for me to re-assemble data over multiple posts. It would be very nice if you could point me at the posts describing the problem and to the corresponding logcat. Please also see post #1 on how to report bugs
[BetterBatteryStats] dimm0k:
is there anything else I can do to aid in this matter?
[BetterBatteryStats] chamonix:
Yes, take another logcat and check if the info is more complete, or alternatively take one with catlog
[BetterBatteryStats] chamonix:
Happy new year to everyone! Thank you for your continuous support and efforts to make BBS better. You can expect a few goodies in 2017, including an increase in delivery frequency as I move along building a new continuous delivery and feedback/metrics toolchain