yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] GeNiO790:
Good morning!! I have a problem. I installed the CM 1.12 on LG G2 D802 and would like to install BBS 2.1.0.0, but not working. So as suggested here:

http://xdaforums.com/showpost.php?p=15869904&postcount=3

I would like to install by Recovery. But I have a recovery TWRP, I can install the same or should I get before a recovery CWM?

Thank you all!
[BetterBatteryStats] tiner:
Hi there.

Here you have a PIC from my alarms.

The main point is that I do not have any calendar app so that seems a bit weird for me.

On the other hand we have that painful google.Gms alarm...

I'm running Android 4.4.2 in a s5.

Thank you.
[BetterBatteryStats] mdamaged:
Seems to be related to the touchscreen.

http://www.silead.com/
[BetterBatteryStats] dave il barbaro:
I attached my log file.

Could you analize it???

my battery drives me crazy!
[BetterBatteryStats] YassGo:
Can someone help please. Since MM I don't what wakelock and system stuff is eating my battery... https://drive.google.com/file/d/0B8Lbg9KT1oeuTGZ3QWRHUHhnenc/view?usp=docslist_api
[BetterBatteryStats] Perseus:
Your Device is not Rooted. So it would be limited extent that we can help. From what I can see, it was related to some app you were using for half hour. Without rooted log, its difficult to say further.

The 3 % you have lost is attributed to Google Now and Chrome downloading 28MB
[BetterBatteryStats] YassGo:
Anything related to doze ? Wakelocks and alarms are ok ?

I use Amplify with v7's guide and greenify :)
[BetterBatteryStats] Perseus:
Looks about right so far. Provide an overnight idle log for specific analysis.
[BetterBatteryStats] bjevers:
I have an LG V10 and am having the same wakelock preventing deep sleep. Did you ever figure out what was causing it on your G4?
[BetterBatteryStats] biazoto:
Hi, after update my phone to MM, alarms in BBS aren't detailed... Is normal or there is anyway to fix it?

Enviado de meu GT-I9505 usando Tapatalk
[BetterBatteryStats] Primokorn:
Already discussed here: http://xdaforums.com/showthread.php?p=64261196&postcount=29861
[BetterBatteryStats] black_bottom:
no, unfortunately. Actual I disable bluetooth and only enable it when I really need it, p.e. to make a telefon call.

The plan is to migrate to MM next time and after this is sone I hope this issue is over.

There is really nothing reported in the internet about this wakelock. Weird.

And whats about you - what did you try? :)
[BetterBatteryStats] bjevers:
Well the only thing that seems to work is to turn off Bluetooth. I'd like to try a different kernel, but there aren't any but stock for the V10. Maybe the next update from LG will fix it hopefully because I use Bluetooth all the time.
[BetterBatteryStats] GeNiO790:
Hello I have a problem with BBS in reading Kernel Wakelock, I get on the CyanogenMod 12.1 on LG G2.

I installed it this way:

* - Version 2.1.0.0 installed as system app

* - Gave permission to root

* - Restart the phone

* - Reinstalled BBS 2.1.0.0

* - Granted root permissions

The app starts up, but when I enter the first time to see the kernel wakelock tells me what are the wakelock active. If within a second time, the wakelock present a few minutes before are gone, they disappear.

BECAUSE'?!?! :(
[BetterBatteryStats] TNSMANI:
Did you try it after plugging the charger and disconnecting? The initial "from" reference created might be giving false readings.
[BetterBatteryStats] Mr. Schnabel:
Hi there!

Having a bootloop problem on my LG G4!

Did a clean instal of Genisys Rom 3.4 ( http://xdaforums.com/g4/development/h815-genisys-rom-1-0-classic-v10g-t3192649 ) yesterday, set up everything i needed ( Apps, Xposed, etc. ) and mobile worked fine. Today i installed BBS V2.1 as i did bevore the new, clean flash and after making BBS a system app and rebooting ..... Bootloop! :eek:

Wiped cache and dalvik in recovery -> Bootloop

Installed flashable zip installer for BBS -> Bootloop

Installed flashable zip un-installer for BBS -> Bootloop

Dirty flashed the Rom again -> Bootloop

After 3 or 4 bootloops i get the optimising apps screen - it optimises all 250 or so apps and then again .... Bootloop!!!!!

Anyone any idea what i can do? I don´t get it after it worked fine on my mobile with the exact same setup bevore the new clean install yesterday :(

Hope anyone can help!

Cheers
[BetterBatteryStats] TigerSoul925:
Hi folks! I just installed BBS on my new Nexus 6p on marsmallow. I'm somewhat confused as it seems BBS isn't reporting more than a fraction of the awake time with screen off. Is this really correct? See screenshots.
[BetterBatteryStats] GeNiO790:
Ti allego delle immagini per farti capire meglio:

1. https://www.dropbox.com/s/6gkfx9bj8ahvnj4/Screenshot_2015-12-23-13-51-23.png?dl=0

questa è stata fatta mentre ero in automobile e stavo ascoltando la musica con telefono collegato all'automobile con bluetooth (si spiega il bluesleep credo)

2. https://www.dropbox.com/s/ue03cbok3vfxhas/Screenshot_2015-12-23-14-05-54.png?dl=0

questa è stata fatta qualche minuto dopo la disconnessione del bluetooth con l'automobile e sono sparite alcune voci.

Come mai succede questo??

---------- Post added at 03:04 PM ---------- Previous post was at 03:04 PM ----------

I attach images to make you understand better:

* 1. https://www.dropbox.com/s/6gkfx9bj8ahvnj4/Screenshot_2015-12-23-13-51-23.png?dl=0

This was done while I was in the car and I was listening to music with the phone connected to the car with Bluetooth (you explain the bluesleep think)

* 2. https://www.dropbox.com/s/ue03cbok3vfxhas/Screenshot_2015-12-23-14-05-54.png?dl=0

This was made a few minutes after disconnecting the bluetooth with the car and disappeared some items.

Why does this happen ??
[BetterBatteryStats] TNSMANI:
There is a discrepancy in the battery percentage between the two screenshots as if the phone was connected to the charger for a short period. It might have reset the "from" reference and hence the readings changed.

Forget about it happening in the car. Does it happen in normal use?
[BetterBatteryStats] GeNiO790:
I gave the example car because I know that appears wakelock bluesleep. But this problem occurs in any situation, it seems to happen at every restart of the screen!
[BetterBatteryStats] cLogic:
are you running gas buddy?

it is a known cause of bt related drains
[BetterBatteryStats] patt2k:
Hey guys can someone tell me why would I see no or unkown signal 100% where signal is actually good ? only no signal I get is when I am on the subway but since I unplugged it's been not long less then 30 minutes and already lost battery due to wakelocks.. I limited audomix with amplify and it stopped.

But still want to understand these stats just after unplugging from charger.

No signal for about 26 minutes? on LTE with decent signal at all times...
[BetterBatteryStats] bjevers:
No, I don't use Gas Buddy.
[BetterBatteryStats] azsl1326:
.

Can you Tell me where I can find v7's guide?

Thanks, in advance.
[BetterBatteryStats] triathlete66:
http://xdaforums.com/showthread.php?p=60425051
[BetterBatteryStats] black_bottom:
Did you try a factory reset ?
[BetterBatteryStats] TNSMANI:
See http://xdaforums.com/showpost.php?p=63866468&postcount=29750 by the Dev.
[BetterBatteryStats] patt2k:
I gotchu :D now that makes sence. What about this? this wakelock is driving me crazy.. PS. I also disabled few google play permissions in apops

[MENTION=1330150]chamonix[/MENTION]
[BetterBatteryStats] spanjeli:
Hello to everyone, I have a big problem with my LETV X500 from first day when I got it .

My battery drain is huge when I don't use phone ,from what I see it never goes to deep sleep.

Can someone tell me what is this xhci wakelock and how to removed it ?

I try everything, 3 different roms, factory reset, 3 different gapps and this xhci is always present.

I also do everything from [MENTION=5867207]v7[/MENTION] thread with greenefy and amplify but nothing.

When I use phone with display on, I don't have this battery drain and my SOT is almost 5,5 hours! Please help me !
[BetterBatteryStats] chamonix:
Merry X-Mas to everyone!

2.2B1 will be coming your way during the week-end :)
[BetterBatteryStats] :
Merry Christmas to you too!

Thx for your great work and apps
[BetterBatteryStats] YongJeah:
I wonder what "alarm" is in my Z3C stock 5.1? sometime can rise up to hours in one day. It really drain my battery :crying:
[BetterBatteryStats] gaich:
[MENTION=1330150]chamonix[/MENTION]

Ok, Russian translations update pull requests sent.
[BetterBatteryStats] azsl1326:
What would cause the app not to install as a system app? I keep getting an error - failed try zip. Running 6.0.1 stock and rooted.

Thanks, in advance.
[BetterBatteryStats] FernBch:
Copy (not move) the app to /syatem/priv-app and reboot.
[BetterBatteryStats] chamonix:
Does the apk get copied to /system/priv-app?

One reason for it to fail could be that the system partition has not enough space...
[BetterBatteryStats] chamonix:
I am stuck with some changes that google made to the alarms in marshmallow but there is light at the end of the tunel: I found the change and it seems that we will get the alarms with *api* access to be as good as the dmupsys parsed info. This is good news for non-root users who have installed the system app from recovery!
[BetterBatteryStats] FernBch:
I get the same message (plenty of space in /system). I'm using JDCTeam's AOSP 6.0. When I tried to install as system app (2.1.0.0 RC6) installs to /system not /system/priv-app.
[BetterBatteryStats] shaggyskunk:
Just copy the apk in the OP to System - PRIV-APP - Fix Permissions - Reboot and Presto - BBS is now a System App ?

Sent From My SM-N910W8 Running CMRemix 6.01
[BetterBatteryStats] GeNiO790:
Anyone have a solution for my problem?

Thank you!
[BetterBatteryStats] IronTechmonkey:
Would that light at the end of the tunnel also shine on partial wakelock statistics not being available under CM13 native SU? I've never been able to find a workaround for that, although the newer versions of SuperSU handle it OK.
[BetterBatteryStats] chamonix:
No that fix is only about Alarms. Kernel wakelocks are accessed from the file system by default but there is an advanced pref to access then from API. If you switch to API and don't see any kernel wakelocks there this means that CM is not compatible with the android spec. If API works but native not then I would like you to turn on debugging, access the raw kernel wakelocks with the CM su method and post a logcat. Also I'd be interested in seing what perms are granted to /sys/kernel/debug/wakeup_sources (/sys, /sys/kernel and /sys/kernel/debug). There is no reason why the CM su should not work as superSU does but once again it confirms that CM goes away from the android standard.
[BetterBatteryStats] IronTechmonkey:
I'll incorporate what you've requested into my testing (thank you for the coaching) but just to be clear, I was referring to partial wakelocks.
[BetterBatteryStats] chamonix:
Ok then forget everything I said :)

Partial wakelocks are obtained from the API in every case. A logcat with advanced debug logging may bring some light
[BetterBatteryStats] dandrumheller:
I think I'm following you around the forums today [MENTION=5119654]IronTechmonkey[/MENTION].

Not sure if this is of value to you or not, but I am seeing partial wakelock stats on CM13 with native SU.

This is squid2's 12/25 build for surnia Moto E 2015 xt1526. Newest BBS build from OP installed via the in app prompt as system app.
[BetterBatteryStats] IronTechmonkey:
Well I'm not going to forget it completely because it informs beyond what I already know :). Will log as suggested under native CM SU in next CM13 flash.

---------- Post added at 04:07 PM ---------- Previous post was at 03:32 PM ----------

That is both informative and encouraging. Thanks. I've been testing in squid2's offical Moto E 3G Otus builds and running his latest CM12.1 as a daily. Since switching to CM12 (which coincided with the switch to this device) I've never been able to see partial wakelock statistics ("not available") in CM12.1 or CM13 until I install SuperSU. Maybe it is device specific or I'm just hitting an obscure settings combination (but within bounds of clean testing). I'll keep[ at it and get some logs from CM and BBS. Thanks again.
[BetterBatteryStats] AlexCristiano:
Hello, thanks for the app. I have used it to find some apps that were draining my battery and uninstalled them. Used greenify with 5 others that I use but don't need to be running all the time.

Anyway, even after that, my Sony Xperia Z1 with Android 5.1.1 is consuming about 3.0%/hour with screen off.

Any ideas that could help my battery life?

The link points to the BBS log on pastebin dot com. Restarted phone, left to charge and when it got to 100% I unplugged and left it alone for 3+ hours. After that, just went to BBS and saved the log.

pastebin . com / VmrNYHjV

Thanks a lot

Alex Cristiano
[BetterBatteryStats] mdamaged:
Looks like a problem with bam_dmux_wakelock, and the system (or an app) calling com.android.internal.telephony.data-reconnect.default, can't get or maintain a connection and just keeps hammering at it. Sometimes this is known to happen when wifi and cell are enabled, you can see if this is the case by disabling one or the other and recharging and redoing another dump. Might be your signal sucks.

If you think it's an app, backup, factory reset, and keep adding apps one at a time, checking bbs, until you find the culprit.
[BetterBatteryStats] AlexCristiano:
Thanks for the input.

You may be right, the bedside table has poor reception indeed, and was the place the phone was left for the duration of the test.

Will try another test with the phone in a place with better reception and another one with WiFi turned off to see if it changes anything.

Thanks,

Alex Cristiano
[BetterBatteryStats] AlexCristiano:
Made another 3+ hour run, and with WiFi off and phone in a place with better reception, usage drop from 3% to 1.3%/h. Way better, for sure. Now I just need to be sure if the problem is the bad reception place or the WiFi turned on.

Anyway, a new dump:

pastebin dot com / vSEsygXB

Noticed 3g watchdog being one of the processes that triggered most wakelocks. But I don't know if it is a reasonable amount, or if it is too much and if I should look for an alternative.

Other question: noticed some apps (Iheartradio, skype) that I don't want to be running in background. Tried to greenify them, but I think it didn't work as well as I've thought. Was the best way to forbid an app to run unless it is explicitly called by me and it's running in the foreground?
[BetterBatteryStats] saranyan:
Hey Guys,

I have a One Plus 2 running CM12.1, My phone refuses to enter deep sleep.

I have attached the screenshots from BBS,

com.android.providers.calendar is keeping my phone awake. I don't know what it is, I turned off my calendar sync and removed my calendar widget from the home screen. It didn't work,

I would be grateful if someone knows how to resolve this wake lock...
[BetterBatteryStats] TNSMANI:
No, that is not the offender. It is the Next Alarm Tracker which is killing your battery.

It has to do with CM. See this http://review.cyanogenmod.org/#/c/94235/

Supposedly fixed.
[BetterBatteryStats] suku_patel_22:
What are the dumpsys commands that you run as root?

I also couldn't find /sys/kernel/debug/wakeup_sources. I am using ElementalX on N6.
[BetterBatteryStats] chamonix:
'dumpsys alarm' when not using the API.

It can be either /sys/kernel/debug/wakeup_sources or /proc/wakelocks. If both are non existent then something is very wrong with the kernel or I have missed yet another change on how the linux kernel wakelocks are handled.
[BetterBatteryStats] suku_patel_22:
dumpsys alarm works over adb. I tried granting BBS permission for DUMP and BATTERY_STATS using below command, but still doesn't work. Could you please explore this possibility.

adb shell pm grant "com.asksven.betterbatterystats" android.permission.DUMP

adb shell pm grant "com.asksven.betterbatterystats" android.permission.BATTERY_STATS

I'll check with flar regarding /sys/kernel /debug/wakeup_sources.
[BetterBatteryStats] chamonix:
Already implemented and working on my phone. If stable this will avoid to having to install system app for users with root
[BetterBatteryStats] suku_patel_22:
Works without root, with system app?

Edit : Happy New Year...
[BetterBatteryStats] IronTechmonkey:
Here are some details about the issue.

- Moto E 2nd Gen XT1511 (US/3G/Single SIM), CM13 Dec 31 2015 with Open Gapps Pico Dec 25 2015 under native CM root access enabled for Apps and ADB.

- Partial Wakelocks report "No stats have been collected yet".

- Attached log BBS_PWL_PowerUp.txt taken via ADB on PC, spanning boot to opening BBS and viewing Partial Wakelocks (which, with USB connected reports device plugged in - no stats)

- Attached log BBS_PWL_NoPower.txt taken with Catlog on device when not connected to power, spanning merely the opening of BBS to show the aforementioned message "No stats have been collected yet".

If it were not for the fact that I've seen this issue in CM12 on same device I would attribute this to the early stage of development of CM13. SuperSU does allow proper collection of BBS partial wake-lock statistics. Thanks for having a look at this.

[EDIT] Doubling back to add that after installing SuperSU beta 2.65 partial wakelock stats are visible.

[EDIT2]... but there are other issues between SuperSU that might make that a less viable workaround.

[EDIT3] The log at boot may not span enough time to be useful since it was copied from PC command prompt with limited lines. If necessary I can retest and capture full log in another test.
[BetterBatteryStats] I_am_Blackford:
Mm 0 km 0kk ml 0 l'm 0 p0pppppppppppppppppppppppppppppppp0000009009900000
[BetterBatteryStats] mdamaged:
Google really needs to work on their translation tech.
[BetterBatteryStats] chamonix:
Happy new year to everyone!

I hope you enjoy my new year's gift: 2.2B1 is up with:

- some marshmallow fixes

- an experimental feature to avoid to having to install the system app: please make sure to uninstall the system app, check the absence of any BBS-APK in /system/priv-app and reboot if you want to test this feature

- improvement on using BBS on unrooted phones where the system app has been installed using recovery
[BetterBatteryStats] suku_patel_22:
Is there a new system app or the same old one? I have the play store version of the system app installed. Do I need a XDA version of the system app?
[BetterBatteryStats] chamonix:
No, there is no change to the system app but if you want to test 2.2B1 you will need to install the xda system app as gplay and xda apps have different package names to be able to run them side-by-side.
[BetterBatteryStats] suku_patel_22:
Can you link me to the XDA system app flashable zip and any other steps that need to be performed?
[BetterBatteryStats] chamonix:
Upcoming 2.2B2 will fix that. While cleaning up code I noticed that there were some unnecessary checks for root being granted even if not required
[BetterBatteryStats] chamonix:
For non-root testers: While cleaning up code I noticed that there were some unnecessary checks for root being granted even if not required. Please test using raw stats for now, upcoming 2.2B2 will fix that.
[BetterBatteryStats] suku_patel_22:
Ok. Here is initial findings

- Installing 1.1.1 version of xda system app, doesn't allow the 2.2 beta 1 to be installed.

- Installed the beta app on a rooted phone and copied over the 76kb system app to /system/priv-app. The zip should be updated.

- As you mentioned earlier, alarms not working in main display while raw stats work.

So far so good. Root is not a requirement now. Kudos [MENTION=1330150]chamonix[/MENTION]
[BetterBatteryStats] chamonix:
My bad, it seems that I had completely forgotten to update the ZIPs from port #3. Updated to version 1.3 of the recovery ZIPs now.
[BetterBatteryStats] hazzik:
Guys what is l2_hsic wakelock.
[BetterBatteryStats] shaggyskunk:
Google is your friend ?

http://xdaforums.com/showthread.php?p=51151139

Sent From My SM-N910W8 Running CMRemix 6.01
[BetterBatteryStats] reubdogg:
When I install betterbatterystats as a system app, then reboot, it gets stuck on the boot animation. How do I fix this?
[BetterBatteryStats] chamonix:
B2 is up. I was in the flow and fixed first finding from B1 (non-root usage) and added BT and Doze mode stats.
[BetterBatteryStats] suku_patel_22:
Thanks. Now alarms, kernel wake locks are working without root. However the doze stats are always 100%
[BetterBatteryStats] chamonix:
I think this fixes it: https://github.com/asksven/BetterBatteryStats/issues/748

Will be in the next beta
[BetterBatteryStats] chamonix:
Good news: network stats now also has an API mode and it is in the next beta.... and more sensor data also.

Now I still have one issue to fix related to the details of alarms only being available with root and there is no advantage anymore in running BBS with root perms (as long as the system app is installed).
[BetterBatteryStats] greves1:
Hi, please excuse this beginner question, but I simply cannot find a clear answer anywhere. My screen has random wakes which last less than a second, every few hours, apparently randomly. How do I determine what is causing these random instances of the screen turning on very briefly then off again? I consider myself to be decently proficient with android, but somehow this seemingly simple function of better battery stats eludes me...
[BetterBatteryStats] suku_patel_22:
Sometimes while applying filters, the kernel. Wakelocks and alarms turn out to be blank.

While switching back to unplugged worms fine.

Went to network stats, got root warning, came back to kernel wakelocks, the root warning didn't go away.

All if this while the raw stats and since unplugged work absolutely fine.
[BetterBatteryStats] chamonix:
You should see the cause of the wakeups in alarms. Personally I would bet on daydream.
[BetterBatteryStats] chamonix:
2.2B3 is up
[BetterBatteryStats] maermao:
scvhhgdhjfhjdhhgj
[BetterBatteryStats] greves1:
Thanks for this, I'll take a look. Actually just switched roms to see if this would solve it. Will be using bbs in the future if this issue still persists.
[BetterBatteryStats] chamonix:
Testing BBS for non-rooted devices

First I want to be sure that you understand that a custom recovery is required for non-root devices. In order to get going:

a) download the recovery ZIP ("1.3 xda" from post #3)

b) install the ZIP from your custom recovery

c) install the most current beta of 2.2 from post #1

If you have questions or want to report bugs please make sure to read post #1 first and post to the thread.
[BetterBatteryStats] greves1:
So I turned on BBS and after about a half hour saw the screen wake briefly for the first time. In alarms I see 3 things: com.google.android.gms (35 wakeups), android (2 wakeups), and com.android.vending (1 wakeup). How do I proceed from here to get rid of these screen wakes? Thanks!

Update: another screen wake. this one seems to be from com.google.android.talk. I honestly have never had random screen wakes like I have on this phone (5X). How do I prevent all apps from turning on the screen?? Obvioulsy, I want the screen to only turn on when I tell it to...
[BetterBatteryStats] IRB95:
As far as I know

I used to have issues with screen wakeups when ambient display was turned on, I don't use it anymore,

& now my prob is fixed

The mentioned wakelocks don't make the screen wakeup. They only make the CPU wake up, however, if u want to get rid of them u will have to flash xposed framework for arm64 & then get the app Amplify (u can only block NLP wakelocks without the pro version which costs around 2$). U can also use powernap (xposed required & free) to keep the apps from getting wakelocks

Hope this helps
[BetterBatteryStats] suku_patel_22:
[MENTION=1330150]chamonix[/MENTION] Filtering kernel wakelocks and alarms isn't working here. As mentioned earlier, they are there when viewed since unplugged, while filtering based on screen off reference point has a blank screen.

Alarms :

Kernel wakelocks :

No network stats :