Wifi will sometimes connect only when I turn the screen on - Nexus 5 Q&A, Help & Troubleshooting

Hi, everyone.
I've noticed that, sometimes, my phone will only connect to a Wifi network after I turn the screen on, regardless of how long I've been inside the range of a particular acces point. For example, when I get home and I go to check my phone after I've been in there for a long time, I see the Wifi connecting right after turning the screen on. This isn't normal, is it? How can I fix this? I have it set to always active if that matters.
Thanks.

Most likely the phone is in deep sleep and doesn't scan for the WiFi network until you wake it. The alternative would be the phone waking itself to check, possibly "WiFi Always Scanning" would accomplish that.

bblzd said:
Most likely the phone is in deep sleep and doesn't scan for the WiFi network until you wake it. The alternative would be the phone waking itself to check, possibly "WiFi Always Scanning" would accomplish that.
Click to expand...
Click to collapse
Thank you, bblzd.
How long does it usually take for the phone to go into deep sleep? beacuse this has happened for example if I get out of the office for a while (a few minutes) and then go back in. I'll try the always scanning suggestion, but would it have a considerable impact in battery usage?

Adrianrff said:
Thank you, bblzd.
How long does it usually take for the phone to go into deep sleep? beacuse this has happened for example if I get out of the office for a while (a few minutes) and then go back in. I'll try the always scanning suggestion, but would it have a considerable impact in battery usage?
Click to expand...
Click to collapse
It should enter deep sleep as soon as the screen turns off, unless there is something using the CPU then it will stay awake or wake itself as needed.
Always scanning does use a significant amount of battery compared to if you were disabling the WiFi. However if you leave your WiFi on all the time anyways it shouldn't make any difference.

bblzd said:
It should enter deep sleep as soon as the screen turns off, unless there is something using the CPU then it will stay awake or wake itself as needed.
Always scanning does use a significant amount of battery compared to if you were disabling the WiFi. However if you leave your WiFi on all the time anyways it shouldn't make any difference.
Click to expand...
Click to collapse
Alright, I don't usually turn wifi off, so I'll try that.
Thanks again.

Didn't work, unfortunately.

Anyone else? I seem to be the only one experiencing this, can't find a single post about this online.
Any suggestions? I've tried rebooting into safe mode, turning data off, turning airplane mode on and enabling wifi, wiping cache partition, nothing helps. Still thee same behaviour.

Related

[Q] Shorten wifi sleep timeout after screen off (Solved)

In the wifi sleep policy, it is possible to set wifi to sleep after screen off. However wifi does not sleep immediately but 15 minutes after screen off. I would like wifi to sleep earlier, say 5 minutes after screen off.
I searched around and found an app capable of doing this. But it is for samsung phones and doesn't work for defy. Does anyone know if and how it can be set manually?
Juicedefender. That is the exact app to use.
I tried Juice Defender. There are options to disable wifi based on connection existence, preset time, data flow etc, but there is no option to set the how long after screen off wifi would sleep.
Here you go, this should do what you want: http://forum.xda-developers.com/showthread.php?t=774507
Good luck
Hmm I actually set my wifi to never turn off automatically. For instance yesterday I made a phonecall with Skype. My mobile connection is too slow for that so I switched the wifi on. During the phonecall I had the screen turned off but of course the wifi needed to stay on.
I have a widgetsoid widget on my homescreen to enable/disable the wifi. Don't like it when things go automatic and it's just as easy when you need wifi only once in a while.
AgentSmith said:
Hmm I actually set my wifi to never turn off automatically. For instance yesterday I made a phonecall with Skype. My mobile connection is too slow for that so I switched the wifi on. During the phonecall I had the screen turned off but of course the wifi needed to stay on.
I have a widgetsoid widget on my homescreen to enable/disable the wifi. Don't like it when things go automatic and it's just as easy when you need wifi only once in a while.
Click to expand...
Click to collapse
Since i changed my ROM, my wifi actually goes to sleep after 15 minutes and I don't want it to turn off.
How do you set your wifi to never turn off automatically?
naenee said:
Here you go, this should do what you want: http://forum.xda-developers.com/showthread.php?t=774507
Good luck
Click to expand...
Click to collapse
Thanks! Unfortunately moto doesn't have the settings.db file. I tried putting the mentioned key "wifi_idle_ms" in several other files but no effect.
Edit:
Stupid me. I find the location of settings.db and it works perfectly now
For information, the location of defy's settings.db is:
/data/data/com.android.providers.settings/databases/settings.db
woonaval said:
Since i changed my ROM, my wifi actually goes to sleep after 15 minutes and I don't want it to turn off.
How do you set your wifi to never turn off automatically?
Click to expand...
Click to collapse
In the wifi settings screen, press the menu button to get the advanced options.
ABC_Universal said:
In the wifi settings screen, press the menu button to get the advanced options.
Click to expand...
Click to collapse
wow that was easy, thanks!
woonaval said:
wow that was easy, thanks!
Click to expand...
Click to collapse
Indeed!
Thanks guys; I can now listen to TuneIn radio as long as I want (or my battery allows me to).
If you intend to save battery, maybe you should consider leave "wireless policy" to "never sleep".
It might sound senseless but there are a lot of people reporting substantial battery savings with this, including me, i noticed at least +20 hours in battery life only with this little thing. Charts drawn with Battery Monitor showed the same consumption, Wireless OFF. vs Wireless policy to never sleep. And the most expensive was policy of sleep when screen turned off.
http://forum.xda-developers.com/showthread.php?t=1022390
unrafa said:
If you intend to save battery, maybe you should consider leave "wireless policy" to "never sleep".
It might sound senseless but there are a lot of people reporting substantial battery savings with this, including me, i noticed at least +20 hours in battery life only with this little thing. Charts drawn with Battery Monitor showed the same consumption, Wireless OFF. vs Wireless policy to never sleep. And the most expensive was policy of sleep when screen turned off.
http://forum.xda-developers.com/showthread.php?t=1022390
Click to expand...
Click to collapse
That's probably the case for 3g. But I'm using 2g and find 2g uses less battery than wifi in standby mode (with some background data sync).
naenee said:
Here you go, this should do what you want: http://forum.xda-developers.com/showthread.php?t=774507
Click to expand...
Click to collapse
Thanks, naenee, for the link. In case anyone is interested, I just made a simplified adaptation of RyanZA's guide, specifically for the DEFY: http://forum.xda-developers.com/showthread.php?p=22639770

[Q] WiFi Sleep Policy

My WiFI Sleep Policy is set to default (After 15 min) however the WiFi is always on. The icon is there when I turn my screen on. Checked the battery usage graph also, and WiFi is always on (as long as I don't turn if off manually).
I have a stock ROM, the latest European stock ROM.
Is this a bug? What does 'After 15 min' actually mean?
I believe it means the wifi will turn off 15 minutes after the screen goes off, and then back on with screen on.
I thought so too, but mine isn't doint that.
teomor said:
I thought so too, but mine isn't doint that.
Click to expand...
Click to collapse
I know there was a recommendation to set "Never" as the sleep policy. I can't find that post unfortunately. I know on my Desire with CM7 it resulted in better battery life, counter intuitive but......
I know. I've had it set to Never on my Desire. But now I'm seeing longer standby with the current setting (After 15 min) on my Sensation compared to the Desire. Although I suspect it isn't working and it's actually never turning off.
teomor said:
I know. I've had it set to Never on my Desire. But now I'm seeing longer standby with the current setting (After 15 min) on my Sensation compared to the Desire. Although I suspect it isn't working and it's actually never turning off.
Click to expand...
Click to collapse
Lol, same upgrade here. TBH I've left it at Never and not tried the other policies.
I use WiFi when at home, I'm on a 3G data plan ( I'm guessing WiFi sleeping means I wouldn't get updated Gmail. Or does it revert back to 3G ?
WiFi sleeping means going back to 3G, yes.
teomor said:
WiFi sleeping means going back to 3G, yes.
Click to expand...
Click to collapse
Thanks, might just try it and see.
Does anyone think that instead of going to sleep after 15 minutes of the screen being turned off (regardless of whether there are background apps that have active internet connections), the WiFi actually starts sleeping after 15 minutes of idle time? I think this would be a better efficiency algorithm, so, as long as you have apps that constantly use the internet, keep WiFi connected, but when no apps are doing auto-sync or any background data, only turn on WiFi when manually using the apps..
Applications can be programmed to call for a WiFi lock. If any active application does so, WiFi won't shut off when the phone is asleep.
gol_n_dal said:
I know there was a recommendation to set "Never" as the sleep policy. I can't find that post unfortunately. I know on my Desire with CM7 it resulted in better battery life, counter intuitive but......
Click to expand...
Click to collapse
I remember that old tips thread. It was set your wifi sleep policy to never. Install spare parts+ or pro and set end button behaviour to sleep. And something to do with Market app. Settings->notifications-> uncheck the box. For some reason market notifications were not allowing your phone to go to sleep properly or some garbage like that. Its worth a shot.

[Q] [REQUEST] Advice on permanently turning off WiFi

Hi guys, i noticed an irritating problem with my One S after a few days of usage. My WiFi turns on at random, and remains on when my phone is in sleep mode. This occurs when I have 3G on. I have turned off using WiFi in sleep mode.
Anything else I can do? I feel like this takes a toll on my battery life.
I wouldn't worry too much about wifi if you just got the phone.
While its connected it shouldn't use up the battery. Afaik
It's the searching that uses battery.
yeah my wifi is on 24/7 i dont experience any drain through it..
you could put a toggle widget on one of your screens to turn it on / off.
it shouldnt be switching itself on it you manually turned it off
But it does exactly that! It turns itself on even after I have manually toggled it off. irritating as it searches for open networks even if I have data on. How do I resolve this hmmm
Maybe Tasker would help?

TF700 very sluggish after waking up

Disclaimer: I searched the forums but couldn't find anything relevant.
Am I the only one whose tf700 acts really sluggish after it wakes up for a minute or two?
Is there any solution to this? It kills my main use case of the tablet (pick it up when I want to look at something in a pinch, and put it away when I'm done).
I'm on official ROM, rooter but not unlocked. This has been happening with the previous firmware versions as well.
I had the same problem for a while... most of the time I woke the tablet from sleep it'd be very sluggish.
I noticed that this happens when the wifi disconnected during sleep... it would have to reconnect and therefore all the services that required wifi would all start at the same time, throttling the system.
Turns out its the special setting in ASUS Customized Settings, "Disconnects network during sleep" that was causing this. It does exactly what it says, suspends network-related tasks when the screen goes off and resumes on screen on.
I initially turned this on because i was worried network tasks would drain my battery on sleep, but there doesn't really seem to be much of a performance difference with it on or off. So I'm leaving it off for now.
originalnabisco said:
I had the same problem for a while... most of the time I woke the tablet from sleep it'd be very sluggish.
I noticed that this happens when the wifi disconnected during sleep... it would have to reconnect and therefore all the services that required wifi would all start at the same time, throttling the system.
Turns out its the special setting in ASUS Customized Settings, "Disconnects network during sleep" that was causing this. It does exactly what it says, suspends network-related tasks when the screen goes off and resumes on screen on.
I initially turned this on because i was worried network tasks would drain my battery on sleep, but there doesn't really seem to be much of a performance difference with it on or off. So I'm leaving it off for now.
Click to expand...
Click to collapse
Hmm, I disabled that with the same battery concerns, but I'll give it a shot, thanks!
fincan said:
Hmm, I disabled that with the same battery concerns, but I'll give it a shot, thanks!
Click to expand...
Click to collapse
Also try a clean boot.
Hold down the volume down and power button when you power it on from cold. Let it go through the next screen without touching and it will clear cache automatically.
This does help as well anyway.
It's probably still quicker than most of us after we wake up..... Have you tried coffee?
Try turning off all bloatware. Mine used to be incredibly sluggish when waking up, and when I checked it turned on about 25-ish apps everytime i woke it up. Rubbish like Google Now, Talk, Gallery, etc. This slows the poor thing down to an insane level. Turned off all the random crap I would never use anyway, did a coldboot (sbdags describes the process up one post ^) and now it's instantly awake.

What the F is keeping my phone awake?

Can someone please help me figure out what's keeping my phone awake. As you can see my screen is only on very little but my phone is turning on quite a bit. This happens a lot unless I'm connected to wifibfor an extended amount of time.
krolla03 said:
Can someone please help me figure out what's keeping my phone awake. As you can see my screen is only on very little but my phone is turning on quite a bit. This happens a lot unless I'm connected to wifibfor an extended amount of time.
Click to expand...
Click to collapse
Probably Google Now and hotword detection. Also do you have WiFi "Scanning always available" on?
I have a related problem and didnt want to open another post. Not sure, maybe its better to do that? Dont want to steal topic.
Also, im sorry but i cannot provide battery tesing app results since im not allowed to root it...and as far as i know root is need to detect wakelocks on kitkat.
But i can provide an error report. Maybe that helps the pros. This happens on a fresh Nexus 5, without any apps besides the preinstalled gApps.
But not constantly, it didnt happen the last 2 days before. Every time it happens it is after a longer period of use. For example if i dont use it a lot and manage to come 2 days with the battery cycle and then charge the mobile, it happens after charging. But it never happened yet when i use device a lot and charge it more frequently. But that can be a coincidence too, dont let you irritate by that now. 4.4.4 Android. But sure is that both times, the only 2 times, it happened right after pull out the charger.
This is pic and error report:
Occurence 1
Occurence 2
https://drive.google.com/file/d/0Bw2HIVhZzrqQdnZ6UG4xYkxUY0E/edit?usp=sharing
Bugreport
https://drive.google.com/file/d/0Bw2HIVhZzrqQR1lId1lwNy0xOVk/edit?usp=sharing
Should i turn off the "keep WiFi on during sleep"
krolla03 said:
Should i turn off the "keep WiFi on during sleep"
Click to expand...
Click to collapse
Depends on what you want to use when screen is off. It just means that wifi is alwayys on. If not, if your phone goes into standby mode the 3G connection takes over. If you have no special data rate you can let wifi on. Your active time is pretty normal for a phone. If auto-sync is on and google now and all that, maybe facebook or whatsapp or even more. Newsapps that push all that does this.
What i would more worry about is your signal. Its very low and probably uses alot of battery. If i recheck your pic i would probably really better let Wifi on if your at home at least, so your 3G connection doesnt always have to work so much. Of course all this is only if you want to have internet...if you know you wont use it anyway, turn it off.
Until its not like me screen above i would not worry too much.
I have google now turned off it was doing way to many wakelocks. I do have hotword on but if I'm correct it only listens when the screen is on. I'm having an issue when the screen is off the phone still keep a waking up.
by the looks of it, its your apps and setup most likely. but its fairly normal, not that many wakeups/wakelocks as many others have. wakelocks are how our phones work, generally they are normal and expected. system apps/processes and user apps create them. only when the process thats associated with the wakeocks get stuck or run amuck, is when they are bad. and yours arent stuck, nor amuck.
simms22 said:
by the looks of it, its your apps and setup most likely. but its fairly normal, not that many wakeups/wakelocks as many others have. wakelocks are how our phones work, generally they are normal and expected. system apps/processes and user apps create them. only when the process thats associated with the wakeocks get stuck or run amuck, is when they are bad. and yours arent stuck, nor amuck.
Click to expand...
Click to collapse
Yeah I don't have many wakelocls but my phone is still awake 20% and the battery menu shows that the phone is waking up quite abit
krolla03 said:
Can someone please help me figure out what's keeping my phone awake. As you can see my screen is only on very little but my phone is turning on quite a bit. This happens a lot unless I'm connected to wifibfor an extended amount of time.
Click to expand...
Click to collapse
Low signal data, Google Now location based cards and Battery Saver or High accuracy mode. This combination gives me the same awake lines as seen here.
Technically having the WiFi on (or "always scanning") should help so it's not solely reliant on the weak data signal, but it doesn't seem to.
bblzd said:
Low signal data, Google Now location based cards and Battery Saver or High accuracy mode. This combination gives me the same awake lines as seen here.
Technically having the WiFi on (or "always scanning") should help so it's not solely reliant on the weak data signal, but it doesn't seem to.
Click to expand...
Click to collapse
I have google now turned off
krolla03 said:
Yeah I don't have many wakelocls but my phone is still awake 20% and the battery menu shows that the phone is waking up quite abit
Click to expand...
Click to collapse
being awake 20% of the time is not much. if you have apps that get notifications, check locations, or are just designed to occasionally check stuff, those are the one thatll cause most the wakelocks.
krolla03 said:
I have google now turned off
Click to expand...
Click to collapse
Guess it's just the WiFi locations in general. When on WiFi it'll rarely wake the phone only data. Google Search then shows more wake time so I figured it'd be Gnow.
krolla03 said:
I have google now turned off
Click to expand...
Click to collapse
See a comparison I did here, both with Battery Saver mode on. When using data the phone wakes constantly in its attempt to resolve location based information. In theory, having the WiFi chip enabled should help but it doesn't seem to do much.

Categories

Resources