yashsingh1/xdaforums huggingface dataset:
[Nexus 5 General] GtrCraft:
My Wifi is one of the lowest, 1%, 17 mah and almost 8 hours of use
[Nexus 5 General] EddyOS:
I do not have this issue, WiFi is currently 6th on my list in battery. Now, having said that, I have WiFi on all the time as signal is bad at work and I don't use my phone a lot so I've currently got 1 day 20hrs life remaining...I don't believe it's an issue but this is only my first full day with 6.0
[Nexus 5 General] jineshpatel30:
deleted - duplicate
[Nexus 5 General] jineshpatel30:
huh ! this is strange :confused:

what's your "location settings" ( i put it on high accuracy but i don't think it affect wifi drain :silly: )

and just to conform you are on official Marshmallow right ?

Edit : actually they merged my issue with one already present from Nexus 6 so i think many have this issues in M ;)
[Nexus 5 General] prog19:
Always scan settings are located in the location menu.

I'm a Brazilian without English Course, sorry and be comprehensive :)
[Nexus 5 General] jineshpatel30:
i disabled it on 1st boot up....btw is it same as WiFi scan in lollipop ? i though it's different and only related to Location.

anyway it was disabled all the time so it shouldn't be issue ( unless people disabled it are the only one getting this WiFi drain...if this case let me know )
[Nexus 5 General] GtrCraft:
Of course I am on Marshmallow, location is set on device only (GPS)
[Nexus 5 General] jineshpatel30:
okay..and what about WiFi always scan in location setting (advance) ? i turned it off on 1st boot...if you have it turned on i'll change it & check if that's the cause or not
[Nexus 5 General] prog19:
Well, its known that if you leave wifi range and then turn off wifi it will still count as on in the battery stats. Since lollipop. Maybe it is being counted differentely(this word exist ? ) now

I'm a Brazilian without English Course, sorry and be comprehensive :)
[Nexus 5 General] CSX321:
To repeat and clarify what others have said above, it looks like the "always scan" setting has been moved from Settings/Wi-Fi/(overflow)/Advanced to Settings/Location/(overflow)/Scanning.
[Nexus 5 General] jineshpatel30:
but i didn't leave wifi range at all ! plus i turn off wifi for 8-9 hrs & this lap is also not present in battery statistic

and Sorry for *differentely :( it's differently ;)
[Nexus 5 General] Evo_Shift:
Were you tethering at all? My Wifi is second on my list and the only thing I have done is test some wifi tethering about a half hour ago. I haven't even used WiFi at all today. I don't use it at work. I have not disabled the scanning option either.
[Nexus 5 General] GtrCraft:
Did the same, turned off first boot. Did you factory reset before flashing Marshmallow?
[Nexus 5 General] jineshpatel30:
yes and also completely clean install ( wipe data, system & even internal storage :p i know it's not needed but i didn't want to take any chance )
[Nexus 5 General] jineshpatel30:
no wan't tethering.

i just changed my location setting to device only and turned of both Bluetooth & wifi scan in Location>advance setting ( you can also try this if your settings are different )

let's see how it turns out ;)
[Nexus 5 General] darthanubis:
View attachment 3499141

Really?
[Nexus 5 General] psyclist:
Giving me issues as well still with the 8.3 play sevices, also says play services are the only app not battery optimized? Rebooted and going to see, Doze works amazing, and if we can get this wi-fi drain fixed, going to have a solid 2 day phone with my current usage pattern
[Nexus 5 General] alvarorojas4:
So, I installed 6.0 from Lollipop, and did a Factory Reset, the problem was gone for 2 days and started to appear.

I just did the workarround and I'll see if it works.

Enviado desde mi Nexus 5 mediante Tapatalk
[Nexus 5 General] amnher:
After the November update. Clean and factory reset

Tried turning off scanning but nothing
[Nexus 5 General] jineshpatel30:
Play services can't be dozed bcz "all" notification goes through it. So it's okay

Mind to clear cache in recovery ? After it plz check for entire charge cycle with "wifi scanning off" in location & report & after that try with "on" as well :good:

I don't think it's gonna fix it in "security update" so we have to wait for 6.1(there are lot of bug reports going on Google product forum & most of them are assigned now so i think next proper update will arrive by end of this month)
[Nexus 5 General] amnher:
Entire charging cycle meaning from 100 to low battery?
[Nexus 5 General] jineshpatel30:
yah 100 to 20 would be suffice
[Nexus 5 General] akenis:
Could there be a connection to another bug? My Wi-Fi use was nixed yesterday after cache clear. Last night I had "tap to download" msg to get MMS. This is another 6.0 bug...not getting g mms when Wi-Fi is on. Now I see Wi-Fi bat use again..
[Nexus 5 General] fabio_v:
After a full day (7.00 am to 11.00 pm) with very limited WiFi battery drain (2%) I switched to airplane mode for the night and WiFi started draining (10% battery consumed during the night in airplane mode). Now it gained again the top rank in battery utilization. I suspect there is same strange behavior associated to switching on and of airplane mode.
[Nexus 5 General] wherezmyphone?:
Had WiFi drain after installing 6.0. Wiping cache in recovery has so far fixed issue a few days in
[Nexus 5 General] deoxna:
Wiping Cache Fixed the issue

Wiping the system cache from the recovery menu fixed the issue. I have been free of excessive WiFi batterry draining for about a week. Upon going through this forum, I realized I had WiFi location turned off (per the top post), which may be contributing to the solution. I turned it back on and will continue to watch my battery and see if the problem returns.
[Nexus 5 General] alvarorojas4:
The problem for me is gone. Since 2 days ago. Didn't do anything. It fixed itself

Enviado desde mi Nexus 5 mediante Tapatalk
[Nexus 5 General] davi12_99:
guys i have tried but not work for me T.T.....i 'm on MM ota updated
[Nexus 5 General] vaibhav.ravi:
Wi-Fi Bug is BACK!

The problem had disappeared and I flashed ElementalX kernel and SuperSU beta to get root. I thought that was the end of it. I started facing the problem again a week ago, about a week since I got root. I have not installed any apps that I think could cause this drain and my usage habits have not changed either.

So i decided to unroot and perform a clean MM install with the factory image. Did that and 4 days no issues. Phone was giving spectacular battery life. But now, the problem has appeared again last night. I can't understand why its showing up so randomly.

Will factory reset and perform MM clean install once more and see what needs to be done.
[Nexus 5 General] nx1977:
The latest OTA seems to have fixed this.
[Nexus 5 General] fair_dincum:
Yes, no more drain for me either.
[Nexus 5 General] vaibhav.ravi:
Got the bug back after a couple of days on clean stock install of MM 6.0

Finally gave up and downgraded to CM 12.1 on 5.1.1 and have a bug free experience now. Don't miss doze too much because the bug sucked battery anyway. Will upgrade to MM 6.0 after I am certain that the bug doesn't appear anymore.
[Nexus 5 General] miczk:
Hey guys,

I also experienced this tough problem for a weeks. Since first MM preview it was kinda tough to use N5 cause battery drains were unacceptable. I noticed that this Wi-Fi drain was even more annoying when I was connected to LTE. On 3G everything was much better.

Finally I realized that I might be connected with radio, so I downloaded KitKat factory image and simply flashed KitKat radio through fastboot.

Works like a charm. No more drains and battery life has increased. Give that a try.

1. Factory images link - https://developers.google.com/android/nexus/images?hl=en - I'm using radio from 4.4.4 (KTU84P)

2. Extract tar and find radio (example: radio-hammerhead-m8974a-2.0.50.1.16.img)

3. Connect your phone to PC

4. adb reboot-bootloader

5. fastboot flash radio PATH_TO_IMAGE

6. fastboot reboot
[Nexus 5 General] nemopsp:
Why use 4.4.4 radio? Does the 5.1.1 radio work or what's the difference ?
[Nexus 5 General] cescman:
I will give this a try. This sounds reasonable as I noticed that the battery drain, at least for me, only occurs when I turned on mobile data (LTE) and turned off Wi-Fi. It's odd that the Wi-Fi battery drain disappear when the phone is connected to Wi-Fi.
[Nexus 5 General] miczk:
I choose KitKat radio by random. Feel free to use those from Lollipop's builds.

And to complete my investigation. Phone now really has a reasonable battery life (day and a half), but Wi-Fi still appears which is kinda odd. I do not want to create a conspiracy theories here but I feel like that bug is encoded somewhere deeper in the system. Maybe it might be Google's will... Look at the screenshot.
[Nexus 5 General] pms33:
No need to flash radio or something. I did the following:enter in the secret menu of your n5 by typing *#*#4636#*#* in your dial,then select Phone information. Then scroll down until you find Set preferred network type.If you have LTE/GSM auto (PRL) set,change to LTE/GSM/CDMA auto (PRL) .And that's it,at list it worked for me,I'm back to normal for a couple of days now!
[Nexus 5 General] Sinergie:
How do you save that setting? Even without rebooting it returns to LTE/GSM Auto (PRL).
[Nexus 5 General] pms33:
Yes,it came back to that set,but the wifi drain issues is gone for me,since I swich the network type.You try it,and let me know!
[Nexus 5 General] nolook:
didnt work for me ive tried basically everything in this thread except flashing older radios...im getting decent battery life though so its not that bad....
[Nexus 5 General] pms33:
It seems like the type of the mobile data is used,causes the issue of the high wifi battery consumption.I select the 2G(GSM only) for an entire night.In the morning got no battery drain.After i did peek the LTE/GSM/CDMA data again,and got no drain yet!
[Nexus 5 General] Quantify:
For those still having trouble... The fix for me was to set WiFi to 2.4ghz only (don't allow 5 ghz). Presto, went from significant drain to almost none.
[Nexus 5 General] lodiha:
I also experienced a huge wifi drain after the update to MM 6.0. The problem was not only a significantly lower battery life, but also much erratic behavior and unpredictable battery life (i.e. just sitting standby on 4G network ate 40 % of battery just within a few hours). Downgraded back to 5.1.1., even though the battery life was better, still not satisfying and as I have remembered. Found a note about radio version and its influence on battery results. Flashed KK 4.4 (KRT16M) radio (no wipe) and since then, I am able to do 3 days of standby (one hour of SOT, a few calls, 30 minutes on Skype with video on; approximately half time on wifi, half time on 4G). Wifi set to 2.4 only. Will stay with this setting for a while until better results for Nexus 5 and MM 6.0.x are reported.
[Nexus 5 General] nx1977:
Seems to have returned for me.

Google just seem to be ignoring this or telling people to factory restore which is pretty insulting. We've had this issue since lollipop 5.0 FFS
[Nexus 5 General] alvarorojas4:
For me is gone some days, and then comes back.
[Nexus 5 General] Quantify:
This is FIXED with the latest Google connectivity services update from the play store. Amazing... Battery curve flattened out as soon as I installed.
[Nexus 5 General] springy:
Got to agree. So far after the new update to the Wifi connectivity app the drain seems to have gone.
[Nexus 5 General] amnher:
I have version c.1.6.4

What is t suppose to be the updated version of Google connectivity app??
[Nexus 5 General] the.teejster:
V 1.6.6 (2451150)
[Nexus 5 General] miseusegau:
Lates Google connectivity services apk....http://xdaforums.com/showthread.php?p=64142558 ...?
[Nexus 5 General] amnher:
It is not available in my playstore. Even the latest Google camera is not available. I know I can install apk but why isn't available?
[Nexus 5 General] nolook:
thanks good this is finally fixed
[Nexus 5 General] frozndevl:
I've been plagued by this issue and have tried most of the fixes. What finally worked for me was another wipe of system cache in recovery and disabling both Wifi and Bluetooth scanning. Having tried both of these previously, it didn't work. However, this time appears to be working like a charm.

Edit: Looks like I'll be trying that new GCS apk with my scanning turned on and see if that works too.
[Nexus 5 General] springy:
Over a day now and still don't see any issues with Wifi drain. This connectivity update looks like it has fixed it.
[Nexus 5 General] frozndevl:
As soon as I got home and turned wifi back on the drain came back. This was with everything turned.back on. Will try again after reboot and post results.
[Nexus 5 General] miseusegau:
Lates Google connectivity services apk
[Nexus 5 General] springy:
Spoke too soon guys, the battery drain is back... Well it is the main usage of my battery...
[Nexus 5 General] frozndevl:
Looks like it didn't do it for me either... On the latest connectivity pack. Basically since I woke up... Looks like I am turning scanning back off to see if that works as a bandaid again.
[Nexus 5 General] nolook:
hmm not for me I am still having the WiFi issue after that update..
[Nexus 5 General] rlanglade:
Hi!

I had this WiFi issue with my Nexus 5 under stock Android M, even after a full wipe. I never had the chance to get more than 2h30min SOT. Even with Greenify.

Last week I switched to Cyanogenmod 13 nightlies + greenify in root mode, it's the first time I experience such a great battery life : 4h20min SOT ! Actually I don't think I ever had that SOT performance even under KitKat.

No battery drain when the phone is idle, and great balance between performance and battery life.

I was really disappointed with the stock rom, it's crazy how Cyanogen roms can be better.

Cheers!
[Nexus 5 General] cescman:
It's back. The update worked a few days only
[Nexus 5 General] frozndevl:
The fact that the update only seemed to work makes me think it's just a placebo effect, and we noticed the normal behavior again. This is so frustrating, since I have to keep my phone stock for work I may need to upgrade.
[Nexus 5 General] nolook:
wonder if this will be fixed in 6.0.1? seems like its rolling out today...
[Nexus 5 General] springy:
1.6.7 Connectivity app is out today. Just installed it so I let you know if it fixes it... I am not going to jump the gun this time without a proper test.

I am still on 6.0 as well and I have yet to receive the 6.0.1 update.
[Nexus 5 General] Tommebaas:
1.6.7 is already out!

I don't know the changelog but I just installed it.

Let's see if this really fixes the bug.
[Nexus 5 General] springy:
LOL, sorry typo! Changed original post, thanks mate!
[Nexus 5 General] kicksilver:
I never had wifi to even appear in my battery statistics.

Enviado de meu Nexus 5 usando Tapatalk
[Nexus 5 General] sanjoth:
Working solutions

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

1. Wiping Cache Partition.

2. An app must be interfering with the android system. Uninstall applications like Clean Master, Ram Boosters, Process Killers ,etc.

Your phone doesn't need these optimizers and they are the source of the problem creating problems with the usage, asking for permissions to interfere with the system.

NOTE : Process killers, ram boosters mostly the problem, you don't need to disable WiFi everytime after use, just go to wifi options -> advanced -> Keep wifi on during sleep -> Never and select WiFi freq band as requied.

After this step you need to clear cache again and then you will never see WiFi on top i.e System will function normally.

Android has already upgraded to a level that it doesn't need any 3rd party application to manage its memory but it does require a "temp" folder cleaner :D
[Nexus 5 General] intense_potato:
I agree! That's why I install cleaner master, clean up my folders, then uninstall it now every now and then.
[Nexus 5 General] sanjoth:
Just use ES File Manager for that. It has that feature and a whole bunch more.

It is by far the perfect "Manager" for a smartphone.
[Nexus 5 General] anvesh.d:
Not fixed in 6.0.1

Hi,

I have installed 6.0.1 in my nexus 5. Still this bug exists.... :crying:

battery statistics shows wifi has consumed 24% battery....
[Nexus 5 General] jineshpatel30:
clean install or OTA ?

did you checked after charging to 100% after update ?

try disabling "wifi scanning" in location setting if it's enabled ( see hidden content in OP if you are not aware of this )
[Nexus 5 General] anvesh.d:
clean installation

Yes, it was clean installation. Actually i was using cyanogenmod 12.1 because of this bug :(

I tried every solution like disabling WiFi scanning, set location to device only and also restarted mobile in safe mode too....
[Nexus 5 General] jineshpatel30:
well then i have not much idea what's messing for you :D

try other solutions, like wipe cache & delvik. update Google Connectivity Service like other ppl said.

and check after complete charging cycle i.e after charging 100%

final option is to completely re flash factory image (with wiping user data as well, flash.bat method ..caution : this will wipe all of your data..contacts, msgs , apps , musics , folders & documents , videos..... all of them so backup )
[Nexus 5 General] Schermbecker:
Sadly this issue is yet NOT fixed. I recently installed MM 6.0.1 sources on my Nexus 5 (Cataclysm ROM) but WiFi still sucks a hole into the battery.

Only workaround for me is disabling search options in locations menu.
[Nexus 5 General] jineshpatel30:
You mean "scan" (*search) right ?

Anyway changing title back..i don't know i don't see problem now still if you guys facing it plz report it again to Google.
[Nexus 5 General] jineshpatel30:
Reported to Google. Still present in 6.0.1

Though turning of "wifi scan in location" works as fix for me.
[Nexus 5 General] nolook:
still have this bug in 6.0.1..

Sent from my Nexus 5
[Nexus 5 General] erv2:
still have issue on 6.0.1 on my D821
[Nexus 5 General] Schermbecker:
Yes :cool:

I am using a german version therefore I don't know the correct english terms. Sorry for that...
[Nexus 5 General] jineshpatel30:
No problem mate :)
[Nexus 5 General] anvesh.d:
Issue has fixed :)

Hi,

Yesterday I wiped the cache partition and installed Google Connectivity Services......

Now the issue has fixed... :laugh::D:o

Thanks.... :good:
[Nexus 5 General] jineshpatel30:
Good to know :)

I hope Google fix this S*it asap entirely -_-
[Nexus 5 General] jigsawmv:
This bug happened to me on my N6 when running Elite Kernel, but on my N5 it is not present.

Can it be kernel related?
[Nexus 5 General] janjanrex:
I thought I was in the clear and nope still present in 6.0.1 for me.

58% WiFi usage over 36 hrs and only 2hrs SoT.

I have Google connectivity disabled, WiFi scanning off, and freq set to 2.4 only.
[Nexus 5 General] dbal:
My thoughts and conclusions so far, while facing the issue on my fully stock N5 6.0.1

1. Dont be too happy if issue is fixed after factory reset, wiping cache, restart etc...Most likely It will strike back later when you start using your phone throughout the day

2. Playing around with various Wifi, location and other settings doesn't solve the problem so far and of course shouldnt be considered an even near solution - afterall, what's the point crippling the smartphone by disabling location, smart lock etc to avoid a serious aknowledged defect??

3. I agree that the problem itself is a combination of real battery drain and erroneous stats reporting

4. Dont expect any solution by the monthly SECURITY updates - hopefully it will come in a 6.x bug fixing update as always

Eventually, the problem exists, is serious and we are waiting for a quick solution by Google to enjoy our mobile living for a whole day long, especially now that Doze feature really seems to do good work under the hood
[Nexus 5 General] Annita:
I can also confirm this issue still presists on Android 6.0.1, and the workaround does not work. I've disabled the WiFi & Bluetooth scanning from the Location services tab but still get WiFi battery drain... Hope Google fixes this for the Nexus 5!!!
[Nexus 5 General] twpwb42fso0n:
All the thing I found to greatly improve battery was to set my wifi frequency band to either 2.4 or 5 Ghz only. With this set to automatic is seems to drain the battery very quickly. Settings>Wifi>(overflow)>advanced>Wi-Fi Frequency Bands.

J
[Nexus 5 General] semsturgut:
Same thing on gm 4g 6.0.1 android one device.

Guys I won't turn off something on settings or wipe my data , yes we need solution but only Google can do. This is smartphone and if we turn off Wi-Fi or something on settings there's no smart skills on ours phones.
[Nexus 5 General] Claghorn:
I woke up this morning with the battery stats page showing wifi at 1% and idle at 1%, but the battery drain chart was a triangle headed straight down with the battery at 60% (it is usually around 80 to 90% in the mornings). I rebooted the phone, it will be interesting to see if it looks the same tomorrow.
[Nexus 5 General] mwrobe1:
Thought I would add a little to the discussion here. I have a N7 (2013) with the same issue. When I am connected to a wifi network (like at home) ALL is well...Doze obviously kicks in and I get <1% idle drain.

BUT...when I go somewhere with my device (like my workplace, which does not have wifi...only wired connections) wifi will drain similar to what you all are experiencing.

This occurs whether or not I have Wifi>Keep Wi-Fi on during sleep=Always or Never AND it occurs whether or not I have Location>Scanning>Wifi scanning on or off.
[Nexus 5 General] amnher:
This also happens either on stock or on cm or other custom roms
[Nexus 5 General] caluz78:
Disable Google Connectivity and reboot phone did the trick for me.
[Nexus 5 General] amnher:
I have no google connectivity on cm
[Nexus 5 General] Claghorn:
This appears to have been a one time event. It was back to normal again this morning (80+ percent battery left after sitting overnight).
[Nexus 5 General] DoobyDroid:
N5 has always had poor battery just got me another 16gb one and still same on M just makes it past T time then need charge for rest of evening even worse 5ghz WiFi
[Nexus 5 General] sadeghjaver:
:

This hopefully will solve WiFi problem for all :

1. Go to Settings > Location > open Menu (three dots, top-right corner) > select Scanning > Turn Off Wi-Fi scanning.

2. Go back to Settings > Backup and reset > Network settings reset > tap Reset settings.

Reboot your device.
[Nexus 5 General] dbal:
No, it won't...

We have all tried these from day1 but it's only a temporary fix - keep using your phone and it will strike back.

Even a simple reboot helps the problem diasappear but only for a day or two...all hope is only on Google for a real bug fix, in a near future update
[Nexus 5 General] nx1977:
Has anyone seen any update to this from Google?

It's now taking forever to charge my Nexus 5 unless I turn wifi off.

Today wifi has consumed 70% of battery, which is ridiculous
[Nexus 5 General] yunierdj:
I didn't have this problem before on my nexus 6p, just recently after updating to 6.0.1 is that I saw this problem. 60% Wi-Fi battery drain which is crazy ?. I think this is correct it to the issue of Wi-Fi not letting the phone to doze as well. WiFi seems to be giving Marshmallow and Android a hard time this time around.
[Nexus 5 General] rennfah:
Hadn't this problem before (dirty flashed from 4.4 over 5.0 to 6.0).

Then I flashed 6.0.1, did something it didn't liked and earned boot loops. :eek:

Returned to 6.0, did a factory reset and my battery usage with disabled WiFi is higher than before with enabled WiFi.
[Nexus 5 General] yunierdj:
I wiped cache and that fixed my WiFi battery drain
[Nexus 5 General] dbal:
No, I bet it didn't....come back in a few days and report again please :(
[Nexus 5 General] yunierdj:
I'm telling you. I don't have the problem anymore
[Nexus 5 General] dbal:
I don't doubt that...I am just saying the fix won't be permanent, that's why I want you to post back in a few days...
[Nexus 5 General] yunierdj:
No issue there