yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] souler456:
Can someone help me check my BBS? It says the "BTLowPower" is draining my phone, but I don't know what it is and how to stop it... Anyone also experienced this wakelock and help me stop it?

:D :) ;) :good:
[BetterBatteryStats] chamonix:
that wakelock is cause by Bluetooth low energy. Do you have some fitness band connected to your phone?
[BetterBatteryStats] souler456:
No, I don't, sir... But I remembered that I used my Bluetooth once, but only to transfer some files (MP4s and some Android Packages, to be exact), but NO fitness bands whatsoever... That's kinda strange...

But sir, do you have any workarounds for this? Like would it help if I force-close the Bluetooth App after doing a transfer? Or a Reboot? Or it won't help at all?

I'll try doing those first... And check if it would help... Thanks for giving me a hint, sir... I'll try searching on the web for more info...

:D :) ;) :good:
[BetterBatteryStats] chamonix:
well if the connection was not active for the whole time it looks like a bug to me (of the app of the but stack) . Disabling/re-enabled Bluetooth may help bit there is no guarantee if you have a buggy setup
[BetterBatteryStats] qwerty22:
Can you make your message so that it would take a whole page at once? A two pages at once?
[BetterBatteryStats] chamonix:
2.0RC1 is up
[BetterBatteryStats] invisiblek:
[MENTION=1330150]chamonix[/MENTION] here's an addon.d script that people can put in their /system/addon.d/ folder (or you can automate doing it) so that bbs will persist across rom updates: https://gist.github.com/invisiblek/ee157bdea63b7f01b004
[BetterBatteryStats] martinoff:
thanks mate, can you please tell me if this script make bbs to survive when i do a dirty flash ?
[BetterBatteryStats] chamonix:
#607
[BetterBatteryStats] walda:
Still miscounting on LG G3.

... tapat@lked
[BetterBatteryStats] chamonix:
If you could post the required details for a bug report (see first post) I could look into it. Like that this error will stay forever.
[BetterBatteryStats] qwerty22:
#597: battery graph always shows same data - Thanks!

But... what other graphs show? Rectangular pulses I would understand, but the slope ...
[BetterBatteryStats] tsiftsism:
Hello,

i'm using BBS since my 1st Android phone (HTC Desire) and it have always helped me with wakelocks problems.

Last 1-2 weeks i'm using an Unofficial CM12 rom and since then BBS doesn't show both the Partial Wakelocks (i get 'No stats have been collected yet') and the Alarms (i get This stat requires BATTERY_STATS...').

I also get an FC when i try to see the Graphs (i onlt have tried it with RC1 version), and most of the stats are blank in the widget i have in homescreen.

I have read all these days most of the posts in here, but unfortunatelly it's all Chinese to me (expression that we use us Greeks, instead of 'all Greek to me' everyone else use). So, is there any issue with BBS and Lollipop in general, or it's maybe due to the unofficial rom that i'm using? The problem is that inside the rom's thread there are users writing that BBS works without any issues for them!

If you want to share a file from my device, i can do it.

Thanks in advance for your answers.
[BetterBatteryStats] chamonix:
about the fc: please send me a logcat

about Alarms and partial wakelocks: have you installed the app as system app? Please post a dumpfile, it contains all the info I need to investigate further
[BetterBatteryStats] chamonix:
could you please send me the saved serie (from the graph' menu). I have added quite some code yesterday to handle the serie' data in a more efficient manner but I guess at have missed something as there are only supposed to be horizontal and vertical connections between datapoints
[BetterBatteryStats] tsiftsism:
Yes, the 1st time i run BBS RC1 it asked me for granting it root permissions, and after this that i should install it as a system app. I did both.

Right now i'm charging my device, so let me use it and before it needs to be charged again i'll post the dumpfile.

Thanks a lot for replying.
[BetterBatteryStats] seky2205:
it would me nice to choose a language because I use my phone in english, but it would be nice to use app in croatian..

and can someone recommend me some app for controlling alarms? i'm on lollipop and xposed and amplify aren't available yet
[BetterBatteryStats] chamonix:
#608
[BetterBatteryStats] landstander:
That should work. I've been using essentially the same script with CM11 for awhile, with no issues.
[BetterBatteryStats] qwerty22:
View attachment BetterBatteryStats_History-2014-11-30_210749759.txt
[BetterBatteryStats] gaich:
Lollipop Kernel wakelocks still live their own life - they could be shown or not, when I refresh the screen, they disappear, when I reopen the app, I just can see just powermanagerservice wakelock, updating the screen could add some wakelocks or could do nothing. No matter whether I install the system app via app menu or put the whole app to system/priv-apps. And no matter whether I unchek zero filtering - that just adds many zero wackelocks, and the top ones still behave like I described above/

[YOUTUBE]qqwEPW2esgI[/YOUTUBE]
[BetterBatteryStats] chamonix:
could you please provide a logcat with a rough indication of the times when the described empty results come back?
[BetterBatteryStats] chamonix:
#609
[BetterBatteryStats] Celesica:
What app is this? Is it inside BBS?

Sorry I'm kinda new to this but I want to learn.

Also, is this pro or free version? Thanks!
[BetterBatteryStats] qwerty22:
FR

Feature Request.

Is it possible, please, add to show the Network Utilization graphic (WiFi plus Mobile excluding Loopback).
[BetterBatteryStats] ironia.:
i think

https://play.google.com/store/apps/details?id=cn.wq.disableservice&hl=it
[BetterBatteryStats] Celesica:
Somebody mentioned "System Tuner".

Is that it? If it is, where exactly in system tuner can I found this?

---------- Post added at 10:35 AM ---------- Previous post was at 09:58 AM ----------

Confirmed that it is System Tuner. Followed it thanks!

However, I wonder what is "EXCLUDED" and "INCLUDED"?
[BetterBatteryStats] Rinoceros:
Yep it is system tuner.

I recommend to use the Tool Box from the same developer (I am using the Pro version of it). It has a lot more options to use ;)
[BetterBatteryStats] xavihernandez:
Thanks for this script.

However it won't work on Lollipop :

This :

list_files() {
cat <<EOF
priv-app/com.asksven.betterbatterystats_xdaedition.apk
EOF
}

should be like that in Lollipop I guess :

list_files() {
cat <<EOF
priv-app/BetterBatteryStats/com.asksven.betterbatterystats_xdaedition.apk
EOF
}
[BetterBatteryStats] gaich:
Tried to observe kernel wakelocks during a minute, refreshing them - they appear and disappear, then I saved logcat: View attachment logcat-2014-12-01_194118973.zip
[BetterBatteryStats] chamonix:
I will have to check if there is data in that regards. Added #611
[BetterBatteryStats] chamonix:
nvm
[BetterBatteryStats] chamonix:
why would you look into /priv-app/BetterBatteryStats?
[BetterBatteryStats] Celesica:
[MENTION=4355376]Karpfenhai[/MENTION]

I followed your setting for SystemTuner (playservice and framework). However I ran into an issue. I like checking into apps like Swarm, Facebook and Foursquare. Those are the only apps I use for location. How can I tweak that I can use the location for these 3 apps manually? But that it won't take up battery life whenever I'm not using them. I use them for check ins only (except Facebook). Thanks!
[BetterBatteryStats] ironia.:
I want an android as stock as possible.

If I install BBS as system app, after is possible to uninstall it?

Tnx
[BetterBatteryStats] walda:
Problem has been gone since i switched "API for KWL" to on.

Thanks
[BetterBatteryStats] xavihernandez:
Because it is the way applications are stored in /system/priv-app in Android 5.0.

It may not be mandatory though.
[BetterBatteryStats] Rapper_skull:
Actually it should be /system/priv-app/BetterBatteryStats/BetterBatteryStats.apk with 755 permissions on the folder and 644 on the apk itself.
[BetterBatteryStats] xavihernandez:
Maybe...

I don't know if folder and application name matter. But this is kind of architecture.
[BetterBatteryStats] nextelbuddy:
hopefully i get this right. I am on Nexus 6 with Android 5.0. some days are great other days battery is gone in the blink of an eye even though CPU SPY says my phone is in deep sleep. I hate that I use CPU Spy more than any other app on my devices :/

i have all dump files form BBS ready to go and they can be found here

https://www.dropbox.com/sh/fj7yqqe974yfu1q/AADq2ANJ-IVemBc8L339c3Fka?dl=0

i check the kernel, partial wakelock areas but it looks greek to me and I cant tell what is eating at my devices battery despite CPU spy saying its in deep sleep.

thank you very much to anyone that can help decipher this for me.
[BetterBatteryStats] lolmachine4:
I'm getting massive drain from nowhere too. I just flashed my first 5.0 ROM 2 days ago and updated both radio and bootloader beforehand, so that should be safe. With 4.4.4 I could easily get 2 days with g now enabled and locationservices turned to energy saving mode, but on. Now I fail to achieve 24 hours because an unknown culprit is keeping my Nexus from sleeping. Any tips? The dump was made after a fresh reboot. It may not be old and the timmeframe is small, but the same wakelock was draining the whole day.

Link to dump:

https://www.dropbox.com/s/5v59lzc0a6n4wxl/BetterBatteryStats-2014-12-01_192643337.txt?dl=0
[BetterBatteryStats] Perseus:
Can you rehost just the text dump on Pastebin ? dropbox blocked at firewall.
[BetterBatteryStats] mdamaged:
FWIW, those on 5.0 with seemingly weird battery drain should be aware that it's a known issue with Lollipop and 5.0.1 is supposed to address the issue. I wiped 5.0 for now, went back to 4.4.4, for that, and a few other reasons. So you may not be able to fix it on your own.
[BetterBatteryStats] lolmachine4:
Ofcourse, there you go.

http://pastebin.com/SHkpjUqj

Really? Damn. I'm following updates on Lollipop-issues quite alot, but haven't read about unresolved drain issues.. Still hoping I did something wrong, although I don't know what it could be. What makes me wonder is the fact that partial wakelocks doesn't show any apps that are missbehaving, only kernel wakelocks..
[BetterBatteryStats] mdamaged:
FYI.

http://www.forbes.com/sites/gordonkelly/2014/11/05/google-confirms-android-5-0-lollipop-delay/

...so it seems to be related to the wifi thing mentioned here:

http://www.androidheadlines.com/201...orporate-connection-android-5-0-lollipop.html

I'll guess we'll see what happens.
[BetterBatteryStats] Smultie:
That discusses the initial delay... All the official lollipop builds have that issue fixed.
[BetterBatteryStats] mdamaged:
I too experienced it. Remember that post speaks about the OTA being delayed, the problems are in the factory images, which were not delayed.
[BetterBatteryStats] Smultie:
How do you know it's the same bug?
[BetterBatteryStats] mdamaged:
Maybe it is and maybe it isn't I haven't went over every line in the source code, but the fact remains, this seems to be lollipop related and not something BBS can help to fix. My post was letting people know that if BBS dumps and disabling everything still results in battery drain and they are using 5.0, that there is probably a fix in the works? OK? Is that satisfactory?
[BetterBatteryStats] CM17X:
[MENTION=1330150]chamonix[/MENTION] any news with the logcat from the Shield Table
[BetterBatteryStats] chamonix:
1. does row show any kernel wakelocks?

2. does switching to the advanced prefs to use the API for KWL help?
[BetterBatteryStats] chamonix:
#612
[BetterBatteryStats] chamonix:
as long as you have root you will always be able to uninstall it
[BetterBatteryStats] chamonix:
BBS installs itself into /system/priv-app. I understand that other app install into their own directory but I haven't found a specification on that. Besides, /system/priv-app works fine on both kitkat and lollipop so I don't see a reason to change the location as long as there is no proof for any benefit.

This also means that the script is completely fine and will be documented as-is in the faq
[BetterBatteryStats] code010101:
I have a lot of (likely) fake wakelocks during night time ...
[BetterBatteryStats] code010101:
sorry for another post, just an idea, maybe it would nice to have a widget similar to this if feasible (I photoshopped the orignal)
[BetterBatteryStats] xavihernandez:
Oh ok thought it was mandatory. Thanks for clarifications.
[BetterBatteryStats] Fozbot:
Excellent app. Have been using it the last couple of weeks to get a better understanding of my battery usage. Thanks for sharing here on XDA!
[BetterBatteryStats] CM17X:
Hey there, [MENTION=1330150]chamonix[/MENTION]

I dont get any results of the KWL, and actually with the option for use the API it doesn't gives me any.

I just get what's in the picture attached [

ATTACH]3044664[/ATTACH]
[BetterBatteryStats] chamonix:
Please re-check with API on but in the raw stats. Switching from non-API to API requires the stats to be re-collected after a plug/unplug.
[BetterBatteryStats] chamonix:
can anyone confirm whether the update of the appcompat lib with RC1 has solved the problem with the duplicate headers in the preferences as well as the overflow menu not being themed the same way as the menu shown when opened from the hardware menu button?
[BetterBatteryStats] Karpfenhai:
The 3 dots menu remains white on rc1 :(
[BetterBatteryStats] Stuart Little:
I still remain white

Android & iOS Support Member of the T.T.P. Desk.

For main operating system support contact:

Mail: danielbinck@icloud.com

Google+/Hangouts: binkdaniel@gmail.com
[BetterBatteryStats] jr67:
Duplicate headers in preferences is still there.
[BetterBatteryStats] chamonix:
In the logfile I see this:

12-01 19:41:06.404 I/Метки(10509): Создание метки ref_current в 16405 д 11 ч 41 м 6 с
...
12-01 19:41:06.710 D/StatsProvider(10509): Current value: Экран вкл Misc [m_name=Экран вкл, m_timeOn=3 м 43 с , m_timeRunning=38 м 51 с ]
...
12-01 19:41:06.710 D/StatsProvider(10509): Current value: Wifi вкл Misc [m_name=Wifi вкл, m_timeOn=7 м 24 с , m_timeRunning=38 м 51 с ]
...
12-01 19:41:07.417 I/ReferenceStore(10509): Retrieved reference from cache: Метка ref_current создана 38 м 52 с (ВЛ: 18 элем.; ВЛЯ: 2elements; Сеть: 12 элем.; Сигн: 11 элем.; Проц: 123 элем.; Др: 11 элем.; CPU: 14 элем.)
...
12-01 19:41:07.417 D/StatsProvider(10509): Текущий заряд батареи:85
...
12-01 19:41:17.838 D/StatsProvider(10509): Current value: Нет соед. для передачи данных 2 м 47 с 7,3%

Is that the result of the I18N or have you made own changes to the app? In the latter case this is exactly what I do not want: I am not able to read my own logs...
[BetterBatteryStats] chamonix:
Found a fix, is resoved for RC2
[BetterBatteryStats] guido_glx:
Yes, I still see "display" twice...

Enviado desde mi GT-I9300 mediante Tapatalk
[BetterBatteryStats] tsiftsism:
Hello,

so after rebooting and charging the phone Alarm and Partial Wakelocks are giving me data, so the only issue is that in the widget Awake time and Screen On time are blank.

Do i have to set anything that i missed inside BBS Settings for them to show the 2 times?

And please be kind and tell me if you see anything strange in the logcat.

Thanks in advance for your answer.
[BetterBatteryStats] Celesica:
Hey! So I just tried this app and see if I could make my battery life longer. Attached are the files.

I feel like my phone is saving battery well when it's idle or I'm not using it.

However, I feel a fast battery drain when it's on - I normally use it to check things using Wifi (GMail, Facebook, other social apps, sometimes Camera). I lose like 1% every 3-5 minutes.

Can you please let me know if there's a problem - what the problem is - how can I fix it?

Thanks so much!
[BetterBatteryStats] Celesica:
Hi. Is there a thread for 3C Toolbox with regards to configuration of stuff?

I wanted to know better on how this is used for performance and battery life.

Thanks!
[BetterBatteryStats] Rinoceros:
3C toolbox

Have a look here :D
[BetterBatteryStats] GoJo ^^:
Hello i have an issue with the msm_otg wakelock : after i charge my device, right after i unplug the cable, this wakelock will ALWAYS be there while screen's off, preventing device from sleep. Reboot usually solves this, sometimes it needs shutdown.. BUT it will be back after next charge. How can i get rid of this crap?

EDIT: I found out : my USB cable is defective; check yours, on the bottom there are two pins coming out. Mine aren't coming out enough, despite me trying to pull them. There must be a way though, hopefully someone here will know..? ;)
[BetterBatteryStats] pikachukaki:
I let my phone uncharged while I sleep to see how battery it will drain while I'm not using it at all... I lost about 15% after 8h I open bbs (I had create a custom reference point before I go to sleep) I didn't see any major partial wakelock but i saw alot of alarms... So I wanna ask what exactly is an alarm and how much battery it drains? It triggers something else??and if we have an alarm about SYNC how exactly we can reduce it without stopping our syncs?
[BetterBatteryStats] Mistertac:
Here's some great info on Alarms and why they are needed and what they do.

https://developer.android.com/training/scheduling/alarms.html

Basically your apps will have Alarms fired that can then hold Wakelocks to update / sync said apps among other things.

That's a super simple explanation of what Alarms are and do. Check out what I linked you though for better in depth info.
[BetterBatteryStats] pikachukaki:
Now i look at my dumpsys alarm...and the biggest alarms on 5hours ratio

+3m32s997ms 0 wakes 1250 alarms: *alarm*:android.intent.action.TIME_TICK

u0a8:com.google.android.gms +1m1s746ms running, 255 wakeups

all others are running for millisecond...

Top Alarms:

+3m32s997ms running, 0 wakeups, 1250 alarms: 1000:android

*alarm*:android.intent.action.TIME_TICK

+58s721ms running, 34 wakeups, 34 alarms: u0a107:com.tvshowfavs

*walarm*:com.tvshowfavs/com.commonsware.cwac.wakeful.AlarmReceiver

+57s436ms running, 98 wakeups, 98 alarms: u0a133:com.foursquare.robin

*walarm*:com.foursquare.robin/com.foursquare.core.receivers.UnifiedLoggingSubmitReceiver

+55s691ms running, 200 wakeups, 200 alarms: u0a146:com.viber.voip

*walarm*:com.viber.voip.action.KEEP_ALIVE_RECEIVE

+44s639ms running, 33 wakeups, 33 alarms: 1000:android

On BBS android system alarms are first with 258 (30.8/h)

+24s573ms 933 wakes 933 alarms: *walarm*:android.content.syncmanager.SYNC_ALARM

so i think this or even if its 1st for 24 seconds for 5 hours it isn't a big deal!
[BetterBatteryStats] Mistertac:
You could use Greenify if you're not already, and change your apps sync settings to manually sync. Between doing the two of those things you can cut down on some alarms and Wakelocks.

When I was running Xposed with Greenify I would hibernate everything and not allow apps to wake up for GCM / Notifications. So the apps were truly hibernated and I'd just sync them myself. Up to you though obviously.
[BetterBatteryStats] pikachukaki:
im at lollipop i dont have xposed for now...i have all the apps that i didnt care about syncs and notifications but still they sometimes wakes the phone...but as you can see for milliseconds...not that big a deal...the biggest wakelocks or alarms that i have seen comes from SYNC,location and time_tick...oh and something on gms called reconnect but i can get why its popping when i dont have net...
[BetterBatteryStats] Primokorn:
I have a FC with v1.16.0.0

Steps to reproduce the bug:

1. Select Process / Boot / Current

2. FC right after selecting Process
[BetterBatteryStats] CM17X:
Heye there again, [MENTION=1330150]chamonix[/MENTION]. I did exactly what you've mentioned with no luck. On Raw stats with the API WKL I don't get any results. Just a blank spaces where they should be.
[BetterBatteryStats] chamonix:
Could you please post a logcat? are you using a stock kernel?
[BetterBatteryStats] chamonix:
Unfortunately you attached a dumpfile but no logcat. Could you please repeat and add a logcat after ticking the debug advanced preferences?
[BetterBatteryStats] chamonix:
I have gone through the flow and didn't find anything abnormal in terms of errors happening in the process of parsing the kernel wakelocks. What I noticed is that almost all wakelocks from wakeup_sources are with a total time of 0; this is the only difference that I could see comparing it to the logs I can produce with my devices.

That can have different causes that we can try to narrow down:

a) the wakeup_sources format from your kernel is different from the stock one, causing BBS to use the wrong parser version -> could you post your /sys/kernel/debug/wakeup_sources as attachement (no copy paste to preserve all separators).

b) the content of your wakeup_sources is not updated/written properly: that could be the case if you use a custom kernel. Is that the case?
[BetterBatteryStats] chamonix:
2.0RC2 is up
[BetterBatteryStats] Karpfenhai:
Guess what...

You made it [emoji12] [emoji14]
[BetterBatteryStats] chamonix:
yay \o/
[BetterBatteryStats] tsiftsism:
Sorry about that.

Hope this time i did it the right way.
[BetterBatteryStats] gaich:
Yes, it`s a custom kernel. This should be the case... I have asked in kernel thread whether anybody has the same problem/

View attachment wakeup_sources.zip
[BetterBatteryStats] Celesica:
Bumpin this one and reattaching the files. Thanks.
[BetterBatteryStats] CM17X:
Hello again, [MENTION=1330150]chamonix[/MENTION]. Yes, i am using the stock kernel provided by nVidia and Android 5. Attached you could find the logcat.

Thank you.
[BetterBatteryStats] j1gga84:
Everything is find with RC2, except changelog after first run. It is black on black..

Regards

Sent from my GT-I9100 using german Tapatalk 4
[BetterBatteryStats] GJT-UK:
migration/0 real time kernel process eating loads of CPU

I tried to set the parameter to 0, but it threw an error.

The /proc file system is mounted rw, I still cannot create the file via the echo statement:

via ADB:

echo 0 > /proc/sys/kernel/sched_cpulimit_nr_balance

1|root@m0:/proc/sys/kernel # echo 0 > ./sched_cpulimit_nr_balance

echo 0 > ./sched_cpulimit_nr_balance

echo 0 > ./sched_cpulimit_nr_balance

sh: can't create ./sched_cpulimit_nr_balance: No such file or directory

1|root@m0:/proc/sys/kernel # touch sched_cpulimit_nr_balance

touch sched_cpulimit_nr_balance

touch sched_cpulimit_nr_balance

touch: sched_cpulimit_nr_balance: No such file or directory

and this did not work either:

root@m0:/proc # sysctl kernel.sched_cpulimit_nr_balance=0

sysctl kernel.sched_cpulimit_nr_balance=0

sysctl kernel.sched_cpulimit_nr_balance=0

sysctl: error: 'kernel.sched_cpulimit_nr_balance=0' is an unknown key

---------- Post added at 12:16 AM ---------- Previous post was at 12:12 AM ----------

Yes, see this thread [http://xdaforums.com/nvidia-shield/shield-qa/android-os-battery-drain-t2816142/page2] which seems to have stopped migration/0 from burning up so much CPU and killing my battery.
[BetterBatteryStats] gaich:
[MENTION=1330150]chamonix[/MENTION], there wasn`t nothing added to changelog_master.xml, as I see..:confused:
[BetterBatteryStats] joderme:
Looks like 2.0 supports Partial and Kernel wakelock info on Lollipop? I was having trouble getting these to come up with the Google Play Store version.

Very happy with this as this is an app I use often (which is why I purchased it).

I am on a Nexus 6 and all the info screens come up just fine despite having a stock kernel (CF Auto Rooted).

Thanks for the hard work!!
[BetterBatteryStats] qwerty22:
Is this battery graph correct? Graph is empty for 1h.

View attachment BetterBatteryStats_History-2014-12-04_093710647.txt

View attachment BetterBatteryStats-2014-12-04_093736005.txt

View attachment logcat-2014-12-04_093736080.txt
[BetterBatteryStats] ironia.:
tnx, so no problem with OTA?

tnx again
[BetterBatteryStats] stab244:
On my OnePlus One on CM 11 nightlies, I get this weird mini settings in the settings menu. See pic.

Sent from my bacon
[BetterBatteryStats] Karpfenhai:
Did you upgrade to latest rc2?
[BetterBatteryStats] stab244:
Yes I have.

Sent from my bacon