yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] yhrn:
I think the magnitude of your main kernel wake lock, wlan_rx_wake (and probably wlan_wake as well), indicates that you've been connected to a "dirty" wifi network that keeps waking your phone up. I saw that as well before I switched router. You don't happen to have a D-Link DIR-655? Because the combination of that router and SGSII seems to often (not always) cause a bad battery drain. My battery drained around 10 times quicker when idling before I switched router (around 10% per hour).

One difference from the stats I saw was that I always had "suspend" and "tvout resume wo" high up in the process list instead of "kworker" when this happened but maybe that could be attributed to some kernel/ROM differences that causes the battery stats to be reported differently.

On the other hand you have almost 2 hours of the "svnet" wakelock which indicates mobile network traffic so I get the feeling there is more than one thing involved in killing your battery.
[BetterBatteryStats] torchedlh:
Interesting. Most of the day was spent at work and our IT has been messing with our WIFI. I'll try another SSID as we have multiple setup. The router we use is a Buffallo, not a Dlink.

And yea, I'm not surprised that mobile traffic might be hurting my phone, i'm in the philippines and the signal quality is terrible...
[BetterBatteryStats] CRXed:
Look at all your Alarms. Those apps probably all use data, and since your signal is bad, syncing will be slow and cause your phone to stay awake.

If I were you, I would change your Wifi Sleep State to Always On, so it will not fall back on mobile data. It may increase your wlan_rx_wake wakelock, but svnet wakelock should decrease. Or you can try the other way around and disable Wifi.

But you still have lots of apps that keep your phone awake too.

BLN control Pro is waking your phone many times, as is Folder Sync and Tasker (count 6699!!)
[BetterBatteryStats] chamonix:
Incoming packet have kept your phone from sleeping most of the time. You can either use a capture tool and try to find out the reason or turn off you wifi when you don't use it.
[BetterBatteryStats] torchedlh:
How do i find out which apps are causing an Alarm?

Thanks for the advice on the WIFI sleep policy, i'll switching it back to Always On, i had thought that keeping it off would be better for battery.

How do i get the BLN and/or Tasker to wake my phone less? Stop using them?

What tool do you recommend?

Thanks
[BetterBatteryStats] yhrn:
Sorry mate, I wish I could help but as my D-Link was starting to become a bit unstable I decided it was time to get a new router anyways and that solved my problem. At work we still have a DIR-655 and I still get the drain but I simply turn off wifi in the office so I never got any further in the investigation.

What you could do is save a Shark capture to file, post it here and hope for somebody more knowledgeable than me to have a look at it. There is supposed to be some option you can use when capturing that ensures only the first part of the package is included so you don't have to reveal any private info.
[BetterBatteryStats] Karpfenhai:
Regarding the Guys with Router Problems, i had a similar one, what i have done to solve is the following:

Give your mobile a static IP, dont worry, dhcp will work anyway in other networks,

Confirm this IP on your router (most will have a setting for this), im at work right now,if needed i can post a screenshot of my router settings.

This is what i found on google:

Positive effect, Network is faster connected after enabling WIFI and the "DHCP_RENEW or "DHCP_HANDLER"" (dont remember the correct term)

Wakelock is almost completely gone, so does the battery drain.

Just test it, good luck ;)
[BetterBatteryStats] shaggyskunk:
PM sent

Sent From my SM-N910W8 Running SlimLP 5.1.1 RRO Layers
[BetterBatteryStats] Fallingwater:
I have a problem with a newly acquired Asus Zenfone 6. When it deepsleeps correctly the battery life is absolutely awesome, but at random it'll go awake full-time and not deepsleep again without a reboot. This drains the battery in less than a day.

I installed BBS to get a better idea of what's draining the battery - but I can't read the kernel wakelocks. The rest works, but going in that menu gives me a "stats not yet collected" message.

The log dump collects the rest of the information, but only gives me this for the kernel wakelocks:

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

Kernel Wakelocks !!! wakeup_sources !!!

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

The device is rooted, if it helps. What to do?
[BetterBatteryStats] chamonix:
Please go to the advanced settings, enable debugging info and provide a dumpfile and logcat so that I can look into what happens
[BetterBatteryStats] X46X:
Hi, I can't see a kernel wakelock. It says "File could not be read" Can I fix that?
[BetterBatteryStats] aeonix_05:
I'm getting always falling back to boot even if it's only unplugged. How to solve this. Just updated to 2.1b4 from 2.0
[BetterBatteryStats] Fallingwater:
Dumpfile: http://pastebin.com/JQ58fe6T

Logcat: http://pastebin.com/UzrgEzVt

Note that I've just taken the dumps and the phone is currently functioning ok, it hasn't yet gotten stuck in continuous awake mode since the last reboot.
[BetterBatteryStats] chamonix:
I have an idea. Could you please retrieve */sys/kernel/debug/wakeup_sources and attach it as a file?
[BetterBatteryStats] chamonix:
The awake time is not the issue, but it the Wakeups. The first cause that I see is due to your phone receiving and processing multicast / broadcast packets as wifi is on all the time.
[BetterBatteryStats] azsl1326:
Installed the latest xda apk and upon rebooting, I have the following issue - see attached. Running Temasek v12.0, 5.1.1.

Thanks.
[BetterBatteryStats] Fallingwater:
Sure. Uploading as a .txt as the forum won't let me upload extensionless files.

Edit: this was pulled through ADB, so the phone is currently charging through USB. I don't know if this is relevant, so I'm reporting it just in case.
[BetterBatteryStats] FernBch:
Install the app a second time, should go away.
[BetterBatteryStats] .dan:
thank you for looking. could you elaborate on which statistic is demonstrating this issue? is there a solution?
[BetterBatteryStats] azsl1326:
Fixed it. Thanks!
[BetterBatteryStats] chamonix:
The symptom is the rx kernel wakelock. If you have control over your access point / network there are options, you should check the FAQ. Alternatively you could also use a tool like betterwifionoff to control wifi when the screen is off.

in addition you may want to look into the location Alarms (30+ per hour). those are caused by Google location services
[BetterBatteryStats] d_Schizzo:
Hi [MENTION=1330150]chamonix[/MENTION],

dont know if other g2 users do also have the problem. Anyway, attached i send you all the files you asked about. Thank you for looking into it!:good:

Regards,

Schizzo
[BetterBatteryStats] marzametal:
For those who see the yellow warning bar when selecting Alarms from drop down box...

What worked for me was... On my S2 running 5.1.1 SlimLP Beta 10 Uber 4.9 Unofficial...

1 - install 2.1. B1 (for me I had it backed up via Titanium, so I restored from there)

2 - reboot and then "install as system app" and reboot again

3 - install the latest.. B4? and reboot

try the app out then...

P.S.: If you already jumped to B4, then go through Settings / Apps to "uninstall updates"... you might be lucky and see a prompt to roll back to factory version, which will be B1. I was fortunate enough not to need a factory reset, even though I just installed the new ROM for the first time. Expecting a factory reset to be the only answer is a joke. Just because you have 1xxx posts does not make you a hero; it just makes you a screenslave so relax a bit... we're all here for the same thing.
[BetterBatteryStats] chamonix:
Blocking wakelocks by any means is a bad idea. Worst case it will lead to erratic behavior as a wakelock is not a cause but a symptom

Inter-app communication on android is based on intents so BBS can not implement sharing to the xda app, the xda app must implement something so that it can be shared to

The dumpfile itself does not show anything specific. I recommend that you unblock whatsapp wakelocks and post an new dumpfile: the symptom is gone (what bbs can show) but the cause is still there
[BetterBatteryStats] droidbits:
[MENTION=1330150]chamonix[/MENTION]

Thank you very much for your time on this.
[BetterBatteryStats] chamonix:
I would have preferred a detailed bug report. The system app itself just makes sure that BBS has certain permissions reserved to system apps but has no functionality at all. Replacing a 'new' version with an 'old' on in effect can not have any functional impact. Merely removing and adding the system app again may have an impact but this is unrelated to the version. anyway, I recommend anyone having problems with BBS to check post #1 on how to report a bug and do so to help me helping you.
[BetterBatteryStats] Richylitschy:
Hey all, im on an M8 with Custom Rom + Kernel. Installed BBS, but i get the message while trying to look at Kernel wakelocks: "File could not be read". I looked into Supersu, root is granted. Do i need to be selinux permissive or enforced? Or is there another problem?

Greetings!
[BetterBatteryStats] marzametal:
my apologies...

Sorry dude, I wasn't aware it was a bug. I had B1 installed and noticed B4 was provided, so went with it.

I am not doing much with this phone till I find a proper data on/off widget for 5.1.1, so if you're in real need of a bug report, I will start from scratch, read the manual for bug report creation and handball something over. Up to you...
[BetterBatteryStats] chamonix:
Please check post #1 about the required details and post a bug report with all log and info
[BetterBatteryStats] pupis123:
Phone does not sleep. Please help me.
[BetterBatteryStats] marknoll:
[MENTION=1579849]pupis[/MENTION].. Your stats are fine. Looks good to me. The reason for your wakes are due to location being on. I also noticed that using privacy and or app ops could help. Try denying wake ups with those. Like deny wake ups, gains to location or keep awakes

---------- Post added at 06:23 PM ---------- Previous post was at 06:21 PM ----------

Here's a good example. Google play services cause tons of wakes,along with google play store.
[BetterBatteryStats] Paget96:
I can make Serbian translation if you interested ;)

[MENTION=1330150]chamonix[/MENTION]

Thanks :)
[BetterBatteryStats] X46X:
Anyone?
[BetterBatteryStats] marknoll:
Reinstall it
[BetterBatteryStats] amjath:
Can anyone review my stats and let me know what is the issue.

Amplify says I have more RILJ wakelock.

https://docs.google.com/file/d/0B5X_w2X1foo5blIxd3ZVQ3U0N1k/edit?usp=docslist_api
[BetterBatteryStats] v7:
If you post Idle usage dump,it'll be easy for us to review/explain things.

Tapped from my furious dogo ;)
[BetterBatteryStats] amjath:
First 7 hours is idle battery, then had a full day usage. So you mean as soon as I wake up I need to take the dump and share it?
[BetterBatteryStats] X46X:
I did that and still "File could not be read" in Kernel Wakelock
[BetterBatteryStats] jhuff83:
Achieved some killer battery life at 3 hours idle. Was able to do it following this thread http://xdaforums.com/android/general/guide-extreme-battery-life-t3095884
[BetterBatteryStats] v7:
Exactly
[BetterBatteryStats] chamonix:
your reading does not show kernel wakelocks nor Alarms. please provide a logcat with debug advanced settings ticked
[BetterBatteryStats] chamonix:
That would be great. see first post for details
[BetterBatteryStats] chamonix:
Please enable the advanced debugging settings and provide a logcat
[BetterBatteryStats] chamonix:
You still have potential if you get the wifi multicast/broadcast handling under control.
[BetterBatteryStats] jhuff83:
I was pretty happy with that. Never happened before. How would I get that under control? Better wifi app?
[BetterBatteryStats] X46X:
Here is it: https://docs.google.com/file/d/0ByzZtcQnVALaRmV1emZtVHlJOGc/edit?usp=docslist_api
[BetterBatteryStats] aeonix_05:
Hi [MENTION=1330150]chamonix[/MENTION]

My reference keep "falling back to boot" even though it's in 'unplugged' state. please help me.

I've update from 2.0 to 2.1b4. Attached logcat for your debugging; Just extract it from the zip since it's very large
[BetterBatteryStats] Paget96:
I was installed beta4, no issues here, work good.
[BetterBatteryStats] milojoseph:
Can anyone help me squeeze more. Yes I am greedy. Only problem I have is that apps are waiting for me to turn my phone. But there is a rogue app(s) that drains 2% in less than a second. Can you help.

Sent from my SM-G900T powered by Alliance Rom and ktoonsez kernel
[BetterBatteryStats] milojoseph:
Here it is
[BetterBatteryStats] mdamaged:
You only lost. 0.2%/hr, you won't get better than that. There is nothing to fix, enjoy your device.

Edit: Now, if you are saying that the drain only happens when awake, I.e. it is not showing up in that dump, then maybe post one more dump showing the effect of waking the device and that app showing the behavior, I suspect the most likely culprit is Facebook, as it tracks everything by using every sensor on the device. I.e. how many times you tap, where you are, how you are holding the device, etc... But asleep, your device is fine
[BetterBatteryStats] Avishai1b:
Any suggestions how to improve? (using greenify)
[BetterBatteryStats] Avishai1b:
Standby:
[BetterBatteryStats] Mikulec:
Does anybody know what is net_scheduler wakelock? I havent had that its popping out since few days and I cant figure whats the culprit since I havent changed anything.
[BetterBatteryStats] gaich:
Playing games and uploading records?
[BetterBatteryStats] drezz2:
Hello.

I have android 4.4.4, is it necessary to make it "application system" to work well? (I have root access)

My problem is that at some point "android system" begins to drain the battery, which is not the reason may be to switch 60h, the 100h ..

Will I help you know the cause?
[BetterBatteryStats] PeQuEsan:
I install B4 from OP in a fresh 5.1.1 N5, there's no install error but app doesn't appear in app drawer or settings/apps... Any idea?

Edit: forget it and forgive me. I had frozen BBS with Titanium Backup and didn't remember... Ouchhh!

Desde Tapatalk..
[BetterBatteryStats] Mikulec:
Well I do have some games that use the Play Games features but I havent played one recently. And it does not explain why does it show know and not in the past.
[BetterBatteryStats] gaich:
You don`t have to play them, Google Play Games is holding this wakelock to syncronize records table, points etc. Just freeze Play Games to prove it.
[BetterBatteryStats] Mikulec:
Gona do that and report back. Thx.
[BetterBatteryStats] sirxdroid:
Is there a way to track how much battery *idle* Bluetooth is using? Is it worth turning Bluetooth off when not in use? This is on a Nexus 5 running latest L. Battery life is not great, what are the recommended things to use these days, still something like Greenify?
[BetterBatteryStats] v7:
[MENTION=1330150]chamonix[/MENTION] if you don't mind,I'm sharing my battery thread here.I'm sure that It'll be helpful for users looking for better battery.

See my thread HERE

Tapped from my furious dogo ;)
[BetterBatteryStats] Uriens:
someone knows what the kernel wakelock "cwmcu-wake-lock" is? running lollipop 5.0.2 on ZTE Blade S6. Thank you!
[BetterBatteryStats] mrQQ:
how about this?
[BetterBatteryStats] marko94:
Great app [MENTION=1330150]chamonix[/MENTION] ..thanks for this :)
[BetterBatteryStats] Renton91:
I don't know if it's already known, but I found that BBS causes the wifi bar to be shown as always on in the settings battery chart when forced to disconnect from a hotspot, I mean when you leave the hotspot area or the router is shut down. I'm on Nexus 5 with Chroma and CleanCore kernel but I noticed that even with other ROMS, if needed I can provide a logcat as soon a possible.
[BetterBatteryStats] chamonix:
bbs does not control wifi, it just documents it's state. If wifi is documented as active even if you are disconnected I suggest that you check your Wifi policy as it can be set to be always sniffing, even when off
[BetterBatteryStats] Renton91:
I know, in fact the issue is only that the battery chart shows wifi always on, not that wifi is actually on, but GSam and BBS charts show it off. I don't know how to explain but I tried in every way to figure out which app caused the issue and since I unistalled BBS, the issue has gone.

Just try to shut off the router or leave the wifi area and after connection drops disable wifi and look in the battery chart, in my case it was showed as still on.
[BetterBatteryStats] rpr69:
[MENTION=1330150]chamonix[/MENTION] If you want to test anything related to Android M I am willing to guinea pig. I have it installed but it doesn't seem to be able to read some stats: 'No stats have been collected yet' for everything except Network and CPU States. I changed to using API for stats with no change. Let me know if you want to try anything, or if you just want to table it for later that's cool too.
[BetterBatteryStats] Fallingwater:
Hey, I wonder if you have any news on this problem? I posted the file you requested a few pages back.
[BetterBatteryStats] aeonix_05:
Hi [MENTION=1330150]chamonix[/MENTION]

Does the background process of BBS does not consume battery juice?
[BetterBatteryStats] Mikulec:
Tried freezing GP Games but that didnt help. Then I saw that contacts was constantly trying to use location services so I denyed it via App Ops and so far to wakelock is minimal

EDIT: wrong, after getting to work the wakelock appeared again. So its not GP games, not contacts. Anybody have a clue?
[BetterBatteryStats] wihushae:
Im sorry it took a bit longer.

Here is the logfile, fully charged, all apps closed, data on and one night "sleeping":
[BetterBatteryStats] PeQuEsan:
Hi [MENTION=1330150]chamonix[/MENTION],

I asked you to add a feature some weeks ago:

You liked it and added to your TODO list:

...and finally did "something" in B4:

But I don't think we understood each other... :P I asked if it was possible to show there "screen on" time instead of awake time... Or better, to make it configurable what statistic from "other" section to be shown there...

Can you review it please? :)
[BetterBatteryStats] Rjrocks22:
Hi, [MENTION=5490227]mdamaged[/MENTION] I am attaching the BBS dump for my phone. I'm getting wakelocks for PowerManagerService.Display, bam_dmux_wakelock, PowerManagerService.Wakelocks highest on BBS. I dont use my phone to much extent but still the Screenon and awake time is high But I'm not able to find out what is keeping my phone awake.. can you please have a look at the dump and help me to understand the root cause.

View attachment BetterBatteryStats-2015-06-02_153135379.txt

Thanks in advance!
[BetterBatteryStats] torecdude:
BBS is not working for me after i upgraded to 5.1.1 lollipop. It worked for me at 5.1 but now i only see the following message:

Any solution?
[BetterBatteryStats] buffer overflow:
Install once again without remove first install. :D
[BetterBatteryStats] grega_slo:
You have NET_SCHEDULER wakelocks again?

I have this issue too...

I don`t have this problem, then google play services FC and after FC net_scheduler begins to pile up.

Without it I have like 1.5% per hour with 2 accounts of push mail after net_scheduler wakelock I have like 3% per hour...

I think it has sth to do with GMS...
[BetterBatteryStats] Mikulec:
Yes, the wakelock came back. Now I flashed different rom and so far no net_scheduler wakelock. I will wait till I get home to see if it helps (previously it started when I got to work).
[BetterBatteryStats] sirxdroid:
Can BBS show any Bluetooth info on the Nexus 5 running 5.1.1? I have the option enabled in the view settings but I never see any Bluetooth stats.
[BetterBatteryStats] mdamaged:
You seem to be suffering from a known kernel issue with msm_hsic_host wakelocks, see: http://xdaforums.com/showthread.php?t=2297291 for more info.

---------- Post added at 10:59 ---------- Previous post was at 10:55 ----------

If you used the phone during this dump, please charge the phone to 100%, unplug it, and let it idle for 4 hours or so (do not use the phone at all), then repost a new dump.

If you did not use the phone at all, and it was just sitting there, then it's not obvious what's going on, so it might be the ROM, kernel,...i.e. it's at a level that bbs cannot attribute to an app. You can try a diff rom, diff kernel, or maybe even a factory reset. Something is keeping the display awake, you can also try booting the phone in safe mode, and charge it, then let it sit idle for 3-4 hours and see if the dissplay still wakes up or not, if it stays awake still, then it's the rom or kernel, if it does not, then it's some rogue app that's doing it in a way that bbs is not showing (if that's possible).
[BetterBatteryStats] wihushae:
[MENTION=5490227]mdamaged[/MENTION]: in short, I have to install a custom kernel to get rid of the problem?

The really weird thing is that I have the phone for more than one year now, and this problem only since 2 month. And I'm fully on stock, just rooted, so I didn't changed any deeper things....
[BetterBatteryStats] mdamaged:
You can try, you could also try to factory reset, it might be just something that can be fixed that way, as long as you make a nandroid in either case (just in case it goes tits up), it's worth a shot.
[BetterBatteryStats] Al KHAFAJI M:
Google app keep my phone awake all the time!

Hello there

I start facing an annoying and weird issue since I update my nexus 5 from 5.1 to 5.1.1 lollipop

Despite the fact that everything is deactivated ( GPS, WIF, 4G) and the phone was in air plane mode, I discover that the battery went down to 7% as the phone was active all night through the Google app

I charge it this morning and now its the same ( went down to 66% after 1h SOT ) and the batrry state shows that Google app on the top of the list

Even when the WiFi go to sleep, the phone kept active through the Google app

Any idea of what to do ? A factory reset ? Wait for an update to this Google app as I vhekced and there is no option to remove any recent updates

Thanks for your help

Yours

Al Khafaji M
[BetterBatteryStats] mdamaged:
Please read the OP on how to provide a proper BBS dump. i.e. charge device to 100%, let it sit idle for 3-4 hours, then post, as an attachment (or inside hide tags) a complete BBS dump.
[BetterBatteryStats] drezz2:
Good afternoon.

Today I used some mobile (very little) and it has not always been connected with data, the process that drains the battery has not appeared today, but I wonder if they see something strange?

Deep Sleep (): 19 h 49 m 40 s 95.8%

Awake (): 52 m 46 s 4.2%

Screen On (): 15 m 6 s 1.2%

Is it normal that lit screen is 15minutes 52 minutes awake? (I already 19h 49m has been in deep sleep)

Thank you very much to all
[BetterBatteryStats] mdamaged:
Looks fine to me.
[BetterBatteryStats] drezz2:
ok thanks.. i wll try post again if the "android system" drain the battery again..

so.. its normal then.. 15 minutes screen on.. and 52 awake?
[BetterBatteryStats] mdamaged:
Screen on and Awake are 2 different things, it just means it was awake doing stuff while the screen was off, syncing, housekeeping, etc.
[BetterBatteryStats] tangcla:
[MENTION=1330150]chamonix[/MENTION] - remember my issue with being unable to read alarm stats under root/BBS? I ran a deodexed version of the stock ROM on my phone and it now works.

I'm not sure if that helps you in any way though.
[BetterBatteryStats] Ok_Kaleidoscope5109:
[MENTION=1330150]chamonix[/MENTION]

Have you thought about setting up some sort of display similar to the Android battery screen to show when the phone is awake, except specific to wakelocks? Say over an 8 hour work day, it would be interesting to see when a wakelock kicks in more. It can help us understand when wakelocks need to be clamped down on and how to hone in. Also it helps to understand when rogue wakelocks start and end to help us understand what's triggering it.