yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] Deni_NS:
[MENTION=1330150]chamonix[/MENTION] as we talked yesterday i had some bug... Well i think it's, a bug...

I charged the phone, turned off wifi, turned off mobile data and clear ram on phone, then i went to sleep.

this is what i have seen when i woke up... AMAZING... turned off wifi, turned off mobile data and clear ram on phone and phone went crazy...

https://www.dropbox.com/s/btmqytoyewahi1e/BetterBatteryStats-2013-08-18_123447063.txt

4 days (without restarting the phone) was good with going on location and turning off history and reporting and on fifth day this happend...

maybe some others [MENTION=4229457]It_ler[/MENTION] or [MENTION=4355376]Karpfenhai[/MENTION] have something to say too?
[BetterBatteryStats] Zibri:
There is something wrong.

From theis log and from the app, it seems the phone has been on for 13 hours.

It has been for more than 19.

Stock rom, stock recovery, official status and 0 counter on I9505.
[BetterBatteryStats] chamonix:
As all counters agree on 13 hours the only explanation I can give is that you have had a soft reboot somewhere in between. Based on the information you provide the phone has booted 13 hours before the reading was taken
[BetterBatteryStats] It_ler:
Nlp wakelock and many alarms for GSF.

Nothing unusual. Check if all Autostarts for GSF are disabled like described by Casanoaa.
[BetterBatteryStats] chamonix:
Sorry but I don't get what you are trying to tell us
[BetterBatteryStats] Zibri:
I would think the same, but that didn't happen. The stock battery app was indicationg the right time.
[BetterBatteryStats] Deni_NS:
I thought that I found a way to disable Nlp wakelock...

And i thought if mobile data and wifi is off then I wouldn't have Nlp wakelock...
[BetterBatteryStats] chamonix:
well if mobile data is off I guess you won't get any location history either
[BetterBatteryStats] Kocai:
Since search is unavailable at the moment, I'm sorry if this has been mentioned before.

Lately BBS can't detect since charged and since unplugged stats. It always fall back to since boot even though I plugged and unplugged my phone using the wall charger; charged my phone until 100%.

My ROM is stock JWR66V for Nexus 4. I've been using different custom kernels for the past 2 days but the behavior is also the same with stock kernel.

Is there any log that could help identify what's causing my issue?

Thank you in advance.

Sent from my Nexus⁴
[BetterBatteryStats] universed:
Overall List Of Battery Draining Apps and Services

Hey All,

Been following the thread on and off for the last year or so. I just upgraded my Google Nexus Prime from 4.1.2 to 4.3 and have started to receive some serious battery drain. Its only been a couple of days so have yet to let the ROM settle in.

I seem to remember there was a document or a page somewhere that basically summarized all the battery draining APPS, services and settings. I looked on the first 2 pages but could not find anything. Is there one page or document dedicated to these problem children and if so can someone give me the link?
[BetterBatteryStats] Casanoaa:
Look in post 3 about gsf wakelocks. I have a list of disabled apps.
[BetterBatteryStats] hawkdown77:
This list is good?? Cause i see factory mode...this may cause problem about dial codes
[BetterBatteryStats] Casanoaa:
I don't need dial codes.
[BetterBatteryStats] hawkdown77:
you might not even need, however others friends may need it and not have .. I think it would be good to put a description next to each app and report functionality will be lost.
[BetterBatteryStats] den_breacker:
The problem was caused by the Sucscribedfeeds.provider. After re-enabling this one, gmail works again !
[BetterBatteryStats] alkhafaf:
Hey guys

Anyone having this first wakelock ?

I am using 4.3 in nexus 4

Help is appreciated

Regards
[BetterBatteryStats] azeem40:
What is your screen on time? Try disabling haptic feedback and touch sounds.
[BetterBatteryStats] red de0392:
Guys,

I'm facing a strange problem, when eva i charge my phone say at abt 50 percent...it charges very slowly and when i restart my device it shows abt 100 percent and then loses charge very fast till about 80...

Any suggestions to fix this problem ?￼
[BetterBatteryStats] Karpfenhai:
Rule 1, no dump no support...

Beside the hint above, any voip app installed like viber?

Tapatalked from my Galaxy SII
[BetterBatteryStats] Zibri:
Charge it to 100% with the 2A power suppply. Then go to phone and enter *#0228# and tap quick start.

After a while the charge should be LESS than 100%. Disconnect and reconnect the charger and let it charge to 100% again.

This is the correct way to reset the battery range indicators.
[BetterBatteryStats] alkhafaf:
OK bro.

Yeah actually I am using viber.

Can u tell me how to share the dumb file? Thanks.

---------- Post added at 10:21 PM ---------- Previous post was at 10:19 PM ----------

My screen on time is about 2:30 hours... And and wake time is 3:30 hours.
[BetterBatteryStats] mddexter:
From within the app, push menu button, and select share. Then, pick text dumpfile, and push save. File will be on your sdcard, and the name will be something like this:

BetterBatteryStats-2013-08-18_155404645.txt
[BetterBatteryStats] Melhisedek:
Just wonder about an app that was recommended earlier in this thread (can't find it for the life of me) that would turn off your wifi when screen was off or something similar. My router is killing my battery (wlan_rx) and I wanted to try out that app
[BetterBatteryStats] nitin_ko:
DS battery saver

https://play.google.com/store/apps/details?id=com.rootuninstaller.batrsaver&hl=en
[BetterBatteryStats] chamonix:
Betterwifionoff, you can find it on gplay
[BetterBatteryStats] chamonix:
Any chance you may have greenified BBS? If not please post a log cat showing the unplug event
[BetterBatteryStats] gaich:
You can check here as well.
[BetterBatteryStats] nitin_ko:
Off late my Droid razr xt912 has been giving me very bad battery backup, am losing 10% per hour or even more at times. attached is last nights stats , wifi was off , no calls were made. i dont have viber installed.

hope to find the rogue app/issue :(
[BetterBatteryStats] artttur:
Hi.

Can some one tell me is something wrong with my phone?

Regards
[BetterBatteryStats] pjadec:
How old is phone battery? battery maybe faulty?, i didn't see any other problems maybe somebody may see them.

Only idle log and read OP, thanks
[BetterBatteryStats] Karpfenhai:
For viber, go to its settings and Untick use system sounds, this should bring down audio_out wakelock.

Tapatalked from my Galaxy SII

---------- Post added at 10:16 AM ---------- Previous post was at 10:14 AM ----------

Your stats are brilliant, does the drain persist in flight mode? If yes, go for a new battery, if not, your Wi-Fi or signal reception might be responsible.

Tapatalked from my Galaxy SII
[BetterBatteryStats] nitin_ko:
i purchased the phone in may last year but it was a used phone. so no sureshot way to know the exact usage.

will keep phone in flight mode tonite and and report the result. wifi is pretty strong and i do not have an network issues, thou the signal bar shows one or two towers. am on stock JB 4.1.2
[BetterBatteryStats] artttur:
OOoo.I'm sory. I'm not so well in english. What I do wrong.Or what I have to do? leave the phone alone 1-4 hours and then send You new dumpfile ?

Thank You
[BetterBatteryStats] Kocai:
Apparently without my knowledge, greenified put BBS in pending list of hibernated apps, whatever that is. I'm sorry for the trouble.

Sent from my Nexus⁴
[BetterBatteryStats] chamonix:
No problem. I added that to the FAQ as this question was raised a few times already
[BetterBatteryStats] REH1:
14 hour idle log. However like I previously stated... my issues aren't when idle they're when in use.
[BetterBatteryStats] hawkdown77:
Hi.. do you have the best settings for use it?? Thanks
[BetterBatteryStats] chamonix:
Well I would say the default ones are pretty good but you can tweak stuff like keeping wifi on while streaming in the advanced settings. I recommend that you check the support thread here on xda if you have specific questions
[BetterBatteryStats] chamonix:
I would suggest that you turn on the root options in advanced prefs to make to most of bbs.

This profile shows about 8% of awake when idle so there is still potential.

But as you seem to have rather a problem when using your phone then question would be what the typical use would be. High CPU frequencies as well as the display (it's brightness) would be the biggest drivers.

What screen on time do you get and what are your expectations?
[BetterBatteryStats] REH1:
Typical use would be Facebook app, slight use of games etc. Like I previously stated in some other posts, when I use the Facebook app I can watch my battery drain like 1% per minute using facebook. Display brightness is automatic. CPU frequencies are on default. I do use Slim Bean 4.2.1 also. I will have an opportunity tomorrow to show what a typical usage day is. If you look back at my first post on this thread that is actually what I originally posted instead of an idle log.

Thanks
[BetterBatteryStats] chamonix:
I looked at the previous post and it looks OK from the CPU scaling knowing that you were using the phone. The profile is pretty network intensive so that would be, beside screen, the first thing to look at. Unfortunately there is no way to tell more about what app causes most of the traffic as the root advanced prefs are not enabled.

You didn't answer to my question about the screen on time you get and the expectations you have

Edit: typo
[BetterBatteryStats] REH1:
I have enabled root options in bbs now, so the next log that I post it will be on. The numbers for the screen on time aren't coming to mind because I haven't used my phone enough the past 2 days to watch it, but it is not good. I'll try to get a short log here in a bit with typical average usage.
[BetterBatteryStats] darkgodz:
Whoops.. I KNEW I forgot to get some bit of info. I'll keep an eye on it if it happens again. Seems to have stabilized after going to a modded kernel instead of the stock one.
[BetterBatteryStats] hoanglienxo:
help me please!!!

you please help me to solve this problem! s4 i9500 phone battery damage
[BetterBatteryStats] azeem40:
Provide an idle log. 1-4 hrs of no use and then post a dump. I can't tell anything about your problem from your current screenshots.
[BetterBatteryStats] hoanglienxo:
thank you! I will give you back after 1 hour
[BetterBatteryStats] azeem40:
4 hrs is recommended.
[BetterBatteryStats] hoanglienxo:
some rstabing

Here are statistics being 1 hour! 4 hours will be sent to you
[BetterBatteryStats] nitin_ko:
here are the details in airplane mode

drain is still there ? so does this mean the battery has gone bust ?
[BetterBatteryStats] GermainZ:
You used the device too much, screen on time shouldn't be higher than 1m (especially for <1h logs). That being said, your drain seems a bit too high even tho there isn't much going on (you can try syncing FB manually, but that seems like all you can do).

Awake time is really low, and battery drain way too high. So yeah, I'm guessing it's a problem with your battery/hardware (although it could also be your ROM).
[BetterBatteryStats] nitin_ko:
hmm, i am on stock, any tips you would suggest. should i flash stock again. I am rooted .

xt912
[BetterBatteryStats] artttur:
Is it OK now? Please help.
[BetterBatteryStats] GermainZ:
You could try, but I don't see why it would be a problem since you've always been on stock. :)

Looks good. Not sure what the *backup* wakelock is, if you have autobackup (to the cloud) turned on you can turn that off if you want/if you don't need it.
[BetterBatteryStats] hoanglienxo:
I have turned off automatic synchronization of all but the situation is still not better. Please help me
[BetterBatteryStats] pjadec:
Still same what GermainZ said. "You used the device too much, screen on time shouldn't be higher than 1m (especially for <1h logs). That being said, your drain seems a bit too high even tho there isn't much going on."

Maybe there are hardware or battery problems?. When phone is good condition current drain is about 0.3-0.6 %/h, but then phone doesn't have wifi on or internet connections or bt on or GPS on and phone is 2g.
[BetterBatteryStats] Slem.Prod:
Deleted all previous battery apps, using only this one now! Ty
[BetterBatteryStats] azeem40:
Google quick search box seems to be causing wakelocks. Attached is my idle log for 3 hours. How do I prevent its wakelocks? Thanks.

P.S. This wakelock drained my battery by 6% in only 15 mins.
[BetterBatteryStats] lanwarrior:
I have the Galaxy S4 Active and have problem with battery, whereby when I left it overnight (unplugged):

- battery will drain 20% in just 8 hours

- wlan_rx_wake and deleted_wake_lock is waking up the phone about 3 hours of those 8 hours!

I tried to review the list of Partial and Kernel Wakelock and the dump, but couldn't figure out what cause the battery drain.

I have attached the screenshot and stats dump (JSON and TXT). Can anyone assist?
[BetterBatteryStats] superbobup:
[MENTION=1330150]chamonix[/MENTION] new Google Play services released. IIRC this contains the fused location provider, and they stated the update brings a low-power mode option. Perhaps this will help with the nlpcollector wake lock.

Link: http://android-developers.blogspot.com/2013/08/google-play-services-32.html?m=1
[BetterBatteryStats] azeem40:
Try turning off Wi-Fi and putting on airplane mode when not in use and post another dump. This time, make sure the screen on time is 1minmax.
[BetterBatteryStats] chamonix:
Your analysis was correct for the biggest drainer. That wakelock is caused by your phone reacting on multicast/broadcast (often upnp) packets. If you have been on an access point that you can control there are a few hints in the FAQ on how to handle that. The easiest way and if you can not start configuring the access point would be to avoid wifi being on when unused. You can do this by hand or use a helper tool like betterwifionoff (full disclosure: I am the author and there is a support thread here on xda, bwof is available for free on gplay).
[BetterBatteryStats] lanwarrior:
I will put the phone in airplane mode now.

If I put it in airplane mode, will BBB also shows WHICH apps ATTEMPTS to connect to the Internet and waking up the phone? I am just wondering, since if put it in airplane mode, how will this help troubleshoot the issue.
[BetterBatteryStats] yhrn:
Very interesting! I will try to change that. Just need to get hold of that admin pwd for the office DIR-655 as I just retired the one I have at home. Will report back later.
[BetterBatteryStats] suku_patel_22:
Is alarms going to work only on rooted phones?

Assuming it is alarm manager dump

Sent from my HTC Desire S
[BetterBatteryStats] chamonix:
That is correct, I parse su -c 'dumpsys alarms'
[BetterBatteryStats] zicovsky:
chamonix,

just bought the version from the market to support you.

you unwillingly help everyone in this thread and never asks for anything, i hope others buy it too. you deserve it, great job.
[BetterBatteryStats] chamonix:
Version 1.4 out for testing

I just released version 1.4 (see post #2).

Please give me feedback about:

- WIfi scanning / locked showing wrong figures in "other"

- Kernel wakelocks working and showing the right times/counts

- Alarm (please test on unrooted phones too)

I will publish to the market over the week end if there are no major regressions.

Thanks for your support!
[BetterBatteryStats] brandall:
Hey Chamonix, great to see the progress on your app and the stats show you've passed a quarter of a million views - good work, you deserve it.

I'm going to drop you a pm regarding narrowing down the rouge wakelocks which waydownsouth has helped me capture in shell, but I just lack a snippet of knowledge which I'm sure you'll be able to assist with.

On its way to you shortly.
[BetterBatteryStats] 18rmiller:
http://db.tt/2SKgN27q

http://db.tt/NkmZXuam

Can someone take a look at this for me. I ask because I get good battery life except for when I'm actually doing anything on the phone. I can literally look down and my percentage goes down a couple points per minute. Both files are the same except one was uploaded on my phone the android way and the other was done the regular way
[BetterBatteryStats] suku_patel_22:
Alarms force closing on my non-rooted phone.

Need to add a check to not display it on non-rooted phones

Added logcat...

Sent from my HTC Desire S
[BetterBatteryStats] telefantastik:
I've got an alarm with the highest number of wakeups, and it's just "ccc"; can't figure out what it is...
[BetterBatteryStats] slig:
Hi ! Testing 1.4 on my SGS2 XXKI4 non-rooted

- Wifi lock / scan - none of this is shown any more in "Others", there is just "WiFi on" (also there is no WiFi multicast on)

- Alarms - app crashes after few seconds of "Computing"
[BetterBatteryStats] yhrn:
I see the same under other. Alarms working fine for me though (rooted phone). Will look closer into kernel wakelocks later to see if they correspond to /proc/wakelocks but at a first glance they look fine.

SGS2, Androidmeda
[BetterBatteryStats] chamonix:
Thanks for the details. In fact the error handling for non root is the problem (a running thread does not accept runtime exceptions) : and that's what I used. I'll revisit that
[BetterBatteryStats] bryant_16:
Hi there, just downloaded this app. I have a facebook wakelock, what does it mean?
[BetterBatteryStats] chamonix:
I see gosms doing some stuff in the Internet and jiubang doing the same. Under bad coverage conditions that may lead to quite some unwanted time awake
[BetterBatteryStats] 18rmiller:
can someone give me an example of a good setting and a bad setting under all the catagories in BBS so i can try to find if I have an issue. I read through the help but dont quite understand exactly what to look for
[BetterBatteryStats] chamonix:
Hey Brandall!

Long time no see, I hope your are doing well.

Thanks for the flowers :) I'd be happy to help wherever I can
[BetterBatteryStats] chamonix:
Released 1.4.1

V1.4.1 fixes the FC for non-rooted devices, no other changes.
[BetterBatteryStats] iakoboss7:
thank you!!, i found out that go sms "go chat plug-in" was doing it so i deleted it (googled the name and that came out easy). but i cant find what is that "com.jiubang.intent.action", does anyone know what app (or setting?) that is?
[BetterBatteryStats] backhead92:
Do you use Go Locker?

Possible apps to suspect (based on : com.jiubang) https://market.android.com/search?q=com.jiubang&so=1&c=apps
[BetterBatteryStats] :
I have Google play services 3.2.25 installed as of now, does it already have these improvements? And, moreover, are these settings to be used by app devs in their apps, or must they be set up by the user?

Note 2 N7100 - Alliance Rom DMA6 - Perseus Kernel
[BetterBatteryStats] superbobup:
To be honest, I'm not entirely sure. I also have 3.2.25 and I'm not sure if this is the updated version (I believe GP services pushes silently) or a mom updated version.

I'm also no dev of any app, but I'm fairly sure that apps must implement these functions on their own AKA add the necessary calls for low-power, etc. Since the WiFi scanning location seems to be system related, my only guess is that the android system will select the low-power mode. How it's done...no clue lol. Unfortunately all of this is just a guess, but I'm sure other developers will know more and hopefully they correct if I'm wrong :D
[BetterBatteryStats] azeem40:
I disabled Google quick search box but it disabled all of Google now. Is there a way to keep the voice search but disable the Google search box?
[BetterBatteryStats] lanwarrior:
Can you point me to the FAQ that how to control the access point to stop or reduce the multicast/broadcast?

I read the whole FAQ section before posting and the link to the only section that deals with WLAN only suggest that I run a sniffer. What sniffer would you recommend for the Android phone?

Just FYI, I have the ASUS RT-N66U and I never had this Wifi wake-up problem with my Galaxy Note, which was also connected to the same router. So I am wondering what is in the S4 Active that causing this.

I am rooted and debloated.
[BetterBatteryStats] azeem40:
I looked at your stats once more and see that Google services framework and maps are keeping your phone awake. For maps, try tuning off location services when you are not using it. For gsf, follow this: http://xdaforums.com/showpost.php?p=35755907&postcount=11160
[BetterBatteryStats] lanwarrior:
Just want to point out that this information, though it was useful, no longer applies to 4.x.x

In my Galaxy S4 Active, the screenshot is different and there are only 2 settings:

1). Use GPS Satellites

2). Use wireless networks

If I uncheck both, Google Maps no longer works. Actually, Google Maps have an error pop-up asking me to enable the above.
[BetterBatteryStats] azeem40:
Three reason is because you disabled everything. Try disabling location reporting only.
[BetterBatteryStats] lanwarrior:
I have disabled Location Reporting from the Maps app settings and Maps still working just fine.

However, the FAQ shown above shows the settings from Settings --> Location Services. Disabling that in 4.2.2 disable pretty much everything.

I am just saying that the FAQ on this needs to be updated. ;)
[BetterBatteryStats] azeem40:
It only disables the navigation. You can still use the maps app. Besides, you can just enable location reporting whenever you need the navigation.
[BetterBatteryStats] lanwarrior:
That was my thought, but when I read the stats, I saw that the wlan stuff run more often than the GSF and Maps:

=========

Wakelocks

=========

"wlan_rx_wake" (): 1 h 41 m 3 s (6063 s) Cnt:(c/wc/ec)4212/0/4212 27.4%

"deleted_wake_locks" (): 48 m 55 s (2935 s) Cnt:(c/wc/ec)41992/0/2394 13.2%

NetworkLocationLocator (com.google.android.apps.maps.Maps): 34 s (34 s) Count:7 0.2%

NetworkLocationCallbackRunner (com.google.android.apps.maps.Maps): 1 s (1 s) Count:64 0.0%

AlarmManager (com.google.android.apps.maps.Maps): 1 s (1 s) Count:41 0.0%

wlan_rx_wake woke up 4,212 times while deleted_wake_locks woke up 41,992 times!

Is there ANY way for me to find out which apps OR what is causing these 2?

I tried to look for a sniffer app from Google Play but couldn't find one that does not requires a separate hardware.
[BetterBatteryStats] azeem40:
Deleted wakelocks is just a placeholder for all the wakelocks that no longer awake your phone. Wlan rx awake is the Wi-Fi being on. Turning off Wi-Fi each night will prevent that wakelock.
[BetterBatteryStats] matrixzone:
Eagerly waiting for the next version
[BetterBatteryStats] lanwarrior:
I understand that, but something is causing all the wakelocks that needs to be keep getting deleted, causing tens of thousands of wake-up, which does drain my battery.

My guess is this related to the wlan_wake thing.

I am going to post more states since I have put the phone in airplane mode for the last 1.5 hours... BRB..
[BetterBatteryStats] azeem40:
The deleted wakelocks is not a wakelock at all.
[BetterBatteryStats] lanwarrior:
My understanding is that something (whatever it is) created a wakelock, which later no longer used and thus deleted.

This something keep waking up the phone using wakelock, then no longer use it and deleted. This is my thoughts on how the deleted wakelock is related to wakelock.

So I need to know what caused the wakelock that within a short period getting destroyed, then creating again, then getting destroyed again, etc.
[BetterBatteryStats] azeem40:
It is a collection of all the deleted wakelocks. It doesn't create and recreate those wakelocks within that deleted wakelocks collection, AFAIK.
[BetterBatteryStats] lanwarrior:
OK, I put the phone in Airplane mode for 1.5 hours and attached is the stats again.

The deleted wakelock is still there and taking the most time. Using TB, I uninstalled (NOT FREEZE) whatever BUILT-IN app I can find, like S-Health and WatchOn. I then pull out the battery.

I turned on connection (Wifi and Internet) and will leave the phone alone to see what happened.

BTW, can anyone see anything else in the new attached stats that caused the battery drain even when the phone is in Airplane mode?