yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] blue_lagoon:
Guys, may I ask for your help?

I have a Oneplus One running CM12.1 nightly from 503. I used to have really good battery on this build. Overnight in flight mode I used to lose only 1-2%. Last night I lost 6% in six hours. Using BBS I'm confused. The phone stays in Deep Sleep the whole time. So, what sucks my battery empty??

Any help is greatly appreciated!
[BetterBatteryStats] addict_insane:
PKT_CNT_SAMPLE_INTERVAL_ELAPSED wakelock

Good day mates! Could somebody please tell me what is this PKT_CNT_SAMPLE_INTERVAL_ELAPSED wakelock? I have CM12.1 with GAPPS before and "tamed" all rogue system and 3rd party apps, I was having this wakelock. Now I flashed latest CM12.1 build with no GAPPS and I still have this wakelock. I already disabled location and sync. I only have stock apps from CM, Greenify and BBS.

Please help. Thanks in advance!
[BetterBatteryStats] aeonix_05:
Can Anyone help me. My phone always wake in intervals (see screenshot) and I can't figure the culprit out. Here's the screenshot and the dumpfile for debugging. Please anyone!
[BetterBatteryStats] yaytzo:
Hi,

I'm using BBS version 2.1_B4 on an LG G3 running CM12.1, and I cannot seem to get information on kernel wakelocks.

I used to own a nexus 4, in which I could see all sorts of kernel wakelocks, however on this phone, the seems to be a problem.

I installed the app as a system app, but still nearly nothing under kernel wakelocks.

On the Other screen however, I can see that my phone is awake 70% of the time, so the must be *some* kernel wakelocks...

Does anyone know how to solve this issue?

Thanks!
[BetterBatteryStats] Rjrocks22:
Hi [MENTION=5490227]mdamaged[/MENTION], Thanks for the response given, I'm attaching the screenshots from BBS which shows heavy wakelocks. I thinks these wakelocks start as soon as I enable the mobile data is use 4g. I think these wakelocks are related to 4G services.I'll be attaching the BBS dump by keeping phone idle for 4-5 hrs are suggested by you. will share ASAP.
[BetterBatteryStats] iRiKi:
I'm using a MIUI ROM, and I can't figure out how to correctly install BBS.

I have put the apk in the /system/priv-app and rebooted, but no icon appeared in the HomeScreen (as you may not now, there's no app container in MIUI, the shorcut icons are created directly on the HomeScreen ala iOS).

I then reinstalled the apk (with the clone apk sitting in the /system/priv-app), and now I have a shortcut icon but when lauching the activity saying that I don't have permissions appears. I found that going "Back" in this activity, the main Activity finally appears.

Is there any other solution other than this?

Thanks in advance.
[BetterBatteryStats] sgloki77:
is it necessary to have selinux in "permissive mode" for BBS to work?

when I install the app as system app and reboot I get this message "battery stats not granted, dump not granted selinux enforcing"

I checked in terminal emulator and is in "enforcing mode". I'm on Nexus 6, 5.1.1 aosp rom, last super su 2.49 any ideas?
[BetterBatteryStats] rpr69:
Just a gentle nudge that I am willing to help try and get it working on M, in a testing/debug capacity.
[BetterBatteryStats] Chahk:
I'm running BBS v2.1.0.0_B4 on Nexus 6 rooted M Preview, and even after being off the charger for hours, it fails co collect any Partial Wakelocks stats:

[IMG="screenshot"]http://i.imgur.com/kNPAfJpm.png[/IMG]

click for larger image

Thread search didn't give any meaningful results. Is this a known issue with M?
[BetterBatteryStats] mdamaged:
FWIW, being it is a preview, it likely changed some stuff, the thing about previews is that if a dev makes a fix for it, it often changes again before final, so most devs will not touch it until release.

That being said, chamonix has always been on top of things, so hold tight.
[BetterBatteryStats] X46X:
I cant see any kernel wakelock. it says "File could not be read" There is a logcat: https://mega.co.nz/
[BetterBatteryStats] rpr69:
I posted about this on Sunday I think.
[BetterBatteryStats] chamonix:
I will be working on M soon. I can guarantee it will not work without changes as Google always breaks stuff and make my life more or less difficult.

M support will not be a priority though as I expect many breaking changes in the upcoming preview releases
[BetterBatteryStats] rapboy91:
https://mega.nz/#!RRMUQJhA!qhafYsY7l6XcPP5XevZXxJj-0nh1Le6Zoxyt9QxtXMs

I don't know why awake is so high and what is ril fd in kernel wakelock,and why I can't to do 6 hours screen on like 1 years ago.

Ps: I change my battery 1 week ago.
[BetterBatteryStats] mdamaged:
You might have a higher chance to get help if you attach the dump rather than use mega.
[BetterBatteryStats] chamonix:
it seems that your kernel does not have any /sys/kernel/debug/wakeup_sources file. This is not a normal state. What kernel are you using?
[BetterBatteryStats] rapboy91:
I do not know how to do it
[BetterBatteryStats] mdamaged:
When you make a post, scroll down, button that says Manage Attachments, to add one to an existing post, you will have to click Go Advanced first, or you can paste the log into the post, and use the hide button to hide it.
[BetterBatteryStats] rapboy91:
ok,thank you
[BetterBatteryStats] X46X:
ElementalX but it don't work on default kernel too..
[BetterBatteryStats] chamonix:
Please post the file as attachement
[BetterBatteryStats] mdamaged:
You're going to have to charge the device to 90-100%, then unplug it and let it sit idle for about 3-4 hours, in other words, do not use it at all, then repost a new dump.
[BetterBatteryStats] faizul134:
huge battery drain :'(

[MENTION=1330150]chamonix[/MENTION]

please see my dump file, logcat, and wakeup_sources files.

device: oneplus one

Rom version: Bisspop 3.4 (20150527)

kernel: AK 251
[BetterBatteryStats] aeonix_05:
[MENTION=1330150]chamonix[/MENTION] Can you help me on this please! Thanks
[BetterBatteryStats] addict_insane:
Anyone please....
[BetterBatteryStats] mdamaged:
See post 1, and read and follow how to get help.
[BetterBatteryStats] khandelwalsiddharth:
using Carbon rom 5.1.1 on m7. Installed BBS as system app but still its not working.

Any solution?
[BetterBatteryStats] X46X:
There is it, it must be in archive because size is too big for this forum as attachement (580Kb) :eek:
[BetterBatteryStats] visceralpsyche:
While the new icon looks nice, it commits a major UI design faux pas - the plus symbol now looks like the FAB version of Add something. While I get where it's come from design wise from the old icon design, I think the circle element needs to be removed so as to conform with Material design guidelines. Aside from that it looks great :) Cheers!
[BetterBatteryStats] chamonix:
Thanks for your feedback. Could you be a little more specific about what part of the guidelines the icon does not conform to?
[BetterBatteryStats] visceralpsyche:
Sure :) This is what I'm referring to:

http://www.google.com/design/spec/components/buttons-floating-action-button.html

HTH and thanks for the app!

Cheers,

Paul :)
[BetterBatteryStats] visceralpsyche:
Here's an example of the FAB in action.
[BetterBatteryStats] ts_mpls:
It's nitpicky but I'll confess that while I like the new icon, I was also ever-so-briefly confused about what I was adding by clicking on it. It definitely looks like a FAB.
[BetterBatteryStats] rpr69:
Understood, I wasn't sure where you were on that. I assume it's more of a permissions issue? I can parse the dumpsys manually for now. I'll do a comparison of 5.1.1 and M to see if the file format changed as well, if that would help.
[BetterBatteryStats] drezz2:
[MENTION=1330150]chamonix[/MENTION]

reviewing the app I have seen that there is a small mistake in Spanish translation, if you want to correct, is this the right thing (I've seen the code on github)

<string name="label_custom_ref">Asiganr Ref. personalizada</string>

right is <string name="label_custom_ref">Asignar Ref. personalizada</string>
[BetterBatteryStats] danigraham:
I liked this post initially because I thought it to be a great idea. Then I remembered seeing a 'Graphs' section when you press your menu key in BBS. The wakelock graph isnt in the (battery percent) format you suggested, but it's there.

I still think that is a good idea though. The current one is a little confusing for us girls to understand ?

Thanks again for the development here, and the community. I read everyday and try to help of and when I can✌
[BetterBatteryStats] Pangadaywalker:
I am having a strange issue with BBS. From what I noticed one of my CPU States are going crazy.

I have S5 G900M with CM12.1 and my 300mhz state has "-0.3%". The kernel toolkit has the correct value which is close to 20% with another 60% for deep sleep (and yes, I don't use a lot the phone).

Could it be something wrong with BBS?
[BetterBatteryStats] lepa71:
How do I convert from xda version to playstore one? Thanks
[BetterBatteryStats] iRiKi:
Sorry to bump but... any help? I cannot install it via Recovery...

Thanks in advance.
[BetterBatteryStats] Wh1t3Rose:
-__- Uninstall free version. Buy donate version. Lol?
[BetterBatteryStats] nitinvaid:
I am not able to install this on my nexus 6 running CM12.1

tried normal apk then install system app failed then tried again then recovery still not working any idea?
[BetterBatteryStats] nicesoni_ash:
If it's rooted, try to put the apk in priv-app folder and set the correct permissions. Reboot then.

_____________

Sent from my "GT-I9300/1+1" powered by Carbon Rom & Boeffla/ak Kernel

Fueled by 7000mAh ZeroLemon Battery
[BetterBatteryStats] :
I'm not sure if the method works for all Lollipop roms, but it did for mine.

1. install apk

2. install as system app and reboot

3. install apk again.

4. ???

5. profit$$$
[BetterBatteryStats] makix13:
I follow this way and it works [emoji106]

S2 Cyanogenmod 5.1.1
[BetterBatteryStats] Avishai1b:
My Samsung Galaxy S2 Stats: something is keeping the device awaking and killing the battery, im using greeinfy trying to fix it..

i have an internation SIM card inside, whatsapp is killing the wifi. same as google play services

and RILJ partial wakelock is 99%

anyhelp?
[BetterBatteryStats] slicetwo:
Any thoughts on why my phone is staying awake a lot longer then my on screen time? Galaxy s5 with greenify and amplify running.
[BetterBatteryStats] altojd:
View attachment 3351105in the last few days my phone doesn't get into deep sleep at all. I'm on klte with bliss rom. have tried stock kernel and kt with the same result. any help will be appreciated.
[BetterBatteryStats] Abe_Frohman:
Can anyone take a look?

Very annoying...BBS shows...

unplugged for 7h52min

deep sleep 3h57min

awake 3h55min

screen on 39min

I'll attach the dump file...if any screenshots would help, please let me know.

I usually get ~24hrs on a battery with only ~2.5 SOT

Forgot to add...LG G3 vs985 on skydragon 4.0/4.1 kernel

Thanks!

Abe
[BetterBatteryStats] khandelwalsiddharth:
Turn off Google now and then check.
[BetterBatteryStats] RASTAVIPER:
I have wrong kernel wakelocks info captured from BBS.

Is there anyway to fix that?

Unleashed by my M1 note
[BetterBatteryStats] lepa71:
Is there a way to make BBS remember stats from full charge after reboot?

Is the XDA edition version higher then play store?

Thanks
[BetterBatteryStats] TotallyAnxious:
XDA is higher as long as it's a beta.
[BetterBatteryStats] zephyrus17:
Do you know what this "charger-softreg" and how do I reduce this kernel wakelock?
[BetterBatteryStats] electech13:
Wrong in what way?

Btw partial wake locks is the far more important screen to assess..
[BetterBatteryStats] RASTAVIPER:
Other programs report the same wakelocks with almost 4x time.

And in general, as I had reported before, BBS doesn't work well with my device. Other times doesn't even report correctly the total time that my device is on battery.

Finally, from the current BBS reports that show all wakelocks within normal ranges, there is no proper explanation of why my device gets a lower consumption then expected.

Unleashed by my M1 note
[BetterBatteryStats] lepa71:
Should I use xda version than? What about other question? Thanks
[BetterBatteryStats] shaggyskunk:
I bought the Donate version to support the Dev & Development - But I always use the beta xda version.

I guess that you could always take a screen shot of the stats - but I don't know about storing them to survive a reboot?

Sent From my SM-N910W8 Running SlimLP 5.1.1 RRO Layers
[BetterBatteryStats] LironImaN:
Hello,

Recently clean flashed CM12.1 for my S4, tried to install BBS as system app, but I got this error in the picture.

Even tried to flash though recovery, but no luck, same error.

Tried to install earlier versions as someone recommended here, same error.

Any solution? :D
[BetterBatteryStats] Carpe Noctem 11:
FIRST ---> Restart your device

and

then install the downloaded apk [ BetterBatteryStats_xdaedition_2.1.0.0_B4.apk ] once again ... and BBS will work :good:
[BetterBatteryStats] v7:
Install the app again on top of this ie;you have to install the apk twice to make it work.

Tapped from my furious dogo ;)
[BetterBatteryStats] lazer155:
I keep getting this error and I'm not sure why: "Selected 'from' or 'to' reference could not be loaded. Please refresh."

My device is unplugged. I refreshed but the error remains. I also force closed it and deleted the app's data but that didn't help either. It was working earlier today just fine. I did block some wakelocks with amplify but it kept working after blocking them so I don't think that is the issue. Does anyone know how to fix it? I read another post where clearing data and force closing fixed it but that didn't solve it for me.

I am using a custom lollipop 5.0.2 based rom on an s5.

Edit: I put it back on the charger then removed it and it started working again. I'm not sure why it was giving that error.
[BetterBatteryStats] altojd:
hi, i'm on smsung galaxy 5 (900F) with AOSP Bliss rom (lollipop 5.1). lately my phone doesn't get into deep sleep at all because of "audioln" wakelock.

any soloution will be highly appreciated.
[BetterBatteryStats] xtam:
How to configure it

How can i configure bbs to show me something like this:

https://play.google.com/store/apps/details?id=com.WazaBe.android.BatteryDrain

https://i.imgur.com/MqQSFcp.png

[IMG="bbs how to"]https://i.imgur.com/MqQSFcp.png[/IMG]
[BetterBatteryStats] PeQuEsan:
Don't forget this plis [MENTION=1330150]chamonix[/MENTION]...

Thanks a lot.
[BetterBatteryStats] LironImaN:
Thank you, guys, now it works. ?
[BetterBatteryStats] closee91:
Is there any way to stop "android.net.connectivityservice.action.pkt_cnt_sample_interval_elapsed" wakelocks? Its draining my battery. Thanks!
[BetterBatteryStats] mdamaged:
Install this app: https://play.google.com/store/apps/details?id=com.WazaBe.android.BatteryDrain ...and tell everyone it's BBS.
[BetterBatteryStats] hamedha:
hello , is it safe to disable TimaService ?
[BetterBatteryStats] RASTAVIPER:
12 hours in use and BBS again gives wrong information.

Unleashed by my M1 note
[BetterBatteryStats] Perseus:
Symptom is not the Disease. There's some other app that's being impatient and checking the clock one too often. Look under Alarms to identify the Culprit.
[BetterBatteryStats] chamonix:
Oh I guess I misinterpreted your request. added #705
[BetterBatteryStats] closee91:
What? No its an android system wakelock. Not something else, I've reduced all my other wakelocks
[BetterBatteryStats] altojd:
any advice how to get rid of "audioln" wakelock?
[BetterBatteryStats] Equals_Android:
hey i have the same wakelock, if you fix your problem can you tell me how. Thanks :)
[BetterBatteryStats] xtam:
battery drain does not work good on L
[BetterBatteryStats] thesebastian:
Edit!
[BetterBatteryStats] Dor-b:
Hi,

I'm having an excessive play services wakelock (1.2/min). I guess it's not normal. I can't seem to isolate the thing that causing this wakelock. What is Alarm_wakeup_activity_detection?

Thanks!
[BetterBatteryStats] qwerty22:
If you are not using KNOX, deleting TimaService safely. At the same time, I recommend to remove KNOX. My code for Galaxy S5 G900F Andriod 5.0:

rm -rfv system/container
rm -rfv system/preloadedkiosk
rm -rfv system/preloadedsso
rm -rfv system/app/Bridge
rm -rfv system/app/KnoxAttestationAgent/arm
rm -rfv system/app/KnoxAttestationAgent
rm -rfv system/app/KnoxMigrationAgent
rm -rfv system/app/KnoxSetupWizardClient/arm
rm -rfv system/app/KnoxSetupWizardClient
rm -rfv system/app/KnoxSetupWizardStub
rm -rfv system/app/KNOXStore
rm -rfv system/app/MDMApp
rm -rfv system/app/RCPComponents
rm -rfv system/app/UniversalMDMClient
rm -rfv system/etc/secure_storage/com.sec.knox.store
rm -fv system/tima_measurement_info
rm -rfv system/priv-app/KLMSAgent
rm -rfv system/priv-app/SPDClient

But ... what's stopping you from using TimaService?
[BetterBatteryStats] jflow36:
I don't know what it is but whenever I want to know what a wakelock or something like that is I just Google it... Have you tried that? It should have the info on it...
[BetterBatteryStats] altojd:
no response at all? am i the only one with this wakelock that prevents my phone from entering "deep sleep" mode?
[BetterBatteryStats] bombadier:
I just did a google search for "audioln" wakelock

first hit

http://xdaforums.com/showpost.php?p=51317312

A start for you
[BetterBatteryStats] Perseus:
You may wish to carefully review [GUIDE] The Total Newb's Guide to Wakelocks

Not this one though. PKT_SAMPLE_CNT is of more recent variety and not much documentation out there.

Like I said the other day to someone else, Its the symptom. You may want to look under Alarms or PWLs to see who is it that is impatient and keeps checking for "Is it the time now"?
[BetterBatteryStats] hamedha:
because it's unneeded.

Thank you for your help
[BetterBatteryStats] Luke2508:
Can anyone give me any insight on how to reduce some of my wakelocks, since I feel like my deep sleep% could be better. I do use android wear so that explains the blue tooth wakelocks, and I understand that will quicken battery drain, but is there anything else I can improve upon?
[BetterBatteryStats] niyas90:
I just converted the bbs to system app using titanium backup instead of the in app method...

Will this do the trick.. Or do i need to use the in app method...
[BetterBatteryStats] RASTAVIPER:
[MENTION=1330150]chamonix[/MENTION]

Any solution for such problematic behaviour?

Unleashed by my M1 note
[BetterBatteryStats] Perseus:
That's an in use log where the phone was in use for at least 4 hours out of 6. Makes for a difficult analysis. See the point of this exercise, is to reduce the Idle Drain to a minimum so in-use drain is the only affecting factor. In order to do so, we need an Idle Log where you'd reboot and then leave the phone alone, preferably overnight.

High level suspect for now is Google Location Reporting. Please turn it off.
[BetterBatteryStats] j1gga84:
Same Problem for me on KK..

regards
[BetterBatteryStats] tsiftsism:
If someone can read the attached file and help me on what may causing the MediaServer draining my battery the last few days.

Thanks a lot.
[BetterBatteryStats] Adywizard:
Delete all videos and pics you've made just before battery drain started.
[BetterBatteryStats] Ckovvi:
Can anyone tell me what for is *net_scheduler* of google services related to? I have a partial wakelock caused by it.
[BetterBatteryStats] mdamaged:
Uhh, for scheduling network ops, data collection, etc.
[BetterBatteryStats] Ckovvi:
Thanks for fast reply. Do you know how to solve it? I have disabled some services of google play services, could that be the reason of wakelock?
[BetterBatteryStats] mdamaged:
Your device needs wakelocks, if it is not causing notable, significant battery drain then don't obsess on it, I constantly see people posting about wakelocks giving no thought to their requirements or battery drain (or lack thereof), so unless the wakelock is directly attributed to an unnatural, significant drain, then it's rather counterproductive to chase down every single wakelock. I think people simply do not understand the reason for the existence of BBS, it isn't to kill every wakelock, it's to find misbehaving apps generating battery drain, it just happens that many show themselves as wakelocks. The systems you propose to mess with can basically gimp your device and break lots of things, so you need to get to understanding what you are doing and what is happening and what you want your device to still be able to do before nilly-willy whack-a-moleing every wakelock just for the sake of getting rid of them.
[BetterBatteryStats] marknoll:
Amen
[BetterBatteryStats] Equals_Android:
Is this amount of wakeups normal for android?
[BetterBatteryStats] marknoll:
Yes
[BetterBatteryStats] msrance:
Better... or Best?

This is the best battery statistics monitor that I have tried and it is head and shoulders above the rest.

Add to all this, the author's true camaraderie in giving it t the forum regulars free - I must applaud it.

(Never required this kind of app till my OnePlus One upgrade to CM12 when it started battery draining
[BetterBatteryStats] gamisouxda:
Is it working in Android M for anybody?
[BetterBatteryStats] s2d4:
Is it working for Android O for anybody?
[BetterBatteryStats] ts_mpls:
That was damn near perfectly stated. I can think of probably a dozen threads where that needs to be cross-posted!
[BetterBatteryStats] rpr69:
Asked and answered already.
[BetterBatteryStats] Deepblackk:
Hello, i need some help with my S6 flat battery! Im trying to understand what happens, and why it drains so fast! yesterday i rooted, uninstalled facebook, messenger, and disabled several bloatwares from samsung, but it seems that´s not enough! charged to 100% last night and unplugged it, left alone for 6 hours, from 3 am to 9 am, and drained almost 20%! and normally, i start using at 9 am, three hours later the battery is around 60%, with light usage, only chrome, no gaming! any ideas?

Thanks a lot =)
[BetterBatteryStats] closee91:
Get rid of airdroid or disable it from waking up your device in app ops or privacy guard.

You also have the google play services bug. Disable it from waking up and keeping awake in app ops or privacy guard as well. Disable Google play services systemupdate with servicely or something similar
[BetterBatteryStats] closee91:
Anyone know how to rid of these android system wake locks. Or why I have an empty *alarm* wakelock. With nothing next to it?
[BetterBatteryStats] marknoll:
Those wakelocks are natural just leave them be
[BetterBatteryStats] Firnagzen:
Hello, please find attached my dump file. As you can see, I'm apparently having awful sleep time, nearly 50%, and it's almost entirely arising from the *alarm* wakelock. This is with my phone left untouched over night. Does anyone have any idea what might be causing it? (LG G3 d855, running Lollipop 5.1.1, Fusion Rom.)

I'm aware the Skype will consume power. That's fine, and I accept that. What I want to know is - what exactly is that unnamed *alarm*, and is it possible to reduce it? Skype has its own wakelocks that are not related to the *alarm* wakelock.
[BetterBatteryStats] Perseus:
Please Reboot, leave the phone alone for an hour then grab me a log. After than freeze Skype, reboot and repeat.

Post both logs here.
[BetterBatteryStats] Firnagzen:
Attached is the rebooted, one hour log. Unfortunately, the one with frozen Skype will have to wait until morning. Thank you, though, I appreciate the time!
[BetterBatteryStats] Perseus:
Blackberry Messenger could be your possible culprit. Freeze it too along with Skype if possible.
[BetterBatteryStats] jbsmith_05:
Does BBS work with CM12 on a Verizon LG G3?

I've used BBS in the past but I can't seem to get it to install correctly. Here's what happens...

1) Install BBS version 2.0 from XDA apk.

2) first run it asks to install as system app - hit Ok/install...get a successful message and to reboot

3) reboot

4) open BBS - it gives a grey/black screen says something about DUMP is Granted, this is a companion app, etc. and it only has an button for Uninstall...no way to get to the normal BBS interface. Clicking Uninstall gives a failed message...then BBS crashes on subsequent opening.

What am I doing wrong?