yashsingh1/xdaforums huggingface dataset:
[Nexus 5 Q&A, Help & Troubleshooting] :
The logs don't give you the MAC, just for finding errors.

If it truly is hardware and you're out of warranty, the only other option without spending money right away is to try to bake the circuit board to reflow the solder points.

http://mr-mediocre.hubpages.com/hub/How-Baking-A-Motherboard-in-the-Oven-Worked-for-Me

https://www.youtube.com/watch?v=yFCFiSB2Fuk

https://www.youtube.com/watch?v=GUIi52SwUzw

Common temps are 375F at 10 minutes for a NON-CONVECTION oven (ie. normal oven).

PS1 dude did his at 425 for 8 minutes, but that's 2011.

This can possibly eat the entire circuit board, know that before doing it.
[Nexus 5 Q&A, Help & Troubleshooting] lukasz050:
I did it with a hair dryer

I warmed up chip "Broadcom BCM4339" (yellow , picture below) it didn't help

i also do not want to destroy motherboard, so I do not want to use the oven
[Nexus 5 Q&A, Help & Troubleshooting] :
Did a quick search:

"A handheld blow dryer might reach 131 degrees Fahrenheit. A hair dryer gets hot enough to burn skin, but not hot enough to complete serious tasks like striping paint and removing serious adhesives."

http://en.wikipedia.org/wiki/Reflow_soldering

Says that 86-212F is the cooling zone, hair dryer doesn't even get it out of that zone. So the hair dryer attempt may not have worked due to lack of enough heat.
[Nexus 5 Q&A, Help & Troubleshooting] lukasz050:
ok

I deleted the files (.macaddr and .bdaddr)

and I created new ones with the terminal

I removed the wpa files

I do not understand why some people have solved this problem with this solution, and why i cant

do you think that I need to reflow the whole motherboard?

or is it enough to heat the chip responsible for wi fi and bluetooth ?

I have point heater so i can only heat this part of motherboard
[Nexus 5 Q&A, Help & Troubleshooting] 99formulam6:
Same here. Just happened to me yesterday, and I did what was posted in the thread with no luck either.

Checking the log upon startup, I see different entries for WiFi, but I am not sure what they all mean, and if they are bad or good, but there was one:

"E/WifiHW ( 920): Supplicant not running, cannot connect"

that stuck out among the rest...

Edit: realized I didn't delete the .macaddr file before running the scripts.... ran them again this morning after deleting the .macaddr file. Rebooted the phone, and instead of the WiFi going straight to 'turning on,' it was OFF. I turned it on, but it didn't find any networks, but I was able to turn it back off, which I wasn't able to do before. I still don't know what the real problem is, or why it happened (nothing changed on the phone, it just started out of nowhere) - but atleast I made some 'progress' today, as I got it to do something different than before.
[Nexus 5 Q&A, Help & Troubleshooting] lukasz050:
same here i can now in wi fi option switch between on and off

but in fact it does not turn on wifi :(
[Nexus 5 Q&A, Help & Troubleshooting] ronnieron812:
No WiFi Nexus 5

Sorry for replying with no solution! Same problem with my stock un-rooted Nexus 5! Worked fine since March 2014...then last night it stayed in that "turning on WiFi" mode! Did factory reset to no avail! Not experienced enough to flash this, that or the other...so I may attempt to bake the motherboard if slapping the crap out of it on my palm doesn't work (as someone suggested). Only thing that I can think of that may be the culprit is my installing PDANET as well as a similiar app on my phone to tether thru my PC (which worked) but then I uninstalled it thru my laptop via USB,etc. and everything seamed to work fine on my phone,including WiFi...then like I mentioned above,it quit! I too would deeply appreciate any recommendations and I thank you in advance for your time and assistance in regards to this matter!
[Nexus 5 Q&A, Help & Troubleshooting] Simongo20:
Nexus 5 wifi stuck at ''turning on''

I have the same problem with my nexus 5, but just before my wifi got stuck on ''turning on'' I noticed that my phone got extremely hot and the battery got drain really really fast. I tried many different of the solutions above and none of them worked. I'm desesperated to find a working fix. Please help and if you suggest a fix with a lot of complicated steps to follow please be clear because i might not understand all the things that you guys understand about phones.

Thanks a lot
[Nexus 5 Q&A, Help & Troubleshooting] ronnieron812:
No WiFi Nexus 5

Interesting! I read recently that if the device gets too hot it could cause the WiFi/Bluetooth chip to lose its connection on motherboard...so I do believe somehow,somewhere,someway my Nexus 5 overheated because neither WiFi or Bluetooth works! So it's time I bake the motherboard and hope for the best! Good luck!
[Nexus 5 Q&A, Help & Troubleshooting] Simongo20:
Hi , what exacly does it means to ''bake'' the motherboard ?
[Nexus 5 Q&A, Help & Troubleshooting] 99formulam6:
If you look a few posts up, there are some links about it.

I have looked up as much as I can about the issue, and it doesn't seem to be specific to any one thing. Some users reported different ROMS, some said their phone got really hot, etc. Mind was stock Lollipop 5.0.1, rooted, unlocked bootloader, but no other changes. Nothing happened, no heat, no rom changes or anything changed with the phone. WiFi just randomly stopped working one day, out of the blue.

I am on the phone with Google as I type to see what can be done. I apparently am still under warranty, so I am on hold while the rep sees what they can do about sending a new device.

Edit: Just got off the phone. They are sending a replacement device.
[Nexus 5 Q&A, Help & Troubleshooting] lukasz050:
I took my phone to a service LG,

fortunately it turned out that the phone is still under warranty, :victory:

replace the motherboard lasted two days.

Now the phone is like brand new :)
[Nexus 5 Q&A, Help & Troubleshooting] ronnieron812:
Replacement

Curious,when did you purchase your N5? That's good their sending you a replacement! Good luck!
[Nexus 5 Q&A, Help & Troubleshooting] MushyMan:
Possible Suggestion

So I've been tearing my hair out on this issue with my N5 and how horrible it is.

Tried everything on this forum and nothing wants to work.

One suggestion I found on the net was to install Google's Connectivity Services apk.

http://www.apkmirror.com/?s=connectivity+services&post_type=apps_post

It cant be installed directly from Play Store to Nexus 5 but the APK installs.

Im not sure what it does (If it even does anything at all for the N5), apparently its got to do with Googles Project Fi.

In anycase, I installed because, why not?!

It actually slightly changed something, it gave me the ability to toggle the wifi but still no connection.

Sorry for another post without a solution but maybe it works for someone else or maybe someone has more insight into what the service does that could share some light into this problem.
[Nexus 5 Q&A, Help & Troubleshooting] cmaruan:
Well.. After 4 months.. I took the courage to do it (and also, because it just went dead .. no button or any combination would have any result)

8 min on 375F .. And it worked.. My phone has 32Gb.. and now it shows 24Gb.. A fair price to pay to have it back with Wifi ..

If anything happens Ill let you guys know.

Thanks :P
[Nexus 5 Q&A, Help & Troubleshooting] AZTX:
Replacement on the way

Last night (06/03/2015), my Nexus 5 began displaying the same problems that has been thoroughly documented in this thread. I went through all of the standard trouble-shooting steps:

Airplane mode on and off

Reboot

Safe mode boot

Factory reset through backup and reset menu

Factory reset through boot menus

None of theses resolved the issues, as has been noted in this thread. I reached out to Google to see what could be done. Google support was very nice and I listed all of my trouble-shooting steps . They then issued a RMA and I have a replacement on the way.

I know some more advanced techniques have been listed, and I would recommend trying those only if a free replacement is not an option. I wanted to put my experience in this forum in case it is of use to anyone, as I do believe this is a hardware failure.
[Nexus 5 Q&A, Help & Troubleshooting] Rvezz28:
I noticed on June 9th 2015 , I too have been hit with this.

I've tried rebooting, reflashing ROM and toggling on/off all radios/services...no luck

Waiting to get some free time to do a completely clean install and will report back.

I've also noticed that this is the first time "screen" isn't the top battery drain for me. I know Nexus 5 root users have had issues with this before but I've never experienced it myself. Perhaps they're correlated? That is above my knowledge though.

Nexus 5 - euphoria ROM - stock ROM kernel.
[Nexus 5 Q&A, Help & Troubleshooting] jawadahmad:
Hello,

I have been suffering with this issu for almost a week and it has been extremely furstrating least to say. My issue seems to be a bit more complex. Wifi get stuck and toggle greyed out. I tried many reboots and some time it only worked when bluetooth was turned on before wifi. Wifi will work but will stop as soon as bluetooth is turned off. This started to happen few days after the update.

I then reflashed it to official Andriod 5.1.0 but that didnt help. I then downloaded official 5.1.1 and then it didnt work. 2 days ago it started to work. I struggled to understand what i have done differently to make it work. Today i realised that i have removed all security locks and anti virus.

So i decided to install AVG and as soon as it was installed it stopped. I uninstalled it and it started to work again. I then installed another anti virus and again it stopped. I uninstalled it again and WIFI is back to working again like normal.

Before this, i tried safe mode, clearng cache, downgrading to 5.1.0 and nothing seems to have worked.

I am not sure how helpful my comments are but it seems to be working for me. Well atleast for the moment....
[Nexus 5 Q&A, Help & Troubleshooting] Piddyx:
My Solution

I had this problem, and I fixed it, somehow.

1st, I rebooted in safe mode by holding down power and then holding down on the power off button that appears on the screen.

2nd, I went into the settings and turned wifi off then on.

3rd, I restarted the phone.

It worked, I don't know how, but It is working now.
[Nexus 5 Q&A, Help & Troubleshooting] Flower_Power:
Tonight also faced with the same problem. Wi-fi was stuck in "Init" step.

ADB log:

866-866/? E/wpa_supplicant﹕ nl80211: Could not set interface 'wlan0' UP
866-866/? E/wpa_supplicant﹕ wlan0: Failed to initialize driver interface

I have tried to install stock 5.1.1, then 5.1.0. Null result.

After installing 5.1.0 i've asked a friend for oven, but he advise to do last try - install 5.1.1 back. So, it works. But now my nexus 5 overheating near the camera.

UPD: After 1 hour of using its broken again.
[Nexus 5 Q&A, Help & Troubleshooting] havy15:
So i got a new phone and lost my n5 (i know dumb of me) i recently found it and the rom it was on was L preview. Yeah super long so i updated the radios as i hope and think i did correclty . if anyone has a certain way to upgrade them please let me know. but i then installed a custom rom actually 3 of them and no cigar. The wifi willl turn on but initially there would be a exclamation point, but then goes away over time. my wifi is slow to connect to any access point. i ran a speeed test my speed showed 70 mpbs great but when i try to update/download an app on play store it takes litereally 15 mins( i timed) i have done what most people have stated the usual stuff but nothing works anyone wanna help out? thanks
[Nexus 5 Q&A, Help & Troubleshooting] jawadahmad:
Solution found!

I think that i have found solution for this.

I believe the issue is with Bluetooth rather than wifi.

In order to resolve this, follow the steps below.

Go to Setings

Apps

All

Bluetooth share

Force stop

Clear Cache

Clear Data

Restart your phone

Do not turn bluetooth on

Turn WIFI on by going into settings and then WIFI

Should work.

I did this a week ago and have not suffered this issue again. If you turn Bluetooth again you probably will face the same issue.
[Nexus 5 Q&A, Help & Troubleshooting] bicho6:
didn't work for me unfortunately :( Thanks for sharing though
[Nexus 5 Q&A, Help & Troubleshooting] Neil_SHAO:
Mine fixed by safe mode

Hi, I'm using Nexus 5 with Android 5.1.1.

The wifi "turning on" stuck happened to me this morning. And It was fixed by reboot into safe mode.

- I tried factory reset and it didn't work.

- To reboot into safe mode: 1) press and hold power button. 2) press and hold the 'shutdown' button. 3) click 'OK' to reboot to safe mode.

I didn't do anything in the safe mode. The WiFi just got to working itself in safe mode.

Hope it helps other people. And Stop them from doing factory reset!!!
[Nexus 5 Q&A, Help & Troubleshooting] Li1quid:
Welp, no suggestions work.

Going to send it back for repairs. Only got it back a month ago after the powerbutton repair..
[Nexus 5 Q&A, Help & Troubleshooting] paulsdv:
I have found a medium term way of fixing this.

Basically remove the battery will solve it but - most of the devices that have been impacted (myself included) have batteries that cannot be removed so...

drain that sucker until it gives up the will to even turn on and then drain it some more...

best way i found was just to turn on the video camera and leave it recording... turning on the flash speeds this up a bit.

when it dies, keep trying to turn it on into the android boot menu. (hold on and the volume down key) then if it opens i went to the barcodes menu item and let the screen stay on until it dies...this process can take a good few hours... sometimes it will seem completely dead but will then start an hour later...

so basically try get as much juice out of the battery as possible...

then plug it back into the charger and wifi should be back to normal...

i did this once and then my phone worked for around a month with no problem and then bam out of nowhere again wifi broken... so i redid it and again its working for and has been for at least 3 weeks now....

still have no idea what is causing it to break but at least i have a solution – sort of.
[Nexus 5 Q&A, Help & Troubleshooting] Prodeje79:
[MENTION=3022310]yoncy[/MENTION] have you tried this?

EDIT: here is one link: https://www.ifixit.com/Guide/Nexus+5+Battery+Replacement/26009

Some people can't do this????

also, have you tried the revised http://xdaforums.com/google-nexus-5/general/guide-to-fix-persist-partition-t2821576 ?
[Nexus 5 Q&A, Help & Troubleshooting] brunobliss:
this started happening to me today, and i got say DO NOT FACTORY RESET this is a hardware issue and you'll not be able to fix it!

I tried

. entering in safe mode

.factory reset

.flashing different roms

.deleting /data/misc/wifi

(comes back after reboot)

Wireless is still "turning on",. bluetooth doesn't work either

So at this point i'm pretty much convinced it is a hardware issue which i'll be reporting to google tomorrow (play store phone)
[Nexus 5 Q&A, Help & Troubleshooting] paulsdv:
Try my method... It will work
[Nexus 5 Q&A, Help & Troubleshooting] Rvezz28:
I second this. I've previously tried all that is stated above with the same result.

I won't be trying the battery thing.

A year and a half with a well functioning phone was a good run.

Thank god for unlimited data. +1 for Sprint I guess lol
[Nexus 5 Q&A, Help & Troubleshooting] Li1quid:
Do you guys in America only have one year of warranty? In belgium we've got 2 years.
[Nexus 5 Q&A, Help & Troubleshooting] Rvezz28:
Weeeeeeeeell I've got a crack in my screen so sprint/google or anyone else for that matter won't touch it to look at it. I'm screwed either way. Just waiting to pay off the phone and get a new one. The crack prevented me from trading in 6 months ago.
[Nexus 5 Q&A, Help & Troubleshooting] Prodeje79:
I was able to remove my battery without issue. Well I didn't fully remove it, I just disconnected the two ribbons as noted in the ifixit guide.

https://www.ifixit.com/Guide/Nexus+5+Battery+Replacement/26009

It did not fix the issue for me.
[Nexus 5 Q&A, Help & Troubleshooting] CrioMatic:
Welcome another Nexus 5 user with EXACTLY the same problem. Wifi gets stuck "ON", phone gets HOT! and restarts.

Tried everything:

1 Reset

2. Downgrade/Upgrade firmware.

Sometimes the wifi is back to working, but its unpredictable. I've had this issue for 5 days, got the wifi working for a few hours at Random times.
[Nexus 5 Q&A, Help & Troubleshooting] yoncy:
[MENTION=1451244]Prodeje79[/MENTION] Thank you, draining a lot, charging a lot i tried. Noticed that after several reboots with battery more than 90% it get his mac address, and sometimes wifi starts. Regarding battery, will check, now i have the tools needed.
[Nexus 5 Q&A, Help & Troubleshooting] Prodeje79:
Nice! No luck here really. What OS version,kernal etc are you on?
[Nexus 5 Q&A, Help & Troubleshooting] CrioMatic:
I have found a temporary fix!

Basically, let your battery fully drain so the phone shuts off. Then plug the phone into USB or wall plug, and TURN IT ON! The WI-FI button should work, and able to connect to networks. ATTENTION: ITS IMPORTANT TO LET THE BATTERY FULLY DISCHARGE! RESTARTING THE PHONE WILL NOT TEMPORARY SOLVE WI-FI STUCK BUTTON.

The problem is, WI-FI usually works for a bit, and then if you TURN IT OFF and try to TURN IT ON again, you will realized that the button will be stuck grayish color!

I downgraded from 5.1 to 4.4.4 and the problem is still there, but the temporary fix does work.

I am not sure if its a FIRMWARE or HARDWARE issue. Any ideas ?
[Nexus 5 Q&A, Help & Troubleshooting] jsjohnson1111:
This fix doesn't work for me

I let my battery drain down three seperate times then went to the Settings and tried to turn the Wifi on once the phone started charging. The Wifi On button never reset.
[Nexus 5 Q&A, Help & Troubleshooting] yoncy:
I'm on Euphoria, ElementalX kernel. I succeed to find a pattern to have MAC address and then WIFI. Turn on Airplane mode, reboot the phone, an leave it in airplane mode a long period of time (2-3h). Meanwhile i set setenforce 0 (selinux permisive on boot editing init.hammearhead.rc from root). But as soon as i enter in something related with google (try to update apps in google play store) WIFI stops. If i don't touch those apps seems to be fine. So i think it's a selinux problem.
[Nexus 5 Q&A, Help & Troubleshooting] Prodeje79:
Very interesting! I recall pointing you to a selinux thread at some point. I wish we could get someone advanced to take a look at it. Not much, but I'd gladly send someone $50 US if can get my phone fixed by figuring this out as a software issue. [MENTION=4325732]bitdomo[/MENTION]
[Nexus 5 Q&A, Help & Troubleshooting] yoncy:
Tried to get a logcat after wifi works for a period of time , but didn't succeeded, to start it. Will try again , have been busy in the last period of time, traveling abroad. Will investigate more this period and will announce you ;)
[Nexus 5 Q&A, Help & Troubleshooting] jsjohnson1111:
Solution

Google and LG suck in this situation. I went to the forum for the Nexus 5 because this seems to be a common problem.

The solution is you need to put your Nexus 5 in the refrigerator for a half hour each day. I am half serious and half joking. The phone's CPU is protecting itself my shutting off the wifi. My phone's core temp is 109 deg F without doing anything just on start up with Lollipop. I put the phone in the refrigerator for a half hour and everything worked. I have tried every option stated on this board and nothing has worked. The wifi turned on and connect after cooling the phone down. My guess is the battery drain trick originally worked because the phone's temperature ended up getting to a certain number then the wifi reset.

My general question is who's fault is this?

The phone was originally released with KitKat 4.4. The test engineering labs from both companies, LG and Google, should be running test on maximum CPU temperatures with version changes to catch these problems. I am guessing there is maximum temperature the phone's CPU can be at before the wifi shutdowns to protect the phone.

Next is I am hoping someone can figure out at what temperature the phone needs to be for the wifi to actually work.

I also called Google on this problem. They forwarded my phone to LG, which is a pathetic!
[Nexus 5 Q&A, Help & Troubleshooting] paulsdv:
Very interesting... Looking for blame... I think it has to be Google... I'm actually on a nexus 6 made by Motorola...
[Nexus 5 Q&A, Help & Troubleshooting] derpasaurus12:
The post above worked? Interesting...

...post was removed....
[Nexus 5 Q&A, Help & Troubleshooting] yoncy:
Yeah, funny, i put my phone in refrigerator for 5 minutes, restart and hell yeah, wifi works. It's good that we have cold winters here and maybe it's possible to use it. otherwise a portable refrigerator it's the solution. :D

EDIT: Second time, the same, WIFI works, so this is the problem. Suppose it's the chip so we can fix it just replacing motherboard.

With Ampere noticed around 15 degrees Celsius Wifi will stop. Even 15 seems to be a lower value.
[Nexus 5 Q&A, Help & Troubleshooting] ilmar72:
I think I solved this problem on my wifes N5. I flashed an older radio. LPX13D (L Preview) to be specific.

This has solved the problem about 95% of the way. The issue now is that the wifi will drop the connection every so often for about 15 seconds however it will automatically reconnect and work again without having to reboot the phone or touch any settings.

Maybe a different radio would yield a better result but I'm happy with the phone working as it is now.

BTW did anyone else notice that they're having issues charging the phone when the wifi is acting up? The phone wouldn't charge and a PC wouldn't recognize a usb device plugged into it. I think this whole WIFI problem might have something to do with the usb charging port.. I ordered a new one from amazon and will try it out. Flashing the old radio has also fixed the problems that I was having with the charging port....

EDIT 8-10-15 . The wifi has stopped working again so my fix has been defunct. I also tried changing the charging port. Neither has helped. This must indeed be a hardware problem with either the motherboard or the wif chip.
[Nexus 5 Q&A, Help & Troubleshooting] mhd1st:
i am having the same WIFI issues with my wife's nexus 5 phone

i tried almost everything from changing stock images to CM roms .

nothing helped.

it seems as one of the member said here cpu heating issues

as it does work a little bit when its cold.

i wonder if there is a kernel that lower the cpu usage and its freq to cool it down event at the expense of performance

in order to use wifi

I am really disgusted at LG , i should never use its products

its cheap and often buggy.
[Nexus 5 Q&A, Help & Troubleshooting] Prodeje79:
THe refrigerator/keeping realyl cools seems to help. I think we are on the right track. I bit teh bullet and sent my out of warranty phone to LG....

at least they pay for shipping via fed ex both ways........

I am curious to see what they offer in regards to a price.....
[Nexus 5 Q&A, Help & Troubleshooting] dothedvdeed:
I assume they'll offer a warranty on their repairs.... how long?