Turning wifi off when screen is off - Nexus 5 Q&A, Help & Troubleshooting

Is there a tool or app that will turn wifi (and perhaps data) off when the phone display is not on?
My wifi is using a lot of battery.
Thanks.

When I read this, my first thought was this function in the Android Wifi settings. Not entirely sure if this will solve your problem, but give it a try and see if it helps.
From Google's Support site for Android, under "Advanced Wifi Settings" (It's for Android One, but still applies):
Keep Wi-Fi on during sleep: Touch to choose how your device handles Wi-Fi when it's asleep. You can choose to keep Wi-Fi on all the time, only if your device is charging, or turn it off completely. If you turn Wi-Fi off, you may increase the amount of mobile data you use.
Click to expand...
Click to collapse
Since I'm a new user, I can't post the actual URL, but here's the Google Support destination:
support(dot)google(dot)com/android-one/answer/2819519
Cheers,
-Phil

You are correct. It is in android settings under advanced in wifi.
Thanks.

LeanDroid
I liked LeanDroid. I used to get battery for more than 24 hours.
But with Lollipop, it needs root access.
Rooting is not easy with Lollipop
Hence, I am also stuck like you
Waiting for 5.01 version hoping to get some fixes.
Drain with my phone is not just WiFi Mobile network too and generally the green bar slopes down.
Kitkat and LeanDroid were good
You can still try LeanDroid

gagbel said:
Rooting is not easy with Lollipop
Click to expand...
Click to collapse
1. Flash custom recovery
2. Flash latest SuperSU
and you have root access.

thanks
Thanks

Thanks. That helped me too.

wifi off, when screen is off
after updating to lollipop (stock), i am unable to connect to my college wifi. but i could use my wifi at home. now after few days my wifi is going off, when the screen goes to sleep. what kind of a problem is this ? when can the nexus 5 users get 5.0.1 update ?

Related

[Q] Nexus 5 - Battery usage shows Wi-Fi always on?? (even when manually turned off)

I'm on a 32gb Google Play purchased white Nexus 5, activated on Sprint. I went through a whole charge cycle yesterday with Wi-Fi off, and under battery usage / Wi-Fi / Use Details / Wi-Fi running, it showed "Wi-Fi running" 17 hours. I never even had Wi-Fi turned on once.
I've been playing with it today, turning Wi-Fi on and off, and no matter what, the Wi-Fi usage time matches my phone on time. It seems according to the battery meter my Wi-Fi is always on. Any one else seeing this? What is the deal?
Go into wifi settings, click the menu button in the lower right corner, go to advanced.
Uncheck "Scanning always available". There you go.
Although TBQH the battery impact seems minimal (especially if it's able to use wifi to get a location lock, as that's much more power efficient than turning on the GPS).
that is because even though you have turned WiFi off, its still available to app to get better location. if you want to turn that off, go to settings, wifi, options, advanced and uncheck "scanning always available"
that will turn off wifi completely. hope that helps.
beestea said:
I'm on a 32gb Google Play purchased white Nexus 5, activated on Sprint. I went through a whole charge cycle yesterday with Wi-Fi off, and under battery usage / Wi-Fi / Use Details / Wi-Fi running, it showed "Wi-Fi running" 17 hours. I never even had Wi-Fi turned on once.
I've been playing with it today, turning Wi-Fi on and off, and no matter what, the Wi-Fi usage time matches my phone on time. It seems according to the battery meter my Wi-Fi is always on. Any one else seeing this? What is the deal?
Click to expand...
Click to collapse
Go into WIFI settings and click the menu (three dots menu) for advanced settings. You will find an option that makes the phone to scan for networks even when disabled.
mocoflip said:
Go into WIFI settings and click the menu (three dots menu) for advanced settings. You will find an option that makes the phone to scan for networks even when disabled.
Click to expand...
Click to collapse
Thank you all very much! Will see if it helps my battery life at all!
Thanks folks.
Following my update to 4.4.2 I was experiencing wifi using a lot more battery than normal. I tend to turn wifi off at night, and phone had started using more battery than normal. This fix in advanced settings got things back to normal for me. Battery usage much better. Odd that the update seemed to have set this to on for me.
Thanks a lot guys..this was bugging my head as well..
Hi Guys,
I've just updated to Lollipop by sideloading the OTA.
My battery usage stats say that my WiFi is constantly on and the phone is Awake, even with WiFi turned off AND 'Scanning Always Available' also turned OFF.
What could be going on and does anyone have any suggestions to fix?
Thanks
Same thing happening to me Wifi constantly on Android 5.0 Nexus 5
randommonth said:
Hi Guys,
I've just updated to Lollipop by sideloading the OTA.
My battery usage stats say that my WiFi is constantly on and the phone is Awake, even with WiFi turned off AND 'Scanning Always Available' also turned OFF.
What could be going on and does anyone have any suggestions to fix?
Thanks
Click to expand...
Click to collapse
Same thing is happening to my device. I upgraded to Android 5.0 yesterday using the OTA upgrade and battery life has been horrendous. When I view battery use it shows WiFI as being constantly on...even when I have it manually turned off. I also have "scanning alwaysa available" turned off. Need more insight on this issue.
randommonth said:
Hi Guys,
I've just updated to Lollipop by sideloading the OTA.
My battery usage stats say that my WiFi is constantly on and the phone is Awake, even with WiFi turned off AND 'Scanning Always Available' also turned OFF.
What could be going on and does anyone have any suggestions to fix?
Thanks
Click to expand...
Click to collapse
rebornlol said:
Same thing is happening to my device. I upgraded to Android 5.0 yesterday using the OTA upgrade and battery life has been horrendous. When I view battery use it shows WiFI as being constantly on...even when I have it manually turned off. I also have "scanning alwaysa available" turned off. Need more insight on this issue.
Click to expand...
Click to collapse
I had this same issue. I think I fixed it, check out my thread for a solution: http://forum.xda-developers.com/google-nexus-5/help/fix-lollipop-wifi-off-t2947870
Basically, flash Kitkat factory images, sideload OTA, factory reset, and hopefully that resolves it. Nasty little bug.
Thanks
Thanks for reading my post and suggesting the solution you have written up on your thread. I am going to see if somehow the problem becomes resolved within the next couple of days. Otherwise, I will flash back to clean KitKat image and upgrade to Lollipop as you suggested.
When I upgraded to Lollipop yesterday, it wasn't a clean install. I simply installed over my current KitKat config.
thattypicalnerd said:
I had this same issue. I think I fixed it, check out my thread for a solution: http://forum.xda-developers.com/google-nexus-5/help/fix-lollipop-wifi-off-t2947870
Basically, flash Kitkat factory images, sideload OTA, factory reset, and hopefully that resolves it. Nasty little bug.
Click to expand...
Click to collapse
Thanks for the reply, but what you suggest is basically how I have arrived at this situation...
1. I flashed the KitKat factory images a few months ago to resolve an unrelated issue
2. I sideloaded the Lollipop OTA update earlier this week, then discovered the WiFi Awake issue chewing battery.
3. I performed a factory reset (from the O/S, not from recovery) 2 days ago and then re-setup my phone, making sure to untick the option during setup which turns scanning always available on.
4. Today, with Wifi turned off and scanning always available turned off, my phone battery stats indicate my WiFi to be constantly ON.
That said I will give your method another try, but beyond that I was considering flashing the Lollipop factory images, will this help?
Cheers
randommonth said:
Thanks for the reply, but what you suggest is basically how I have arrived at this situation...
1. I flashed the KitKat factory images a few months ago to resolve an unrelated issue
2. I sideloaded the Lollipop OTA update earlier this week, then discovered the WiFi Awake issue chewing battery.
3. I performed a factory reset (from the O/S, not from recovery) 2 days ago and then re-setup my phone, making sure to untick the option during setup which turns scanning always available on.
4. Today, with Wifi turned off and scanning always available turned off, my phone battery stats indicate my WiFi to be constantly ON.
I was considering flashing the Lollipop factory images, will this help?
Cheers
Click to expand...
Click to collapse
How I arrived at that situation was by clean flashing the Lollipop factory images Maybe try it again? I'm honestly not sure what the difference in doing the two is (flashing factory Lollipop vs flashing factory Kitkat -> OTA -> wipe), but it seems to have done something for me. Also are you rooted? I did not root after following those steps, as all I really used root for was monitoring battery stats.
randommonth said:
Hi Guys,
I've just updated to Lollipop by sideloading the OTA.
My battery usage stats say that my WiFi is constantly on and the phone is Awake, even with WiFi turned off AND 'Scanning Always Available' also turned OFF.
What could be going on and does anyone have any suggestions to fix?
Thanks
Click to expand...
Click to collapse
rebornlol said:
Same thing is happening to my device. I upgraded to Android 5.0 yesterday using the OTA upgrade and battery life has been horrendous. When I view battery use it shows WiFI as being constantly on...even when I have it manually turned off. I also have "scanning alwaysa available" turned off. Need more insight on this issue.
Click to expand...
Click to collapse
thattypicalnerd said:
I had this same issue. I think I fixed it, check out my thread for a solution: http://forum.xda-developers.com/google-nexus-5/help/fix-lollipop-wifi-off-t2947870
Basically, flash Kitkat factory images, sideload OTA, factory reset, and hopefully that resolves it. Nasty little bug.
Click to expand...
Click to collapse
randommonth said:
Thanks for the reply, but what you suggest is basically how I have arrived at this situation...
1. I flashed the KitKat factory images a few months ago to resolve an unrelated issue
2. I sideloaded the Lollipop OTA update earlier this week, then discovered the WiFi Awake issue chewing battery.
3. I performed a factory reset (from the O/S, not from recovery) 2 days ago and then re-setup my phone, making sure to untick the option during setup which turns scanning always available on.
4. Today, with Wifi turned off and scanning always available turned off, my phone battery stats indicate my WiFi to be constantly ON.
That said I will give your method another try, but beyond that I was considering flashing the Lollipop factory images, will this help?
Cheers
Click to expand...
Click to collapse
thattypicalnerd said:
How I arrived at that situation was by clean flashing the Lollipop factory images Maybe try it again? I'm honestly not sure what the difference in doing the two is (flashing factory Lollipop vs flashing factory Kitkat -> OTA -> wipe), but it seems to have done something for me. Also are you rooted? I did not root after following those steps, as all I really used root for was monitoring battery stats.
Click to expand...
Click to collapse
I had the same issue as well and found it was actually caused by viber app. if you have viber app you can got into the app
->settings->general->Wifi-sleep policy and change it to use device's settings.
If that doesn't help try booting into safe mode and check your battery stats, thats how i found out it was actually caused by a 3rd party app.
A question?
My wifi is always on too as a function of Settings>Wifi>Advanced>Keep Wifi on during sleep>Always.
My question is, when I'm at work I have no chance of connecting to any Wifi networks (there aren't any!), is it going to save my battery turning this off?
Regards all,
Paul.
I have a 32 gb nexus 5. My Wifi is always on. Whenever i try to turn it off, it automatically turns right back on. If i restart the phone, wifi will be off for sometime. But as soon as i go to the drop down menu, zap, its on again. Any help on this? And of course this is draining my battery faster.
Working solutions
tejasbr said:
I have a 32 gb nexus 5. My Wifi is always on. Whenever i try to turn it off, it automatically turns right back on. If i restart the phone, wifi will be off for sometime. But as soon as i go to the drop down menu, zap, its on again. Any help on this? And of course this is draining my battery faster.
Click to expand...
Click to collapse
============================================
1. Wiping Cache Partition.
2. An app must be interfering with the android system. Uninstall applications like Clean Master, Ram Boosters, Process Killers ,etc.
Your phone doesn't need these optimizers and they are the source of the problem creating problems with the usage, asking for permissions to interfere with the system.
NOTE : Process killers, ram boosters mostly the problem, you don't need to disable WiFi everytime after use, just go to wifi options -> advanced -> Keep wifi on during sleep -> Never and select WiFi freq band as requied.
After this step you need to clear cache again and then you will never see WiFi on top i.e System will function normally.
============================================

[Q] [Help] Wifi drains battery even though turned off (Lollipop)

Hi everyone,
I am new here, and would like some help with my Nexus 5.
It is running stock rom and everything, Android 5.0.1 LRX22C
I am still setting up, so still using my old phone while I get all the mandatory apps on before i switch my SIM over.
I realised that battery seems to be draining rather quickly even it spends most of its time on just Wifi right beside the router. Cellular connection is not on. So one day I decided to turn it to airplane mode and see what happens.
As you can see from the attachment, WiFi was on all the time even though the phone was on airplane mode. I believe this is the cause of the battery drain. I did not turn WiFi on.
"Scanning always available" was turned off, and the top battery drainer is "Android system", but at only 1%.
(The screenshot was only taken after I reconnected Wifi and downloaded GSam, that explains the notifications.)
Does anyone know the cause of this? I'd prefer if I do not need to factory reset the phone as I am pretty much done setting up everything and I don't want to have to do it all again.
Any help would be really appreciated.
Thanks!
If you go to 'Advanced' there should be an option called 'Keep WIFI on during sleep', click there and then click 'Never' or 'Only when plugged in'. Good luck.
I too had the same problem when i updated to lollipop but after some days of usage i found that in wifi under advance there was a new option scanning always available which was turn on. What this setting do is even if ur wifi is off the app can scan for wifi signals for the location. So if u want to keep ur wifi off just turn off that setting.
I already had it turned off, but the battery settings still reports WiFi as on. Weird thing is GSam says my WiFi is off, so I'm not sure what is the problem now.
It might be the Android System, reporting it uses even more battery than my screen now.
Sent from my Nexus 5 using XDA Free mobile app

[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

Kyocera Duraforce upgrade to Lollipop?

Is this phone which I just purchased able to be upgraded to Lollipop ROM. I did complete the Kingo Root but that is all so far. I am having WiFi issues with the stock ROM,keeps disconnecting from my Asus router. Also, I only have a 300megbyte data package for this phone and was wondering if At&t is able to disable my WiFi on the service,sure seems strange that all of a sudden my phone wont stay connected to my Home Wifi .it just started dong this 2 days ago. Thinking maybe they can cut my WiFi off and trying to make me upgraded to more data by making me use up my small amount by using the 4G signal. They just sent me a email stating that I am already at 75 percent of my 300mg and I could purchase more date if I wanted to. One more thing, TWRP does not seem to support my phone since I could not find it in the list when trying to install there app. Any help would be appreciated.
I had a similar issue when using 5ghz WiFi and ultimately had to switch to 2.4ghz and leave 5ghz off... Some things to try (under Settings -> WiFi -> three dot menu -> Advanced)
Set "Keep Wi-Fi on during sleep" to "Always"
Unhcheck "Avoid poor connections"
Set the frequency band explicitly
Uncheck "Wi-Fi optimization"
I only had partial success with the above, WiFi still goes into fits on occasion but overall the stability on 2.4ghz, especially with the screen off, has improved.
As a side note I've started a super thread for the DuraForce here (link) for those of us with the device to share experiences and fixes. I'm hoping that enough of us can band together where issues like this can be solved faster. I've seeded the thread with everything I've been able to put together and any additions are welcome.
need bacup room
i have phone hang on lgo . need backup file please
please backup system to system.img
ngocdiemmobile said:
need bacup room
Click to expand...
Click to collapse
When a sheep says "Baaah" while it has the hiccups, what does it sound like? bacup.

WiFi is turned off yet is reported as turned on and using battery.

My wifi has been off since i upgraded to M, clean install from the Google images. It still reports my wifi as on and using up my battery....is this a bug or am i reading this incorrectly?
http://imgur.com/a/ow5fj
I don't know if this is a setting in marshmallow, but I know in KitKat if you go into the advanced settings menu on the wifi page there is an option that allows the phone to automatically turn on and scan for networks without any user intervention. That setting should be turned off.
reinert012 said:
My wifi has been off since i upgraded to M, clean install from the Google images. It still reports my wifi as on and using up my battery....is this a bug or am i reading this incorrectly?
http://imgur.com/a/ow5fj
Click to expand...
Click to collapse
You're not alone I'm using mine, but WiFi wasn't on top of the list ever in 5.1.1. Has to be a bug
Ive got this issue as well. Its really annoying. I always keep Wifi off to extend battery life but with M I might as well just keep it on...
goldswimmerb said:
Ive got this issue as well. Its really annoying. I always keep Wifi off to extend battery life but with M I might as well just keep it on...
Click to expand...
Click to collapse
Ugh, this is not good.
CalculatedRisk said:
I don't know if this is a setting in marshmallow, but I know in KitKat if you go into the advanced settings menu on the wifi page there is an option that allows the phone to automatically turn on and scan for networks without any user intervention. That setting should be turned off.
Click to expand...
Click to collapse
huh...mine is set to Always keep wifi on during sleep. Does that matter even if wifi is off?
Since I'm still running kitkat i can't speak for marshmallow, but on KitKat, the wifi on/off toggle takes priority over that setting. Wifi will only stay on during sleep if it was turned on to begin with, but that isn't the issue you guys are experiencing right? There might be an option in that same menu that says something like "let Android search for networks even if wifi turned off". That gives the results you guys are experiencing.
Go to settings-->location-->menu-->scanning and check if WiFi and Bluetooth scanning options are kept on..
I don't have this issue..
Sent from my Nexus 5 using XDA Free mobile app
vipinbp said:
Go to settings-->location-->menu-->scanning and check if WiFi and Bluetooth scanning options are kept on..
I don't have this issue..
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
Both are checked, i unchecked them both. What were the status of yours?
When I flashed the Factory Image (6.0) I had this problem. I flashed back to 5.1.1 booted the phone. Then booted into recovery and sideloaded the OTA update to 6.0 booted the phone and preformed a factory reset. I do not have this problem anymore. Wifi doesn't even show up in the battery stats.
jdawg0024 said:
When I flashed the Factory Image (6.0) I had this problem. I flashed back to 5.1.1 booted the phone. Then booted into recovery and sideloaded the OTA update to 6.0 booted the phone and preformed a factory reset. I do not have this problem anymore. Wifi doesn't even show up in the battery stats.
Click to expand...
Click to collapse
Edit Pics
reinert012 said:
Both are checked, i unchecked them both. What were the status of yours?
Click to expand...
Click to collapse
During initial setup Google asked me if I wanted to keep WiFi scanning enabled to help apps with location to find the location easily.. I declined.. Hence they were off..
Did it help with the battery?
Sent from my Nexus 5 using XDA Free mobile app
Just an update on battery life. 1.5h SOT no WiFi bug (after sideloading the OTA update) also noticed the battery graph added Camera and Flashlight if they were used
Also discussing the same issue here:
http://forum.xda-developers.com/google-nexus-5/help/wifi-plaguing-android-marshmallow-t3220031
Try to set it 2.4 Ghz only instead of auto (2.4 +5)

Categories

Resources