[Q] Wi-Fi drops after being in deep sleep - Nexus 4 Q&A, Help & Troubleshooting

Hi all,
My brand new Nexus 4 doesn't seem to hold a wi-fi connection with my Netgear WNDR3700v2. I've set up a 2.4 Ghz network connection on channel 1 with an AES security. Added the Nexus 4 with a static ip. It will hold the connection for maybe an 20-30 minutes, but if I don't use the phone for a while (like an hour), the wi-fi connection will drop as soon as I press the power-button. The wi-fi icon just disappears and connects after a few seconds, or it turns from blue to grey, disappears and reconnects.
It's really irritating. My Gnex (Android 4.2) en my girlfriends Gnex (CM 10) both have a stable wi-fi connection with the router, all the time. They have the same settings and my Nexus 4 has, just as my old Gnex, activated the wi-fi optimization setting and disabled avoid poor connections. All phones have keep wi-fi on during sleep at always.
I was wondering if someone has similar problems and maybe have an idea what could be the problem here. Thanks!

is sounds like the same issue on the nexus 7
http://code.google.com/p/android/issues/detail?id=35496

Check your wifi sleep policy in settings. If its set to "never" it will drop when phone is in deep sleep. Try setting it to "always" and see if that helps.

eep2378 said:
Check your wifi sleep policy in settings. If its set to "never" it will drop when phone is in deep sleep. Try setting it to "always" and see if that helps.
Click to expand...
Click to collapse
Thanks, but my posts says "All phones have keep wi-fi on during sleep at always."
I rolled back my router firmware to V1.0.0.12 and everything seems to be ok now. Going to run a few more tests.

danielvc said:
Thanks, but my posts says "All phones have keep wi-fi on during sleep at always."
I rolled back my router firmware to V1.0.0.12 and everything seems to be ok now. Going to run a few more tests.
Click to expand...
Click to collapse
Woops my bad.

Related

Frequent disconnections on wifi

Hi guys, not sure if its been brought up before, but my nexus one frequently disconnects from my home wifi, I don't know the exact intervals but once in a while when I check my phone, it'd be disconnected and when i look at the wifi settings, it would say connection unsuccessful and i would have to manually reconnect it. Seems like a major hassle to me, shouldn't be my router either as my laptops and other devices have no such problem.
Some facts:
Router DIR-625 (set on G and N)
Interestingly, my router reports my nexus one on 802.11 N band.. which is curious, I thought it wasn't enabled yet?
The signal strength is about 4 - 5 bars (only seperated by one wall)
Whenever I click on reconnect it reconnects without any problems
Anyone have any idea what might be the problem here?
change your WiFi sleep policy to never sleep. and also the nexus has a WiFi bug. check that setting first though, cause its on by default which I don't know why.
Sent from my Nexus One using the XDA mobile application powered by Tapatalk
Dorick said:
..Interestingly, my router reports my nexus one on 802.11 N band.. which is curious, I thought it wasn't enabled yet?..
Click to expand...
Click to collapse
Since 506 it´s enabled
............
I remember having issues with my connection..I upgraded the router software, e voila...
I had similar problems with a DIR-655. I turned off MAC address filtering and updated the firmware (I was 3 years and about 6 iterations behind) and I haven't had anymore problems.
Edit: BTW, The N1 had flawless connectivity on all my other Wi-Fi routers (work, friend's house, etc) which happened to be Linksys

Wifi not downloading while phone sleeps

Hi,
My nexus 4 is rooted with Carbon ROM 4.3 and Franco kernel. When the phone sleeps it pauses the downloads when I am connected to wifi. In the wifi advanced settings I have the "keep wifi on during sleep" setting set to always. I'm not sure why this is happening. Anyone have any ideas to troubleshoot?
Thanks
Krunk83 said:
Hi,
My nexus 4 is rooted with Carbon ROM 4.3 and Franco kernel. When the phone sleeps it pauses the downloads when I am connected to wifi. In the wifi advanced settings I have the "keep wifi on during sleep" setting set to always. I'm not sure why this is happening. Anyone have any ideas to troubleshoot?
Thanks
Click to expand...
Click to collapse
This is the default behavior of Android. I know some kernels have tweaks to prevent Wi-Fi from sleeping,I don't know for this device though.
via xda app
eksasol said:
This is the default behavior of Android, you can try to change the Wi-Fi sleep setting to "never", but it likely won't help. I know some kernels have tweaks to prevent Wi-Fi from sleeping,I don't know for this device though.
via xda app
Click to expand...
Click to collapse
My friend's n4s download while sleeping on Wifi. Same setup.
nexus⁴
Looks like I need to turn off Wifi optimization in settings.
Nexus7
Have you tried unticking WiFi optimisation?
You may have to reconnect after changing the setting.
I may try that.
Nexus7
Also uncheck "Avoid poor connections", because it will disconnect from the wifi if the signal goes lower than a certain range.
meangreenie said:
Have you tried unticking WiFi optimisation?
You may have to reconnect after changing the setting.
Click to expand...
Click to collapse
This worked. Downloads while sleeping. Thanks
nexus⁴

Disconnecting from Wi-Fi randomly.

I have had my note 3 for a day now and for some reason it disconnects and reconnects to Wi-Fi randomly. I am about 10 feet from my router. Does anyone else have this problem?
Yep. No idea why. Using high output D-Link DAP-2310 10 feet away.
Sent from my SM-N900V using xda app-developers app
Haven't had any issue. How is your WIFI Advanced menu look like? Here's how mine is configured.
Keep Wi-Fi on during sleep: Always
Always allow scanning: Unchecked
Auto network switch: Unchecked
mi7chy said:
Haven't had any issue. How is your WIFI Advanced menu look like? Here's how mine is configured.
Keep Wi-Fi on during sleep: Always
Always allow scanning: Unchecked
Auto network switch: Unchecked
Click to expand...
Click to collapse
That's exactly how mine is. It has had to disconnect at least 4 times since I made this post. I hope there's a fix for this. Its pretty irritating.

WiFi doesn't connect automatically with screen off

Hi there. It connects fine as soon as I turn the screen on. Not sure what the problem is. I believe it's a 5.1.1 issue.
http://forum.xda-developers.com/google-nexus-5/help/wifi-issue-t3059452
That link has the same issue and they couldn't figure it out either.
In wifi advanced settings check the wifi sleep policy..
Happened with me before and i found that it was set to sleep while screen is off
Sent from my GT-I9500 using Tapatalk
egymaro said:
In wifi advanced settings check the wifi sleep policy..
Happened with me before and i found that it was set to sleep while screen is off
Sent from my GT-I9500 using Tapatalk
Click to expand...
Click to collapse
I've tried everything. It's not that the wifi turns off when screen is off. It's that it stops scanning to connect to a new network automatically. It'll stay connected to whatever wifi I'm on as long as I'm in range but as soon as I'm out of range, it won't reconnect.
I had the same issue with some non Touchwiz roms like CM and GPE. I believe this is caused by the router. While I am at work it keeps disconnecting, while at home there is no problem at all. So I believe router is the cause of the problem. If you have access to the router, I would try setting to different channels and try.
eko2005 said:
I had the same issue with some non Touchwiz roms like CM and GPE. I believe this is caused by the router. While I am at work it keeps disconnecting, while at home there is no problem at all. So I believe router is the cause of the problem. If you have access to the router, I would try setting to different channels and try.
Click to expand...
Click to collapse
Thanks for the advice. I had thought that too but I've tested other routers as well. It's a software issue as it works fine on Touchwiz. It's not that it disconnects, it just doesn't switch to any other saved network when the screen is off. As soon as I turn on the screen, it connects right away. All routers and SSIDs.

Connecting to home wifi faster

First my setup:
XT1572
TruPureXMM 2.6.3
frankenclark kernel 0.8
Is there anyway to connect to my homewifi faster? I've selected to only show 5ghz wifi networks and I'm only seeing two when I enable wifi yet it dosen't connect to my wifi for maybe 5-10 seconds. Is this a problem with the rom/kernel? I don't remember connecting being this slow when I was on stock 5.1.
If I can change connect speed through the rom/kernel that would be best. Otherwise is there an app that can do it?
Heaby said:
First my setup:
XT1572
TruPureXMM 2.6.3
frankenclark kernel 0.8
Is there anyway to connect to my homewifi faster? I've selected to only show 5ghz wifi networks and I'm only seeing two when I enable wifi yet it dosen't connect to my wifi for maybe 5-10 seconds. Is this a problem with the rom/kernel? I don't remember connecting being this slow when I was on stock 5.1.
If I can change connect speed through the rom/kernel that would be best. Otherwise is there an app that can do it?
Click to expand...
Click to collapse
i cant see why you would choose 5ghz over 2.4ghz maybe thats the reason for your problem
5Ghz allows for faster throughput (more bandwidth available) - uses 80 mhz channels vs 20 mhz on the 2.4ghz.
I noticed the slow connection too. Seems if you open wifi settings, it connects immediately.
Heaby said:
First my setup:
XT1572
TruPureXMM 2.6.3
frankenclark kernel 0.8
Is there anyway to connect to my homewifi faster? I've selected to only show 5ghz wifi networks and I'm only seeing two when I enable wifi yet it dosen't connect to my wifi for maybe 5-10 seconds. Is this a problem with the rom/kernel? I don't remember connecting being this slow when I was on stock 5.1.
If I can change connect speed through the rom/kernel that would be best. Otherwise is there an app that can do it?
Click to expand...
Click to collapse
Did you try changing the channel in your router?
Haven't tried changing the channel. Will report back after I get home after work.
Heaby said:
First my setup:
XT1572
TruPureXMM 2.6.3
frankenclark kernel 0.8
Is there anyway to connect to my homewifi faster? I've selected to only show 5ghz wifi networks and I'm only seeing two when I enable wifi yet it dosen't connect to my wifi for maybe 5-10 seconds. Is this a problem with the rom/kernel? I don't remember connecting being this slow when I was on stock 5.1.
If I can change connect speed through the rom/kernel that would be best. Otherwise is there an app that can do it?
Click to expand...
Click to collapse
I can say that problem is with ROM.
It has very slow auto connection time.
To connect faster I am using:
- drop down notification menu - tap wifi menu where its possible to choose wifi's from that setting - just wait, as soon as it turns on wifi and actually starts to scan area it will auto connect faster than when you just turn on wifi and wait.
I confirm this behavior on XT1575 as well. It takes quite a long time to connect when i enable WiFi.
But if I enter the WiFi settings, it connects instantly.
And i think it's like this since Android 6. I don't recall having this issue on Android 5.
I can't say I've noticed any problems connecting to WiFi networks at home.
I'm running 6.0 stock (Feb 2016 security update) rooted to hell and back.
I have access to five different WiFi networks at home, and am registered to all five for convenience.
I use an app called Best WiFi to auto-connect to the strongest signal whenever my current signal drops below a user-configurable strength threshold.
Perhaps that's the reason I'm not feeling this issue?
https://play.google.com/store/apps/details?id=com.pintacdesign.bestwifi&hl=en
I've been using this app for years, since Android 4.0, and across four or five different devices now.
Edit - Before the inevitable questions. I live in a basement and have my own personal WiFi network down there. Upstairs, we have two network piping out of the office (2.4 GHz and an associated 5 GHz link). For the far side of the home, we have a WiFi extender that mirrors and extends those two signals coming from the office (2.4 GHz-Ext and 5 GHz-Ext).
My report:
Whether connecting to 2.4 Ghz (20/40 Mhz) or 5 Ghz (20/40/80 Mhz) the connectspeed is between 5-15 seconds if singlepressing on the wifitoggle. If longpressed it takes about 2-3 seconds. Either this is a problem with the rom or this is the intended behaviour in Marshmallow. But this was not the behaviour in Lollipop as far as I remember. Of course you could argue this a nonissue since longpressing the wifitoggle is the solution. However I would like singlepressing to behave the same since I use Gravitybox to hide the statusbar when pressing 2-state tiles.
Yeah this is a huge pain in the ass. I set up a WiFi shortcut on my home screen so I would start using WiFI more to save battery, but it takes so long for it to finally connect. I also have Tasker turn WiFi on in the morning when my alarm goes off, and it takes so long. It took a few seconds in Lollipop, and now it takes 10+ seconds in Marshmallow. It's ridiculous. Anyway there is no real fix except going into the settings or tapping the drop-down toggle multiple times, as others stated.
I notice the same thing too. Wifi takes long to connect on boot. When I go to connect wifi off, it always shows the routers in the previous area before showing what's in the current area. I turn wifi off when leaving home. I'll connect to a public router, but will still show my home router before showing any around me. I had a Galaxy S5 before and wifi connected right away.
Heaby said:
First my setup:
XT1572
TruPureXMM 2.6.3
frankenclark kernel 0.8
Is there anyway to connect to my homewifi faster? I've selected to only show 5ghz wifi networks and I'm only seeing two when I enable wifi yet it dosen't connect to my wifi for maybe 5-10 seconds. Is this a problem with the rom/kernel? I don't remember connecting being this slow when I was on stock 5.1.
If I can change connect speed through the rom/kernel that would be best. Otherwise is there an app that can do it?
Click to expand...
Click to collapse
First off, I am not sure if the OP is turning wifi on first when arriving at home and then seeing the delay, or if Wifi is already ON when you arrive home (EDIT: just reread OP and it appears you are turning it ON - see below), but I leave Wifi ON all the time and do not see any delay when I get home (I pull into my garage and my apps are already updating via my home wifi before I park my car).
There are various steps involved in "getting onto wifi" that don't just involve the client device (authentication to the access point; getting an available IP address from your AP or a separate router, and the stability/software quality of those devices, for example). but you may want to consider a few things to speed up the process at home regardless if Wifi is on, or you turn it on first:
1) go into "Saved Networks" in your wireless settings and "forget" any networks you don't need
2) make sure the device on your network issuing IP addresses (DHCP server software built into your router or AP, whichever you use - also make sure only ONE of the them is acting as DHCP server) has enough available IP's in its pool - better yet, assign the same IP to your MotoX's MAC address (set up a static IP in your routers LAN/DHCP settings if it has them so your MotoX gets the same IP every time)
3) while I agree with another poster about avoiding the 2.4 GHz for Wifi (congestion and more interference), even many 802.11n client radios today don't support 5GHz so keep that in mind if you shut down 2.4GHz in your home completely
4) Use WPA2 with PSK for authentication AND make sure your home SSID is being broadcast (not hidden, which they really aren't anyway with the right tools - A strong WPA2 PSK password is better security even if the world can see your SSID.
4) If you do turn Wifi On and Off, consider leaving it ON and see if that helps your connection time (I suspect it will If you are concerned about battery drain, you can disable wifi during sleep in wireless settings, but I don't have a battery issue with Wifi on 24/7. The Wifi radio beaconing for SSID's or even staying connected to an SSID in the background, when you're not using Wifi, is a very minimal power drain compared to having your screen brightness higher than you need (you can however turn off the annoying wifi network notification setting).
Hope this helps.
For those with this delay, are you running xposed with gravitybox? Tried disabling gravitybox? It maybe GB that's introducing the delay. Need feedback from those running stock.
If stock exhibits similar behavior then it's probably characteristic of the quick toggles in the moto x. The delay appears to be in the actual wifi connection phase, not acquiring ip. As once it actually connects, IP acquisition is almost instant. Toggling wifi off then on directly through settings is very fast, maybe 3-4 seconds.
I have a moto g lte (xt1045) on cm13 which takes about 5 seconds to connect after toggling wifi off then back on. The moto x takes a good 15 seconds.
ech1253 said:
First off, I am not sure if the OP is turning wifi on first when arriving at home and then seeing the delay, or if Wifi is already ON when you arrive home (EDIT: just reread OP and it appears you are turning it ON - see below), but I leave Wifi ON all the time and do not see any delay when I get home (I pull into my garage and my apps are already updating via my home wifi before I park my car).
There are various steps involved in "getting onto wifi" that don't just involve the client device (authentication to the access point; getting an available IP address from your AP or a separate router, and the stability/software quality of those devices, for example). but you may want to consider a few things to speed up the process at home regardless if Wifi is on, or you turn it on first:
1) go into "Saved Networks" in your wireless settings and "forget" any networks you don't need
2) make sure the device on your network issuing IP addresses (DHCP server software built into your router or AP, whichever you use - also make sure only ONE of the them is acting as DHCP server) has enough available IP's in its pool - better yet, assign the same IP to your MotoX's MAC address (set up a static IP in your routers LAN/DHCP settings if it has them so your MotoX gets the same IP every time)
3) while I agree with another poster about avoiding the 2.4 GHz for Wifi (congestion and more interference), even many 802.11n client radios today don't support 5GHz so keep that in mind if you shut down 2.4GHz in your home completely
4) Use WPA2 with PSK for authentication AND make sure your home SSID is being broadcast (not hidden, which they really aren't anyway with the right tools - A strong WPA2 PSK password is better security even if the world can see your SSID.
4) If you do turn Wifi On and Off, consider leaving it ON and see if that helps your connection time (I suspect it will If you are concerned about battery drain, you can disable wifi during sleep in wireless settings, but I don't have a battery issue with Wifi on 24/7. The Wifi radio beaconing for SSID's or even staying connected to an SSID in the background, when you're not using Wifi, is a very minimal power drain compared to having your screen brightness higher than you need (you can however turn off the annoying wifi network notification setting).
Hope this helps.
Click to expand...
Click to collapse
gpz1100 said:
For those with this delay, are you running xposed with gravitybox? Tried disabling gravitybox? It maybe GB that's introducing the delay. Need feedback from those running stock.
If stock exhibits similar behavior then it's probably characteristic of the quick toggles in the moto x. The delay appears to be in the actual wifi connection phase, not acquiring ip. As once it actually connects, IP acquisition is almost instant. Toggling wifi off then on directly through settings is very fast, maybe 3-4 seconds.
I have a moto g lte (xt1045) on cm13 which takes about 5 seconds to connect after toggling wifi off then back on. The moto x takes a good 15 seconds.
Click to expand...
Click to collapse
@ech1253: I've checked everything you suggested and you are right, having wifi on will make it connect almost instantly.
@gpz1100: I'm running xposed with gravitybox. Disabling gravitybox didn't change anything. I'd rather not uninstall xposed and/or go back to stock so if someone on stock without xposed could chime in that would be helpful.
It does it on stock android 6 for me and on a custom rom as well. Since day 1 with the moto x but at least wifi works just a long delay that no other android flagship from suffers from. :S
hexxor93 said:
It does it on stock android 6 for me and on a custom rom as well. Since day 1 with the moto x but at least wifi works just a long delay that no other android flagship from suffers from. :S
Click to expand...
Click to collapse
That's...not encouraging
Hopefully it's a softwarebug.

Categories

Resources