Related
I have a wifi issue that is a little different from other I have read here.
Issue: When my phone screen is off, it will NOT auto-connect to saved Wifi hotspots (eg, home, office) within range, until I wake up the phone (turn on the screen).
When it is connected to the Wifi hotspot, it will keep the connections even when the screen is off. (non issue)
I have set "Keep Wifi on during Sleep" to Always, and set "Sleep mode" to off. "Power Saver" is off too. Mobile data is off (I turn it on only when I need it). I checked battery usage, and Wifi is constantly on, just that it does not connected to the saved Wifi.
My question/issue is, is it normal for the One to not auto-connect to saved Wifi hotspots within range when the screen is off?
On my old HTC EVO 3D running ICS, it will automatically connect to the same hotspots without the need to wake up the phone (turn on the screen).
My One is still using the stock Rogers firmware (1.29.631.4)
UPDATE: I found that this appears to happen only when the screen has been off for a longer time (more than a couple hours). If I have waken the screen up an hour before it entered the saved wifi range, then it seems to auto-connect fine. Need more testings.
BB88 said:
I have a wifi issue that is a little different from other I have read here.
Issue: When my phone screen is off, it will NOT auto-connect to saved Wifi hotspots (eg, home, office) within range, until I wake up the phone (turn on the screen).
When it is connected to the Wifi hotspot, it will keep the connections even when the screen is off. (non issue)
I have set "Keep Wifi on during Sleep" to Always, and set "Sleep mode" to off. "Power Saver" is off too. Mobile data is off (I turn it on only when I need it)
My question/issue is, is it normal for the One to not auto-connect to saved Wifi hotspots within range?
On my old HTC EVO 3D running ICS, it will automatically connect to the same hotspots without the need to wake up the phone (turn on the screen).
My One is still using the stock Rogers firmware (1.29.631.4)
Click to expand...
Click to collapse
I do believe it is normal. It's to conserve power your phone would have to have a wakelock to connect to another network draining power. As I understand it the ONE puts the wifi into a power saving mode when it's not connected so it's not constantly draining your power while driving. Once you wake the screen it will then connect as it assumes you want it.
nullkill said:
I do believe it is normal. It's to conserve power your phone would have to have a wakelock to connect to another network draining power. As I understand it the ONE puts the wifi into a power saving mode when it's not connected so it's not constantly draining your power while driving. Once you wake the screen it will then connect as it assumes you want it.
Click to expand...
Click to collapse
Should that be an option to turn that off, such as the "Wifi Sleep Policy" I saw from some other rom? Or the settings I mentioned above disable that behaviour already?
BB88 said:
Should that be an option to turn that off, such as the "Wifi Sleep Policy" I saw from some other rom? Or the settings I mentioned above disable that behaviour already?
Click to expand...
Click to collapse
Don't think so. The wifi sleep would turn the wifi radio off which isn't happening. Oh quick thought check the network and make sure the phone is set to auto connect that would do it for sure!
nullkill said:
Don't think so. The wifi sleep would turn the wifi radio off which isn't happening. Oh quick thought check the network and make sure the phone is set to auto connect that would do it for sure!
Click to expand...
Click to collapse
What do you mean by network and auto connect?
BB88 said:
What do you mean by network and auto connect?
Click to expand...
Click to collapse
Nevermind isn't there. Maybe I'm thinking of stock android or maybe I'm thinking of another OS.
Can anyone else confirm if this behaviour is normal or not?
So if I don't wake my screen, I will never get any sync when the screen is off and I just get back into wifi range?
BB88 said:
Can anyone else confirm if this behaviour is normal or not?
So if I don't wake my screen, I will never get any sync when the screen is off and I just get back into wifi range?
Click to expand...
Click to collapse
Go into WiFi Settings, Go to the menu and click Advanced. Change "Keep Wi-Fi on during sleep" to "Always".
WiFi will connect with screen off.
nuggstein said:
Go into WiFi Settings, Go to the menu and click Advanced. Change "Keep Wi-Fi on during sleep" to "Always".
WiFi will connect with screen off.
Click to expand...
Click to collapse
As I have indicated in my first post, this has been set to "Always" already. Are you sure that works for you?
What is the phone not doing that you want it to do? Just turn on auto sync if you want your email and FB updates to be waiting for you. Or is that not working?
Quick test. Put your phone to sleep with gmail autosync push mail on. Turn off data and only enable WiFi. Then send yourself an email from a computer, if you get a notification on your phone while it is sleeping, then it is working. Or you can place a voip call with viber or send yourself a viber text from another phone.
Sent from my HTC One using Tapatalk 2
ZircularLogic said:
What is the phone not doing that you want it to do? Just turn on auto sync if you want your email and FB updates to be waiting for you. Or is that not working?
Click to expand...
Click to collapse
It is not auto connecting to the saved Wifi networks when I go to work, or when I go home, with the screen off. I have to wake the phone (press the power button) and you can see that it will connect to the saved Wifi networks. The FB notifications and Whatsapp notifications are pushed, so they don't require auto-sync to be on.
checksum123 said:
Quick test. Put your phone to sleep with gmail autosync push mail on. Turn off data and only enable WiFi. Then send yourself an email from a computer, if you get a notification on your phone while it is sleeping, then it is working. Or you can place a voip call with viber or send yourself a viber text from another phone.
Click to expand...
Click to collapse
If my phone is already connected to the Wifi networks, putting it to sleep will NOT disconnect it from the Wifi network. It only happens when I changed from one saved network to another (home to work, or work to home) with the screen off, then it will not auto-connect. I have tested that and I'm not getting the notification in that situations. I have to wake the phone up to trigger the auto-connect.
BB88 said:
It is not auto connecting to the saved Wifi networks when I go to work, or when I go home, with the screen off. I have to wake the phone (press the power button) and you can see that it will connect to the saved Wifi networks. The FB notifications and Whatsapp notifications are pushed, so they don't require auto-sync to be on.
If my phone is already connected to the Wifi networks, putting it to sleep will NOT disconnect it from the Wifi network. It only happens when I changed from one saved network to another (home to work, or work to home) with the screen off, then it will not auto-connect. I have tested that and I'm not getting the notification in that situations. I have to wake the phone up to trigger the auto-connect.
Click to expand...
Click to collapse
Is your wifi toggle always on? Or do you turn it off once you leave a certain network? The only way the device will auto connect to a saved network, is if the wifi toggle is already turned on before you go near a saved wifi network.
If you want a saved network to automatically turn on wifi and connect to a saved network, you will need some thing like juice defender. It teaches itself to know when you're near a saved wifi network and it will automatically turn on your wifi toggle on and connect to the saved network. Then once you leave the area or lock your device, it will automatically toggle off wifi and disconnect from the wifi network.
Sent from my HTC myTouch 4g using xda premium
coupetastic-droid said:
Is your wifi toggle always on? Or do you turn it off once you leave a certain network? The only way the device will auto connect to a saved network, is if the wifi toggle is already turned on before you go near a saved wifi network.
If you want a saved network to automatically turn on wifi and connect to a saved network, you will need some thing like juice defender. It teaches itself to know when you're near a saved wifi network and it will automatically turn on your wifi toggle on and connect to the saved network. Then once you leave the area or lock your device, it will automatically toggle off wifi and disconnect from the wifi network.
Sent from my HTC myTouch 4g using xda premium
Click to expand...
Click to collapse
Not sure what you mean by "wifi toggle always on". My Wifi (under setting) on the phone is always on. I never turned it off. Under Power History, I can also see that Wifi is always on (un-interrupted blue bar).
I contacted HTC support, and they asked me to change the WiFi band frequency from "Auto" to "2.4GHz" and reboot the phone. It seems to have fixed the problem so far (after a couple days of testing). Although it would have been nice if they can fixed the problem properly.
BB88 said:
I contacted HTC support, and they asked me to change the WiFi band frequency from "Auto" to "2.4GHz" and reboot the phone. It seems to have fixed the problem so far (after a couple days of testing). Although it would have been nice if they can fixed the problem properly.
Click to expand...
Click to collapse
Actually, the problem still exists.
BB88 said:
Actually, the problem still exists.
Click to expand...
Click to collapse
Yeah, I just got the One almost a month ago and seriously thinking of returning it because of this issue. I wish I wouldn't have rooted it because since I did for some reason I can't get ADB to recognize my device. I've tried everything my noob brain can think of to fix it and the wifi issue but nothing works. I see that no other developers have a fix either as no apps or threads here give a solid solution.
I might give AT&T the money to warranty it and just get another device but I want that to be my last resort.
Personally, I think it might be an isolated hardware defect that was addressed with later devices which is why it is not as wide spread and therefore doesn't generate a need to find a workable solution.
---------- Post added at 03:11 AM ---------- Previous post was at 03:10 AM ----------
BTW I've flashed several of the popular roms on XDA to see if that fixed it including Viper and CM but to no avail...
automaddux said:
Yeah, I just got the One almost a month ago and seriously thinking of returning it because of this issue. I wish I wouldn't have rooted it because since I did for some reason I can't get ADB to recognize my device. I've tried everything my noob brain can think of to fix it and the wifi issue but nothing works. I see that no other developers have a fix either as no apps or threads here give a solid solution.
I might give AT&T the money to warranty it and just get another device but I want that to be my last resort.
Personally, I think it might be an isolated hardware defect that was addressed with later devices which is why it is not as wide spread and therefore doesn't generate a need to find a workable solution.
---------- Post added at 03:11 AM ---------- Previous post was at 03:10 AM ----------
BTW I've flashed several of the popular roms on XDA to see if that fixed it including Viper and CM but to no avail...
Click to expand...
Click to collapse
Not sure if I have been using the phone more, or if I have flash new radio (Radio from 2.17 base - 4A.16.3250.24_10.38.1150.03L (flashable Zip) and rom (ARHD), I don't think I have this problem any more.
BB88 said:
Not sure if I have been using the phone more, or if I have flash new radio (Radio from 2.17 base - 4A.16.3250.24_10.38.1150.03L (flashable Zip) and rom (ARHD), I don't think I have this problem any more.
Click to expand...
Click to collapse
can you flash a radio with S-on? I don' wanna try it and brick it. but I have been wanting to see if that fixes it
automaddux said:
can you flash a radio with S-on? I don' wanna try it and brick it. but I have been wanting to see if that fixes it
Click to expand...
Click to collapse
No, I believe you have to be S-Off to do that, or else you need to flash the firmware. Have you trying reinstalling drivers or try on another computer to get ADB to recognise your phone?
I have been searching for a way to do this for months. I have a gopro that has WiFi to broadcast the picture to my phone. The problem is that it turns off the data on my phone so I receive no messages and can do nothing with data. I have root, and am willing to test apps, but i need to be able to use both local wifi for the video and 4G/3G for internet usage. Thanks for anybody to help me out.
-Nagas
I don't get it? Anything that uses data, normally uses WiFi too. Either or.
And no...the two can't be on at the same time.
---------- Post added at 11:51 PM ---------- Previous post was at 11:50 PM ----------
Oh...so you mean the WiFi has no internet connected. I get it.
Sorry though....never heard of such a thing as you're asking. Perhaps someone else has.
Good luck!
I'm confused. Why can't you tether the GoPro to your phone using the hotspot? Still connected through wifi but you don't lose data.
nhizzat said:
I'm confused. Why can't you tether the GoPro to your phone using the hotspot? Still connected through wifi but you don't lose data.
Click to expand...
Click to collapse
The Gopro acts like a seperate wireless accesspoint. With that said, the Gopro does not connect to a wireless network when I am traveling in a car. My phone does not have a hotspot option. I have a modified version on my phone. So when i connect to the camera it completely disconnects from everything. I do have root though. But if it is just not possible then so be it.
Thanks for Everybody's help
Nagas
vagh_nagas said:
I have been searching for a way to do this for months. I have a gopro that has WiFi to broadcast the picture to my phone. The problem is that it turns off the data on my phone so I receive no messages and can do nothing with data. I have root, and am willing to test apps, but i need to be able to use both local wifi for the video and 4G/3G for internet usage. Thanks for anybody to help me out.
-Nagas
Click to expand...
Click to collapse
something like this?
http://www.xda-developers.com/andro...s-mobile-data-wifi-for-faster-internet-speed/
1ad_m12 said:
something like this?
http://www.xda-developers.com/andro...s-mobile-data-wifi-for-faster-internet-speed/
Click to expand...
Click to collapse
Yes much like that, but i need it for all data not just downloading files. if it can do it for one application, it should be able to do it for all of them. or at least select ones. I do have root so i would be able to select which apps have and do not have the access to 4G all the time.
Any thoughts are appreciated.
-Nagas
Well if you have tasker you can have a profile for when you're connected with your gopro and a task that disconnects, polls for messages, then reconnects. You could poll for a minute every 10 minutes as to not obstruct work flow. Or even longer if you want. I think what you want to happen is a limitation of android itself and for good reason. You'd burn through your battery on accident all the time if you could do that natively. Or run up your data.
At any rate I'd go with tasker. There's so much you can do with that it's ridiculous.
1ad_m12 said:
Well if you have tasker you can have a profile for when you're connected with your gopro and a task that disconnects, polls for messages, then reconnects. You could poll for a minute every 10 minutes as to not obstruct work flow. Or even longer if you want. I think what you want to happen is a limitation of android itself and for good reason. You'd burn through your battery on accident all the time if you could do that natively. Or run up your data.
At any rate I'd go with tasker. There's so much you can do with that it's ridiculous.
Click to expand...
Click to collapse
How would I do that. I am Very new with scripts.
vagh_nagas said:
How would I do that. I am Very new with scripts.
Click to expand...
Click to collapse
Tasker is an automation application found on the Play Store for about $3.00... In my opinion it is worth far more than that. It does have a bit of a learning curve but the benefits of what it can do are amazing. https://play.google.com/store/apps/details?id=net.dinglisch.android.taskerm
You can use scripts in it but I was suggesting something different. Using Tasker you should be able to set up a profile for whenever you are tethered to your GoPro so that every so often Tasker will automatically turn off WiFi for a length of time of your choosing and then reactivate WiFi and the connection to your GoPro. This process could be set on a loop every time you connect to your GoPro; this way you won't miss any pending notifications that are trying to be pushed through without having to manually disable and re enable WiFi. You would only have to take note of when it would disable the WiFi so that your pictures can be transferred through to your phone properly.
New Profile= State> Net> Wifi Connected> Your GoPro's SSID or MAC address
Task Actions= Task> Wait> 10min (or however long you figure is a good time between cycles)
Net> WiFi> Set off
Task> Wait> 1min (or however long you want it to poll for notifications)
Net> WiFi> Set on
I know this isn't a perfect solution to your problem but it should, in theory, work.
1ad_m12 said:
Tasker is an automation application found on the Play Store for about $3.00... In my opinion it is worth far more than that. It does have a bit of a learning curve but the benefits of what it can do are amazing.
You can use scripts in it but I was suggesting something different. Using Tasker you should be able to set up a profile for whenever you are tethered to your GoPro so that every so often Tasker will automatically turn off WiFi for a length of time of your choosing and then reactivate WiFi and the connection to your GoPro. This process could be set on a loop every time you connect to your GoPro; this way you won't miss any pending notifications that are trying to be pushed through without having to manually disable and re enable WiFi. You would only have to take note of when it would disable the WiFi so that your pictures can be transferred through to your phone properly.
New Profile= State> Net> Wifi Connected> Your GoPro's SSID or MAC address
Task Actions= Task> Wait> 10min (or however long you figure is a good time between cycles)
Net> WiFi> Set off
Task> Wait> 1min (or however long you want it to poll for notifications)
Net> WiFi> Set on
I know this isn't a perfect solution to your problem but it should, in theory, work.
Click to expand...
Click to collapse
You know what, That worked perfectly. until the app tried to auto reconnect. then my phone seemed to get stuck in a loop. it kept turning the wifi on then off then on then off. it was strange. I am attempting to find a setting for it to auto reconnect and turn it off but there has been no luck so far. Thanks for your help so far.
Hi everyone
I have a profile that that kicks in every 30 mins from 8 am to 9pm, to sync my account. I have set it up to use wifi first, but if there is no wifi connection it will go to my mobile data instead.
Now here is the problem if my phone is on standby it always connects via mobile data regardless of a wifi connection is available. But if I am using my device at the time when the task runs then it will connect to wifi. I have checked my, keep wif on in sleep option and it is set to always.
Could anyone explain as to what this is happening?
Thanks in advance
What is your Android version?
I am currently using a custom rom called exodus which is currently based on marshmallow.
Check if Tasker is excludied from Battery Optimization and whether Wi-Fi is not deactivated while the phone is in sleep mode in Settings/Wi-Fi/Advanced/Keep Wi-Fi on during sleep.
yep tasker is excluded from battery optimisation and the allow wifi during sleep policy is always.
If you're turning wifi on with tasker action wifi turn on, try instead of that shell script "svc wifi enable".
Ok thanks, I will let you know the out come of this. I was using secure settings to enable Wifi as the command built in tasker, is not compatible from kitkat and onwards if I remember correctly.
I found out "svc wifi enable" command does exactly the same thing
Discovered I'm having the very same problem on cm13 and the batch jobs have been done by initialized mobile data. Finally found out a solution to initialize wifi instead of mobile data. I've no limited data plan, but wifi is more battery friendly.
taisto said:
Discovered I'm having the very same problem on cm13 and the batch jobs have been done by initialized mobile data. Finally found out a solution to initialize wifi instead of mobile data. I've no limited data plan, but wifi is more battery friendly.
Click to expand...
Click to collapse
Care to share the solution?
After all this is a community that people use to, find solutions to problems and to get the most out of their device. Which also help others who experience the issue for future reference.
Does anyone else know a solution to this?
HatchetEgg said:
Does anyone else know a solution to this?
Click to expand...
Click to collapse
Do you actually wait for wifi to connect?
Does your phone do the low power screen off wifi thingy?
rignfool said:
Do you actually wait for wifi to connect?
Does your phone do the low power screen off wifi thingy?
Click to expand...
Click to collapse
Yes under normal circumstances it takes about 20 seconds to connect.
No because for some reason my wifi will only switch on if the screen is on.
I also have uninstaled my custom kernel, but this issue still appears from time to time.
There's a setting in wifi connection settings that you can set to that says "keep Wi-Fi on during sleep"
This same setting is often repeated in battery apps like powernap, naptime, better battery saver etc.
Even though the wording is the same, I don't believe they are all touching the same setting so go find those apps if you have them installed.
Also, disable all native battery savers (including Samsung 2 or 3 different ones,, doze, battery optimization etc etc just to see if your problem goes away.... Which it will. At least you'll know though
I have the same problem with Wi-Fi connection.
I have a profile to turn Wi-Fi on and try to connect when certain conditions meet and the screen is off in that case.
It seems that the phone has difficulties turning Wi-Fi on and connecting to it when screen is off. Tasker does manage to turn Wi-Fi on but the phone somehow does not connect *reliably* in all cases.
Tasker is excluded from battery optimization, Wi-Fi on during sleep. I tried turning cpu on for a short time hoping that it will connect, but still no result.
The only possible solution might be turning the screen on briefly at that moment.
If anybody has a better idea, you are more than welcome to share!
alienyd said:
I have the same problem with Wi-Fi connection.
I have a profile to turn Wi-Fi on and try to connect when certain conditions meet and the screen is off in that case.
It seems that the phone has difficulties turning Wi-Fi on and connecting to it when screen is off. Tasker does manage to turn Wi-Fi on but the phone somehow does not connect *reliably* in all cases.
Tasker is excluded from battery optimization, Wi-Fi on during sleep. I tried turning cpu on for a short time hoping that it will connect, but still no result.
The only possible solution might be turning the screen on briefly at that moment.
If anybody has a better idea, you are more than welcome to share!
Click to expand...
Click to collapse
I can certainly say that turning the screen on will enable wifi, as I have resulted to this as well. But unfortunately I do not know any other solutions to try.
loogielv said:
There's a setting in wifi connection settings that you can set to that says "keep Wi-Fi on during sleep"
This same setting is often repeated in battery apps like powernap, naptime, better battery saver etc.
Even though the wording is the same, I don't believe they are all touching the same setting so go find those apps if you have them installed.
Also, disable all native battery savers (including Samsung 2 or 3 different ones,, doze, battery optimization etc etc just to see if your problem goes away.... Which it will. At least you'll know though
Click to expand...
Click to collapse
My Wifi is set to always "keep wifi on during sleep"
I'm going to resort to flashing stock rom again and see if that helps. As I am only using doze and amplify to save battery, all settings for that has been adjusted to the guide I found.
HatchetEgg said:
My Wifi is set to always "keep wifi on during sleep"
I'm going to resort to flashing stock rom again and see if that helps. As I am only using doze and amplify to save battery, all settings for that has been adjusted to the guide I found.
Click to expand...
Click to collapse
Before reflash, just disable xposed and see what you get... I will bet half of this soft taco I'm eating your problem disappears with greenify and or amplify. I'm not saying don't use them at all... Just make sure it works without them. I used to have some serious battery apps, but found after disabling, my battery was IMMENSELY better. And I had no config to deal with. But first things first... IT'S without a doubt, no question, a battery app setting or a system app that's being put to sleep that should be white listed
im usuing tasker 5.0b5, and am wondering if anyone could help with a profile that will turn off wifi completely when there isnt any wifi around or when wifil has been disconnected. and also hoping a task with this profile to turn wifi back on when wifi is visible again. i seen a few tutorials and youtube vids on how to do this, but they were in reference to older tasker versions. can anyone help? thanks
I use these 3 profiles to basically do what your asking. You will have to change the profile with cell near to what ever cell towers are near you.
Let me know if you have any questions
https://mega.nz/#!M6BhUAqY!3qg9hpZt-_6JukuoKC1cCr1_NhVqPT3EId6yHJWSDfs
https://mega.nz/#!gvJRQK7S!26emPMKRewPlZvviD6a70xw7DzgcABLs0NJsDhvtITc
https://mega.nz/#!QzpBza7Z!S1XZq3T1zq0eW8jyUx0U1naHyyy_vU9G46Kc-nolJ9g
Fe Mike said:
I use these 3 profiles to basically do what your asking. You will have to change the profile with cell near to what ever cell towers are near you.
Let me know if you have any questions
https://mega.nz/#!M6BhUAqY!3qg9hpZt-_6JukuoKC1cCr1_NhVqPT3EId6yHJWSDfs
https://mega.nz/#!gvJRQK7S!26emPMKRewPlZvviD6a70xw7DzgcABLs0NJsDhvtITc
https://mega.nz/#!QzpBza7Z!S1XZq3T1zq0eW8jyUx0U1naHyyy_vU9G46Kc-nolJ9g
Click to expand...
Click to collapse
Do I link these profiles or run them all seperate?
This is what I have set up from the xml you sent me
Or like this?
Do these profiles supposed to turn WiFi off? As in, turning it off in settings too? I tried these and it don't work that way. I did change cell near as you suggested.
Fe Mike said:
I use these 3 profiles to basically do what your asking. You will have to change the profile with cell near to what ever cell towers are near you.
Let me know if you have any questions
https://mega.nz/#!M6BhUAqY!3qg9hpZt-_6JukuoKC1cCr1_NhVqPT3EId6yHJWSDfs
https://mega.nz/#!gvJRQK7S!26emPMKRewPlZvviD6a70xw7DzgcABLs0NJsDhvtITc
https://mega.nz/#!QzpBza7Z!S1XZq3T1zq0eW8jyUx0U1naHyyy_vU9G46Kc-nolJ9g
Click to expand...
Click to collapse
Could you quote my post so I can get the notification for this o.p? Tyvm
Tmobilefan906 said:
im usuing tasker 5.0b5, and am wondering if anyone could help with a profile that will turn off wifi completely when there isnt any wifi around or when wifil has been disconnected. and also hoping a task with this profile to turn wifi back on when wifi is visible again. i seen a few tutorials and youtube vids on how to do this, but they were in reference to older tasker versions. can anyone help? thanks
Click to expand...
Click to collapse
---------- Post added at 12:34 PM ---------- Previous post was at 12:20 PM ----------
Tmobilefan906 said:
im usuing tasker 5.0b5, and am wondering if anyone could help with a profile that will turn off wifi completely when there isnt any wifi around or when wifil has been disconnected. and also hoping a task with this profile to turn wifi back on when wifi is visible again. i seen a few tutorials and youtube vids on how to do this, but they were in reference to older tasker versions. can anyone help? thanks
Click to expand...
Click to collapse
Yes use all 3 at same time, make sure your variables are getting set. The one profile sets wifilocation variable when your near your cell towers, then the second one will see that wifilocation is set and activate causing it to turn on wifi and wait for 20 sec and if its not connected will turn wifi off. you may need a profile that turns wifi off when screen is off or go into wifi settings on phone and set it to not stay on when screen is off. Also you may need to turn on cell workaround and/or use new cell api under taskers preference depending on the model of your phone. You may not need the If WiFi connected profile, I think I used that for another project.
Tmobilefan906 said:
im usuing tasker 5.0b5, and am wondering if anyone could help with a profile that will turn off wifi completely when there isnt any wifi around or when wifil has been disconnected. and also hoping a task with this profile to turn wifi back on when wifi is visible again. i seen a few tutorials and youtube vids on how to do this, but they were in reference to older tasker versions. can anyone help? thanks
Click to expand...
Click to collapse
Fe Mike said:
I use these 3 profiles to basically do what your asking. You will have to change the profile with cell near to what ever cell towers are near you.
Let me know if you have any questions
https://mega.nz/#!M6BhUAqY!3qg9hpZt-_6JukuoKC1cCr1_NhVqPT3EId6yHJWSDfs
https://mega.nz/#!gvJRQK7S!26emPMKRewPlZvviD6a70xw7DzgcABLs0NJsDhvtITc
https://mega.nz/#!QzpBza7Z!S1XZq3T1zq0eW8jyUx0U1naHyyy_vU9G46Kc-nolJ9g
Click to expand...
Click to collapse
Honestly this is a complicated way of doing something very simple.
The most accurate and low battery way to accomplish this is to have 1 profile with a state context of "cell near" and set it to scan while you walk around your house for 5 min and then set it down and let it scan for another 10 min. (This ensues all available cell towers in your area are accounted for) and make tier entry task enable wifi. So when you're close to home, tasker will enable WiFi and Android will handle reconnecting.
In the exit task,Turn wifi off so whenever you leave your area WiFi will be deactivated and you are using nearly 0% battery to achieve it
loogielv said:
Honestly this is a complicated way of doing something very simple.
The most accurate and low battery way to accomplish this is to have 1 profile with a state context of "cell near" and set it to scan while you walk around your house for 5 min and then set it down and let it scan for another 10 min. (This ensues all available cell towers in your area are accounted for) and make tier entry task enable wifi. So when you're close to home, tasker will enable WiFi and Android will handle reconnecting.
In the exit task,Turn wifi off so whenever you leave your area WiFi will be deactivated and you are using nearly 0% battery to achieve it
Click to expand...
Click to collapse
Yeah. I have already used that task before. The cell near profile. I just want a profile that turns WiFi off completely when I'm not connected to any WiFi.
Tmobilefan906 said:
Yeah. I have already used that task before. The cell near profile. I just want a profile that turns WiFi off completely when I'm not connected to any WiFi.
Click to expand...
Click to collapse
How about a wait time, then afterwards switch wifi off if not connected?
HatchetEgg said:
How about a wait time, then afterwards switch wifi off if not connected?
Click to expand...
Click to collapse
Yes
Tmobilefan906 said:
Yes
Click to expand...
Click to collapse
Ok then the best thing to do is create a profile event context of WiFi disconnected and make the entry task merely set a variable %WIFITIMER to %TIMES+120
then create another profile with a time context and set if to activate on %WIFITIMER (which would be set for 120 seconds after the WiFi disconnected and make the entry task WiFi disable
Then create one more profile with an event context of WIFI CONNECTED and set the entry task to clear the Wi-Fi timer. This will ensure that if the Wi-Fi reconnects, the Wi-Fi disable profile won't be able to activate because the time will never be Null
The logic is: if the Wi-Fitimer is set then when the current time matches it, disable the Wi-Fi, but if it reconnects, the timer is disabled.
Edit
The benefits of these profiles is more than merely an elegant approach, but also the least battery impacting method to have Tasker wait until a certain time to do something. Using wait actions inside tasks might be one of the worst things for battery life
I see wifi turns on automatically when around wifi its been connected too, but is there away for it to automatically turn off when not connected? Or i need another app to do that?
Good question, been wanting to know the answer to that question since I had the S8 but couldn't find a solution.
Sent from my [device_name] using XDA-Developers Legacy app
You might need to use another app like IFTT or Tasker. I've been using IFTT since my S8 and it's worked great.
I remember a app called Juice Defender use to cut off data and wifi after turning off screen and would turn back on when you turn the display back on OR you could set it to turn on wifi whenever you had the app open but when you closed it the wifi would turn off. I don't see the app in the google store but maybe it still functions somewhere else ?
Try Routines from Samsung's Good Lock suite. I just set a condition that turns off wifi if it gets below 10%. Haven't tested it yet but in theory, if I'm walking away from a wifi hotspot and the signal goes below 10%, it should turn off the Wi-Fi.
Sent from my SM-N960W using Tapatalk
I use macrodroid. Same idea as tasker but way less complex
digitalallstar said:
Try Routines from Samsung's Good Lock suite. I just set a condition that turns off wifi if it gets below 10%. Haven't tested it yet but in theory, if I'm walking away from a wifi hotspot and the signal goes below 10%, it should turn off the Wi-Fi.
Sent from my SM-N960W using Tapatalk
Click to expand...
Click to collapse
As yet, I haven't been able to get any of the Wifi-involved Routines in Good Lock to actually work. Their active, but they don't seem to have any effect.
RGardner said:
As yet, I haven't been able to get any of the Wifi-involved Routines in Good Lock to actually work. Their active, but they don't seem to have any effect.
Click to expand...
Click to collapse
You're right. The only condition that works is if you're connected to a specific network. I have mine set to put my phone on vibrate when I connect to my home network. When I leave, I set it to come off vibrate when I'm a 300m away from home. Wi-Fi percentage condition doesn't seem to work.
Sent from my SM-N960W using Tapatalk