yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] LooseSeal:
Deleted wakelock appears after you go into airplane mode because wifi gets switched off and all previous wifi wakelocks (wlan_rx_wake, wlan_ctrl_wake, etc) are then clumped together under that title.
[BetterBatteryStats] azeem40:
Screen on time needs to be 1 min,.
[BetterBatteryStats] lanwarrior:
Eh? I am pretty sure I turn on the screen for at least 10 minutes.
[BetterBatteryStats] :
Just a quick hint needed (that's why I'm not posting the regular dump as per first post rule) : something is wrong with my modem / phone etc, and not with installed apps or rogue apps, correct? Can't seem to find a way to improve this awful situation... Awake time is nearly double screen on time.

Cheers and let's hope for a better wireless network I'm the near future!

Note 2 N7100 - Alliance Rom DMA6 - Perseus Kernel
[BetterBatteryStats] azeem40:
[MENTION=285951]lanwarrior[/MENTION]: You need to provide an idle log. Turn off your screen and leave it for 4 hours without touch and then dump a file.
[BetterBatteryStats] lanwarrior:
Ok, I got confused now.

The first dump I did was based on leaving the phone overnight without touching it.

The seconds dump was based on putting the phone on Airplane Mode and leaving it while turning the screen on for about 10 minutes.

So you're saying I should turn Airplane Mode, leave the phone WITHOUT turning it on for 4 hours?

I'll do it, just want to make sure I am following the right process.
[BetterBatteryStats] Karpfenhai:
It's a funny discussion guys :D:D

Okay back to assistance mode, multidpd just indicates an active data connection, there is nothing wrong with your modem.

To the guy asking for a sniffer, shark for root would be your friend, plus it's reader.

I think you've missed the point, it's not your phone, it's your network environment causing your device to wakeup, why it doesn't appear on your other devices? Either the kernel you are using blocks multicast traffic or it's quite old, earlier android version were less sensitive in this area.

Hint, as mentioned, just install better Wi-Fi on off and forget about it.. it will do the job for you.

Good luck to all of you!

Tapatalked from my Galaxy SII
[BetterBatteryStats] GermainZ:
In both your dumps, your screen was turned on for too long. It shouldn't be turned on for more than a minute (enough time to unplug and turn the screen off, then turn it back a few hours later and get the dump).

So basically:

Unplug phone -> Turn screen off -> Leave it untouched for 4h or more -> Turn screen on -> Open BBS -> Save the dump -> Upload it here.

You can turn airplane mode on if you want, but you're more likely to figure out which apps (if any) are draining your battery with it turned on (since many use the internet).
[BetterBatteryStats] :
Thank you mate, I knew that already, but I am still bothered by the rest of the wakelocks though, following multipdp :/ I will post a complete dump in the next few days, although I don't think I have many rogue apps keeping my device awake (i can't renounce to exchange email for example!), I have mostly rilj and alarm manager and the usual location /Google now wakelocks. If wakelocks held in user land are all grouped under power manager service as I recall (correct?) it's a fairly low amount compared to the others you can see in my screenshot.

Please forgive me if I misunderstood something relatively basic or I am assuming something fairly wrong.

Thanks to everyone helping out and contributing to this app and thread!!

Note 2 N7100 - Alliance Rom DMA6 - Perseus Kernel
[BetterBatteryStats] Karpfenhai:
Understood, you may try to disable fast dormancy, either by toggling app (GPlay) or service menu...

The network section should tell you which app has caused mobile traffic most.
[BetterBatteryStats] lanwarrior:
What I did in the first dump was similar to what you said, with the exception that I REBOOTED the phone after unplugging it.

I thought this will test the "Screen on"start. I'll try again tonight....
[BetterBatteryStats] PIRATA!:
Hey guys! I cannot see nothing with BBS 1.13.4!! Any help??
[BetterBatteryStats] azeem40:
Try installing the beta versions in the OP.

No one ever answered my question. How do I disable googlequicksearchbox without disabling Google Voice Search?
[BetterBatteryStats] Karpfenhai:
It's probably impossible since its the same app (afaik) maybe you can greenify the app?

If it doesn't work because it's a system app use titanium to force it as user app, then greenify.

Tapatalked from my Galaxy SII
[BetterBatteryStats] azeem40:
So you're saying I should convert it into a user app and greenify it?
[BetterBatteryStats] rocada:
Hello, this is normal? :

https://app.box.com/s/9dwsgwcst42trt8z79nw

PLS help me :confused:
[BetterBatteryStats] azeem40:
For GSF alarms, use this: http://xdaforums.com/showpost.php?p=35755907&postcount=11160

Otherwise, try turning on airplane mode and do another 4 hour idle dump.
[BetterBatteryStats] Karpfenhai:
Arty least you can try it, yes.

Tapatalked from my Galaxy SII
[BetterBatteryStats] azeem40:
Thanks. It worked!
[BetterBatteryStats] purgalm:
Could someone please verify my BBS stats?

https://www.dropbox.com/s/5yw8i7rzo0mhzj9/BetterBatteryStats-2013-08-21_120107840.txt

I'm running CM 10.2 20130818 official nightly.

Is this normal battery usage and wakelocks or is there anything I could do to make it better?
[BetterBatteryStats] Karpfenhai:
Indeed, there is something, read the op with care, hint: idle...

Btw there was an ongoing discussion related to your main culprit within the last pages, hint 2 nlp collector.

Regards

Tapatalked from my Galaxy SII
[BetterBatteryStats] niceguy_1920:
high battery usage due to phonewindowmanager

i would just like to add that this explanation helps a lot to my situation, just recently my volume button has stopped working and right around this event i started to notice a rise in my battery usage. With a little bit of research and with the help of BBS i found this post on xda, after i noticed that my volume button stopped working i went ahead to order a new one, hopefully that will solve my problem. thanks once again for shedding some light on how android and these phones thinking and work....:good:
[BetterBatteryStats] lanwarrior:
So a quick update:

I was able to (I think) fix the number of wlan_rx_wakelock - I uninstalled Samsung WatchOn and now I am not seeing this.

However, I am STILL seeing the deleted_wakelock issue taking close to 30% of my battery life. I am going to do another stats overnight.

Question: what app should I use or what can I do to find out what is causing the deleted_wakelock?
[BetterBatteryStats] JohnSpawnVFX:
Like everyone explained to you earlier, deleted_wakelock is just a reference value and it represents wakelocks that used to wake your phone and no longer do it (do to them being fixed). They aren't draining your battery anymore. If they were, it wouldn't make sense them not being discriminated (and thus, not able to be fixed) in BBS. It's kinda like a "this is what your phone would spend, if you didn't fix all these situations".
[BetterBatteryStats] lanwarrior:
Thanks for the explanation.

If this is just a references to the old wakelocks, how come the number grows throughout the day? Doesn't it mean that there WERE MANY wakelocks BEFORE that then got destroyed?

I had a Galaxy Note before and it never shows these deleted wakelocks and consequently, the battery last longer. I also used an app called wakelocks detector and it shows the phone only wake ups 15-20% of the time.

The Galaxy S4 Active shows the phone wake up 40% of the time.

I am just trying to figure out why my phone last 8 hours with only 2 hours of screen time. I changed the battery 3 times already.
[BetterBatteryStats] dimitris_athens:
Great app. Thanks
[BetterBatteryStats] joaonuno:
Thank you all for a great app and for the help concerning battery drain and wakelocks.
[BetterBatteryStats] lanwarrior:
I am finally able to fix the deleted_wakelock issue! I uninstalled Kaiten Mail and immediately no more dreaded deleted_wakelock.

My battery is also improving. I left my phone overnight unplugged and in 4 hours 26 minutes, the battery only goes down to 4%. So the deleted_wakelock INDEED drain battery, as I expected.

It still fall short of my expectation in term of battery life, but will have to do more research on this.
[BetterBatteryStats] hawkdown77:
You not needed uninstall kaiten mail. Only use greenify app.
[BetterBatteryStats] lanwarrior:
I tried, but Greenify un-hibernate Kaiten when it needs to wake up to check mail.

I've seen this also with app like Amazon App Store, where it needs to wake up periodically and I see in Greenify that the app is often marked as "Pending"

I emailed the dev for Kaiten to see if I can do pull instead of push email but never received a response.
[BetterBatteryStats] Tungstwenty:
Check the wiki page for an explanation of the "deleted_wake_locks" entry: https://github.com/asksven/BetterBatteryStats-Knowledge-Base/wiki/deleted_wake_locks

You have at least one driver (typically WiFi, but it could be something else) that gets dynamically loaded/unloaded throughout the usage of the device, and not only at startup/shutdown. WiFi is the typical example, since the driver gets unloaded when WiFi is turned off - either because you did it yourself, or if your configuration policy states that it should be turned off when the screen is also turned off.

[MENTION=1330150]chamonix[/MENTION],

Does it look feasible (and sensible) for BBS to track the known distinct KWL names at each of the moments where snapshots were taken? That way, when they later cease to appear in /proc/wakelocks, that list could be checked so that the "missing KWLs" could be shown somewhere in order to give a hint to what kind of things happened during the period and were grouped as deleted wakelocks (at least those were grouped, other might be in there too...)
[BetterBatteryStats] Karpfenhai:
If I remember right, we had this in earlier releases but it leaded to confusion b/c the same process showed up several times (system server p.e.) maybe Sven can wrap something around this anyway..

Good idea

Tapatalked from my Galaxy SII
[BetterBatteryStats] red de0392:
Audio out 2

Disabled all the sounds from settings....still this wakelock persists....

How do i get rid of this ? :confused:
[BetterBatteryStats] Karpfenhai:
Viber installed?

Tapatalked from my Galaxy SII
[BetterBatteryStats] red de0392:
Nope...

Its draining my battery for no reason...

:mad:
[BetterBatteryStats] azeem40:
And you werent listening to music?
[BetterBatteryStats] red de0392:
I was...abt hr ago...

But its always there...

Whether m listening music or nt
[BetterBatteryStats] chamonix:
I

That looks like a good idea and in fact it would be pretty simple as each ref contains the whole list.

I will have to look into how to represent that but creating the list of values present in 'from' but not there in 'to' anymore would be easy.

Edit: #409
[BetterBatteryStats] ercxar:
Hey Guys

I just had a problem with two wakelocks that I found one of them was related to Google Sound Search app and the other one I still couldn't find which is causing this wakelock!

*sync*_com.google.android.location.reporting_Account {name=48be9a9003b75df6d4e2d19d00413673, type=com.google}

All location reporting and location history in "Google Settings" and "Google Maps" are disabled!

Any help would be appreciated.
[BetterBatteryStats] Casanoaa:
Have you disabled Google locatipn in browser?

Also look for gsf in post 3
[BetterBatteryStats] ercxar:
Thanks for the reply.

I never use stock browser and the location in that one was enabled so I disabled it now. I always use Dolphin Browser and the location in this one was always disabled.

I tried stock browser now with location enabled and the wakelock time didn't increase so I don't think that's the one. All syncs are disabled.

I'm reading your post about that one right now. I hope it helps me cause it increased my drainage about 3% per hour!
[BetterBatteryStats] wea0:
Hi,

can someone please tell me what happened here?

The phone is constantly kept awake.

Somehow the "Android OS" has gone crazy.

Any ideas how to fix this when it happens?

Nexus 4

Android 4.3
[BetterBatteryStats] PIRATA!:
No way...the only one that works for me is the v1.11.0.0 !!!

Why? What's wrong with other next releases??

Thank you.

Ps: what does it mean to greenify an app??
[BetterBatteryStats] azeem40:
Then reinstall your current one.
[BetterBatteryStats] iluvatrix:
hi all

i am using asus fonepad rooted & BBS V1.13.4, my kernel wakelock screen is always empty.

may i know is this correct?

thanks
[BetterBatteryStats] 4-2ndtwin:
Just simply rebooting the phone is what fixed this problem when it happened on the Samsung Captivate.

Would reboot and check in a couple of hours and see if the Android OS usage percentage has lowered.
[BetterBatteryStats] rafaelcantarela:
Wich kernel is better for battery life with CM10.1?

I'm using temasek unofficial CM10.1 with temasek Wolfson Kernel...

I'd like to get around 4h. screen on with 16h. total... It is possible?

Enviado de meu GT-I9300 usando Tapatalk 4
[BetterBatteryStats] azeem40:
I usually get about that much with AJK Kernel v4.4. How heavily do you use your phone? That will determine if it is possible.
[BetterBatteryStats] chamonix:
How about reporting a bug for that? The first posts give information about what is needed
[BetterBatteryStats] chamonix:
Please enable advanced debugging prefs and post a dumpfile + a logcat. Possibly Asus has done something specific in their kernel but I need the log to tell
[BetterBatteryStats] chamonix:
That would not be the spirit of this thread. How about helping me finding the cause and fixing it?

Sorry I couldn't resist...
[BetterBatteryStats] chamonix:
Looks like your rom suffers from a bug that has been fixed in powermanager. I had reported this in this thread (search for the link to the commit by JBQ). You may want to ask the dev of your rom to check for that patch and merge it.

Edit: the problem is that the handling of partial wakelocks ends in an error situation leaving the kernel wakelock held with no reason. This is why you see powermanagerservice in kernel wakelocks but no partial wakelock as counterpart
[BetterBatteryStats] lanwarrior:
I spoke too soon about the deleted_wakelock. It still appears for some reason, along with wlan_rx_wake.

I download app called "Network Log" and start monitoring what app is generating all this network traffic. Well, it was the "Kernel" (see screenshot below).

Basically, this "Kernel" is sending network packets to ALL my machines at home. WIndows 7, Windows 8, Mac OSX, doesn't matter. From the screenshot, the list actually goes much longer in just a span of 15 minutes. New traffic send to new IP address every few seconds.

I did a test by shutting down ALL computers at home and... no more traffic.

Why is it the "Kernel" is sending this network traffic all the time? And it seems to go through every single port when the computer "responded".

Try to download Network Log and see if this happens to you...
[BetterBatteryStats] Karpfenhai:
Mate, recv is for receiving...

Disable udp on your router and you will see the magic..

Ask a kernel dev for your device if they can disable broadcast receiver..

Tapatalked from my Galaxy SII
[BetterBatteryStats] andreasy:
Is it safe to use the latest RC1 for daily monitoring or better use the stable release?

---------- Post added at 12:03 PM ---------- Previous post was at 11:40 AM ----------

In regards to networklocationlocator wakelock. The guide is a little old I believe and it doesn't reflect the current situation with latest android os. For example, the S4 with android 4.2.2. The reason I say this is because with the same settings on S3, I never had this issue in the past (I mean high wakelocks).

I need to have location reporting on so that my weather widget updates my location and maps start without delays and messages to enable reporting which I then will have to manually disable. Also I need the location optimization in order to have more accurate position.

Now, as you can see in the images, history and reporting are not available in my region so it is not reasonable to have so much usage. The wakelock goes terribly high only when I have the improve location setting on (that uses data cells to better determine your location). Is there any way to have those settings on but at the same time stop maps from triggering so many wakelocks?

I thought to greenify maps but then I saw that in order to do this you have to get the paid version, convert maps to user app and then still it could cause issues and it isn't recommended.

Any other ideas?
[BetterBatteryStats] Karpfenhai:
Mate,I have location fully enabled except GPS and my wl is not out of the ordinary, adjusting gsf prevents the Google background locator from acting up weirdly, my weather apps, maps, and even chrome are getting my location still correctly.

See my current stats after an average usage day with maps and some other location based apps:

Ps: gsf settings from op are still valid, I'm on 4.3 btw..

Some pages back you will find updated settings.

Tapatalked from my Galaxy SII
[BetterBatteryStats] andreasy:
By gsf settings in op, do you mean the discussion about disabling talk, latitude and configuring autostarts?
[BetterBatteryStats] BaseManAndroid:
wow, great app, thanks!
[BetterBatteryStats] chamonix:
I believe it is safe to say that rc1 is stable. There were no fi Ding for a while now and that ec goes to release if no-one proves me wrong.

I am already working on the next release
[BetterBatteryStats] lanwarrior:
I mis-typed.... If you see the screenshot, it IS for RECEIVING.

So the "Kernel" is receiving or responding to packets from any machines, not from the router though.

Disabling UDP will cripple my network, wouldn't it?

Also, is this a known bug for Jelly Bean?

No kernel dev for the S4 Active since the bootloader is locked.
[BetterBatteryStats] chamonix:
Handling multicast/broadcast traffic can hardly be called a bug. Nevertheless I consider it to be a design flaw or weakness as waking up a device primarily not designed as a server is, well, arguable.

You can try looking for a kernel implementing a different understanding of this and masking those packets, disable the source of the problem (the traffic or the source), set up a separate vlan for your mobile device, or just turn off Wifi when it's not in use, with or without the support of a tool.

Those are the responses I know to that problem. The first and last options are the best IMHO as you may connect to other wlans that you can not recommend figure to suit your needs
[BetterBatteryStats] rafaelcantarela:
Is that AJK Kernel compatible with Unofficial Temasek CM?

I'm not a hard user, almost using Whatsapp, Gmail, Tapatalk 4, some calls, Facebook and Hangouts...

The best I could get is 4h. screen on, but around 12h. Stand By only... Or I get 3h. Screen On with around 16h. Stand By.

Enviado de meu GT-I9300 usando Tapatalk 4
[BetterBatteryStats] lanwarrior:
Thanks for the info. I'll try that but los like I'll never achieve the battery life that other have. I.e. 1 days with 3 hours screen time.

I am curious why it happened to my s4 active but not the the other.
[BetterBatteryStats] WastedJoker:
After a week or so of having no issues with my screen being kept awake, the situation has returned since that google+ update yesterday.

Great.
[BetterBatteryStats] wea0:
Thank you for your replies

Yes, I understand that rebooting might be the most straightforward way to stop this. (In that regard Android seems much closer to Windows that to Linux...) I was hoping for a way to fix it on-the-fly whenever it happens again.

https://android.googlesource.com/platform/frameworks/base/+/f2d643cfc7405c1f771cacab365a0a5d9b547f36

My rom is Android 4.3 (JWR66V) straight from Google. Guess I'll have to wait for 4.3.1 or 4.4 or whatever.
[BetterBatteryStats] chamonix:
No JSS15Q for your phone?
[BetterBatteryStats] wea0:
As far as I can tell JSS15Q is only rolled out to the Nexus 7 [2013].

All other current Nexus devices including my Nexus 4 only get JWR66Y.
[BetterBatteryStats] Tungstwenty:
I see an occasion for the fix to be distributed through an Xposed mod :D

(not by me, though)

It would require replacing the entire ISyncAdapterImpl.startSync() method, though, with the code from the fixed commit. No possibility to just tweak the involved instructions, which isn't as perfectionist as some might wish :)
[BetterBatteryStats] swingaz1:
I can't seem to get my phone into deep sleep. It stays at 350mhz pretty consistently.

Any help would be great. Thanks everyone!
[BetterBatteryStats] Tungstwenty:
You're using a 4.3 ROM, build JWR66V.

Check 4 posts above yours for an explanation of what's happening to your device.
[BetterBatteryStats] azeem40:
AJK's kernel is compatible with all aosp and aokp roms.
[BetterBatteryStats] boggie81:
I'm having some trouble with my 2 week old N4. It's on stock JWR66Y ROM with faux kernel. Although I'm getting close to 95% deep sleep, battery drains really bad in idle. The gtalk service seems to be the main culprit. Running in the background is Facebook and Gmail app... Location reporting and history are off.

Funny thing is that on my old GS2, which I'm planning to sell and thought that it had terrible battery life, is now losing only 1%/h after I flashed stock TW (had been using CM up till now), with all its Samsung crap, as well as Facebook and Gmail running in the background.

Attached dump from my N4.

Thanks
[BetterBatteryStats] Gunkk:
Alarms (requires root)

======================

com.facebook.katana (): Wakeups: 173

is causing ~30 wakeups per hour. 173 total over 6 hrs, for total of 15 minutes wake time ... bad juju. Try greenifying Facebook or reducing it's sync frequency.

see:

http://xdaforums.com/showthread.php?t=2324912
[BetterBatteryStats] boggie81:
Facebook refresh interval is set to never, but I'll greenify it and see what happens. At least the battery seems to be OK, after 4h in airplane mode, it stayed at the same percentage. This seems weird too, but I did kinda calibrate the battery last night, after it just so happened that it completely drained and then fully charged it.

Attached the dump with airplane mode on.
[BetterBatteryStats] azeem40:
Excellent!
[BetterBatteryStats] chamonix:
Started working on 1.15:
[BetterBatteryStats] oli20021978:
great.......:good:
[BetterBatteryStats] Karpfenhai:
Nuce matte, bitte the Ortsverband iss Rio big, Schlund ne Angler in Mrd Klinik.

That happens if you write English while your keyboard is set to German....

Nice mate, but the percentage is to big, should be smaller in my opinion.

:D:p

Tapatalked from my Galaxy SII
[BetterBatteryStats] electricpunch:
Works perfect on SE Xperia Play
[BetterBatteryStats] chamonix:
like sath?
[BetterBatteryStats] Zibri:
This still makes little sense. (Galaxy S4 stock rom and stock recovery)

No data connection and no or uknown signal for 18 hours? It had signal all the time. And data connection was probably off.
[BetterBatteryStats] chamonix:
"No data connection" and "No or unknown signal" refer to your cell data (2G/3G) service. As you have had Wifi on for some time the cell data was turned off, consistent to what the stats say. That's the way android managed cell data and there is nothing wrong with that.

Added to FAQ.
[BetterBatteryStats] Zibri:
Hmm no. No or Uknown signal usually means the phone has no signal. And I needed to know when the phone had no signal.
[BetterBatteryStats] Karpfenhai:
Hmm, not sure, need to see it on my own device.. :)

But don't push any effort in it just because of me..

Tapatalked from my Galaxy SII
[BetterBatteryStats] chamonix:
No? Yes! Android does not make any difference between the signal being off because wifi is on or the signal being gone because the reception is gone. This if course only true for no signal, not for bad signal
[BetterBatteryStats] Zibri:
Sorry but what do you mean? In a low reception zone, how can I know for how long the phone was unreachable (or on emergency calls only) ?
[BetterBatteryStats] azeem40:
I don't think he can be any clearer. He is saying that means cellular data was off ( meaning no 3g).