yashsingh1/xdaforums huggingface dataset:
[Nexus 6P Q&A, Help & Troubleshooting] klvnhng:
My phone's been randomly waking up every few seconds while on wifi. In fact, LTE drains less battery while the phone is asleep! I looked at the kernel wakelocks and the main culprit was of course wlan_fx_wake (although qpnpfg_memaccess and qpnpfg_update_temp are pretty high too). I've tried literally everything to get rid of the wakelock, from setting a static IP to disabling upnp to disconnecting other devices on my network to turning off Auto Channel Scan (as mentioned last page by [MENTION=2042156]steveg545[/MENTION]), but nothing works. It's quite frustrating—Google seriously needs to release a fix for this.
[Nexus 6P Q&A, Help & Troubleshooting] Casyis:
Odd - static IP should do the trick with DHCP queries.

First in this FAQ may help re: IPv6. http://xdaforums.com/showpost.php?p=25876666&postcount=3
[Nexus 6P Q&A, Help & Troubleshooting] klvnhng:
That fix is for if Windows is causing the wakelock. I get the problem even when my computer is off, so it can't be it. Appreciate the help though!
[Nexus 6P Q&A, Help & Troubleshooting] Casyis:
Ah, I overlooked that. Sorry - was reading too fast.
[Nexus 6P Q&A, Help & Troubleshooting] n0ahhh:
So now I have a new issue, not sure if I should make a new thread, but I'll mention it here anyways. I just got a case and a screen protector yesterday. Now before I applied the screen protector, I had my phone in a state where Doze was actually kicking in and working as intended. AFTER I applied the screen protector however, it never goes into Doze. Is this a known issue? Or has anyone else had any experience with this?
[Nexus 6P Q&A, Help & Troubleshooting] Casyis:
I suppose it's possible if the screen protector covers the entire area around the top speaker. There's a proximity sensor at the immediate bottom right of it. Use a flashlight and you'll see it. When doze begins working, it goes into a sensing mode for both motion and proximity before going into idle. If the sensor is covered I can see that happening.

If it is covered, you can test by calling your voicemail. If the screen goes dark when lifting the phone to your ear, and comes on when you lower it to end the call, then it's working right and probably not the issue.
[Nexus 6P Q&A, Help & Troubleshooting] n0ahhh:
http://www.amazon.com/gp/product/B0170TTSJC?psc=1&redirect=true&ref_=oh_aui_detailpage_o03_s00 This is the case/protector I have. The screen protector has a little cutout on the bottom right of the top speaker. Unless I applied it crooked (which I definitely don't think I did), then I don't think it's being covered. I tried letting the phone idle face down and it still wouldn't go into Doze. Maybe I'll just have to remove it altogether. ><
[Nexus 6P Q&A, Help & Troubleshooting] PieOfJustice:
Even if the sensor isn't covered the phone has to be super still. If its on a bed or even a slight vibration from a fan or heater will not let doze kick in. Also as mentioned some apps might not let doze kick in since they can spam the Priority Alert system right now.
[Nexus 6P Q&A, Help & Troubleshooting] feralist:
I too get Android OS/keep awake issues but I can't seem to figure out why exactly that happens. My best solution for when it does is to reboot and I'm usually go to go.
[Nexus 6P Q&A, Help & Troubleshooting] ph3n1x:
I too was having this same issue with not getting doze. What I found to work was I went into my router and fixed all WiFi channels to a single channel. I disabled WiFi on during sleep in the phone and sure enough I tested last night and lost 1% battery in 7 hours.
[Nexus 6P Q&A, Help & Troubleshooting] steveg545:
I would guess that the latter change you made "disabling wifi on during sleep," is what helped you achieve Doze.

I was instructed to alter my router settings to not automatically scan wifi channels and after a test with wifi ALWAYS on during sleep, I lost 10% in 8 hours.
[Nexus 6P Q&A, Help & Troubleshooting] klvnhng:
Could you post a screenshot of your graph during that period?
[Nexus 6P Q&A, Help & Troubleshooting] steveg545:
This image is from last night. You can see that with "Wifi on During Sleep" set to Always, the phone drained about 10% over night (about 56% to 46%).
[Nexus 6P Q&A, Help & Troubleshooting] klvnhng:
Yup, your phone is being woken constantly. Just like mine. Now could you plug your phone into computer and run the pc version of wakelock detector? (found here) I suspect it'll show high amounts of wlan_rx wakelock.
[Nexus 6P Q&A, Help & Troubleshooting] steveg545:
Unfortunately my phone is not rooted.
[Nexus 6P Q&A, Help & Troubleshooting] klvnhng:
Neither is mine! The program doesn't require root, just that you have adb installed (which you can get here if you don't already).
[Nexus 6P Q&A, Help & Troubleshooting] grubbster:
Cataclysm rom now has a setting that allows you to turn off the motion sensor in doze. This should allow the phone to doze while you are carrying it. Can't wait to see if this works!
[Nexus 6P Q&A, Help & Troubleshooting] PieOfJustice:
Good to know.
[Nexus 6P Q&A, Help & Troubleshooting] adamo86:
Will doze be active in pockets someone mentioned it needs to be still on a table for 20 minutes so all the sensor turns off. If ambient display is turned off would doze work in the pocket?
[Nexus 6P Q&A, Help & Troubleshooting] steveg545:
Here are my readings from WLD as of this morning.

Definitely going to uninstall Facebook app.
[Nexus 6P Q&A, Help & Troubleshooting] klvnhng:
Wow, your kernel wakelock (causing most of the drain) basically looks identical to mine. This proves that this isn't an isolated issue, and that there is substantial drain while asleep due to WiFi. Uninstalling Facebook may not make much of a difference (it didn't for me)--the drain for all apps is accounted for by the PowerManagerService wakelock, which is pretty low on your list.

Last night, I set WiFi to Never when screen off, thus only LTE would be on, and I only lost 2% overnight. No awake lines in graph either. This is quite ridiculous, when being on a data connection uses less battery than WiFi.
[Nexus 6P Q&A, Help & Troubleshooting] geoff5093:
No, even with the Doze editor you can set the time to 0, but it just means it doesn't wait 20 minutes when not moving to enter doze. When you are moving it comes out of it.
[Nexus 6P Q&A, Help & Troubleshooting] adamo86:
If the phone is in your pockets what sensors are still active
[Nexus 6P Q&A, Help & Troubleshooting] steveg545:
Hmm, I wonder if breaking down and rooting/installing a custom ROM, kernel, or one of the Aggressive Doze apps will help.

I'd really prefer not to go that route, though.
[Nexus 6P Q&A, Help & Troubleshooting] BaruchTO:
What do you mean by changing them?
[Nexus 6P Q&A, Help & Troubleshooting] EMcTx:
[MENTION=4181423]Casyis[/MENTION] and anyone else using Gsam battery monitor, are you on a custom Rom? When I use Gsam on this phone, it keeps the phone awake the whole time, and the screen is gibberish. I am using this app on my Nexus 7 with Marshmallow, and it works fine. I'm on stock rooted on the 6P, and I'm wondering if that's the problem.
[Nexus 6P Q&A, Help & Troubleshooting] Casyis:
I'm stock unrooted - not sure why it's not working for some. Strange
[Nexus 6P Q&A, Help & Troubleshooting] BaruchTO:
frustrating doze function

I just bought my Nexus 6P. Several mornings I've had gone to bed with a fully charged battery and wake up to 77% left. That's almost 25% of the charge gone! I have wifi turned off, and used an alarm to wake up this morning. History shows Facebook using 18%. I've uninstalled it and another app called twilight that automatically changes the display light for night time use and runs all the time. I have seen it with only 1 -2% change over night. It seems very strange. It's very frustrating. Why it works one day and not another.
[Nexus 6P Q&A, Help & Troubleshooting] geoff5093:
I don't know the exact sensor names, but I know it's triggered on the proximity, acceleration, and location sensors. All of which change when it's in your pocket moving.
[Nexus 6P Q&A, Help & Troubleshooting] adamo86:
Doze would be great if it worked in pockets not everyone puts phone on a table when at work.
[Nexus 6P Q&A, Help & Troubleshooting] Casyis:
Sounds like a rogue wakelock. Share your stats?
[Nexus 6P Q&A, Help & Troubleshooting] BaruchTO:
Sorry I'm so new to this, I'm not sure what you want to know. I've charged it back up and lost the battery info for last night. I'll see what it is like tomorrow morning and screen capture the information.

I'm using a Nexus 6P 64 gig
[Nexus 6P Q&A, Help & Troubleshooting] Casyis:
No worries. I think doze will be improved when 6.0.1 is released. It's buggy, being a first build.
[Nexus 6P Q&A, Help & Troubleshooting] stevemw:
I have to say I am surprised to see such high battery utilization on these devices. I haven't been able to verify that Doze is helping but I certainly see a great improvement. This is mine after a full charge this morning. I've since spent an hour underground travelling in the metro, and have performed a few application updates. I get mail like crazy and received a single phone call.
[Nexus 6P Q&A, Help & Troubleshooting] tokenbest:
Hi guys, I'm unable to get doze to work as well.

I'm using wakelock detector and when I sleep at night. It just wouldn't doze. Causing me to lose a lot of battery..

https://goo.gl/photos/Yg2uiTdXtnYo7CVV6

https://goo.gl/photos/zLMrpqdUGHHoP2q38
[Nexus 6P Q&A, Help & Troubleshooting] yunierdj:
Welcome to the club bud
[Nexus 6P Q&A, Help & Troubleshooting] klvnhng:
I feel like it's going to be the only way. I've tried Greenify's Aggressive Doze (non-root), doesn't help much. If the next OTA doesn't fix my battery problems, I'm rooting and installing Amplify.
[Nexus 6P Q&A, Help & Troubleshooting] Kusanagi Fire:
Google Fit was recently updated, but previously you could change it to not use high battery mode for location. In addition, I started to turn off Bluetooth since there's a nasty Bluetooth wakelock going around (some say it's Gas Buddy and some other apps who are the offenders).

I'm still seeing 1-3% battery drain overnight with Doze, which is a win in my book.

I saw some folks talking about GSAM (+root) and I'm one of those people who can't get it to work. Haven't tried with Chroma (AOSP) but it didn't work at all on stock builds.
[Nexus 6P Q&A, Help & Troubleshooting] Casyis:
Perfect doze last night. I unplugged at 98% before bed and it didn't even budge. I'm stock unrooted, but I do have wifi set to sleep when idle. Otherwise, Bluetooth always on, location on.
[Nexus 6P Q&A, Help & Troubleshooting] Casyis:
Do you have any apps whitelisted so doze won't touch them?

Your system UI and whatsapp wake ups are very close together. If you were getting whatsapp messages when the phone should have been dozing, it's either whitelisted, or the developer has given it priority which means doze will ignore it.

---------- Post added at 07:50 AM ---------- Previous post was at 07:37 AM ----------

Strange... GSAM is working for me no problem, fully stock. I wonder if for those it's not working there is a correlation between that and doze problems.
[Nexus 6P Q&A, Help & Troubleshooting] geoff5093:
I'm actually coming from the other end. I found that with Greenify and Amplify, my battery life was worse and Doze was never going into effect. I since removed Greenify and Amplify and used the doze editor, and now I see my phone enter doze right away.
[Nexus 6P Q&A, Help & Troubleshooting] Casyis:
Same here. My idle drain/doze is far better than what I was getting with amplify and greenify on my last phone. I think there was mention of one of the two causing even more wakelocks with doze than without. You can always bet on stock. Doze editor has also helped me.
[Nexus 6P Q&A, Help & Troubleshooting] Casyis:
Okay - I've noticed that doze works best just after charging for any length of time. Would someone mind testing this with me? Plug in for a few minutes, unplug and let it kick in. Maybe do this before bed - I'll do the same. If I go a while without charging, and leave the phone, I'll lose 2-3%, whereas if I charge a little first, I'll lose 0-1%. Unplugging from charge may reset doze in some way. Just a hypothesis.
[Nexus 6P Q&A, Help & Troubleshooting] Neo.Collin:
I got my new Nexus 6P about 4-5 days back and since the initial setup it had a system update and installed all my apps! Since then for 4 days 20% drain with all turned off except mobile network. Stock unrooted. After going through all posts on this thread, i booted to safe mode, charged to 100% and left it there over night.

Morning wake up after 6 hrs - 95%. Rebooted to normal mode, from 6:30 AM till 16:30 - 68% - SOT 1 hr. No indication that doze was activated in normal mode even after leaving phone on desk for more than 3-4 hrs straight.

* Wifi On scanning disabled, wifi on during sleep, 2.4 GHz manual

* Bluetooth off

* NFC Off

* Location On - Device Only

* Sync on on WhatsApp, G+, Twitter, Weather widget 4Hr refresh. (No FB/FB Messenger)
[Nexus 6P Q&A, Help & Troubleshooting] Casyis:
A wifi bug has been keeping some phones awake. Go to the Play store and look for updates to your apps. You should see an update to Google Connectivity Services that has fixed the issue for some. If that doesn't solve the problem, you've got an app keeping doze from kicking in, most likely.

You can also try Aggressive Doze in Greenify to see if it will trigger. You'll need to run an ADB command - there's a guide available that the app will link you to.
[Nexus 6P Q&A, Help & Troubleshooting] Joskym:
Yesterday, my Wifi bar on battery screen was filled entirely even if I was not on Wifi.

I finaly find an option to completely disable wifi.

First I turn Wifi on Sleep to "Never"

Then I've found an option on Location screen, there is an option to disable Wifi location and Bluetooth location. I then went to my job and miracle, all the time wifi was turned off, the bar was empty.(But the Awake was filled but I was using Waze).

I had the update for connectivity last night, maybe it helped. Now I'm waiting for Doze to enable, and I hope it will.

EDIT:

As you can see, it's not working.

EDIT2: I watched the logs of the phone and I see this line spamming:

12-04 12:47:49.445: I/ServiceManager(9923): Waiting for service AtCmdFwd...

and after the spam it says:

12-04 12:47:53.450: W/Atfwd_Sendcmd(9923): AtCmdFwd service not published, waiting... retryCnt : 2

Do you know what it is?
[Nexus 6P Q&A, Help & Troubleshooting] Casyis:
AtCmdFwd refers to radio commands, it's part of Google services framework.

Doze is activating, though. See the two nearly flat areas of your battery graph - that's doze.
[Nexus 6P Q&A, Help & Troubleshooting] Joskym:
So you can see doze activated here?
[Nexus 6P Q&A, Help & Troubleshooting] Casyis:
Any time it nearly flatlines is likely doze. I do see that your phone is being kept awake constantly now that I'm looking again. Check settings for wifi and Bluetooth scanning (find them in location settings), try setting wifi to 2.4 ghz only, and get gsam battery monitor to see if any apps are showing high usage. Something is definitely going on in your system.
[Nexus 6P Q&A, Help & Troubleshooting] Joskym:
All the scanning settings you're talking about are already disabled.

I also disabled Wifi during Sleep, yesterday it seems that it was turning off wifi, but today, I'm not sure it's working.

I just turned 2.4Ghz to see if it changes anything.

I already tried GSAM but the max consumption displayed was like 0.3%

I also killed all the apps on the Recent Apps screen.

But I still have the full Awake bar
[Nexus 6P Q&A, Help & Troubleshooting] Casyis:
Gotcha. Yikes. Worst case you may need to reset. Have you tried wiping cache partition in recovery? If not, I'd do that before resetting if that's what you choose to do.

A system update is coming out next week. If you can wait, you could try your luck with it.
[Nexus 6P Q&A, Help & Troubleshooting] Joskym:
I already resetted this week because the phone was often asking for pincode after fingerprint.

It seems to have solved the pincode problem but I don't know if doze was working, I only had the phone for a few days a this time.

I'll try to wipe cache but how do I do it? (I want to be sure I'm not doing anything stupid)

I know for the update, if cache wipe doesn't work I will wait for the update

EDIT: https://code.google.com/p/android/i... Priority Owner Summary Stars Reporter Opened
[Nexus 6P Q&A, Help & Troubleshooting] Neo.Collin:
I did get the connectivity services update and it didnot help! Even aggressive doze in greenify did not help! It is no better than before, still does not go into doze - 7 hrs of idle phone with wifi off also did not help! Being metal body I expected the phone to be atleast cold when on idle for longer period of time. No luck! It is neither cold nor warm. Something is keeping processor up! I'm calling google support tomorrow to see if they can help with anything else before getting replacement!
[Nexus 6P Q&A, Help & Troubleshooting] Casyis:
To wipe cache:

Boot into recovery:

1. Power off the phone

2. Press and hold power+volume down until it boots into the bootloader

3. Use volume up/down to scroll to Recovery, press power to select

4. Once in recovery (just the android in the middle of the screen), press and hold power+volume up for three seconds, then release volume up (still holding power) until the menu appears, then release power

5. Scroll using volume buttons to wipe cache, power to select.

6. Once done, reboot system.

I generally do this once a month to keep everything running snappy.

EDIT: Try seeing if the phone stays awake in safe mode. Hold power until the power off option appears, press and hold, and you'll get an option to reboot into safe mode (all third-party apps disabled). Try this overnight. If the phone goes to sleep and dozes, we at least will know that it's a third-party app/service causing the wakelocks.
[Nexus 6P Q&A, Help & Troubleshooting] Joskym:
I tried the safe mode for more than 20 minutes and the activity bar is not filled this time. So let's hunt the app ****ing with battery !!!!

EDIT:

I uninstalled Facebook app and guess what? NO MORE BATTERY DRAIN (I mean, no more awake all the time)
[Nexus 6P Q&A, Help & Troubleshooting] Casyis:
That FB app is evil. It's actually treating my phone fine, somehow... but on my last phone it was a huge battery sucker. Glad you narrowed it down!
[Nexus 6P Q&A, Help & Troubleshooting] Joskym:
I have the Facebook beta app. I'm sure they are doing some weird stuff in here.

EDIT:
[Nexus 6P Q&A, Help & Troubleshooting] bajasur:
I'm not getting any doze over night... And what's crazy is I was when I was on stock.

Two weeks ago vs Last night
[Nexus 6P Q&A, Help & Troubleshooting] yunierdj:
So is it safe to say that the Facebook app has something to do with it?
[Nexus 6P Q&A, Help & Troubleshooting] Joskym:
Here is what I did:

Uninstall Facebook App

Wait for a few hours to see how the phone behave.

Remember that I have an update every day from facebook because I use the beta version

Unsubscribe to beta version

Install facebook again

Still no battery drain.

I really hope that the beta version I was using never reach the production state because they are going to lost a lot of installs ahah
[Nexus 6P Q&A, Help & Troubleshooting] yunierdj:
Understood.
[Nexus 6P Q&A, Help & Troubleshooting] Joskym:
I tried the PC Wakelock detector version to see what can possibly wakelock the phone (I have an awake activity for few hours now and I wanted to see what was happening), results are interesting:
[Nexus 6P Q&A, Help & Troubleshooting] akshaysalunke13:
OMG ! You have so many wakelocks !! That's heck lot of awake for a phone with screen off
[Nexus 6P Q&A, Help & Troubleshooting] rice923:
Everyone having problems should probably try clearing their cache. Might just do the trick if it's not a rogue app
[Nexus 6P Q&A, Help & Troubleshooting] Nystad97:
I were also suffering from the same problems as OP, loosing about 40% overnight. After just turning Wi-Fi and Bluetooth off (still using 4G), this was the result: lost 3% in 9 hours. :D
[Nexus 6P Q&A, Help & Troubleshooting] Th3Duck:
How did you get WLD to work on marshmallow? I can install WLD but it does nothing :(
[Nexus 6P Q&A, Help & Troubleshooting] yunierdj:
I'm going to try the Bluetooth and wifi off tonight and see because I still can't get my phone to doze, or at least most of the times. I get one doze once in a blue moon
[Nexus 6P Q&A, Help & Troubleshooting] yunierdj:
I can say that after deleting gas buddy (rumors say this app keeps phone awake, can't neither confirm or deny this allegation) turning off Bluetooth, I was told in Reddit that android wear and the Moto 360 app keeps the phone awake. I was getting 18% of battery drain by android os out of that 16 hrs of keep awake, which is insane, so I turned Bluetooth off to see if my phone would doze and it does now, so I can say that android wear and Moto 360 is keeping the phone awake and not allowing doze to kick in.
[Nexus 6P Q&A, Help & Troubleshooting] Th3Duck:
I have a few questions, because when I keep WIFI on when sleeping, I noticed that the flat doze-line isn't that flat. The battery loses around 5% in 8 hours still not bad. My phone lays on the bed next too my pillow. Dont know if that had a big impact on doze.

The beginning and the end are the moment when I was sleeping. With both the option WIFI off when sleeping and the option WIFI on when sleeping.
[Nexus 6P Q&A, Help & Troubleshooting] Casyis:
Wifi shouldn't be keeping it awake, but if it's set to automatic frequency, that has kept some devices from dozing according to other threads here.

First, before messing with that, you need to be sure that the phone is motionless for it to doze. Keeping it on your bed, the phone is going to sense significant movement as move around, keeping it awake. On stock doze settings, it takes a half hour of no activity for doze to begin motion sensing for another fifteen minutes. Any movement during this time will reset the whole process.

I keep my phone on my nightstand with Greenify's aggressive doze enabled, which bypasses motion sensing and sends the phone straight into idle when the screen is flat and face down. Sleeps like a baby.
[Nexus 6P Q&A, Help & Troubleshooting] JoKe_42:
Does the phone need to be rooted to take advantage of this Greenify functionality? How good does this work with the notifications of different apps?
[Nexus 6P Q&A, Help & Troubleshooting] Casyis:
Nope, but you do run a one time ADB command from your computer to allow it.

Notifications work as normal with doze. You'd have to whitelist certain apps if you don't want to miss them. Otherwise calls and texts come through just fine.

Here's the link to the beta thread: http://xdaforums.com/apps/greenify/aggressive-doze-experimental-feature-t3223731
[Nexus 6P Q&A, Help & Troubleshooting] Th3Duck:
Thanks for the quick reply, I will try to keep the phone somewhere else. I didnt know it is that sensitive.

Doesnt greenify light up the screen now and then, when charging. That is happening with me and that is the reason I am not using greenify.
[Nexus 6P Q&A, Help & Troubleshooting] Casyis:
I haven't heard that... I'm not having that issue so maybe I can help figure that out in some way. I'll track down the conversation.
[Nexus 6P Q&A, Help & Troubleshooting] Nystad97:
I'm still uncertain why the phone remains active so much during the night.... Last night I went from 100% to 92% after 9 hours. Much better than what I were used to before (about 40 % drop - see earlier posts), but it does nevertheless appear that Doze is still not working quite right considering all the activity when not in use.

I've also tried a factory reset without much success.
[Nexus 6P Q&A, Help & Troubleshooting] Th3Duck:
I finally saw doze in action I left my phone on the shelf for the night and over the seven hours I only lost 1% battery.

Right now I only want greenify to work properly, without lighting up the screen.