yashsingh1/xdaforums huggingface dataset:
[Nexus 5 Q&A, Help & Troubleshooting] ablithik:
I have been facing the same issue with custom roms 4.4.2 and 5.0.1, tried various kernels an ROMs without any success.

I read somewhere here that if you boot into recovery and then boot phone from there, wifi could be turned on. This actually worked for me as a workaround (tried 3-4 times and it worked each time).

Each time, i got wifi to work , phone was really heating up, in the back side, near the camera.

At this point, i got bored and frustated , so i decided to flash a factory image (return to stock) in order to get the phone to LG service since my warranty is still valid ( note that my screen was smashed but luckily i had it replaced by official LG service - nevertheless, problems started after the replacement :confused: )

After flashing stock , wifi is working 100% (phone running stock 36 hours and i have switched it on and off a lot of times)

However, there is an extreme battery drain, regardless of wifi ~ phone needs charging after 5 hours (mostly idle)!!!!!!!
[Nexus 5 Q&A, Help & Troubleshooting] cmaruan:
Which version did you install: KK (4.4 - 4.4.4) or Lollipop (5.0.0 - 5.0.1) ?
[Nexus 5 Q&A, Help & Troubleshooting] JonesL:
Have the same issue, LG has authorised a repair. The guy on the phone said, the wifi chip is most likely dead.
[Nexus 5 Q&A, Help & Troubleshooting] christopherrrg:
Have to agree with above poster, I changed everything except below the logic board and it didn't work. Had to replace the logic board lol
[Nexus 5 Q&A, Help & Troubleshooting] tenf00t:
Well i'll be damned, CM12 seems to work here too! Although it seemed unstable during the initial setup, it has now been stable for a few hours. Hopefully it will continue that way.

I'm still waiting on MasterCard to see if they will honor their "Double the manufacturors warranty" policy as I do prefer the stock rom.
[Nexus 5 Q&A, Help & Troubleshooting] christopherrrg:
Hopefully they honour it for you. I had to pay a friend 50$ for his broken one and then use his logic board because even after flashing cm12 it eventually went back to not working. After the repair my phone functions perfectly, I even changed the cords on the inside and the whole bottom half of the phone before changing the board. :(
[Nexus 5 Q&A, Help & Troubleshooting] tenf00t:
Well, looks like I talked to fast. 5 hours in and wi-fi is down again using CM12 :(
[Nexus 5 Q&A, Help & Troubleshooting] ablithik:
Installed the latest one (5.0.1 (LRX22C))

So far (2 days running) there is no problem with the wifi ( i can switch it on and off anytime) but there is an extreme battery drain.

HOWEVER, i tried today to enable wifi while phone was in airplane mode and wifi stuck on "turning on".

I restarted phone to safe mode and then back to normal and everything was fine , as far as wifi is concerned.

The most weird thing is that when wifi gets stuck on "turning on" then battery drain does not occur!!!!!! :confused::confused::confused:

I have contacted google support. I will post any relevant update
[Nexus 5 Q&A, Help & Troubleshooting] JonesL:
Haven't received my device back yet, but the online repair log states the IMEI and serial number has been changed. Guessing the tech has just replaced the board.

Just waiting for it to be tested by SBE
[Nexus 5 Q&A, Help & Troubleshooting] lettcco:
Just got my nexus 5 back...yup, I noticed the scratch I had on the phone is gone, so they basically replaced the phone for me. I was out of warranty and was ready to get a quote but looks like they did it pro bono. I wonder how long this nexus 5 will last until the power button issue shows up again?
[Nexus 5 Q&A, Help & Troubleshooting] dysprosium2:
Had the same issue both with wifi and bluetooth but my phone melted aswell a bit under the camera. Repair shop said there is no sparepart to change the mainboard so got a new one instead with new 2 year warranty.
[Nexus 5 Q&A, Help & Troubleshooting] christopherrrg:
Actually had that also! Wasn't sure if it was related. Hasn't happened on my new board though.

---------- Post added at 01:52 PM ---------- Previous post was at 01:50 PM ----------

That kinda sucks. :( people in my city are selling logic boards for 80$. Probably better off with the new one, I should have also RMA'd my device but I'm impatient so I bought my friends who shattered the screen.
[Nexus 5 Q&A, Help & Troubleshooting] dysprosium2:
Yeah, I don't know I'm from Europe and RMA could be different around here. It took me about 2 weeks to get a brand new one. I'm not sure if this is a refurbished model but seems to have loose parts inside and the otherside of the backcover has a weird klick sound when typing in left side of the keyboard. I think LG never made the logic board as a spare part so those people are selling I think are from broken models.
[Nexus 5 Q&A, Help & Troubleshooting] DrunkenDragon:
Ok here's what happened with me, few days ago my wifi just disconnected suddenly and now it hardly turns on but if it does turn on my settings crashes. i went to stock still same problem, tried few custom roms still same problem! i wonder what could be the problem! is it really the hardware problem? but the log doesnt show any hardware failure thingy!!! :confused: :(
[Nexus 5 Q&A, Help & Troubleshooting] tenf00t:
Well, just got mine back. They didn't replace the phone, I can tell because the marks my case left around the phone are still there. Although there is a new IMEI sticker on the back, the back is still the same so I assume they just changed the board.

I actually was pretty lucky, I bought the phone with my MasterCard and they honored the extended warranty that applies to anything purchased with this particular card.
[Nexus 5 Q&A, Help & Troubleshooting] christopherrrg:
Not bad, must be the IMEI of the new board? Or does it match the old one? it must not have took you too long!

Google probably did the same thing I did. :D:D
[Nexus 5 Q&A, Help & Troubleshooting] itsJohnuno:
had to get a new phone near the top of the phone i could feel the phone heating up and thats usually when wifi would get stuck turning on

so im assuming the wifi chip is what has gone out...anyone know how to disable wifi completely from the device? i read that if you delete a file in system/lib or something along those lines itll disable it. Kinda sucks because i just bought a replacement screen
[Nexus 5 Q&A, Help & Troubleshooting] tenf00t:
I got it back less than a week after they received it. I don't know the old IMEI so I couldn't say. I'll post the part number they say they changed on the repair slip when I get home.

---------- Post added at 03:42 PM ---------- Previous post was at 03:37 PM ----------

Ouch, that does suck. I assume replacing the screen was a costly procedure. It cost me 150$CAD flat fee to fix the phone directly with LG. They told me they repaired any problem with the phone for that flat fee. I assume you could have gotten your screen and wifi problem repaired for the same price... :(
[Nexus 5 Q&A, Help & Troubleshooting] itsJohnuno:
Yeah 70 bucks for a screen on amazon and I fixed it myself...your info kinda makes me think but its been done.

Ended up buying this blu vivo air for 200...just hoping I could disable WiFi and see if that fixes my problem then I could just use the phone when I know I won't be near any WiFi I really liked my n5
[Nexus 5 Q&A, Help & Troubleshooting] JKrause67:
After reading through this thread I decided to send mine back only to receive news that this phone has been discontinued and there are no stock for a replacement. I got a great deal on the 32gb model so I'm losing so much value now. :rolleyes:
[Nexus 5 Q&A, Help & Troubleshooting] makarena18:
Reloading drivers

Hi guys,

I am experiencing this problem and I would like to try all possibilities before replacing motherboard:crying:...I have already tried factory reset, safe mode and every other option...last one remaining is in my opinion reloading wifi drivers. I hope this is the problem and replacing the motherboard is just opportunity to reload the drivers in fact...

Problem is that on my phone does not work dialer code *#*#526#*#* which worked for older androids...does anyone a code to reload wifi drivers on present android versions? or is there another option how to do it without dialer codes?

I am using stock, nonrooted 5.1 right now...

thx a lot for any suggestion!!!

Marek
[Nexus 5 Q&A, Help & Troubleshooting] christopherrrg:
That's a good question honestly, I've never tried to figure this out. It seems like a plausible solution, I'll see what I can dig up.

Sent from my Nexus 5
[Nexus 5 Q&A, Help & Troubleshooting] makarena18:
Hopefully you'll figure something out;) I have already tried also 528 and 232339 codes but these are also for another phones...right now I am trying a secret codes apps to see what codes should work...but I have no idea what they can do yet..

here are codes I have found with notes from the app:

46 - Google services framework

225 - calendar info

426 - google play services

675 - mmsc

759 - google partner setup

786 - mmsc

3282 - mmsc

4636 - testing

7867 - google services framework

8378 - mmsc

33284 - mmsc

36245 - gmail

68575 - mmsc

72786 - mmsc

2432546 - Google play services

426377962 - Google play services

947322243 - Google play services

do you know what do these codes?
[Nexus 5 Q&A, Help & Troubleshooting] makarena18:
and has anyone tried deleting wpa-supplicant.conf from data/misc/wifi ? I am not rooted right now so I can't test it...
[Nexus 5 Q&A, Help & Troubleshooting] snappycg1996:
I actually have this problem too on my N5. But it actually does turn on. When I am no where near WiFi and I turn it on it says "turning on" until I go out and come back in. But it does actually turn on. Weird...
[Nexus 5 Q&A, Help & Troubleshooting] makarena18:
and have you try to delete your saved networks? it could work for you...;)

---------- Post added at 06:53 PM ---------- Previous post was at 06:34 PM ----------

ok, this is getting really weird...I wanted to try to delete the wpa_supp file so I rooted my N5 and suddenly my wifi works!!! Before it worked once out of 10 reboots and now it is still working after several reboots...I have no idea why:D

anyway I hope it will last:D if not I will try to delete the file...

edit: so it didn't last so long but I deleted the file using Root browser and after that I had connection with "!" for a while but now it works perfectly again...question is for how long:D
[Nexus 5 Q&A, Help & Troubleshooting] itsJohnuno:
Would that completely disable WiFi?
[Nexus 5 Q&A, Help & Troubleshooting] makarena18:
it won't, when you restart your phone system will create new file...but I am not sure if it entirely works...my wifi works one time and then I can see "!" at the wifi icon then my phone freezes(!) my phone keeps having fun of me...:confused:
[Nexus 5 Q&A, Help & Troubleshooting] :
http://xdaforums.com/google-nexus-5...rd-reboots-t2947784/post56924944#post56924944
[Nexus 5 Q&A, Help & Troubleshooting] itsJohnuno:
I wanna test my theory that if we can completely disable WiFi make the phone think that it doesn't even have WiFi if that'll fix it...I mean my phone gets hot up top by the camera because wifi is borked I believe and that's when reboots and performance suffers
[Nexus 5 Q&A, Help & Troubleshooting] lukypuie:
I had the same problem the last week.

actually, the problem came after doing a factory reset from Salfish OS (installed with multirom), the wifi did not worked in CM12 and Sailfish and I don't know how, but the bootloader reverted to the 4.4 version, so I tried reflashing stock 5.0 with success, the wifi was working, until I did it again (woops. damn curiosity) and reflashing 5.0 stock did not helped

I tried everything;

-Reflashed to stock, 4.4, 5.0, 5.1

-Reflashed Franco kernel (with success, for only the first attempt then after another stock flash the problem came again)

-Reflashed CM11, CM12 and PArom.

After that, I was desperate, and I started deleting everything from /boot, /persist/, /dev without success (maybe I made things worse, in the nexus 5 is pretty much different than a basic linux distro for the computer)

I've also tried generating a new mac in /persist/wifi/.macaddr with no success

Just called google on thursday... They will send me a new phone, hoping they won't notice anything as I have reverted all to stock and relocked bootloader...

(sorry for my bad english, lol)

I also can't connect to bluetooth (it does not have the MAC address too)
[Nexus 5 Q&A, Help & Troubleshooting] hexen2006:
Hi makarena,

How did you rooted your phone on 5.1? I just updated to 5.1 using the fastboot, (I did't get the OTA) but I wasn't able to connect to WIFI so, I had no choice.

I will like to try the rooting and deleting folder method, Help... please...
[Nexus 5 Q&A, Help & Troubleshooting] makarena18:
Hi,

I am using Nexus root Toolkit by WugFresh...and the deleting worked in Root Browser from Play store...

good luck with that, it didn't work for me as nothing else...I will try to use my warranty if it's not expired...
[Nexus 5 Q&A, Help & Troubleshooting] hexen2006:
Thanks,

Well, I'm pretty sure mine is expired, the order says shipped on March 10 2014, the failure present itself the past Monday March 16th 2015, I didnt call google because I was on a business trip, I call them yesterday as I arrived to report it (but I ended the call while I was missing some info on the order), I will call again today to see if I can get a replacement, (hopefully google dont get all evil on me because a few days out of warranty).

Also I saw a post about the phone being discontinued, does that mean replacement is not an option ? I remember reading an article on phonearena about like 2 weeks ago, if that is true, I must be the BAD luck BRIAN of the Nexus community :S

I almost can feel the 440 USD (399 plus shipping and taxes) going away ... :S
[Nexus 5 Q&A, Help & Troubleshooting] Skincho:
I have this problem since 6 months now.

I have tried everything without success (flashing kernels and many custom roms) and finally buy a new phone.

Yesterday, i started my Nexus 5 (witch was not used and with no battery since 2-3 months) and miracle, Wifi and bluetooth were functionnal !

I have played with it 4-5 hours without any problem

Informations :

- It was on cynogenmod 12

- Before launch it i have booted on download mode (volume up + connecting usb cable)

Very strange for an hardware problem no ?
[Nexus 5 Q&A, Help & Troubleshooting] timbck2:
This problem just started for me. I've tried all the "fixes" mentioned here and elsewhere on the web, including airplane mode, re-flashing Lollipop 5.1.0, factory reset, flashing another ROM (Cyanogenmod) - nothing has worked. I'll be putting in a call to Google Support in the morning, though I have a feeling they're going to tell me, "Sorry, but your phone is out of warranty."
[Nexus 5 Q&A, Help & Troubleshooting] :
did you attempt to fix permissions?
[Nexus 5 Q&A, Help & Troubleshooting] timbck2:
Isn't that more of an Apple thing? How would one do that in Android?
[Nexus 5 Q&A, Help & Troubleshooting] :
then you haven't tried everything like you said.

http://xdaforums.com/google-nexus-5...rd-reboots-t2947784/post56924944#post56924944

basically just run these commands:

then reboot

here's the thing... when i was working on a way to modify my mac address, i managed to break my wifi. it would show turning on, but it wouldn't turn on. because i broke it, i knew what caused it, and i also fixed it by fixing my macaddr file and it's permissions. as of yet, i haven't seen anyone with this issue try this to fix their problem.
[Nexus 5 Q&A, Help & Troubleshooting] enemylisted:
Hi guys,

I am new to XDA.. but I've been a Nexus 5 owner since November 2013. My phone was running fine without any issues until Android 5.0 OTA , which I updated in Early 2015.

My wifi button grayed out/stuck turning wifi on like everyone mentioned here. It would work sometimes if I Factory Reset/Wipe - Airplane Mode , Reboot - Safemode ( sometimes work ). I got very frustrated with this issue and I decided to call LG for repair since my warranty was due. Even though LG customer service sucked really bad but they did repair my phone for free even though I am due for factory warranty. I got my phone back from LG after 2 weeks, they replaced * Motherboard * on the service paper. Guess what? IT DID NOT FIX THE PROBLEM, so I called LG again and I Re-sent back the phone to LG for deeper investigation . After another 2 weeks that I send my phone in THE SECOND TIME, My nexus came back to me. This time the service paper indicate they * Searching for SVC message due to no service, Download new software* . Bummer, the WIFI still grayed out after Two repairs. So I called LG again today and my phone is going back to Fort Worth ,TX the third time.

I just want to let you guys know my part of story, Thank for reading. ---- My phone was never rooted and I don't plan to --- I don't think its a hardware issue, I blame Google for this ---
[Nexus 5 Q&A, Help & Troubleshooting] :
You guys are so boring.

So finally today I had this problem not of my own doing. Was using my phone and it rebooted on it's own. After that, wifi stuck turning on.

So I run my commands that I told you chuckle****s, and nothing. Weird. Should have worked.

I clear cache and dalvik to be on the safe side, reboot, not fixed. Weird.

I have the liveboot log enabled, I notice a few things:

E/wpa_supplicant( 2086): Could not set interface wlan0 flags (UP): Operation not permitted

E/wpa_supplicant( 2086): nl80211: Could not set interface 'wlan0' UP

E/wpa_supplicant( 2086): wlan0: Failed to initialize driver interface

wifistatemachine failed to start driver

<4>[ 1.802222] wifi_get_mac_addr

I/rmt_storage( 179):

<3>[ 1.802285] bcm_wifi_get_mac_addr: Failed to get information from file /persist/wifi/.macaddr (-2)

OH LOOK, FAILED TO GET MAC ADDRESS FROM FILE.

So I go in with root explorer, delete .macaddr file, and run these commands (the first line is my mac address being set, because I know what it is already; obviously you'll need SU to do this):

echo -ne '\x8c\x3a\xe3\x41\x8d\x79' > /persist/wifi/.macaddr

chown root:root /persist/wifi

chmod 755 /persist/wifi

chown wifi:wifi /persist/wifi/.macaddr

chmod 660 /persist/wifi/.macaddr

**Reboot, wifi works again.**

My guess is something got corrupted with the area where that file existed. Deleting it entirely and recreating it means it was created in a new area on the chip. **** if I know for certain though. What I do know is what I've been telling you guys for a while works and none of you are bothering with doing the easiest fix. But keep flashing custom roms and sending your phones in.

Most of you don't know what your wifi mac address is, have no motivation or way to find out, and will end up using mine, so I've modified mine in the first line to not be mine. Because I don't want you all out there cloning my ****ing mac addy since you can't be bothered to change it in the script.

Edit: I have not checked if a broken btaddr file affects wifi, possible but not likely, but that may need to be repaired too in a similar manner.
[Nexus 5 Q&A, Help & Troubleshooting] DarkAura:
IMEI number change on wifi repair

Hey all,

Its been 2 months I am facing the same issue with my Nexus 5. After looking at logs, I am convinced its a hardware issue. I have sent my phone twice to the LG repair center to change the logic board. Here is my question, If LG changes the logic board, should the IMEI number change?
[Nexus 5 Q&A, Help & Troubleshooting] :
And what did your logs say?
[Nexus 5 Q&A, Help & Troubleshooting] DarkAura:
Here is what i see just after bootup. I am running stock 5.0 without root.

04-10 09:43:21.255: E/wpa_supplicant(877): Could not set interface wlan0 flags (UP): Operation not permitted

04-10 09:43:21.255: E/wpa_supplicant(877): nl80211: Could not set interface 'wlan0' UP

04-10 09:43:21.256: E/wpa_supplicant(877): wlan0: Failed to initialize driver interface

Also is there a way to power reset the wifi chip? some equivalent to disconnecting the battery?
[Nexus 5 Q&A, Help & Troubleshooting] :
Did you even read my post RIGHT ABOVE YOURS where I posted the same log message AND fixed the issue? ?
[Nexus 5 Q&A, Help & Troubleshooting] DarkAura:
That worked once. Wifi started and the phone froze during accessing wifi settings. On reboot I saw the following:

<6>[ 0.469266] wifi: bcm_init_wlan_mem: WIFI MEM Allocated

<6>[ 0.469401] bcm_wifi_init_gpio_mem: wifi gpio and mem initialized

<6>[ 1.430818] wcf_status: wifi_detect = 0

<4>[ 1.474627] wifi_set_power = 1

<6>[ 1.630446] bcm_wifi_set_power: wifi power successed to pull up

<4>[ 1.840182] wifi_set_carddetect = 1

<6>[ 1.840223] wcf_status: wifi_detect = 1

<4>[ 3.840200] failed to power up wifi chip, retry again (4 left) **

<4>[ 3.840382] ## wifi_remove

<4>[ 3.840423] wifi_set_power = 0

<6>[ 3.940531] bcm_wifi_set_power: wifi power successed to pull down

<4>[ 3.940604] wifi_set_carddetect = 0

<6>[ 3.940644] wcf_status: wifi_detect = 0

<4>[ 3.941222] wifi_set_power = 1

<6>[ 4.091316] bcm_wifi_set_power: wifi power successed to pull up

<4>[ 4.300177] wifi_set_carddetect = 1

<6>[ 4.300250] wcf_status: wifi_detect = 1

<4>[ 6.300191] failed to power up wifi chip, retry again (3 left) **

<4>[ 6.300333] ## wifi_remove

<6>[ 6.400442] bcm_wifi_set_power: wifi power successed to pull down

<6>[ 6.400484] wcf_status: wifi_detect = 0

<6>[ 6.550949] bcm_wifi_set_power: wifi power successed to pull up

<4>[ 6.760227] wifi_set_carddetect = 1

<6>[ 6.760266] wcf_status: wifi_detect = 1

<4>[ 8.760188] failed to power up wifi chip, retry again (2 left) **

<4>[ 8.760367] ## wifi_remove

<4>[ 8.760406] wifi_set_power = 0

<6>[ 8.860513] bcm_wifi_set_power: wifi power successed to pull down

<4>[ 8.860585] wifi_set_carddetect = 0

<6>[ 8.860626] wcf_status: wifi_detect = 0

<4>[ 8.861030] wifi_set_power = 1

<6>[ 9.011125] bcm_wifi_set_power: wifi power successed to pull up

<4>[ 9.220187] wifi_set_carddetect = 1

<6>[ 9.220259] wcf_status: wifi_detect = 1

<4>[ 11.220187] failed to power up wifi chip, retry again (1 left) **

<4>[ 11.220360] ## wifi_remove

<4>[ 11.220399] wifi_set_power = 0

<6>[ 11.320481] bcm_wifi_set_power: wifi power successed to pull down

<6>[ 11.320554] wcf_status: wifi_detect = 0
[Nexus 5 Q&A, Help & Troubleshooting] :
Nothing there indicates a hardware issue with the wifi system. If the fix worked once then it's obviously software related. Do it again but also nuke your wpa_supplicant file. Then reboot.
[Nexus 5 Q&A, Help & Troubleshooting] cmaruan:
I did the very same thing.. and nothing changed at all.

The only thing that is bothering me is that I had installed plenty of different times the android on my Nexus. And nowhere on the internet I found how to get my MAC address without connecting it first..

I typed any MAC Addr into it, but not sure if this might be the reason my wifi is not working :/

[edit] One more thing, how do I read these logs? I am using logcat.. Is there any other way to do so?
[Nexus 5 Q&A, Help & Troubleshooting] :
http://xdaforums.com/android/apps-games/liveboot-t2976189
[Nexus 5 Q&A, Help & Troubleshooting] cmaruan:
Already got this app.. I've been looking through these logs using adb shell .. Still cant find the mac addr of my phone :/
[Nexus 5 Q&A, Help & Troubleshooting] tijnduck:
I have the same problem for two days now, cant find my mac address without connecting to wifi wich is stuck at 'turning on'.:(

Have tried everyting almost except the solution posted by toast. Is there another way to fix this?
[Nexus 5 Q&A, Help & Troubleshooting] lukasz050:
i have the same problem and I also disconected battery, motherboard, and checked all cable connections

Also I installed a few Roms

I have no warranty, and replace the motherboard will be very expensive

whether it is possible to use Wi-Fi via modem OTG on my nexus 5 ?