Android 10 - wifi sleeping while screen locked - General Questions and Answers

Hi guys!
I did a lot of googling and searching through XDA, but never found a solution for my problem, so I might as well try it here.
Recently I updated my Sony Xperia X Compact to AOSP 10. Now when I am connected to wifi (and it does NOT matter whether it is 2.4/5GHz or IPv4/IPv6, I tried everything) and my screen is locked, my system seems to put the wifi connection into some kind of battery saving mode. Notifications then will hardly come through. You can also see this in WhatsApp Web - every two minutes or so, "Phone not connected" will show up, and messages take up to 2 or 3 mins to get delivered. Then I can use Whatsapp Web normally for 30 secs, after which my phone seems to disconnect again. If I unlock my screen, WhatsApp Web will immediately (!) start working normally again, also missing notifications (e.g. Signal) will then come through.
While of course this might be a ROM bug, I am at least 100% sure it IS ROM-related, as I used exactly the same phone with exactly the same router without any problems while on Android 9 LineageOS.
Another interesting thing - if I charge my phone, during charging WhatsApp Web works completely without problems. The moment i UNPLUG the phone, wifi gets somewhat throttled agian.
Does anybody know a working solution for this? I do not have the option "Disable wifi sleep" or something similar - i believe Google has dropped this option somewhere around Pie.
Thanks in advance!

Spaceoid said:
Hi guys!
I did a lot of googling and searching through XDA, but never found a solution for my problem, so I might as well try it here.
Recently I updated my Sony Xperia X Compact to AOSP 10. Now when I am connected to wifi (and it does NOT matter whether it is 2.4/5GHz or IPv4/IPv6, I tried everything) and my screen is locked, my system seems to put the wifi connection into some kind of battery saving mode. Notifications then will hardly come through. You can also see this in WhatsApp Web - every two minutes or so, "Phone not connected" will show up, and messages take up to 2 or 3 mins to get delivered. Then I can use Whatsapp Web normally for 30 secs, after which my phone seems to disconnect again. If I unlock my screen, WhatsApp Web will immediately (!) start working normally again, also missing notifications (e.g. Signal) will then come through.
While of course this might be a ROM bug, I am at least 100% sure it IS ROM-related, as I used exactly the same phone with exactly the same router without any problems while on Android 9 LineageOS.
Another interesting thing - if I charge my phone, during charging WhatsApp Web works completely without problems. The moment i UNPLUG the phone, wifi gets somewhat throttled agian.
Does anybody know a working solution for this? I do not have the option "Disable wifi sleep" or something similar - i believe Google has dropped this option somewhere around Pie.
Thanks in advance!
Click to expand...
Click to collapse
AFAIK there are kind of wifi energy saving options on some devices. But IDK if you can enable or disable wifi when phone is locked

Related

[Q] Wifi and post-call issue

Hi
I bought this phone 3 months ago and have been going through 2 major issues which have become a pain in the **s.
1) Most of the times, while making a call the screen freezes and the timer is stuck on 00:00, and the UI stops responding to any inputs, which means i cannot use In-Call features. If there's a need to make another call after the previous one then the phone needs to be locked and unlocked since the UI doesn't respond to anything without lock/unlock trick.
2) This one is more annoying and it's about Wi-Fi.
When I connect my phone to the wifi and leave it idle for say 5-10 minutes (provided there's no data being exchanged between the phone and router) and then try to open a website, it just doesn't open it with any browser and all other applications which require internet access stop working.
I have tried changing routers and even tried keeping my phone next to the router but the problem still remains. STAMINA mode is always disabled and "Keep wifi on during sleep" is set to "Always" and "WiFi optimisation" option is also unchecked. To make it more clear, the wifi icon is still displayed after idle time of 5-10 minutes on the top right corner with the uplink arrow lighted up and the downlink arrow not lighting at all.
Please reply if somebody else has the same problem and has any solution to it.
I am on stock ROM, with the latest official update 15.3.A.1.14, everything as it is.
Faced same issues for a while, after unlocking bootloader, rooting and installing a generic firmware(europe CE), issues are gone. Original firmware was with Vodafone branding and a lot of crapware.

[Q] Wifi issue ! (Lollipop 5.1)

Hi All,
I got the Lollipop 5.1 OTA 2 days ago and installed it - everything went smooth and the phone working fine...
But I noticed that if I reboot my router (or turn it off / on again) the Wifi don't reconnect unless I turn on the screen (the second I turn on the screen the wifi connect normally).
I didn't have this issue with Lollipop 5.0.1
P.S.
I know that this is happening because I have a led on my router telling me if any of my Wifi devices is connected or not. And to make sure I also entered the router settings to see if my phone is connected or not.
Anyone noticed that issue with the new lollipop 5.1 ?
Cheers,
I think that your problem is not switching off the router. The problem is when your phone goes to suspension (screen off) and then it drops the wifi off.
My Nexus 5 with 5.1 is doing the same
skorzo said:
I think that your problem is not switching off the router. The problem is when your phone goes to suspension (screen off) and then it drops the wifi off.
My Nexus 5 with 5.1 is doing the same
Click to expand...
Click to collapse
I've got some similar behaviour here, both when updated from 5.0, and with a fresh install from the factory images. When I arrive at a place with known WiFi, the phone only connects once I turned on the screen. After that, it stays connected until I move out of range and back again.
It's probably a matter of responsiveness/battery life. The more it polls for networks, the more battery it uses. It should connect, even with the screen off, within a few minutes.
That being said, I have my wifi set to always stay connected, and I've seen it not connected when I turned the screen on, then connect a couple seconds later. So, there's that. Curious how often it does that.
Aerowinder said:
It's probably a matter of responsiveness/battery life. The more it polls for networks, the more battery it uses. It should connect, even with the screen off, within a few minutes.
Click to expand...
Click to collapse
That's what I suspected. Sometimes, the waiting game works, but I've had my N5 lying on my desk – where it usually gets full WiFi bars – for about 40 minutes the other day, still it did not connect until I turned the screen on.
Edit: Just now, my phone disconnected from WiFi when the screen turned off, which leads me to believe that this is all caused by the WiFi sleep policy. Could it be that Google messed up something there?
dadrc said:
That's what I suspected. Sometimes, the waiting game works, but I've had my N5 lying on my desk – where it usually gets full WiFi bars – for about 40 minutes the other day, still it did not connect until I turned the screen on.
Edit: Just now, my phone disconnected from WiFi when the screen turned off, which leads me to believe that this is all caused by the WiFi sleep policy. Could it be that Google messed up something there?
Click to expand...
Click to collapse
My "research" has led me to believe this is the case.
Anything in terms of a workaround?
I came across those settings in the developer options (see screenshot), especially the "Always allow WiFi Roam Scans" looked promising. Been playing with them, but so far no luck.
Hi All,
exactly the same issues as yours guys are happening since I received the OTA 5.1 and installed it !
I Guess something messed up with this new update in regard of the wifi... as you mentioned.
If you come across a workaround or a confirmation from "Google" please share.
Cheers,
(With almost everyone nowadays having data ..it is difficult to notice such a behavior due to the fast wifi/data switching)
I have seen this happen as well. My battery graph will even show a missing area for WiFi indicating it turned itself on and off twice within a few hours and then stayed on after that.
Google just now released LMY47I, has anyone had a chance to see if that version fixes our problem? Once I'm off work (in about 8 hours), I'll give it a whirl and report back.
Tasker will help you
OsBuilder said:
Tasker will help you
Click to expand...
Click to collapse
Could you please elaborate on that? I'm familiar with Tasker, but I can't think of a way of dealing with this, since I'm not sure what actually happens with the WiFi. The settings appear untouched.
dadrc said:
Could you please elaborate on that? I'm familiar with Tasker, but I can't think of a way of dealing with this, since I'm not sure what actually happens with the WiFi. The settings appear untouched.
Click to expand...
Click to collapse
I'm sorry, but my phone is now in the service center , and press that I do not remember specifically . The idea is that when you disable wifi, a time interval is forced to connect to a particular network . Look presence on the internet , here is full of instructions.
dadrc said:
Google just now released LMY47I, has anyone had a chance to see if that version fixes our problem? Once I'm off work (in about 8 hours), I'll give it a whirl and report back.
Click to expand...
Click to collapse
http://www.androidpolice.com/android_aosp_changelogs/android-5.1.0_r1-to-android-5.1.0_r3-AOSP-changelog.html
Almost all of the changes on these different builds are SIM related for specific carriers.
LMY47I was only released to LGD821 devices with SIM cards from Indian and Australian carriers
Same problem here. I am slowly losing faith in Google. Get the frickin basics going guys!!!
Back to my 5.0.1 build.
I've gone back to 5.0.1, too. Pity, except for this I was pretty happy with 5.1. Maybe 5.1.1 will actually be usable.
Do you think it can be related to Issue 163350? code.google.com/p/android/issues/detail?id=163350
I have just reported that, but I'm still trying to understand if it just happens to me or what.
fabiastik said:
Do you think it can be related to Issue 163350? code.google.com/p/android/issues/detail?id=163350
I have just reported that, but I'm still trying to understand if it just happens to me or what.
Click to expand...
Click to collapse
I think the solution is "use vibrate mode on". Get your device to vibrate mod and test it.
I am waiting for your feedback.
MindLeader said:
I think the solution is "use vibrate mode on". Get your device to vibrate mod and test it.
I am waiting for your feedback.
Click to expand...
Click to collapse
This trick didn't work.
I have this proble too

Wifi connection troubles after update to 6.0

I'm not sure if this is a Nexus 5 problem or a 6.0 Marshmallow problem but the problem occurred after the update to 6.0 on both Nexus 5s for me and my wife.
There seems to be some bug with my phone while it is asleep (screen is off but phone is on). When it is in this mode, it will not stay connected to wifi. For example, when I enter an area that has wifi, my phone will not connect. It will only connect when I wake the phone. And this isn't just a matter of the phone taking a while to connect. It NEVER connects. Before the update, my phone used to make a connection with my home router before I even walked inside. Now, I can be inside for hours and the phone never connects, until I wake it up. As soon as I wake the phone, the phone makes the connection with no problem. After a few minutes of the phone being asleep, I will wake the phone and the wifi connection will be gone. Now that it is awake again, it connects again with no problem.
I have tried forgetting the network and creating a new one, I have tried different routers, I have tried wiping the cache partition. I haven't tried a full factory reset, and I'd prefer not to, but I guess I will if I have to.
Just thought I would check here first and see if anyone had other thoughts.
Settings - wifi - menu - advanced - Second choice down from the top - choose how to keep WiFi depending on your battery charge %. Regards. Alessandro
Alessandro
vn800art said:
Settings - wifi - menu - advanced - Second choice down from the top - choose how to keep WiFi depending on your battery charge %. Regards. Alessandro
Alessandro
Click to expand...
Click to collapse
Thanks for the reply. Yes, that is what I thought at first also. I meant to say in my original post that my wifi settings are set to "Always On" during sleep. I've tried toggling that between the settings but still have the trouble.
Sorry, my Nex 5 has not this issue on Android 6 build MRA58K.
Alessandro
Yup, have the same issue. When the phone goes to sleep, it seems to disconnects from the wifi and never connects after I wake the phone. When I go into the wifi settings, I see "WIFI Connection Failure". I have to reconnect manually. Like the OP, have it set to always on as well. I also know it's not a router issue because I've tried this on four different routers (two linksys, one Dlink, one TPLink) All same results.
Wonder if this is a phone issue?
Please go here and click on the star to vote for this issue.
https://code.google.com/p/android/issues/detail?id=190667
Google upped this to a high priority Friday morning (Nov 6). The bad news is I think there a couple different WiFi symptoms being discussed here. Most of what is being discussed is the issue being discussed here (not reconnecting when the screen is off).
No idea when this will be fixed, so I build a Tasker profile to toggle WiFi every 15 minutes when not already connected to force a reconnect. I’ve observed it getting disconnected on its own overnight. This should avoid unnecessarily using cellular data.
I’m perpetually waiting for the next release of Android to fix annoying bugs.
vn800art said:
Settings - wifi - menu - advanced - Second choice down from the top - choose how to keep WiFi depending on your battery charge %. Regards. Alessandro
Alessandro
Click to expand...
Click to collapse
GaryP2 said:
Please go here and click on the star to vote for this issue.
https://code.google.com/p/android/issues/detail?id=190667
Google upped this to a high priority Friday morning (Nov 6). The bad news is I think there a couple different WiFi symptoms being discussed here. Most of what is being discussed is the issue being discussed here (not reconnecting when the screen is off).
No idea when this will be fixed, so I build a Tasker profile to toggle WiFi every 15 minutes when not already connected to force a reconnect. I’ve observed it getting disconnected on its own overnight. This should avoid unnecessarily using cellular data.
I’m perpetually waiting for the next release of Android to fix annoying bugs.
Click to expand...
Click to collapse
Thanks for the update Gary. The comment #6 describes my situation exactly. In doing some troubleshooting of my own, I find the disconnection trouble to happen less while on a 5Ghz network vs 2.5. I still have the trouble of it not connecting initially when I come into range, but I find that it is able to hold the connection while asleep.
I am also experiencing this on my Nexus 5 and also found and starred the thread above.
I just listened to 20min of streaming with Spotify to then realize that it had gone into Doze and used the mobile data!
This is more than annoying...
Maybe by disabling Doze for some specific connectivity-related system app? Anyone tried that?
Yes, I moved virtually all of the services type of apps (the ones with the green generic Android icon) to the battery not optimized list. It didn't make any difference for me.
In some ways it seems like it might be a Doze problem, and in other ways it doesn't. Doze shouldn't be affecting anything when the phone is in my pocket and I walk in the house to my WiFi. It also shouldn't be affecting anything when the phone is being charged, which is when I see frequent WiFi disconnects.
It will be real disappointing if this isn't fixed with 6.0.1.
This is still an issue with 6.0.1. Nexus 5 (2013) 6.0.1 MMB29K updated through OTA ZIP pushed with ADB.
Things work properly for a while right after a reboot and then WiFi never connects until the screen is turned on.
Google Connectivity Services C.1.6.7 (2466695) update didn’t make a difference either.
Same problem as the thread starter. HTC A9 anroid 6.0. (newest available OS)
Same problem here with a Nexus 5 .
Please star the problem if you have it.
https://code.google.com/p/android/issues/detail?id=170078
Has anyone tested with a non-stock kernel ?
I'm asking because the problem seems +/- resolved on CM13 (non caf).
No counting CM13, do you know of a more stable rom with the problem resolved?
Does anyone here have Wemo devices? I am reading that wemos, and possibly other devices that emit their own wireless network, may cause problems. I have several of these devices around the house, and wonder if that might be contributing. However, that only would solve the dropped connection bug I have, not the failing to connect while asleep but I have.
Hi mates, my Nexus 5 (android 6.0.1,M8974A-2.0.50.2.29) gets the same troubles with wifi connection but today I tried to put some apps in non optimized list of Doze and seems workig fine.
Thats my non optimized Doze list:
-Google Play Services
-System UI
Try it and let me know if it works properly.
frontomix said:
Hi mates, my Nexus 5 (android 6.0.1,M8974A-2.0.50.2.29) gets the same troubles with wifi connection but today I tried to put some apps in non optimized list of Doze and seems workig fine.
Thats my non optimized Doze list:
-Google Play Services
-System UI
Try it and let me know if it works properly.
Click to expand...
Click to collapse
I had Google Play Services already set to not optimize, but hadn't tried System UI. I will try that out and see what happens.
whitenack said:
I had Google Play Services already set to not optimize, but hadn't tried System UI. I will try that out and see what happens.
Click to expand...
Click to collapse
Welp, that didn't work. Still have the error after not optimizing System UI in addition to Google Play Services.
I don't know if the issue is resolved, but at least for me, it never worked fine so many days after testing some new workaround.
So, this was what I did in my Nexus 5 (latest build, MOB30H).
Uninstall or deactivate Google Connectivity Services, reset your network settings (you will lose your Wifi networks and BT pairings), reboot.
My Nexus 5 has been connecting to the wifi networks even with the screen off for the last 6 days.
Miguun said:
I don't know if the issue is resolved, but at least for me, it never worked fine so many days after testing some new workaround.
So, this was what I did in my Nexus 5 (latest build, MOB30H).
Uninstall or deactivate Google Connectivity Services, reset your network settings (you will lose your Wifi networks and BT pairings), reboot.
My Nexus 5 has been connecting to the wifi networks even with the screen off for the last 6 days.
Click to expand...
Click to collapse
Miguun, has the error returned, or still fixed? I just got the May update, so fingers crossed that fixes it. Otherwise, I guess I'll try your fix. I don't look forward to entering the wifi network information again.
Yup, it is still working !!

Wi-Fi/LTE doesn't start working until phone is on for some time

Hello everyone,
I have had my E6653 since mid October, and it was working well, however once I flashed a Taiwanese 32.0.A.6.152 firmware I have this bug. Let me describe what actually happens:
1. All stamina modes turned on (clock, extended standby, extended usage)
2. Start using the phone after it sat idle for some time, sometimes even 10 minutes is enough
3. Whatever app you were in, if it requires internet connection, it won't work. Switch apps, try to use internet connection and it still won't work.
4. Wait for somewhere around 15 seconds, and internet connection kicks in.
It happens when I'm both on LTE and Wi-Fi. I have already tried repairing my phone, and flashed 3 different firmwares (CE, Taiwan, UK), but nothing helps. I have seen someone on reddit with a similar problem, but for them it only occurred when they were connected to Wi-Fi.
Has anybody else experienced this? If yes, were you able to fix it?
Thanks for your time!
I was able to fix it by waiting 15 seconds.
Seriously, turning back on the radios and acquiring an IP address isn't instant. Just be happy you have a phone with Stamina mode available if you want it.
ricodredd said:
I was able to fix it by waiting 15 seconds.
Seriously, turning back on the radios and acquiring an IP address isn't instant. Just be happy you have a phone with Stamina mode available if you want it.
Click to expand...
Click to collapse
I don't think you understood what the problem is. I have LTE and Wi-Fi turned on all the time, never turn either off. Stop using a phone for 10 minutes, turn the screen back on, unlock it, try to use internet connection and then it fails. It hasn't happened on the previous version of the firmware when I had all stamina modes turned on, and it certainly isn't normal. It's a bug, and I was asking if anyone knows the fix. Waiting 15 seconds is not one, unfortunately.
Well one of us isn't getting the issue for sure and I don't think it's me. However, I've been wrong before
You said:
"1. All stamina modes turned on (clock, extended standby, extended usage)"
but also:
"I have LTE and Wi-Fi turned on all the time, never turn either off."
Stamina mode says about Extended standby: "Saves power when the screen is off by temporarily disabling Wi-Fi and mobile data".
These two statements are in disagreement.
So you put the phone down for a few minutes (presumably the screen goes off too), then Stamina mode kicks in and turns off Wi-Fi and mobile data. You wake up the phone after 10 minutes or so => you need to wait for radios to fire up and acquire IP address.
I'm not seeing anything wrong or unexpected with this behaviour...
I've noticed this more aggressive stamina mode myself. In all honesty I can't see a problem with it, it's putting the phone into deep sleep a lot faster (10 seconds or so in most cases) than it was on the firmware before. If it is happening across many different firmwares it is safe to assume that's how it is meant to be functioning. If, in the next firmware, it goes back to how it was it was a bug.
This behavior is different to earlier Xperias so it surprised me as well. In addition the phone shows you still connected to the network which makes it more difficult to determine.

WLAN Hotspot doesn't work on Android, looking for competent help

Hi,
I'm using a Sony Xperia Z5 Dual Android 7.0 facing that issue making me unable to use my WLAN hotspot (which it pretty anoying cause it doesn't only dissallow me to share my internet connection but also I can't do other network stuff between devices I'd use that hotspot for).
So when I try to turn on my the hotspot it simply turns itself off again after small amount of seconds. When I got to WLAN hotspot in settings then I have the active button to switch the hotspot on while it shows me tbat it's of at the moment. Doing that it says "Activating hotspot..." (pretty exactly that) until it's going off again with a quick "Deactivating hotspot" and you could activate it again but it will do nothing again than say "activating" and go off again. While it is "activating" it already shows the active hotspot icon in the top bar of the phone and the hotspot settings are as well already active and no more inactive greyed out. But only for nk idea, 3 seconds probably. Within that short period of time my laptop didn't find my phones hotspot but that might just be down to an to high delay in scanning and finding so I don't know wether it would shortly pop up seeable for other devices.
Earlier that day I had my hotspot working actively (nobody actually joined) but it worked and would have if somebody joined because that issues is not new to me on my phone and when the hotspot activates, then it also works. But half of the time it seems when I want to use it, it doesn't work. I haven't changed any settings inbetween or restarted my phone. It was probably on for one week, but after then trying a restart it still didn't help.
I already changing some one-click stuff like just turning out WLAN, turning off or on data save mode (which stops background data for all apps in mobile internet and WLANs marked as hotspots), turning off or on mobile data. But well, I don't know anything else and earlier it worked with all the same settings so what could be the problem behind that?? Besides that my phone always just works completely normally without any issues, WLAN always works without problems, only Bluetooth sometimes doesn't want to activate and then I see it active after some minutes or hours later, but that can always be fixed with a restart if I needed it instantly. If you just wait and it is active then tough, it is kinda awoken and works instantly then again shutting it off and on.
Phone is not rooted btw.
Ok long text, but please if you have any ideas tell me..
Greetings, HelpsToMes

Categories

Resources