yashsingh1/xdaforums huggingface dataset:
[Nexus 6P Q&A, Help & Troubleshooting] dipstik:
have you used wakelock detector or better battery stats to check your wakelocks and alarms?
[Nexus 6P Q&A, Help & Troubleshooting] feralist:
There's so much to consider with this issue. It seems we can all agree it's WiFi based. But then I read threads like this and think perhaps it's something as simple as clearing cache: https://code.google.com/p/android/issues/detail?id=189018
[Nexus 6P Q&A, Help & Troubleshooting] feralist:
Would love an update on your battery once you get your replacement device.
[Nexus 6P Q&A, Help & Troubleshooting] steveg545:
I'll definitely update this thread when I receive it (should be delivered today).

As another note, I just realized that when rotating the phone, apps do not go into landscape mode. The setting is enabled to rotate contents of screen. Maybe there's an issue with the accelerometer that is also preventing Doze.
[Nexus 6P Q&A, Help & Troubleshooting] steveg545:
Here is a screenshot of battery drain as of last night. This is off a factory reset with no additional apps installed. Lost around 20% overnight.
[Nexus 6P Q&A, Help & Troubleshooting] chrisexv6:
The fact that your accelerometer might be questionable could explain why the phone is waking up. It might think its moving while its not.

Have you tried overnight in airplane mode, just to rule out cellular/wifi radios? (sorry if you already answered it, I didnt read back through the whole thread)
[Nexus 6P Q&A, Help & Troubleshooting] jamgam:
I was dropping 8-10% per night, turned off blue tooth and now it's only 2-3% per night. I don't have FB installed (never will, what a battery hog) or instagram.

I've got everything else running though, locations, google now etc
[Nexus 6P Q&A, Help & Troubleshooting] steveg545:
I can try Airplane mode while at the office today. Cellular signal strength is always great at my house, and it'd be really unfortunate if a service I need is causing Doze to not work :confused:
[Nexus 6P Q&A, Help & Troubleshooting] feralist:
For what it's worth, here are my overnight battery consumption screens. Now I'm thinking WiFi perhaps isn't the culprit? It just looks like my phone was idle all night.
[Nexus 6P Q&A, Help & Troubleshooting] chrisexv6:
It would be just to rule out the radios. But im almost positive your issue will be with a bad accelerometer or bluetooth as there is another thread talking about bt keeping the phone awake.

Im sure there are some apps on the play store you can use to test all the sensors on the phone.....try one and see if the accelerometer is acting wonky.
[Nexus 6P Q&A, Help & Troubleshooting] steveg545:
It's sitting on a table far from me in Airplane Mode. I'll check in an hour or two and report back (currently at 100% battery). As a note, I don't have Bluetooth turned on, so we can rule that out for me :)
[Nexus 6P Q&A, Help & Troubleshooting] hudsoncouto:
there was another report of broken accelerometer/gyro on this phone. That would clearly break Doze, since it activelly looks for movement to kick in. Once OP receives his new phone with (hopefully) a good gyroscope, the problem will probably disapear
[Nexus 6P Q&A, Help & Troubleshooting] feralist:
Just got off the phone with Google Support. I'm going to try leaving the phone in Safe Mode overnight to see if Doze kicks in. Had not tried that yet. If Doze kicks in then I know it's a software issue in which I'll likely just do a factory reset and install apps sparingly. More to come...

---------- Post added at 10:49 AM ---------- Previous post was at 10:16 AM ----------

Steve, have you tried Safe Mode overnight just to be sure it's not app related?
[Nexus 6P Q&A, Help & Troubleshooting] steveg545:
I actually wasn't able to boot into Safe Mode (guess I'm not fast enough lol), but factory resetting and not installing any apps from the Play Store accomplishes the same thing, no?
[Nexus 6P Q&A, Help & Troubleshooting] feralist:
Technically yes, but didn't you say you still installed a few apps after resetting? It's possible one of those apps is getting in the way of doze.

BUT, my hunch about your phone, especially in light of the wonky accelerometer, is that there's hardware at fault. At least that's the easiest answer! Have you tried an app that monitors its functionality?

So are they letting you hold onto your existing 6P before trading in?
[Nexus 6P Q&A, Help & Troubleshooting] steveg545:
During my most recent (read: second) Factory Reset, I did not install any additional apps (just updated the ones that come pre-installed). With this setup, I still lost about 20% overnight. After a few restarts, the accelerometer seemed to be working fine. I installed a few apps to test it as well and it seemed fine. And Google gives me 21 days of receiving the replacement to send back my current device IIRC. I've got my RMA notice and pre-paid shipping label at the ready :)
[Nexus 6P Q&A, Help & Troubleshooting] steveg545:
Received my replacement device and set up like normal. Installed my apps and connected to my home WiFi network. No Bluetooth. Charged to 93% before bed and woke up to the phone reading 75% battery.

I guess it's back to Google Support chat to see what else might be the problem; I'd hate to have to get another RMA.

Has anyone with Doze not working found success obtaining root and trying "Doze Settings Editor"? Might be my next option if I get nowhere with Google.
[Nexus 6P Q&A, Help & Troubleshooting] chrisexv6:
Got my 64GB N6P last night....couldnt setup cellular (SIM wont activate) but setup my Google account and left the phone on WiFi over night (bluetooth was off)

Lost 4% of battery in about 10 hours.

What are "your apps"? And could it be something with your wifi router?
[Nexus 6P Q&A, Help & Troubleshooting] steveg545:
I have the following installed:

Better Battery Stats

Facebook

Fenix for Twitter

Flud

HomeLink Mobile (a local banking app)

Hootsuite

Instagram

Listen Audiobook Player

Nova Launcher Prime

Facebook Pages Manager

Pocket Casts

Relay Pro

Snapchat

Textra SMS

Weather Timeline

In addition to all of the pre-installed Google apps.
[Nexus 6P Q&A, Help & Troubleshooting] chrisexv6:
Try grabbing GSM battery monitor.....Ive had a lot of luck using it to find out what is keeping the phone awake.

Not sure if you are rooted or not but there is a command you can run from ADB shell that will list what (if any) processes have wake locks in the OS.

The only good thing about your battery drain is that its so big it might be pretty obvious!
[Nexus 6P Q&A, Help & Troubleshooting] steveg545:
I'll probably reach out to Google support and see what they say. Worst case scenario I'll root and install wake lock detector.
[Nexus 6P Q&A, Help & Troubleshooting] chrisexv6:
Yeah thats a lot of stuff that presumably does background data ops (feed updating, etc)

Have you tried the phone with just Google apps? I have a feeling it would work just fine.

The other option is factory reset and install one app at a time until you find the phone no longer sleeping.

CPUSpy is a good app for that, it will tell you the "time in state" for CPU (i.e. 300MHz, Deep Sleep, etc). I dont think it requires root.
[Nexus 6P Q&A, Help & Troubleshooting] feralist:
Things just got way worse for me. Tried safe mode overnight, still had 30% battery drain. Factory reset didn't do anything for me either.

Only item in battery graph is "Phone idle" which claims 1%. No idea what's going on, I'm pretty much out of options with this phone.
[Nexus 6P Q&A, Help & Troubleshooting] steveg545:
Just an update. I've chatted with Google Support again (3rd time) and two things have resulted.

I am testing my device in safe mode (again) and reporting my battery drain to my support ticket. The CSR also informed me that they are escalating the issue to their engineers to investigate whether this is an "emerging" issue with the device/software.

I was also informed that if we are unable to identify the cause, they will ship another replacement device.
[Nexus 6P Q&A, Help & Troubleshooting] feralist:
Had a similar chat with them yesterday morning. Was shocked to see the battery drain so much even in Safe Mode. And the fact that the same thing happened when I factory reset is just mind-blowing. I've been racking my brain for 5 days trying to run through all the scenarios of why this could be happening. While I know you don't have the option, I'm still a little suspicious about the WiFi Calling being ticked on.

For what it's worth, I guess we can pretty much rule out defective hardware as you're experiencing the same issue with 2 totally different (and relatively functional otherwise) phones.

The saga continues...
[Nexus 6P Q&A, Help & Troubleshooting] chrisexv6:
Exactly what does "safe mode" do?

Personally I would factory reset it and just let it sit for a while to see what happens. Maybe not even roll through the initial setup, just let it boot to the setup screen and turn the screen off (provided that lets the phone throttle down, thermally)

And did we think the accelerometer might be wonky too? Get a sensor test app to see if the accelerometer is "moving" even while the phone is still.

Or maybe you are too close to some magnetic field? Is your neighbor named Magneto by any chance?
[Nexus 6P Q&A, Help & Troubleshooting] feralist:
Oh man, maybe that's why he's always wearing that helmet?!

I guess if I just factory reset and let the phone sit there with no connection other than data/cell, and it still drained, that would prove the unit to be defective?

I've also checked gyro/accelerometer -- it's working fine.

Edit: Safe Mode (as it was explained to me by Google Support) tells the phone to ignore all 3rd party apps.
[Nexus 6P Q&A, Help & Troubleshooting] chrisexv6:
Yep, thats what I was thinking. The only real true way to rule out other apps is to not have any other apps running (Im not so sure Safe Mode is really disabling everything). You can go through setup and just not setup a Google account either. But I would make sure its basically exactly the same as how it came out of the box or at least as close as you can get it to that. My phone idled like a champ last night, even with it syncing a Google account over WiFi.

The fact its happened to a replacement one too really makes me think its a software thing. Either the app itself or just how the app is interacting with the new version of the OS.
[Nexus 6P Q&A, Help & Troubleshooting] feralist:
I'm curious to know the details of steveg545's factory reset-- I believe he did something similar. Big thanks for giving us your time with this issue Chris!

The second you exit out of the Google setup, a bunch of things start downloading and updating. Especially with the WiFi activated. I'm gonna try this tonight.
[Nexus 6P Q&A, Help & Troubleshooting] chrisexv6:
You're welcome!

And yes, the default for Play Store is to update apps automatically when connected to WiFi (I hate that, Google should really change it). Also keep in mind if you ever set the flag for "Automatically restore your applications", it will run those restores as well. I believe that flag is "ticked" during initial setup, so make sure you disable that feature.

During initial setup just skip connecting to a WiFi network. Then go into the PlayStore app and change the settings (although Im not sure if you can, without having an account connected)

Once that setting is changed, THEN connect to a WiFi network and just let the phone sit.

There have been occasions where even a Google Play Services update has caused massive battery drain, so its not limited to 3rd party apps that could be the culprit.
[Nexus 6P Q&A, Help & Troubleshooting] Zorua:
I am convinced that this has something to do with Google Play Services. In addition to this massive battery drain, my phone starts randomly lagging a lot, and force stopping Play Services immediately remedies this. I don't think this is a hardware issue because I'm on my second 6P, but a third one should be here in a day or two. This is so frustrating...
[Nexus 6P Q&A, Help & Troubleshooting] viperguy212:
Every time I go in select Battery optimization > all apps

Then I exit to home and when I go back into optimization all the apps are unselected again. :confused:
[Nexus 6P Q&A, Help & Troubleshooting] chrisexv6:
That actually makes more sense since this is something that has happened in the past when Google updates stuff.

And Play Services will automatically update with the default settings in play store (i.e. update all apps once connected to WiFi)

When I connected my phone to WiFi last night I managed to stop the auto update process right before it started, so my lack of battery drain could very well be from an "old" version of Play Services

So as a sanity check, anyone with horrible battery drain: what version is your Play Services app on? That can be accessed from the Apps screen in Settings.
[Nexus 6P Q&A, Help & Troubleshooting] Zorua:
8.3.00. I really don't understand how most other 6Ps are doing just fine but my second 6P here has the exact same problem.
[Nexus 6P Q&A, Help & Troubleshooting] steveg545:
This is a good idea. Once I finish testing with Safe mode (currently coming up on hour 2), I'll (regretably) factory reset and see what I can do with just letting the phone sit with no apps updating.

As a note, every time I activated my N6P, I always set it up as a new device. I do, however, let Google's pre-installed apps update over wifi.
[Nexus 6P Q&A, Help & Troubleshooting] chrisexv6:
It looks like 8.3.00 came out late October, there is now an 8.3.01 out (seems to have come out in the last day or two)

Someone on a thread about 8.3.00 mentioned their 2014 MotoX started draining battery like crazy after the update. Maybe the fix on the N6P is to actually update to the newest version.
[Nexus 6P Q&A, Help & Troubleshooting] combat goofwing:
I get great results with doze1% loss over night ,i have

Disabled any Google apps I don't use like books and playmovie

In WiFi / advanced I have keep WiFi on during sleep to never instead of always on.

I also don't use chrome browser which a lot of people with battery drain are reporting shows up as using a lot in battery stats ,I use dolphin and have for a while
[Nexus 6P Q&A, Help & Troubleshooting] Zorua:
I don't think I can update it unless Google decides to push it to me. If you go to the play store and search for google play services, nothing really shows up.

EDIT: nvm, managed to get to the playstore page by googling for it in the browser and going from there. I'm updated now and will let you guys know if it gets better.

EDIT2: Still at 8.3.00 after the update.

EDIT3: Found an apk of 8.3.0.1 after a quick Google search. Let's see if this does anything at all.
[Nexus 6P Q&A, Help & Troubleshooting] chrisexv6:
just checked my phone...I have 8.3.01 already. Interesting.

My security patch level is October 1, and my build number is MDA89D
[Nexus 6P Q&A, Help & Troubleshooting] feralist:
I'm running 8.3.00 (2353383-440)
[Nexus 6P Q&A, Help & Troubleshooting] Zorua:
Unfortunately, the update does not seem to have fixed the random lag for me. I realize this is a slightly different issue but I am sure it is somehow related to the battery drain. Again, force stopping Play Services instantly kills the lag.

Also, I have the same security patch level and build number as you.
[Nexus 6P Q&A, Help & Troubleshooting] Won't be druv:
Somebody corrected me that optimisation of apps was not the same thing as Doze. However when you optimise, you should get a drop down setting for all apps and this should show each app that is optimised. If that is not showing, it sounds like a bug. I have that on my old nexus 5 which is now my son's, in spite of my selection of optimisation, it always reverts straight back to an unoptimised state.
[Nexus 6P Q&A, Help & Troubleshooting] feralist:
I just let my phone sit for 2 hours at work (while on 5GHz WiFi) with WiFi calling turned OFF and I lost 0% battery. I know we ruled that out as Steve's Verizon woes, but I guess it's possible that WiFi calling could be the culprit for those who have it enabled?

Steve, just to be sure, and even though Verizon doesn't offer that, is WiFi calling turned OFF on your 6P? I'd imagine the option is still there in settings even if it's not usable.
[Nexus 6P Q&A, Help & Troubleshooting] steveg545:
Attached are my advanced WiFi settings and cell network settings.
[Nexus 6P Q&A, Help & Troubleshooting] steveg545:
Here were my results from my Safe Mode test earlier this morning:

9:40am - 10:23am (43 minutes)

59% - 58% Battery

Wifi OFF

Bluetooth OFF

Cell data ON

10:30am - 11:30am (60 minutes)

56% - 55% Battery

Wifi switched ON (and connected to network) at Start

Bluetooth OFF

Cell data ON

11:32am - 12:32pm (60 minutes)

54% - 53%

Wifi ON

Bluetooth OFF

Cell data ON

All Recent Apps Closed at Start

So on Safe mode my battery drained 6% in 3 hours. That would translate to 16% in 8 hours (overnight). Last night (not in Safe Mode), the phone drained 18%, so it looks like my play store apps don't make a difference.
[Nexus 6P Q&A, Help & Troubleshooting] feralist:
It's also tough to use the 60min intervals as accurate tests because Doze mode may not have had enough time to try and activate. I don't know this for sure, it's speculation, but I've read Doze mode kicks in around 1hr.

What's your next step?
[Nexus 6P Q&A, Help & Troubleshooting] steveg545:
I sent those results to the CSR at Google. I asked if 1 hour intervals were enough to determine if Doze was functioning properly, and he told me it was.

I'll see whether I'm getting another RMA when I hear back.
[Nexus 6P Q&A, Help & Troubleshooting] feralist:
Oh wow, I didn't realize Doze could activate sooner.

BTW, are you getting quick email responses from Google CSR? I emailed the person I dealt with about 6 hrs ago and hadn't anything back yet.
[Nexus 6P Q&A, Help & Troubleshooting] steveg545:
I've only chatted at this point. It hasn't even been 2 hours since I emailed them.
[Nexus 6P Q&A, Help & Troubleshooting] Zorua:
Updating to 8.3.0.1, force closing Play Services and clearing its cache seems to have completely fixed my lag and battery issues!
[Nexus 6P Q&A, Help & Troubleshooting] feralist:
How did you force Google Play Services to update?
[Nexus 6P Q&A, Help & Troubleshooting] chrisexv6:
Thats good news!

Friggen Google and their updates.
[Nexus 6P Q&A, Help & Troubleshooting] Zorua:
I didn't. I got the apk from here:

https://www.apkmirror.com/apk/googl...ices-8-3-01-2385995-440-android-apk-download/
[Nexus 6P Q&A, Help & Troubleshooting] feralist:
Ah, gotcha. Does it just take longer to get added to the Play Store? Or maybe they don't want this version out?
[Nexus 6P Q&A, Help & Troubleshooting] Zorua:
It's probably just a staggered update that hasn't hit our phones yet. That said, I'm really surprised that I couldn't find anything about the Nexus 6P lagging on the internet, and I've had two phones that

randomly just lagged to death until I fc'd play services. It seems to have stopped after the update, and I'm hoping it stays that way.
[Nexus 6P Q&A, Help & Troubleshooting] Zorua:
Okay...false alarm, phone drained about 10% just sitting on my desk for an hour. Although it doesn't lag anymore, so I have that going for me.

EDIT: So I went into wakelock detector, and this is what I found: https://imgur.com/a/NTKYX

EDIT2: Also this: https://puu.sh/laXF1/23677da355.png
[Nexus 6P Q&A, Help & Troubleshooting] steveg545:
So an update from last night.

Charged the phone to 100%, closed all recent apps and turned off Wifi.

Set phone down from 9:23PM to 6:00AM.

Woke up to phone at 98%.

So the question is, is there something going on with WiFi on the phone or my home network?
[Nexus 6P Q&A, Help & Troubleshooting] chrisexv6:
Do you have a 5ghz router? If so, try disabling the 5ghz radio and connect your phone to 2.4 only.
[Nexus 6P Q&A, Help & Troubleshooting] steveg545:
I've always only had the 2.4ghz network running even though my router is dual-band.

Could it be anything else with my network? Connectivity is fine and the phone isn't more than 8 feet from the router itself.
[Nexus 6P Q&A, Help & Troubleshooting] feralist:
Steve I think we're closing in on the issue. Last night I found out my Nighthawk X6 router was broadcasting 2 separate 5GHz signals. I updated the router's firmware, stopped one of the broadcasts and then, with WiFi ON all night, from 12:40a - 8:40a and my phone only went from 52% - 47%. I'm now starting to think that a WiFi network might have something to with our battery drain issues. I read a little into last night, some people say to deactivate a QoS feature some routers use, but that wasn't on in mine. Perhaps the two 5GHz bands were confusing my phone, making it work harder, preventing it from dozing, OR the router's FW update alleviated something else.

Either way, we're definitely on the right track!

I also kept WiFi calling OFF (I know this doesn't apply to your situation), but now I think I'm safe to put it back on, but with "cellular preferred" instead of "WiFi preferred."
[Nexus 6P Q&A, Help & Troubleshooting] chrisexv6:
In that case I would tend to think its something that WiFi is "doing" when its active, vs trying to decide between 2.4 and 5.8 GHz.

In Location settings, press the 3 dot menu button and click Scanning. Is WiFi scanning turned on or off?
[Nexus 6P Q&A, Help & Troubleshooting] steveg545:
That's so interesting.

I initially disabled my 5Ghz band because my old phone would constantly switch back and forth, presumably using more battery to do so.

I have another chat session set up with Google support, so I'll make them aware of these findings.

Still no reply to my email from yesterday afternoon.
[Nexus 6P Q&A, Help & Troubleshooting] chrisexv6:
Can also try locking the phone into one band through Advanced under WiFi settings.
[Nexus 6P Q&A, Help & Troubleshooting] feralist:
I know I have that setting ticked. But 5% drain is more than acceptable-- I do wonder if unticking that would net me even better batt life though. I suspect you're right and it would. Anything that stops the WiFi radio from working must help.

Very curious to hear what they say about routers draining battery. There are a bunch of variables with WiFi too, right? Channel operation, 2.4Ghz vs. 5, etc.
[Nexus 6P Q&A, Help & Troubleshooting] chrisexv6:
I had an even wilder run in with WiFi on Android.

My company setup a mesh-type network for WiFi in our building. Multiple access points but they all broadcast the same SSID.

Turns out Android (I think it was Jelly Bean) at the time had issues with seeing multiple access points with the same SSID. If I tried to connect to the network while the phone was in range of more than one AP, it would freak out, reboot and never connect. But if the phone only "saw" one access point, I could connect fine.

Really strange, but just goes to show how many variables are in play.
[Nexus 6P Q&A, Help & Troubleshooting] geoff5093:
Just to let you know, this network setup is pretty much used in every single enterprise and educational building, with multiple access points on the same SSID. Even if you are in a congested area and use Comcast's xfinitywifi network, you are bound to see many at the same time.
[Nexus 6P Q&A, Help & Troubleshooting] chrisexv6:
Agreed. But it was an actual Android issue (Google had it listed as a bug at the time)

Since been fixed but I just found it funny considering some users seem to be having WiFi drain issues with Marshmallow now too. Almost like Google is going backwards
[Nexus 6P Q&A, Help & Troubleshooting] enaybee:
I was also not seeing my 6p dozing no matter what I did. So after reading through this thread I clreaed the cache of Google Play Services and left my overnight with wifi and bluetooth turned off. I saw a total of 5% drop in 6.5 hrs. This is a lot better than 15-20% drop I was seeing before with bluetooth and wifi turned on overnight.

During the day I recharged the phone from 54% to 100% and after that I am seeing excellent standby even when phone is in my pocket. Not sure if this just a placebo but I will update if I see any diferrence.
[Nexus 6P Q&A, Help & Troubleshooting] combat goofwing:
Doze at its best