Wifi disconnects in sleep - Sony Xperia M

When my screen is off for a long time and I put it back on, I notice that my wifi was shut down and needs to reconnect.
I was wondering if there is any fix for it as I assume I'm not the first one having this problem but couldn't find a solution.
Phone: C1905
ROM: CM12 based BlissPop v2.0 or v2.3 (I'm not sure, the one from this thread)
'Keep Wi-Fi on during sleep' is set to always, 'scanning always available' is off, 'avoid poor connections' is off as well, and frequency band set to automatic.

Related

Problems with 4.1.1 WiFi and Tasker

I have a few profiles set up to turn WiFi on when connected to certain cell towers (around my house and work).
I noticed since 4.1.1. WiFi keeps turning itself off despite the Tasker profile being active. Often times it will be on and connected then when I check my phone later, it's simply off. If I turn WiFi back on manually it turns itself off again.
I added the 15 second wait to the exit task thinking that there was trouble between cell tower transitions and 15 seconds would be enough for my phone to sort itself out, but it hasn't fixed the problem.
My profile is set:
Cell Near
> Set WiFi On
< Wait 15 Seconds/Set WiFi Off
Is this a Tasker Issue with 4.1.1 or is it some Radio issue? I flashed the 4.1.1 radio with JB, XXLF1 or something...
sarshadd said:
I have a few profiles set up to turn WiFi on when connected to certain cell towers (around my house and work).
I noticed since 4.1.1. WiFi keeps turning itself off despite the Tasker profile being active. Often times it will be on and connected then when I check my phone later, it's simply off. If I turn WiFi back on manually it turns itself off again.
I added the 15 second wait to the exit task thinking that there was trouble between cell tower transitions and 15 seconds would be enough for my phone to sort itself out, but it hasn't fixed the problem.
My profile is set:
Cell Near
> Set WiFi On
< Wait 15 Seconds/Set WiFi Off
Is this a Tasker Issue with 4.1.1 or is it some Radio issue? I flashed the 4.1.1 radio with JB, XXLF1 or something...
Click to expand...
Click to collapse
To the OP, did anybody help you with this problem? I am in the same boat.
Thanks
I stopped using tasker to automate WiFi and I no longer have the problem. Some api must have changed that ruined tasker's ability or my profile.

[Q] Wi-Fi sleep policy

I've set my Wi-Fi sleep policy to "Always On" but after screen off for around maybe 15-30 mins ? It turns off Wi-Fi and when I turn screen back on , my Wi-Fi doesn't work any more , I have to reset my router to be able to use it again . Any help would be much appreciated
This happened to me as well, but I noticed it when I was still on ICS, before updating to JB. With my crappy old router I had to turn it on and off all the time until I found that the router settings were screwing me up: the DCHP lease was too short a time interval so that when it expired, the phone or laptop would be in sleep mode and not respond or something like that. Increasing the duration helped, but ultimately a new router fixed the need to constantly restart. The new router did not help the wifi sleep issue.
Some suggestions on the wifi sleep issue would be nice.
Wait wait!
Have you tested it between 00am and 07am??
If yes, it's normal! HTC has setted this device to go in "sleep mode" during the night.
During the "sleep mode" the WiFi and the Data Connection turns off after 30minute of stand-by

Wi-Fi turns off when phone in deep sleep

Hi, I saw many posts related to this topic Wi-Fi turns off when phone in deep sleep but not able to find a single working solution.
My phone runs on 4.2.1 with wi-fi sleep policy set to NEVER ( that means always on ideally ) , and tried turning on / off wifi optimization, avoid poor connections is not ticked.
Even after doing everything the wifi is turned off after sometime and when i turn on Screen it turns it back! How to do I solve this?? I am using STOCK rom, with just root.. No other battery saver etc. app installed.
emptyragnarok said:
Hi, I saw many posts related to this topic Wi-Fi turns off when phone in deep sleep but not able to find a single working solution.
My phone runs on 4.2.1 with wi-fi sleep policy set to NEVER ( that means always on ideally ) , and tried turning on / off wifi optimization, avoid poor connections is not ticked.
Even after doing everything the wifi is turned off after sometime and when i turn on Screen it turns it back! How to do I solve this?? I am using STOCK rom, with just root.. No other battery saver etc. app installed.
Click to expand...
Click to collapse
Set it to Never instead of Always. Its ass backwards.
scottx . said:
Set it to Never instead of Always. Its ass backwards.
Click to expand...
Click to collapse
OP stated its already set to never
Sent from my Vivid 4G using Tapatalk 2
well i have this problem too on every jelly bean rom. the only rom without this problem in cm10 stable. now i'm with cm10.1 hoping they'll fix it like in cm10.
when that problem comes out just toggle on and off airplane mode and it should disappear until next wifi toggle off and on.
I hope google will solve it in key lime pie
CM 10.1 has only just started doing this in the last week or so, it was fine before. Was wondering if it was just me with this issue or not...
emptyragnarok said:
Hi, I saw many posts related to this topic Wi-Fi turns off when phone in deep sleep but not able to find a single working solution.
My phone runs on 4.2.1 with wi-fi sleep policy set to NEVER ( that means always on ideally ) , and tried turning on / off wifi optimization, avoid poor connections is not ticked.
Even after doing everything the wifi is turned off after sometime and when i turn on Screen it turns it back! How to do I solve this?? I am using STOCK rom, with just root.. No other battery saver etc. app installed.
Click to expand...
Click to collapse
Am i correct in understanding that you don't want it to disconnect? The option in the settings is "Keep wifi on during sleep". If you have it at Never, then it will disconnect when the phone goes into sleep. It should be placed on Always because you want it to be on even during sleep
Flowed and Tapped from my Nexus
fixed the wifi problem
Heya! My first post!!!
So, i had the same problem on my Allview P5 Quad.
The guys from Allview released an update for my phone based on 4.2.1 and i thought the problem was from them. I had WiFi turned on and after a few minutes from entering sleep mode, the WiFi got disconnected, both WiFi and data. I have installed the last update again and again, rooted, unrooted, tried every option from WiFi and i still had the same problem.
So i timed the time when the WiFi disconnects and it was exactly 6 minutes. So i thought that it must be an option that does this. So i unchecked the Quick Power Saving icon from Switches and ... SURPRISE! My WiFi stays on continuously. So, the problem is from the system power saving settings. I hope this helps all of you.
P.S. Love this forum! Thanks for all your help!
I believe I found the problem, some how it is not the phone but my wifi router (and all routers) is the problem. Go into your router settings and look for the "Beacon Interval" and set that number to 50. I'm not going to explain what the beacon interval is, go google it and you will see. I switched mine and now the wifi on my phone does not switch off when in deep sleep.

Very persistent WiFi problem...

Is there any way to make sure my WiFi doesn't turn on spontaneously when I don't want it on? I've had this problem from day one and through several different ROM flashes. I've never had the "WiFi optimization" option turned on, the "Scanning always available" option in CM turned off (my current ROM) and "Keep WiFi on during sleep" set to "Never." Yet still, it just randomly turns on. In fact, sometimes I'll look at my phone, realize that WiFi is on, turn it off and it comes back on a second or two later. Is there maybe a different kernel I can flash that will prevent this issue?
This happens to me at least once a day and it really makes me wonder how much battery this is being drained from my WiFi constantly trying to connect.
JGress said:
Is there any way to make sure my WiFi doesn't turn on spontaneously when I don't want it on? I've had this problem from day one and through several different ROM flashes. I've never had the "WiFi optimization" option turned on, the "Scanning always available" option in CM turned off (my current ROM) and "Keep WiFi on during sleep" set to "Never." Yet still, it just randomly turns on. In fact, sometimes I'll look at my phone, realize that WiFi is on, turn it off and it comes back on a second or two later. Is there maybe a different kernel I can flash that will prevent this issue?
This happens to me at least once a day and it really makes me wonder how much battery this is being drained from my WiFi constantly trying to connect.
Click to expand...
Click to collapse
What ROM are you on? I am on the latest unofficial liquid smooth and I noticed that also. I would always use quick settings though to turn off WiFi. But now when i go into settings and shut it off it stays off
JGress said:
Is there any way to make sure my WiFi doesn't turn on spontaneously when I don't want it on? I've had this problem from day one and through several different ROM flashes. I've never had the "WiFi optimization" option turned on, the "Scanning always available" option in CM turned off (my current ROM) and "Keep WiFi on during sleep" set to "Never." Yet still, it just randomly turns on. In fact, sometimes I'll look at my phone, realize that WiFi is on, turn it off and it comes back on a second or two later. Is there maybe a different kernel I can flash that will prevent this issue?
This happens to me at least once a day and it really makes me wonder how much battery this is being drained from my WiFi constantly trying to connect.
Click to expand...
Click to collapse
Mine has done that from day 1 on stock. Its annoying but still minor.

Wifi stops working after phone is idle for some time

Whenever my phone is idle for a certain amount of time, I don't get any notifications. So I turn my phone on, turn my wifi off then on again and everything returns to normal. Any idea what could be causing this?
Some things that might help:
Latest PureNexus
Latest EX kernel
I have amplify and greenify installed, and I followed limitations by this guide.
It is caused by Android bug where WiFi that goes into deep sleep doesn't enable again when you turn your screen on.
To workaround, you can leave wifi on during sleep or install app to control wifi on/off.
sfhub said:
It is caused by Android bug where WiFi that goes into deep sleep doesn't enable again when you turn your screen on.
To workaround, you can leave wifi on during sleep or install app to control wifi on/off.
Click to expand...
Click to collapse
What...? The workaround is to leave it on? IT IS already on...
Bei60 said:
What...? The workaround is to leave it on? IT IS already on...
Click to expand...
Click to collapse
You have
Settings->Wi-Fi->...->Advanced
Keep Wi-Fi on during sleep
set to "Always"?
The bug is even if you keep your WiFi on all the time, if you allow it to go into "deep sleep", when you turn on the device in the morning (or whenever) then even though WiFi will say it is on, it won't work.
It didn't do that on the original MDA89E release but it does on the latest. I don't know when the change happened. On MDA89E, it had a different bug, even if you set Keep Wi-Fi on during sleep to "Never" it still wouldn't go to deep sleep. This probably masked the problem of resuming from deep sleep that started showing up in the latest releases, when they actually started honoring the "Never" option.
The other problem you could be having if WiFi is working and it is just notifications not showing up, Google Play services keeps a connection open to the mothership for notifications. There is a heartbeat it uses to keep the connection alive. If you router is killing the TCP connection before the heartbeat can send packets, then that connection might be broken and the quickest way to get notification is to toggle the interface. For cell data, they don't usually terminate the long connections that quickly so the heartbeat usually works fine. Alternatively if you determine this is the problem, you can usually adjust how often your router allows TCP connections with no activity to live.
I thought Google had "fixed" this problem though because they were supposed to dynamically adjust the heartbeat timer based on your connection specifics. I think default is 15 minute heartbeat on WiFi and 28 minute on Cell.

Categories

Resources