yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] Kenepo:
Help appreciated

Hi everyone, thanks for the awesome thread and the work done with BBS. I need some help trying to find what's causing me a bit of a drain during deep sleep. These last 3-4 days I've done everything I can trying to get the best deep sleep for my phone. Unfortunately I haven't been able to get much improvement even by deleting most of the unused apps, greenifying others, kernel tweaks and many other things I usually do for getting good battery life.

When my phone's deep sleep is at its best, usually it drains about 1% every 5-6 hrs but right now is loosing from 1-2 % per hour. In an 8 hr overnight deep sleep the phone drops from a 100% to 84-82%. I've tried everything I could to find what's causing this drain but I honestly have no clue. So If anyone can take a look at these screenshots and the dump to provide any help it would be appreciated. Please report anything that looks strange or out place to you. I think the phone could improve a bit on screen on time too.

These screenshot are taken from GSam, BBS, CPU Spy and the default battery monitor. All the info in my signature is update too; the kernel, ROM, modem are the ones I'm using on a 1650 mAh battery. If possible please quote you replies or mention so I get a notification. Many thanks in advance.

Dumpfile download
[BetterBatteryStats] Meleagru:
For some reason I can no longer see kernel wakelocks in BBS. Any idea as to why that would happen? I'm suffering from some nasty battery shortage and have no idea which app exactly is causing, it's very irregular, since it comes and goes and I basically use my device pretty much the same way with no new apps installed.
[BetterBatteryStats] itsmyname:
Having problems on my unrooted and unflashed UK S4 with battery drain. My Original thread is here and I got told to take a dump off betterbatterystats and post it here;
[BetterBatteryStats] It_ler:
Please provide an IDLE dump = doing nothing with the phone (screen off all the time) for at least 4 hours.

Then we may find unwanted battery drainers.
[BetterBatteryStats] itsmyname:
OK thanks, should I keep my normal functions i.e. gestures etc on as well as Wi-Fi?
[BetterBatteryStats] It_ler:
Yes, if it's your normal setting.
[BetterBatteryStats] chamonix:
Have fun! Where have you decided to go?
[BetterBatteryStats] Karpfenhai:
I'm already there, Wi-Fi is quite bad here, but no roaming contract...

I'm the end, only Turkey was left.. in terms of price...

But weather...

Back to topic... :)

Tapatalked from my Galaxy SII
[BetterBatteryStats] Casanoaa:
Yeey my parents are from Turkey :) last year I also was in Antalya.

Sendt fra min GT-I9300 med Tapatalk2
[BetterBatteryStats] itsmyname:
Ok kept it on sleep for more than 4 hours;
[BetterBatteryStats] bso44:
Can someone please take a look at my dump and tell me how I can stop the wakelocks? More specifically, I'm wondering about "GmailProviderProviderChangedBroadcastWakeLock" which I've never noticed being that high before. "NlpCollectorWakeLock" and "NlpWakeLock" are high too but those seem to be pretty common.

Here's the BBS dump:

http://d.pr/f/NiLU
[BetterBatteryStats] pjadec:
But. Why is wifi on. That is one of awakelocks.

---------- Post added at 02:10 AM ---------- Previous post was at 02:00 AM ----------

But why is wifi on, and then location and sync.

Is "Google now" app in your phone because it maybe one of the cause those.

NlpCollectorWakeLock (Google Services): 1 h 20 m 38 s (4838 s) Count:1686 8.5%

NlpWakeLock (Google Services): 42 m 1 s (2521 s) Count:526 4.5%
[BetterBatteryStats] itsmyname:
Because I want to use the phone what it was designed for? I use whatsapp as my main source of communication, without Wi-Fi I don't get any notifications while I leave my phone in sleep mode in my pocket or wherever
[BetterBatteryStats] bso44:
I have wifi on because I need a data connection at all times and yes, I have Google Now. I'm not interested in eliminating every single wakelock.

Just wondering specifically about the "GmailProviderProviderChangedBroadcastWakeLock" one. Obviously it's for Gmail but there's another one called "*sync*_gmail-ls" which I'm assuming is for Gmail syncing but that wakelock isn't too bad.
[BetterBatteryStats] mahendru1992:
anyone?
[BetterBatteryStats] Casanoaa:
Provide an idle log. I dont understand what you ask for?
[BetterBatteryStats] hisee:
Ril and baseband is matching , trid diff baseband but still too much battery drain
[BetterBatteryStats] vladimirheroj:
Hi guys,i have a 45 min long wakelock caused by audioout2,and i havent listened to music...Any suggestions?
[BetterBatteryStats] It_ler:
Just a guess ... have you VIBER installed?
[BetterBatteryStats] vladimirheroj:
Nope...just Appolo which wasnt being in memory by the way...I just have enabled touch and lockscreen sounds..
[BetterBatteryStats] It_ler:
Disable all sounds and check again.

No other VOIP app (e.g. Skype, LINE, etc.)?
[BetterBatteryStats] vladimirheroj:
Just skype,but not runing..I have just hibernated it just in case it gave me problems but i doubt..also i just have turned off all sounds and will report back..thanks mate again ;) !
[BetterBatteryStats] It_ler:
Looking quite OK IMO.

Your biggest drainer is Facebook.

If you want better battery life, change its settings (disable all notification, syncs and updates), greenify it, use an alternative app (e.g. FriendCaster), or use the web interface in a browser.

And think about getting a new/bigger battery ;)
[BetterBatteryStats] kevinrubio1:
I'm seeing improvements! Thanks you guys! I used to lose 15% over night, now look at this!
[BetterBatteryStats] hisee:
9-10% drain is ok?

Sync, update, notification set to manually..
[BetterBatteryStats] It_ler:
Your wakelocks and alarms are looking quite OK for your time running on battery.
[BetterBatteryStats] Casanoaa:
Uninstall facebook and see difference.

Sendt fra min GT-I9300 med Tapatalk2
[BetterBatteryStats] Waldos:
Hi again, i learned a lot with you guys. I had to return to the Stock 4.2.2 JDQ39 (all clean, no user data) becuse i want the OTA update :)

I applied the gfs fix with autostarts, but i can see this entries on the app:

No more entries after Secret Codes, thats normal?

And i Greenify Currencies, Chrome, Diamon Dash, Endomondo, Facebook, Falcon Pro, Google+, Hangouts, TuneWiki, Vine and Youtube.

I have a great battery life, ~0.4% per hour in IDLE :D

Again, thank you guys for your excellent and great work here! Best of wishes for you!
[BetterBatteryStats] Casanoaa:
I cant see anything wrong ? Good work
[BetterBatteryStats] Karpfenhai:
Did you uncheck all of these?

Damned, upload fails...

Ok, finally..

Tapatalked from my Galaxy SII
[BetterBatteryStats] Waldos:
Thank you! Thats the solution. :D:D:D:D
[BetterBatteryStats] chamonix:
I wanted to followup on your suggestion / hint. As I wrote in my previous reply my doubt about that perm being reserved for system-apps was confirmed by a little research. As you can see here and here that permission can not be used to avoid the use of su in BBS as bbs is signed with non-system keys.
[BetterBatteryStats] chamonix:
For those interested: no problem with BBS on 4.3
[BetterBatteryStats] itsmyname:
Bump?

Uploaded the dump in a text file to make for easier reading
[BetterBatteryStats] Xoib:
Ok thanks for the follow up ! :good:
[BetterBatteryStats] Casanoaa:
I cant see much because you arent rooted.

But disable autosync google account and gmail.

Wlan_RX is your network traffic in background .

Powermanager is a collection for all kernel wake locks.

Sendt fra min GT-I9300 med Tapatalk2
[BetterBatteryStats] itsmyname:
I don't wish to root at the moment. Is there no way I can keep those on without losing around 1% of battery every 10 minutes? I mean that is what the phone was designed to be used for?

Also for some reason I have lost wlan_rx_wake and now deleted_wake_locks appear
[BetterBatteryStats] mjdavis871:
You guys rock....with your help, I have the following results with my stock battery on my Verizon GS4!

I did take it off charger before bed, and had a 2% drop in battery in 7 hours...was only awake for 9mins.

Thanks guys!

Sent from my Eclipsed Galaxy SIV
[BetterBatteryStats] samdal:
What is sec-battery-monitor? Have searched and can't find description.
[BetterBatteryStats] Casanoaa:
İts same wakelock it appears when you disable WiFi.

You can maybe also disable some apps in settings / all apps.

You can find disable list of apps in op. Look for Gsf minimizing post.
[BetterBatteryStats] legalizacion_24:
Please translation into Spanish would be great, thanks

---------- Post added at 10:01 AM ---------- Previous post was at 09:59 AM ----------

Please translation into Spanish would be great, thanks
[BetterBatteryStats] Casanoaa:
I dont speak spanish, but have used google translate here ;:))))

Su misma wakelock aparece al desactivar WiFi.

Puede tal vez también deshabilitar algunas aplicaciones en entornos de aplicaciones / todos.

Usted puede encontrar la lista de aplicaciones desactivar en op. Busque Gsf minimizar mensaje.
[BetterBatteryStats] Att.Fan1982:
I recently noticed a slight decrease in battery life and was wondering could you bbs analysts take a look at me dump file to figure out the culprit of my battery drain. Thanks!

http://db.tt/SslXP8eg

Sent From An Incognegro Galaxy Note 2
[BetterBatteryStats] Xoib:
Just to let you know that I doubt that you can obtain better result with WIFI ON / AUTO-SYNC OFF and Facebook app.

My next step would be to improve my ratios of sync interval when AUTO-SYNC is ON to not reach 1%/h.

TL;DR : 0.5%/h without greenify.
[BetterBatteryStats] mahendru1992:
What i mean to say is how to prevent the wlan_rx_wakelocks? Because i have a high battery drain when i have my wifi on.
[BetterBatteryStats] chamonix:
Please check the FAQ in the first posts, wlan_rx is explained there
[BetterBatteryStats] mahendru1992:
Well hardly anything is mentioned in the FAQ. It just advices to switch off the wifi when not in use. Well I don't want to do that. And besides those wakelocks get converted to the deleted wakelocks. And then they drain the battery even more.

And I did check the github link. It recommends using a sniffer. Well I'm really a Noob here. Not really into technical things.

Perhaps if u could exactly tell me what to do, it'd be greatly appreciated.

Thanks
[BetterBatteryStats] Xoib:
I checked the FAQ and look what I got with Wifi ON like you want :

http://xdaforums.com/showpost.php?p=43971506&postcount=18028
[BetterBatteryStats] Kenepo:
Completely ignored

Help??? Anyone???
[BetterBatteryStats] islipfd19:
Do you have the option "Keep Wi-Fi on during sleep" set to 'Always' in the 'Advanced Wi-Fi' menu?
[BetterBatteryStats] itsmyname:
So what can I do about my wlan_rx_wake problem. I've read the FAQ on the first post, I've set a static IP and have Wi-Fi turned off when in sleep but it still is eating my battery. The page the link takes me to is of no use to somebody who's new to this whole coding thing
[BetterBatteryStats] Kenepo:
Nope, I have it in "never". BTW I posted a lot of screenshots with all the info I could provide. Check the single post HERE.

Thanks for helping but believe me, I've done everything I can to fix this strange drain. I need some good expert advice from someone who can read dumps and understands well the BBS stats.
[BetterBatteryStats] islipfd19:
What ROM are you running.

1.5% over 10 hours is pretty good. That's about where I'm at with my SGS4 (i9505) running the latest CM10.1 build with Chronic Kernel. it's undervolted -50 and and freq capped @ 1.13Ghz using System Tuner. I'm also using greenify to hibernate all my apps.
[BetterBatteryStats] Meleagru:
Anyone? I emailed the developer but he never replied.
[BetterBatteryStats] Karpfenhai:
You need to provide more information,

What Rom are you on?

Did you install bbs on sdcard?

Does a reboot help?

Tapatalked from my Galaxy SII
[BetterBatteryStats] Kenepo:
Please man, you need to read carefully. I said I've had that battery eficiency before but not right now. If I were having a battery drain of 1.5% every 10 hrs I wouldn't be asking here for help. Also the ROM I'm using is in my signature and my sig pic. Very big; Resurrection Remix.
[BetterBatteryStats] Meleagru:
Cyanogenmod latest stable release, Franco kernel version 165. I have a Nexus 4, so it's not on the SD card. I've tried rebooting, wiping the cache, reinstaling, nothing helps. Partial wakelocks work, it's just this and it's the thing I really need.
[BetterBatteryStats] Karpfenhai:
Hmm, first, this dump isn't idle..

Second get rid of light manager..

Third, read some pages back for gsf in terms of nlp (post of mine).

Fourth, if chrome is installed, disable tilt scrolling in its developer options.

Fifth, post another but clean idle dump, duration at least 4 hours.

Regards

Tapatalked from my Galaxy SII
[BetterBatteryStats] chamonix:
If I remember correctly I asked you to check whether raw stats show and to provide a log cat with debug options enabled
[BetterBatteryStats] Meleagru:
Here you go.
[BetterBatteryStats] kg3:
Can someone please review my log? My S4 battery life doesn't seem to be as good as I thought it would be. My wifi is set to never stay on during sleep. But it seems to be on while in sleep. Not sure if this is causing the battery to drain quicker than it should be.

Thank you.
[BetterBatteryStats] jawz101:
My number one rule is I never review another man's log.
[BetterBatteryStats] henxui25:
Tks

Tks for your app.

But i have a question: with new version of your app, after 3hours in idle, i will open app and what options i should choose to know what is running in blackground?

Sorry, i've known your app from my friend and i dont have time to read 1805 pages =.=
[BetterBatteryStats] Karpfenhai:
Hey Sven, I want to bring up a tiny little probably only me affecting issue, which chases / annoys me since a while...

The word wrap within the widgets..

I propose to use just one space after the double point :p

The s from seconds is always this way after reaching 10 hours or more.

Or renaming deep sleep to deepsleep..

Thx in advance

Tapatalked from my Galaxy SII
[BetterBatteryStats] Vlachmed:
I keep getting this *overflow* wakelock on process 1013 randmly BUT only after i unplug from USB or AC charger. I tried rebooting and it sometimes fixes the problem, but sometimes it doesn't. Tried unmounting/mounting the SD card, tried disabling RingDimmer as i suspected that is the problem.. Nothing works so far. It keeps showing up randomly after a charge. Any tips on how to get this fixed?
[BetterBatteryStats] Szaby59:
Hello!

I'm expecting huge battery drain with my Ace 2.

What I tried: disabled system/lockscreen/touch sounds, disabled google now (that helped a little), but I still have much wakelocks caused by PowerManagerService and "sia".

I attached a logfile.
[BetterBatteryStats] Gunkk:
possible root cause for NlpWakeLock

Hi Kenpo. I have the same NlpWakeLock issue.

I recently loaded Wicked V4 ROM and didn't see this. Phone would deep sleep instantly when screen off, using -20mA while on the radio and -2 mA while on wifi. Brilliant!

Then after updating Google maps, play store and a few other Google apps, it showed up. I've seen the same issue as you and the phone now never deep sleeps and drains -50-60mA while idle.

I've been doing some research into this and boiled it down to what I believe to be a "bug" introduced on purpose by Google as a workaround to apps not being able to get locations.

See this post by a Google employee Eth@n which states that they introduced a persistent location wake up to fix a bug in 4.1 where Google location services was going to sleep, preventing Google Location Services from working properly. I presume that this fix was introduced late May based on the timing of Eth@n's post.

Now it seems like they need to patch the patch... because even when you turn off Location Service in Settings, the Location Services is ignoring the settings and maintaining the persistent NlpWakeLock to keep location services running, even when screen is off, ultimately preventing the phone from going into deep sleep.

A rather derp fix if you ask me!

So now to work around this (haven't tried it yet, but plan to this morning):

1) if you reset, wipe cache/dalvik/data and flash Wicked V4 (and probably other ROMs) and then

2) and turn off auto updates, and

3) DO NOT update any google apps (store, maps, G+, etc.)

then you may be able to get away from this.

Check out this post here suggests that Google may have patched the play services bug in the 4.1.10 play store release. I am still on 4.1.6 and definitely have the wakelock bug.

Another option may be this, where a reddit Nexus4 user reports updating to leaked play store 4.2.x fixed his NlpWakeLock:

http://www.reddit.com/r/nexus4/comments/1il5cm/ but this may just be the 4.1.6 update rolled fwd into 4.2.x...

Good luck and let us know if you come up with other solutions...
[BetterBatteryStats] xdaillum:
Hope someone can help me.

Observations:

My reception was quite bad today and I turned off the location services because I know that sometimes causes wakelocks.

Reception improved but even after improving the battery still drained quite quickly. Attached is my text log.

Btw, why does location services sometimes cause wakelocks and sometimes doesn't?
[BetterBatteryStats] islipfd19:
It looks to me to be facebook causing your wakelocks.
[BetterBatteryStats] Gunkk:
OK here's a possible fix.

"X:>ADB shell dumpsys power" showed the NlpWakeLock was active.

I removed updates from google play services (downgraded to 1.0.15) with GSam battery monitor:

> click (vacuum cleaner icon?) in lower left

> click google play services (or google services)

> click manage button

> uninstall updates (shows google play services).

Now ADB shows that the NlpWakeLock is gone.
[BetterBatteryStats] mahendru1992:
I did not understand what u mean?
[BetterBatteryStats] Kenepo:
Thanks a lot for your time. I'll see if i can come up with any solution to that. I think the most simple option right now is to freeze the play store and any other app related to it. If that doesn't works then I'll give a shot at your recommendations. Sorry I couldn't thank you right now; I ran out of my 8 thanks limit fir today.
[BetterBatteryStats] MetalicMan:
Hi once again.

Something is keeping my phone awake. Reinstalled rom with full wipe and it keeps the same, could someone help me reading this results??
[BetterBatteryStats] Att.Fan1982:
Clean idle dump, duration of 4 hours attached....

http://db.tt/w4mhqFmo

Sent From An Incognegro Galaxy Note 2
[BetterBatteryStats] kevinrubio1:
What do I need to fix?
[BetterBatteryStats] Gunkk:
Nothing
[BetterBatteryStats] pjadec:
Something but what. Maybe otg?

Kernel Wakelocks

"msm_otg" (): 53 m 15 s (3195 s) Cnt:(c/wc/ec)7/0/0 53,5%

"bq24185_watchdog_lock" (): 41 m 47 s (2507 s) Cnt:(c/wc/ec)6/0/0 42,0%

"wifi_rx_wake" (): 30 m 56 s (1856 s) Cnt:(c/wc/ec)1372/0/1372 31,1%

Maybe dirty usb connector ?
[BetterBatteryStats] Gunkk:
Those are both usb wakelocks.
[BetterBatteryStats] pjadec:
Apps what keeps your phone awake. Do what Karpfenhai suggest.

1 get rid of light manager

2 read some pages back for gsf in terms of nlp

Light Manager Wakelock 2 (com.koo.lightmanager.Light Manager): 1 h 9 m 18 s (4158 s) Count:4084 28.1% "a good app, but a bad news for battery"

NlpWakeLock (Google Services): 13 m 16 s (796 s) Count:340 5.4%

AlarmManager (com.koo.lightmanager.Light Manager): 6 m 32 s (392 s) Count:8169 2.7%

NlpCollectorWakeLock (Google Services): 4 m 32 s (272 s) Count:812 1.8%
[BetterBatteryStats] kevinrubio1:
Oh thanks :)!
[BetterBatteryStats] Karpfenhai:
Okay, but what about point 2-4?

Tapatalked from my Galaxy SII
[BetterBatteryStats] Att.Fan1982:
Taking care of those points now that I'm able to get a little break.

Sent From An Incognegro Galaxy Note 2
[BetterBatteryStats] Ty07allstar:
Hoping somebody will be able to look at this dump file and tell me what is draining my battery. I have done everything from using Greenify and starting off fresh but I cannot figure out what is draining my battery.
[BetterBatteryStats] jawz101:
Ty- my first guess is your phone lost signal for a while. Approx. 8 hrs. Google music and junk tried connecting a bunch yet no signal to use. Maybe your phone was unplugged over night? And you live in a place with bad signal? I dunno. I'd also see if there's any preferences in play music to sync stuff only if on Wi-Fi. Personally, I have a Tasker profile which turns airplane mode on if signal is lost for 30 seconds, then waits 10 minutes and turns airplane mode back off.
[BetterBatteryStats] Ty07allstar:
That's the thing. I turned off mobile data while I was at work but that was for about 6 hours. The other time I had signal just fine. I'm not sure why it says no signal because I had fine signal.
[BetterBatteryStats] jawz101:
If you have root can you turn on root features under betterbatterystats advanced preferences and see if anything is consuming a lot of bandwidth in the network view in the app?
[BetterBatteryStats] Ty07allstar:
I'll try that. I updated my Google Play Services and hadn't touched my phone for about two hours and there were no real bad wakelocks. Hopefully that was the issue.
[BetterBatteryStats] aboodi520:
Can anyone tell me what drains my battery?
[BetterBatteryStats] henxui25:
help

Anyone can help me?

Hoping somebody will be able to look at this dump file n picture and help me what is draining my battery. what is different between 2 pics. I can not figure out what is draining my battery :(

Using Greenify to hibernate

My phone is idle for ~ 5 hours

Data, wifi off

Network: gsm only

No apps in task switch
[BetterBatteryStats] MetalicMan:
What should I do to solve this??

---------- Post added at 02:26 PM ---------- Previous post was at 02:26 PM ----------

What should I do to solve this??
[BetterBatteryStats] Ty07allstar:
After updating Play Services I'm still get tons of wakelocks from it. anybody else have any suggestions?
[BetterBatteryStats] Gunkk:
Downgrade. Uninstall updates from app info. 1.0.15 does not have the wakelock bug.
[BetterBatteryStats] itsmyname:
So nobody can tell me why I'm losing 1% per 5 minutes other than "Turn off Wi-Fi" and "Read the FAQ"... Which I don't understand anyway?
[BetterBatteryStats] boricua4u2001:
Hi guys a have v.1.13.4 working in my s2 so far so good Tks to the Dvlp.. :eek:
[BetterBatteryStats] Gunkk:
You are 90% deep sleep with only 12 min of kernel wakelock in 4 hrs. Thats not terrible. Should not drain 1% per 10 mins. Possible bad battety?
[BetterBatteryStats] pjadec:
Try different kernel ?

or

Try to clean usb port ?

I am not responsible if you break your phone when cleaning the USB connector
[BetterBatteryStats] itsmyname:
The 1% per 10 mins was while a I was browsing the web on the phone, infact it was a bit more than 10 mins per 1%. How would I know if i've got a bad battery
[BetterBatteryStats] pjadec:
i don't know what is that, maybe something do with sync.

Awakelock

SyncLoopWakeLock (Android System): 3 h 43 m 38 s (13418 s) Count:2509 20.0%

This info was copied from one web page.

The more items are getting synced and the more often the sync occurs the higher the wakelock time will be.

Potentially the wakelock time is prone to raise in case of bad data connectivity.

Examples of accounts are: twitter, google+, linkedin, google mail

for fix

Remove any unwanted accounts

Check the settings and remove any unwated options (contact sync)

Check the frequency of the sync and see if you really need it as defined

Data log too long and to confused.

Try to take about 4h idle dump.