yashsingh1/xdaforums huggingface dataset:
[Nexus 6P Q&A, Help & Troubleshooting] Nystad97:
May seem like my internet is to blame for the Doze problems. Yesterday during the nine hours when I lost 8 % of my battery, I was connected to my 2.4 GHz network. Today when I tested, I was connected to my 5 GHz network. The result was a reduction of 44% within eight hours...
[Nexus 6P Q&A, Help & Troubleshooting] flasflus:
My WiFi settings are now forced to 5GHz and last night I lost 8% in 6h.

My best loss was in auto-freq WiFi mode and it was about 3%-5%, don't remember now.

I will try forcing the WiFi frequency to 2.4GHz.

Your 44% loss MUST be something else, IMO.
[Nexus 6P Q&A, Help & Troubleshooting] Nystad97:
As a side note: my Wi-Fi settings on my Nexus 6P have always been set to "Automatic". The only thing I've changed is which network I've been connected to at home (I have two networks, one 2.4 GHz and one 5 GHz).
[Nexus 6P Q&A, Help & Troubleshooting] Bobvark:
I finally got doze to work again by turning off bluetooth. I was hoping the update would have fixed the (my) bluetooth/doze issue, but it did not :( Has anyone done a factory reset and gotten the problem to clear up?
[Nexus 6P Q&A, Help & Troubleshooting] ynksbsbll2:
I also turned off Bluetooth and have been experiencing much better battery life. I just recently went about 41 hours off the charger with 2.5 hours of screen time. Usually I'd be lucky to get 2.5 hours in about 16 hours.
[Nexus 6P Q&A, Help & Troubleshooting] yunierdj:
It seems like the Bluetooth issue has to do with Android wear, if you have any wearables.
[Nexus 6P Q&A, Help & Troubleshooting] acid005701:
Doze working fine here. No android wear but I do have a pebble time steel and fitbit flex always connected. No greenify installed.

I did have issues when the app gas buddy was installed. Kept it from going into doze

EDIT: Gas buddy updated their app. Doze works fine now.
[Nexus 6P Q&A, Help & Troubleshooting] Bobvark:
Well I got fed up and Wanted my bluetooth to work, so I reset it. Only drained 4% in 8 hours overnight. I did not install tasker or any app that scans bluetooth (I had another app after I uninstalled tasker that would automatically play music when connected to bluetooth). So if you're in my boat, give it a try.
[Nexus 6P Q&A, Help & Troubleshooting] ynksbsbll2:
What did you do to reset Bluetooth, I don't see the option anywhere
[Nexus 6P Q&A, Help & Troubleshooting] yunierdj:
I think he meant reset to factory the phone ?
[Nexus 6P Q&A, Help & Troubleshooting] Daniel_hoy:
What is going on here? 39% down in 7 hours! Wifi on (Auto, 5 GHz), bluetooth off.

Doze worked perfect when I got the phone. Stopped working and I updated to MDB08M and it started to work again.

Now I am an 6.0.1. Don`t remeber if doze stopped working when I was on MDB08M.

Have used Android since HTC Hero and every time I have had problems I have blamed HTC, Samsung and myself for modifying my phones too much.

But now I have a Nexus phone and no one to blame! I`m buying an iPhone soon :rolleyes:
[Nexus 6P Q&A, Help & Troubleshooting] Casyis:
Automatic Wi-Fi frequency scanning and 5 ghz connections are known to prevent doze per XDA. First, boot into safe mode and let it doze. If it does, then it's an app keeping your phone awake. If it doesn't, try setting wifi to 2.4 ghz.
[Nexus 6P Q&A, Help & Troubleshooting] Daniel_hoy:
1,5 hour in safe mode. Still the same problem. Will try safemode tonight with wifi off. But i`m tired of being a beta tester for google. I paid to get a working phone, not to be a tester without salary :p
[Nexus 6P Q&A, Help & Troubleshooting] geoff5093:
If you leave WiFi off then it doesn't matter if it's set to 2.4GHz only or automatic, right?
[Nexus 6P Q&A, Help & Troubleshooting] yunierdj:
Correct
[Nexus 6P Q&A, Help & Troubleshooting] Casyis:
Judging from your graph, it's your mobile signal. Bad signal keeps doze from activating because the phone is constantly searching for a better one. And yeah, I hear ya.
[Nexus 6P Q&A, Help & Troubleshooting] BSav:
Hello

I had the same batttrey issue, so tonight I turned wifi off when sleep, changed it to 2.4 and instade of losing 10% or more, I only lost 3%.

This is pretty strange, consider the fact that in the first few weeks I had the N6P it had very good battrey life (like 5:30 of SOT, lasting more then 24 hours) however, I feel that since the 6.0.1 update, the battrey is not as good as it used to be.
[Nexus 6P Q&A, Help & Troubleshooting] rice923:
Just as an umbrella suggestion to anyone having problems with doze, go into the bootloader and clear your cache for a try.

Also, I'm sure some of us keep our phones directly on the bed during sleep. Try keeping the phone on something stationary, like a night stand or a table. I've had my doze interrupted when I turn during sleep before
[Nexus 6P Q&A, Help & Troubleshooting] Vishal90:
I was losing around 7% when I slept for 7 hours. Last night I changed two things. First I disabled Amplify and then I changed Wi-Fi from always on while sleeping to only on while sleeping when plugged in. After doing this, last night I only lost 1% in 8 hours. I suspect the main cause is the Wi-Fi.
[Nexus 6P Q&A, Help & Troubleshooting] Ves:
Did you wipe the system cache to see if that gave any improvements.

Personally I've noticed a major improvement, not only with Doze kicking in but my SoT being longer.
[Nexus 6P Q&A, Help & Troubleshooting] Th3Duck:
No I haven't cleared system cache. My biggest problem was that I left my phone on the bed at night, this gave the problem of doze not kicking in.

Right know I usually have around 1,5 day of usage with 3,5 hours of SoT. Mostly reading news and facebook on chrome and some gaming.

I dont know if that is reasonable?
[Nexus 6P Q&A, Help & Troubleshooting] Ves:
That seems pretty reasonable. I was getting around 3:00-3:30 with similar usage (not FB) with a smart watch.
[Nexus 6P Q&A, Help & Troubleshooting] xzathix:
On my Nexus 5 Doze used to turn off Wifi during the night. On my new 6P it's always active although I forced the 2.4GHz range and turned off Wifi-Scanning as well. Anyone else noticed something similar? My used apps are exactly the same since I restored my settings from the Nexus 5.
[Nexus 6P Q&A, Help & Troubleshooting] Daniel_hoy:
After I deleted my 5 GHz network from saved networks, doze have been working.

My settings are still automatic 2,4/5 GHz, always on, wifi scanning off
[Nexus 6P Q&A, Help & Troubleshooting] xzathix:
Is Doze turning off wifi on your phone?
[Nexus 6P Q&A, Help & Troubleshooting] ultrastranger:
When I leave 4G and wifi on, doze doesnt seem to work: doze turns off wifi, but 4G stays on and drains almost 10% overnight.

When I turn off 4g with wifi on, i get 2%-3% drain overnight.

Is doze supposed to turn off 4G too?
[Nexus 6P Q&A, Help & Troubleshooting] rpiton:
I dont know what else can I try, I read all the 29 pages in this topic, got my 6p about a week ago, and never got doze to work.

All my sync options are off and i loose about 9 - 11 % over the night time, about 7 hours.

Wakelock detector gave me the problem: NlpWakeLock and NlpCollectorWakeLock from google services are keeping the device awake during 2,5 hours during a 7 hour night.

Forgot to say that it gets warm using simple things like facebook and whatsapp, about 38º C acordind to Batery Widget, is it normal?

Look at the screen and awake bars at the screenshot!!!

[IMG="Screenshot"]http://s31.postimg.org/ohx5fws6z/Screenshot_20160422_093008.png[/IMG]
[Nexus 6P Q&A, Help & Troubleshooting] Pain-N-Panic:
Are you rooted? If so try installing naptime from playstore and toggle "aggressive Doze." My standby time is absolutely amazing. But I'm also running EX kernel with Loki script as well.
[Nexus 6P Q&A, Help & Troubleshooting] rpiton:
Thanks for responding.

I'm trying to solve the problem without root.

I just dont understand how there are so many people, just in this topic, with this problem...

One of the major benefits of android 6.0, and we dont know how to solve it by the regular ways(without root).

Besides that, on my device, its not a third party app that is causing the MASSIVE number of wakelocks its GOOGLE PLAY SERVICES (NlpWakeLock and NlpCollectorWakeLock), no matter what i've tried, i get absolutely no positive results AT ALL.

Tried evething, my device only have about a week of use, i cleaned the cache, factory reseted after install all the security patches, made a clean install without any app, and the piece o **** refuses to get doze work.

Its frustrating.

If I root, what happens when the next OTA is avaliable?

Its going to install normaly?
[Nexus 6P Q&A, Help & Troubleshooting] Loser.lon:
Is 4-6% battery loss overnight normal? I usually sleep for about 8 hours.
[Nexus 6P Q&A, Help & Troubleshooting] Luigiesin:
It happens to me as well when I charge to 100%.. After 8 hours of sleep it lands at around 95%.. But if I go to sleep with the phone around 90% it will drain only about 1-2% overnight. Pretty strange.. It happens o la when I top the battery off.

A few night ago I was testing and I went to sleep with my phone at 71%.. I woke up 7 hours later with 71% straight battery line and barely any wakelocks.
[Nexus 6P Q&A, Help & Troubleshooting] Loser.lon:
you probably unplugged it at around 97% although it shows 100%
[Nexus 6P Q&A, Help & Troubleshooting] Luigiesin:
Not really.. I always charge to 100% and leave like that for about 10 minutes and then unplug.

Also happens after the whole night charging so it does charges completely.

Whatsapp is working fine with DP3.
[Nexus 6P Q&A, Help & Troubleshooting] Loser.lon:
yea but the phone will charge to 100% then discharge until 97% to prevent overcharging
[Nexus 6P Q&A, Help & Troubleshooting] Luigiesin:
I understand, but trust me when I tell you that's not the issue. It's been happening with my last 4 phones since my Nexus 4.

I remember there was always a Qualcomm wakelock after charging to 100% that didn't affect all the devices equally. I don't know if that's the case here because I tried with just the stock apps and no background syncing nor push notifications.
[Nexus 6P Q&A, Help & Troubleshooting] Loser.lon:
It actually happens to my s6 edge+ too. My tab 3 would stay at 100% for more then a minute after unplugging
[Nexus 6P Q&A, Help & Troubleshooting] Behzadsh:
I bought my N6P 2 month ago, and I remember that doze worked for me, but recently (maybe less than a month) battery drains 7~10% per hour even when it is inactive on my table. the only app I whitelisted from doze is Android Wear.

I think the latest patch update break the doze for me, or maybe because one day my phone battery depleted completely.

I read almost all posts in this thread, and tried everything suggested to get doze to work with no luck. I wiped cache partition, tried different ROMs, flashed franco kernel, used Naptime app (tried aggressive doze), but still battery drain 7-10% per hour.
[Nexus 6P Q&A, Help & Troubleshooting] therock3181:
Install Betterbatterystats and monitor your wakelock. Maybe one app or more are waking the device so Doze is not kicking in.
[Nexus 6P Q&A, Help & Troubleshooting] Behzadsh:
I have installed it and checked kernel wakelocks and partial wakelocks and they seems normal, unfortunately I flashed stock images right now to test what the result would be
[Nexus 6P Q&A, Help & Troubleshooting] therock3181:
Have you let it run over a course of a day or just an 1hr ?

It would of been helpful if you could of post a screenshot :)
[Nexus 6P Q&A, Help & Troubleshooting] Behzadsh:
I tested yesterday and today. I will test tomorrow and post screenshots
[Nexus 6P Q&A, Help & Troubleshooting] Behzadsh:
Yesterday I was at work and couldn't put my phone on table and not move it for a long time. but when I get home, I fully charged it and leave it on a table.

First I tried about 4 hours (from 9:52 PM to 2:10 AM) with wifi and mobile data off. battery drained from 100% to 80%.

Then I turned mobile data on, and keep wifi off for 6 hours (from 2:16 AM to 8:16 AM) and battery drained from 78% to 48%.

Then I turned wifi on and connected to my home network, I did not change any advanced settings, Network notification was on, keep wifi on during sleep sets to always, and wifi frequency band is set to automatic. this time for about 2 and half hours (from 8:33 AM to 10:50 AM, I was worried battery would drain fully) battery drained from 46% to 36%.

battery life is much better (5%/h) than few days ago (7~10%/h), but still I cannot see doze horizontal bar in battery usage graph.

There are something strange for me, in the screenshots attached.

1. why wifi bar in history details is always on, while I turned it off from 9:52 PM to 8:30 AM?

2. why there are some bluetooth activity in BBS graph? I never turned it on

P.S. I flashed factory images and root my phone yesterday morning, and only app I installed was BetterBattaeryStatus
[Nexus 6P Q&A, Help & Troubleshooting] therock3181:
Disable wifi and Bluetooth scanning under locations.
[Nexus 6P Q&A, Help & Troubleshooting] Prattham:
Doze never works for me when my wifi is on

Yesterday night turned wifi off at 2 am at 10%

Woke up at 9 am with 10%

Otherwise with wifi on it would drain 5 6% in the same time
[Nexus 6P Q&A, Help & Troubleshooting] steveg545:
I've just installed BBS, so I'll see if it offers any explanation. If not, I'll probably have to troubleshoot with Safe Mode first, then try to figure out which app is causing this issue. Looks like it'll take some trial and error.
[Nexus 6P Q&A, Help & Troubleshooting] feralist:
I guess I'm in a similar situation. Doze is simply not activating because I assume something is interfering with it. I'll leave my phone with 20% before bed and it's dead by morning. From what I've been reading/seeing on this forum it shouldn't sip more than 5% overnight.

I wish there was a list somewhere of apps that mess with Doze!
[Nexus 6P Q&A, Help & Troubleshooting] geoff5093:
Do you have bluetooth on? Try turning it off, there's a thread going around with a bluetooth wakelock on 6.0.
[Nexus 6P Q&A, Help & Troubleshooting] steveg545:
I was on with Google support this morning and specifically asked if they were aware of apps interfering with Doze and they (of course) would not give me a clear answer. They recommended exactly what I thought: Using Safe Mode for 24 hours, determining which apps are causing the issue, and/or factory resetting the phone.
[Nexus 6P Q&A, Help & Troubleshooting] feralist:
I'm pretty much at the point of a factory reset. Not a huge deal, I just got the phone last Wednesday.

I keep BT off and only use as needed. I keep WiFi on all the time but I know that can't be the issue right?
[Nexus 6P Q&A, Help & Troubleshooting] steveg545:
Just as a note, I don't use Bluetooth either. I keep wifi on as well. Most of the Battery screenshots I've seen posted where Doze is clearly working (horizontal drain line) shows Wifi On and significantly fewer "Awake" periods. During the night my N6P is cycling through awake constantly.
[Nexus 6P Q&A, Help & Troubleshooting] steveg545:
I'm factory resetting as we speak. I'll just use stock apps for today/tonight and see if Doze kicks in during the night.
[Nexus 6P Q&A, Help & Troubleshooting] feralist:
Very curious to hear about the results of this.

Does a factory reset also delete data like Music, etc.? I wonder if not because it's held in the emulated storage, even though it's not an actual SD location.
[Nexus 6P Q&A, Help & Troubleshooting] steveg545:
Factory reset warned me that all files in internal storage would be deleted, including photos/music.

If it's not backed up to Google somewhere, it looks like it's toast.
[Nexus 6P Q&A, Help & Troubleshooting] notfaded1:
Are you leaving bluetooth on?

There apears to possibly be a bug with bluetooth causing wakelocks all night long while phone is just sitting there and not allowing the doze to function. A few people have reported this... there's even a thread about it. Mines been dozing correctly. A few people found night and day difference if they turned bluetooth off completely. If this is true I'm sure google with patch it in an update... in the mean time maybe check with bluetooth off.

http://xdaforums.com/nexus-6p/help/bluetooth-causing-wakelock-t3237226
[Nexus 6P Q&A, Help & Troubleshooting] DrunkFuX666:
Usually it's an app which is always causing the interference... One a few of the biggest ones in my experience which people don't realize is Facebook, including its messenger and Instagram... Any Facebook related app has the worst battery optimization. A close second is the Viber app if anyone uses that...

Uninstall them or be sure to greenify them... Tho greenify can't always hibernate Facebook...

Sent from my Nexus 6P
[Nexus 6P Q&A, Help & Troubleshooting] geoff5093:
And just a tip if you want Facebook notifications, Chrome can push these to your phone. I removed the facebook app and I got a notification from Chrome whenever someone commented on my posts.
[Nexus 6P Q&A, Help & Troubleshooting] achuxtreme:
This is how doze works in my Nexus 5X. Heavy user.
[Nexus 6P Q&A, Help & Troubleshooting] feralist:
I'm a very heavy Viber user-- but if Viber has battery optimization settings on, why would it still be the culprit?
[Nexus 6P Q&A, Help & Troubleshooting] hutzdani:
It aucks pretty hard, its been 3days since I rooted and flashes the CFboot.img and Doze is still optimising.

I think it's gone to India to meditate somewhere and forgit its return tickets.

So far it's a POS, even using the editor and having more aggressive still never finished optimising ( 2 days wait )

Also I read people are saying WiFi scanning setting seems to keep the phone awake if your always connected at home.

The attached image is from a day with 2 or so hours sat still on a desk.

Doze needs work IMHO
[Nexus 6P Q&A, Help & Troubleshooting] steveg545:
After factory resetting, I've got the following additional apps installed:

- Textra SMS

- Instagram

- Snapchat

Keeping an eye on doze through tonight.
[Nexus 6P Q&A, Help & Troubleshooting] belloni:
I'm quite certain that it will always say "Optimising" and nothing else unless stated otherwise?
[Nexus 6P Q&A, Help & Troubleshooting] osi13:
Is anyone else using WiFi calling?

I have scanning off for BT and WiFi, and I've been losing 6-10% overnight with BT off and data set to 2G. I also have almost every Google app removed from /system/app /system/priv-app. I was losing 1% on M preview 1 with my Nexus 5 overnight, so something isn't right. I don't appear to have any wake locks, but I'm wondering if WiFi calling is the cause for drain. I tried greenify's aggressive doze but don't like it because it stops telegram's notifications from coming in. OP, maybe that's your issue? I'm going to try tonight with WiFi calling off.
[Nexus 6P Q&A, Help & Troubleshooting] __NBH__:
You are correct, it means it is optimising that app permanently unless you change it to not optimised, it doesn't mean it is optimising and then it will change to optimised.
[Nexus 6P Q&A, Help & Troubleshooting] steveg545:
Unfortunately, I'm on Verizon Wireless. No WiFi calling available.
[Nexus 6P Q&A, Help & Troubleshooting] altezza2k2:
i was having a similar issue. first few days the phone was chewing through the battery. for me it was location history. as soon as i turned it off, battery life has been fantastic.
[Nexus 6P Q&A, Help & Troubleshooting] opz187:
I don't understand why people are having such issues with doze and battery drain. although I can almost guarantee that everyone has Facebook installed. I put mine to bed at 74% I wake up and its at 74%
[Nexus 6P Q&A, Help & Troubleshooting] opz187:
there's a bunch of reboots in the middle from messing with layers, but sleeps like a baby
[Nexus 6P Q&A, Help & Troubleshooting] MYxdaUSERNAME:
Hi everyone. I also get terrible battery life overnight with no flat spots showing doze activated. Can something like Beautiful Widgets updating weather every hour or keeping wi-fi set to "on during sleep" keep doze from activating?
[Nexus 6P Q&A, Help & Troubleshooting] osi13:
I never had an issue with my Nexus 5, but even my OPO on 5.1.1 was doing better than my Nexus 6P is on 6.0 with doze. I did a clean install, don't have facebook installed, and have a lot of apps removed from /system/app. I'm convinced now that it's from WiFi calling being enabled.
[Nexus 6P Q&A, Help & Troubleshooting] feralist:
I too have the Wi-Fi calling setting activated, I wonder if this could be the reason!
[Nexus 6P Q&A, Help & Troubleshooting] Kusanagi Fire:
I had a similar experience where at first I was still losing 5%-10% battery at night, which was not at all what I expected. After looking at Better Battery stats, it appeared Bluetooth and Location (Google Fit of all apps) were sucking up my battery life. I changed both of those and only saw a 1% loss last night. Not sure if it's REALLY because of Bluetooth and Location settings in Google Fit, but those are the two things I can think of that I changed.

Pretty impressed with Doze so far and looking forward to trying the new app that changes the settings - haven't gotten around to trying it out.
[Nexus 6P Q&A, Help & Troubleshooting] feralist:
Interesting development--

I left my phone still (upright, even) for about 2 hrs in a parking lot and doze activated. I got the flat battery line in the graph! Note: No WiFi connection, but WiFi radio was turned on. For me this adds to the concern that WiFi calling being activated could be killing battery.
[Nexus 6P Q&A, Help & Troubleshooting] steveg545:
Here are my battery stats from last night. This is coming off a factory reset. The only applications I installed were Instagram, Textra SMS, Snapchat and Pocket Casts.

Something definitely isn't working. Next I'll boot into safe mode and see if that allows Doze to activate.

Again I'm on Verizon Wireless, so no Wifi calling. Bluetooth is also off.
[Nexus 6P Q&A, Help & Troubleshooting] badboy47:
Lol you need to enable it first >,>
[Nexus 6P Q&A, Help & Troubleshooting] steveg545:
Doze is not something you activate. Under "battery optimization," all apps are currently being optimized for battery use. There is no "Doze" setting to enable.
[Nexus 6P Q&A, Help & Troubleshooting] feralist:
Overnight results: Left phone at 31%, went to bed, woke up to dead phone.

Battery chart says WiFi accounted for 30% battery drain. What's happening? Is it the WiFi calling? What about the "Keep WiFi on during sleep" option? Should I not have that on "always?"

Is there anyone with WiFi calling AND "never sleep" that is getting doze to kick in? My assumption would be no. I know doze works when I don't have a WiFi connection, so maybe I'm on to something.
[Nexus 6P Q&A, Help & Troubleshooting] steveg545:
That I haven't tried. But in other screenshots from users where Doze is functioning properly, WiFi is always on.

I've reached out to Google support and am receiving a replacement device. Maybe it's just a fluke in the device itself.
[Nexus 6P Q&A, Help & Troubleshooting] opz187:
ooh yea WiFi calling will melt your battery
[Nexus 6P Q&A, Help & Troubleshooting] osi13:
It's for sure WiFi calling. I went to sleep with 55/54% and woke up with 53%. 8 hours total. WiFi calling was off. From now on I'll only have it activated if my phone is plugged in. I'm pretty happy with the standby time.

If you're having an issue with doze be sure that WiFi calling is off for now.
[Nexus 6P Q&A, Help & Troubleshooting] feralist:
I'm definitely going to try this tonight.

So if WiFi Calling is the culprit what's the workaround? It's a pretty cool feature that I really wanted to make use of. Or maybe there is a toggle for easy access?
[Nexus 6P Q&A, Help & Troubleshooting] aar0nsky:
Thanks for making this post to track down the culprit. I dont have my device yet but when I get it this is good stuff to know.
[Nexus 6P Q&A, Help & Troubleshooting] MYxdaUSERNAME:
Not saying you're wrong for all cases, but for me and the other verizon user's experience you are dead wrong.

Verizon doesn't have wi-fi calling but we both can't get doze to activate...

However, saying that, it does seem like either turning off the wi-fi on during sleep, changing beautiful Widgets to update every 6 hours instead of 1 or shutting off my location history helped get me a flat bar for 3 hours last night/this morning. I hadn't seen that yet in the week I've had the phone.