yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] ugh what:
I am not getting any stats at all anymore and I can't figure out the problem, and unfortunately I don't remember when this started. When I open the app it says "Computing" and nothing loads regardless of what options I pick.

I've tried clearing the app data, uninstalling and reinstalling, updating to the latest beta of the app, installing as system, revoking and reinstating root access, etc. I get no errors, just no stats ever list out regardless of how long I wait after unplugging.

Any thoughts would be much appreciated! I have a rogue app ducking battery and can't sort out what it is without my stats.

VZW Note 3 on the latest Eclipse ROM.
[BetterBatteryStats] Karpfenhai:
Please provide a full logcat to elaborate your issue, thx.

Tapatalked from my Galaxy SII
[BetterBatteryStats] nickmrad:
thnx for your reply :D although i have owned the note II for less than a year, it's good to know that it's not from the ROMs.
[BetterBatteryStats] andee39:
I want to post a txt file in the morning to check on possible issues. Just wanted to check on a few things first - I'm on 4.3, do I need to make bbs a system app? Once my phone is charged do I need to be connected to wifi while it is idle? Anything else I need to know before posting a log?
[BetterBatteryStats] henry8668:
My phone occasionally ran out of battery very quickly without any usage. It happened 3 times in last few months, from almost full charged (>=80%) to 0 in 3 hours and power it off. I overslept since I rely on the alarm in the phone. The BBS didn't capture which app is the culprit since the phone shut off. Is there anyway to preserve BBS stats after reboot?
[BetterBatteryStats] ugh what:
BBS crashes when I try to save or share a dump file or logcat. I get a java.lang.NullPointerException.
[BetterBatteryStats] kai_15:
hi guys, can see my bbs log if there is apps that highly consume on battery usage, thankyou everyone! :)
[BetterBatteryStats] AssToast:
Please let your phone idle longer, preferably 1 hour, the longer the better

Sent from my XT1033
[BetterBatteryStats] kai_15:
--->> ah ok sir :thanks: i will send again my bbs log by tomorrow morning, i will leave my phone open for the whole night.. thankyou sir for your help. lately i add more apps and i dont know if the apps are highly consume on battery life and yet i dont know on how to read bbs log.. thankyou..
[BetterBatteryStats] dimm0k:
so the first log is with wi-fi turned off for the night and the second (newer) is with wi-fi turned on. am I correct in saying that rhings are looking good in terms of battery consumption while idle?

I believe I did disable Google Now prior to both logs, if not for the first definitely for the second. however I did notice that "Location history" was turned off and was wondering if turning this on has any real effect on battery usage. not exactly sure when this was turned off.
[BetterBatteryStats] andee39:
Hoping someone can take a look at my dumpfile. I was idle for 3-4 hrs. I use an extended battery (7200 mah) and only get 2 days plus some hrs and I should be getting more, particularly since I am not a heavy user so I want to see if I can improve anywhere. I will say upfront that I use Anydo, which I have seen mentioned previously is not the greatest and I use a voicemail notification app because I don't get notification of voicemails automatically. I've set it to check the minimum amount of time available. Am currently looking for a replacement for Anydo. I am also having another issue on the battery screen. Was hoping someone would have an idea why this was happening? In the attached screenshot it shows percentage for screen, device idle, cell standby and calls but no percentage for example, browser, email, tapatalk, etc.which I was using quite a bit during this timeframe. :confused: Would anyone know why that happens?

Thanks in advance!! :)
[BetterBatteryStats] mdamaged:
Nothing wrong with your dump, it probably can't get much better.
[BetterBatteryStats] andee39:
Thanks for the quick response. :good: :good:
[BetterBatteryStats] msassounian:
Culprit Wake Locks: sns_async_ev_wakelock, smd_sns_dsps

Alright guys i'm going out of my mind with this issue. My phone will not go to sleep. at all. I notice it's two wake locks that seem to start up the moment i try to lock my phone (any time the screen is not on, these wake locks are running). I've searched all over and read probably every thread through that has these wake locks in it and i'm at a loss. I wiped the phone clean (no FDR...) reflashed the ROM, let the phone sit idle over night (twice under different conditions). Here's what happened. I attached screen shots of BBS if that helps anyone see what i'm talking about

Culprit Wake Locks: sns_async_ev_wakelock, smd_sns_dsps

#1: this was on the last unofficial build of PA. It sat all night on idle and lost 4% battery/hour. didn't sleep for one second.

#2: clean wipe, clean flash. only booted it up enough to re-download better battery stats. immediately shut off sync for my google account. let the phone idle over night again on but on airplane mode this time. Same two wake locks (plus power manager service....) running the whole time it should have been trying to sleep. I then saw that one of the wake locks was NFC related, so i turned off NFC and android beam. still the same ****.

I'm officially out of ideas.

Any help, any ideas, any direction would be much, much appreciated. Thank you guys.

the screen shots are from attempt #1. the dump file is from #2. Let me know if there's ANY other info i can give you, any other tests I can try.

Phone Info, just in case:

Droid Razr HD XT926 (verizon wireless CDMA)

rooted, unlocked BL

running AOSPA ROM

no special kernel
[BetterBatteryStats] mdamaged:
It's funny you post this, I too noticed these, it comes from the sensors, they are normal and do not waste battery (when they are normally in use, it looks like something is misusing yours), they are required, this was told to me by a very well-known developer (Tassadar).

for me they only increment while the screen is on (about 50/s), IF they are happening to you even while off (and it looks like they are), then you may have something which is keeping the sensors awake, in that case, those wakelocks are not the cause, but rather the symptom of the real culprit.

I am looking at your dump now.

EDIT: Ok, it looks like NFC is going nuts, can you disable NFC, reboot, charge a bit, and tell me if it gets better?
[BetterBatteryStats] msassounian:
first of all thank you for that incredibly quick reply.

second, unfortunately yeah I noticed the NFC thing the second time i let it idle, shut it off, rebooted, and watched the same thing happen. granted i haven't let it idle for hours (since this happened only a couple hours ago and i'm awake now haha)

but yes i did try that. issue not fixed. it might be of note that the first time i let it idle, there was no NFC affiliation.
[BetterBatteryStats] mdamaged:
You mean you turn NFC off and the NFC wakelock still appears and increments?

EDIT: I also wonder if that fingerprint scanner thing is causing it, disable google+ (go into settings>apps>uninstall updates>disable) and disable NFC, and reboot.
[BetterBatteryStats] msassounian:
no the NFC wakelock is gone, but those original two (sns_async) are still there, phone still not sleeping...

EDIT: disabling google+ right now. but just curious...what finger print sensor?
[BetterBatteryStats] mdamaged:
Boot the device into safe mode, to see if it's a userland app.

http://support.verizonwireless.com/support/devices/knowledge_base.html/66528/#enable

The fingerprint_scanner_local is from google+, I was thinking it's keeping nfc awake since some fingerprint scanners use nfc...maybe a userland app is doing it...just try the safemode thing.
[BetterBatteryStats] msassounian:
disabling google+ didn't do it.

booting up into safe mode right now...this won't disable BBS?

EDIT: so it looks like its still happening. but i'm wondering. what exactly should i be checking.

i boot, open BBS. home. sit for a few seconds. lock the screen. wait like a minute. open it up and go to BBS and check the kernel wakelocks for those two.

Just saw that the first of the two wake locks (sns_async_ev_wakelock) is gone. but the other one is still there. and the phone's still not sleeping. well, how long does the screen have to be off before it hits deep sleep?
[BetterBatteryStats] mdamaged:
Well, if it's installed as a system app, I'm hoping it won't...if it does disable it, try running it manually once in.
[BetterBatteryStats] msassounian:
still the same problem. :( fjklasdjflk;sdjfl;sd

another piece of information you should know is that on the latest PA updates there was a bug in a new feature that "had a hanging wake lock" which they allegedly fixed. to be fair, this feature isn't available for the builds for my phone, so i dont know if its even possible for that bug to be messing things up here. but either way i reached out to PA to see if this is the same wake lock
[BetterBatteryStats] mdamaged:
:\

Well, if PA cannot help, my final suggestion is to backup user data and do a factory reset.
[BetterBatteryStats] msassounian:
thank you so much. seriously. I will let you know if i resolve this. and please don't hesitate to let me know if you have any ideas for me, in a dream or otherwise. haha

and is it safe to say now that its not a 3rd party app?
[BetterBatteryStats] mdamaged:
Well, safe mode is there for that reason (to rule out 3-rd party apps), so trusting that, yes.
[BetterBatteryStats] msassounian:
Thanks. and sorry for the *probably* stupid questions. i try, but i don't know as much as I should yet, and I don't want to pretend like I do.

i'm gonna restore and older rom i have backed up and see if that gets rid of the issue
[BetterBatteryStats] BigLisy:
My wlan_rx_wake on my Nexus 5 skyrocketed from average 2 minutes to easily 30 minutes overnight, for the past few weeks.

How can I check causes that? It's my only device connected to WiFi, I disabled IPv6, UPnP, NETBIOS, etc. Zero improvement.
[BetterBatteryStats] Perseus:
What Router Model is this ? Can you turn off Guest Wireless and 5 GHZ Band on the Router ? Also issue Static IP to the phone.

Make absolutely sure that no other device is connected to the Router.
[BetterBatteryStats] kai_15:
--->> sir here is my bbs log idle for the whole night waiting for your feedback sir.. thankyou
[BetterBatteryStats] xdacalvien:
Hi, can some one check for me. I not understand how to verify. I had charge to 100%, off data, off wifi, off location, then reboot. Idle till morning wake up. Battery drain 20%....

View attachment BetterBatteryStats-2014-03-30_073137310.txt
[BetterBatteryStats] Perseus:
Did you use Blue Mail for an Hour during this Idle period ? Well 59 minutes to be exact.

Can you switch it to pull rather than Push ? GO SMS is really having a field day. Does it have to be so frequent ? Doesn't seem right to me. If it was Idle overnight, the app shouldn't be that active. Can you please see its settings for Refresh ?

I have linked [MENTION=4355376]Karpfenhai[/MENTION] 's mod quiet a few times. Please follow that. You will need System Tuner
[BetterBatteryStats] kai_15:
--->> sir i dont use bluemail when in idle mode overnight and in go sms, yes im using the apps when texting my friend before i left my phone idle for the night before i sleep.. sir what do you mean by this

"Can you switch it to pull rather than Push?" and which setting should i refresh?? is it the bbs settings right? thankyou sir for viewing my bbs log..
[BetterBatteryStats] dylansmith:
Hi there, log re-posted as requested. the GPS_LOCK kernel wakelock is still persistent. i'm on a brand new battery but it's still draining quite badly.
[BetterBatteryStats] :
Re: BatterProblems

Thanks to this app my I realized my phone doesn't go to deep sleep, question is, Why?

I have added 2 attachments providing more information about this problem and I'd appreciate any help that I can get.
[BetterBatteryStats] daro.brussa:
I read all your comments, and I'm having all the same problems, tried all the same answers, and my phone still not sleeping.

I have a XT925, with the latest legacy build (20130327), and the problem it's not peek related, as I tried reverting to a pre-peek build (not whithout doing a FULL wipe before) and still had the same problem. Nothing to do other that wait for a new build which hopefully fix this bug.
[BetterBatteryStats] Perseus:
If you did not use Bluemail during Idle then did you reboot before getting that Log ? If not then this isn't Idle Log. Skewed Results don't really help.

By that sentence I meant to Bluemail settings not BBS.

Try this thread's solution. I know its for a different device. But since its all touchwiz, I hope it will work for you.

Alternative is a harder solution to fix. First off, take a complete backup with Titanium Backup and put it on external SD. Second find your Touchwiz Stock Rom and flash it. Do not restore any apps or settings. Just Open the maps and get a position fix. If the GPS gets a lock on current position, then reboot to recovery. Flash your current Rom and Kernel. Do not restore anything at all. Do not restore Nandroid. Just see in map if you can take a GPS lock. If you do, then turn off Location Service then reboot and try BBS to see if there is the kernel wakelock. Wait for few hours if need be. When you are sure the lock is minimal, then you can restore from the Original Titanium backup. Please restore selectively. Do not restore Google Maps. Those you will have to install fresh from Play store.
[BetterBatteryStats] Perseus:
Your bcm_sdhc.3 wakelock has me stumped. But I think that might be equivalent of Bam Demux wakelock. So can you see if rebooting when you get home and rebooting when you reach Work/school helps ?
[BetterBatteryStats] :
Tried, doesn't help, its just always there! Also, I've made a 2nd partition of the sd card, and it says bcm_SDhc.3; can it be related to the SD card being linked with Link2SD?
[BetterBatteryStats] razen_kain:
Ok now i have the correct data. I'm having horrible battery life on mobile data. When I'm on Wi-Fi my battery is fantastic but if i switch to mobile data it's atrocious. I'm hoping to get some insight from the pros. Here's my stats

https://www.dropbox.com/sh/tvf1y28cdjh3t23/3UUzs3e3LX
[BetterBatteryStats] BigLisy:
It's a Netgear DGND3300. Guest wireless is turned off, I'm unable to turn off the 5ghz band. But it shouldn't be a problem, as I live in a detached house and My Nexus 5 is the only device connected to the router.
[BetterBatteryStats] Lither:
I'm using CM11 on my Galaxy S4, installed the latest version of BBS and when I launch it and click install system app, it says failed?
[BetterBatteryStats] dimm0k:
how's my log looking now? can it get better?

any idea why PowerManagerService.WakeLocks is hanging on so long?
[BetterBatteryStats] ugh what:
Any ideas to sort this out, anyone? Thanks!
[BetterBatteryStats] Karpfenhai:
Did you try clearing cache and dalvik?

A logcat can also be gathered by using a terminal emulator and typing:

$su

#logcat -d >/storage/sdcard0/logcat-debug.txt

Regards

Tapatalked from my Galaxy SII
[BetterBatteryStats] tb79:
strange night.

I had battery drain from 97% to 4% in 5 hours overnight,in PLANE-mode!

Over 20000 counts awake, no big wakelocks, only for 20minutes deleted_wake_locks.

Wtf, in Plane-mode!!!
[BetterBatteryStats] Rinoceros:
Disable Facebook push notifications.

It is keeping your device awake and trying to connect although you had your device in plane mode.
[BetterBatteryStats] j1gga84:
I don't agree:

com.facebook.orca (): Wakeups: 27

Alarms: 10, Intent: com.facebook.push.mqtt.t.ACTION_INEXACT_ALARM.com.facebook.orca

Alarms: 11, Intent: com.facebook.analytics.service.b.ACTION_ALARM

Alarms: 6, Intent: com.facebook.common.executors.bi.ACTION_ALARM.com.facebook.orca

Alarms: 0, Intent: com.facebook.orca.database.ACTION_ALARM cmp={com.facebook.orca/com.facebook.contacts.database.AddressBookPeriodicRunner$LocalBroadcastReceiver}

Alarms: 0, Intent: {com.facebook.orca/com.facebook.selfupdate.SelfUpdateFetchService}

only 27 Wakeups keep the phone awake the whole time?

Ok, Facebook is a "battery drainer" for sure but really kills the phones battery life so dramatically? :D

If you want to use it Greenify is indispensable I think ;)

As I wrote in german forum I think it is rather a problem with stucked media scanner than with another app ;)

Also this game could be the fault:

10061 (Wifi) (com.teamlava.dragon35.Dragon Story): 45.0 MBytes 83,3%

Or a mix of all ;)

Regards
[BetterBatteryStats] cinciopillo:
My "deepsleepless" Note 3

My not-rooted N9005XXUENB1 Note 3 never deep sleeps.

I installed BetterBatteryStats but, becouse of my Note 3 isn't rooted, infos shown by the app (it seems to me) are less usefull.

(take a look to the attached screenshots).

After last firmware apgrade battery drain was very high (less than 3 hours of screen on time).

So I made a factory reset.

It solved that issue (now I've 7/8 hours of screen on time again).

But after a few days I noticed that battery drain when my Note 3 isnt' used was too high.

BetterbatteryStats confirms that it never goes in deep sleep.

I disabled all vibration and audio feedbacks from every app.

I disabled all push and other kind of notification for all apps but Business Calendar an K9 Mail.

The smartphone is constantly in energy saving mode, WiFi ON, Data OFF, GPS off, Bluetooth OFF, Sync OFF, all Smart features OFF, NFC, S Beam, Air view, Air Gesture, all OFF.

Those apps are all disabled:

ChatON, Chrome, Gmail, Play Books, Play Edicola, Play games, Play Music, Google+,Hangouts, HP Print Servixe Plugin, polaris office viewer, S translator, Samsung App Widget, Samsung Calendar Sync, Samsung Link, Samsung WatchON, SketchBook for Galazy, TalkBack, TripAdvisor Weather Widget, Yahoo! Finance.

Anybody can help me to find the culprit of my Note 3's insomnia?

TIA
[BetterBatteryStats] AssToast:
Well without Root, can't help you much but judging from power manager Wakelocks, it's from apps keeping your phone awake, take a look in the Android battery stats and try to see which uses alot of cpu

Sent from my XT1033

---------- Post added at 07:27 PM ---------- Previous post was at 07:21 PM ----------

Erm I don't see anywhere writing 20k wake counts, that vbus Wakelock looks suspicious, possible kernel related problem?

Sent from my XT1033

---------- Post added at 07:31 PM ---------- Previous post was at 07:27 PM ----------

Power manager wakelocks are all app wakelocks listed as one, for more detail on which app is draining your battery look in partial Wakelock

Sent from my XT1033

---------- Post added at 07:34 PM ---------- Previous post was at 07:31 PM ----------

Log is pretty good, you probably got the log on a bad day because google+ was syncing for 15 minutes and it seldom syncs

Sent from my XT1033
[BetterBatteryStats] fndpena:
I would not suggest freezing google play services, as you'll lost gcm notifications (this means a lot of apps will no longer get notifications).

At least warn the users about the side-effects... :good:
[BetterBatteryStats] dimm0k:
Thanks for looking over my log! Hopefully it was just a random bad day... I'll run it again tonight to see if google+ does this again. Do you happen to know if Greenify would help things if Google+ does keep on misbehaving?
[BetterBatteryStats] AssToast:
You could try, I don't greenify a lot of apps

Sent from my XT1033
[BetterBatteryStats] karar2012:
slimport_wake_lock

nexus 4, non rooted. slimport wake lock keeps device awake 100% of time. any idea why how and what to do?

bbs dump attached.
[BetterBatteryStats] mikelulz:
Note 3

I have an AT&T Galaxy Note 3 newly rooted. Xposed framework just to fake official state on stock rom. Fixed gps issue by replacing recommended gps system files. Seems like my device is barely ever in deep sleep now. Any idea to why? Thanks.
[BetterBatteryStats] ugh what:
Thanks! I got the logcat that way and have attached it here--zipped because it was too big otherwise. Just to rehash so people don't have to go back a few pages, I'm trying to sort out why BBS gives me no stats at all. It doesn't matter how long I wait or what options I select, it sits there with no stats and just says "0 s Bat: 0% (-% to -%) [---%/h]. It used to work and no longer does, but unfortunately I'm not sure when that changed so I don't know what caused it. I'm running Eclipse on a Verizon Note 3. Thanks to anyone who can help.
[BetterBatteryStats] Perseus:
Remove Zooper & Ultimate Custom Widget. Turn off Location Service completely.

I'd have liked to see Partial Wakelocks. Did you connect the phone to your TV ? If so then reboot after disconnecting.
[BetterBatteryStats] karar2012:
1. how do I log partial wakelocks?

2. I never ever connected my device to a TV. that's what's so frustrating... I have no idea where this slimport wakelock came from, but it's draining my battery heavily(phone is never actually "sleeping". constantly awake because of slimport wakelock(BBS watchdog confirms this BTW).
[BetterBatteryStats] dEris:
Some ROMs have wakelock blockers. The ROM i'm on has it. Perhaps try that?

-------------------------------------------------------------------------

[DEVICE : N⁴] [ROM : crDROID] [KERNEL : STOCK-OTG]

[LAUNCHER : NOVA] [CARRIER : T-MOBILE]

[SCREENSHOT : MAR.25.2014]

​
[BetterBatteryStats] karar2012:
interesting. what ROM are you on? I'm on vanilla
[BetterBatteryStats] Karpfenhai:
Okay, something seems to be messed up with your Rom:

W/PackageManager( 995): Not granting permission android.permission.DUMP to package com.asksven.betterbatterystats_xdaedition (protectionLevel=50 flags=0x88be46)
W/PackageManager( 995): Not granting permission android.permission.DEVICE_POWER to package com.asksven.betterbatterystats_xdaedition (protectionLevel=2 flags=0x88be46)
W/PackageManager( 995): Unknown permission android.permission.BROADCAST_PACKAGE_ADDED in package com.sec.android.app.filtermanager

I think you don't grant permissions to 3rd party apps, maybe you find an option somewhere in your developer settings.

Yeah looks like that, maybe selinux?

Which customizations are active on your cyanogen iteration? Some company security tools or similar?

Good luck with that ;)

Tapatalked from my Galaxy SII
[BetterBatteryStats] Lither:
Could someone help me, I'm using CM11 on my Galaxy S4, installed the latest version of BBS and when I launch it and click install system app, it says failed?
[BetterBatteryStats] razen_kain:
Make some room on your system partition

---------- Post added at 08:12 AM ---------- Previous post was at 08:10 AM ----------

Can anyone give me some help with this?
[BetterBatteryStats] josepr2012:
Interesting, been changing roms and kernels to try to find out what is going on with battery and finally I think I need a new one.

Charged my phone and let it On with mobile data and wifi off ...even when it was sleeping for the whole time wifi shows as running and battery drained 30% in 6 hours with no relative wakelocks....somebody is steeling the battery juice or is just a bad battery ?:confused:

Sent from my SGH-I317M
[BetterBatteryStats] josepr2012:
Addition to previous post...

Sent from my SGH-I317M
[BetterBatteryStats] razen_kain:
Go into system settings/Wi-Fi, hit menu/advanced and uncheck "let apps scan for Wi-Fi even when Wi-Fi is off"
[BetterBatteryStats] Lither:
I've enough internal storage, available 8.21GB, so I don't why it won't install BBS to system app when I click on it, only giving me "failed"