[Q] Tasker - can wifi on and wifi off profiles co-exist? - Android Q&A, Help & Troubleshooting

I have a profile that will turn off wifi after one minute if
display off context is true (Wif-Off).
I also have another profile that turns on the wifi if the following
contexts are met (Wifi-On):
1. Location is near home
2. Day is Fri, Sat, Sun
3. Time is 7am - 11:30pm
I created a task (Wifi Turn On).
When I first run the Wifi-On profile I see it as active my
notification bar and wifi is turned on. Once my phone screen is turned off I
assume the Wifi-Off profile becomes active and turns off wifi.
However, when I turn on the phone again, wifi does not turn back on?
Why? Does it not turn back on because the context has not changed
thereby not causing the profile to go through the Wifi Turn On task? I tried adding a display on context to the Wifi-On profile hoping it would make the profile run the Wifi Turn On task but adding this context prevents the profile from ever becoming active for whatever reason.
Is there I can make these two profiles co-exist? I would like to keep wifi turned off whenever not is use to save battery.

Did you add an exit task to the Wifi Off profile? So that when the screen comes on, wifi is enabled...

the_scotsman said:
Did you add an exit task to the Wifi Off profile? So that when the screen comes on, wifi is enabled...
Click to expand...
Click to collapse
Thank you for the reply. The problem with adding an exit task to Wifi Off profile is that I dont want wifi to turn on all the time, which is why I created the Wifi On profile. I only want wifi on during certain times and days and while I near my home. For example, I dont want wifi to turn on while I am at work.

How about Keeping your wifi on profile, and setting your wifi sleep policy under advanced wifi settings, to turn off when screen is off. Then just set up an exit task to turn wifi off when your "on" criteria is not met.
Honestly though I think it saves battery to just keep wifi on, even when screen turns off, so your phone is not constantly checking for cell signal.

Using the "cell near" context won't use much extra battery I don't think? I use it for my location based profiles.

the_scotsman said:
Using the "cell near" context won't use much extra battery I don't think? I use it for my location based profiles.
Click to expand...
Click to collapse
Yes you are right about that. However I am referring to when he is actually connected to wifi, I've read it actually saves battery to just let it stay connected rather than turn off and on again depending on screen state.
Sent from my SGH-T989 using XDA App

Lagar said:
Yes you are right about that. However I am referring to when he is actually connected to wifi, I've read it actually saves battery to just let it stay connected rather than turn off and on again depending on screen state.
Sent from my SGH-T989 using XDA App
Click to expand...
Click to collapse
Ahhh I see

Lagar said:
Yes you are right about that. However I am referring to when he is actually connected to wifi, I've read it actually saves battery to just let it stay connected rather than turn off and on again depending on screen state.
Sent from my SGH-T989 using XDA App
Click to expand...
Click to collapse
Hmmm...gotta test to see if this is true.

tboooe said:
Hmmm...gotta test to see if this is true.
Click to expand...
Click to collapse
http://m.androidcentral.com/android-101-save-battery-keeping-wifi-alive
Sent from my SGH-T989 using XDA App

Lagar said:
http://m.androidcentral.com/android-101-save-battery-keeping-wifi-alive
Sent from my SGH-T989 using XDA App
Click to expand...
Click to collapse
Nice article..however I think in my case it makes more sense to turn off wifi when the screen turns off. Even at home, my phone spends much more time off than it does on. I also have my phone to not sync emails, data, etc only on demand. So I think for me, it save battery to turn off wifi when the screen turns off. However, that is still good information.

In that case the wifi sleep policy should work for what you want.
Sent from my SGH-T989 using XDA App

Lagar said:
In that case the wifi sleep policy should work for what you want.
Sent from my SGH-T989 using XDA App
Click to expand...
Click to collapse
So whats the difference between turning off wifi and having wifi go to sleep?
EDIT: forget it...did a little google search...so wifi sleep and off are the same thing.

Related

[Q] Possible to turn off wifi when device goes to sleep?

I did a bit of searching but I couldn't find a answer.
Is it possible to get the wifi to turn off when I press the power button and put the device to sleep?
I have noticed that the archos sometimes won't go to sleep when I have wifi turned on.. Applications that use the wifi seem to keep the device turned on. (Email, ebay, tapatalk etc)
For now, I have been turning wifi off manually before I put the device to sleep, but I would prefer to have it automatic.
You have seen the switch in settings/DeviceInfo/Energy/deep sleep?
fzelle said:
You have seen the switch in settings/DeviceInfo/Energy/deep sleep?
Click to expand...
Click to collapse
Hmm might have a look at that, however Deep Sleep is not what I'm looking for, I want the alarm clock to work but I do not want the wifi to suck my battery dry.
I would be surprised if there were no app that does that given how easy it would be to write one.
arpruss said:
I would be surprised if there were no app that does that given how easy it would be to write one.
Click to expand...
Click to collapse
Yep thats what I'm thinking, however I haven't been able to find it
Sent from my Archos 70 using Tapatalk
Can you draw an icon for the app?
I use CPU TUNER. This app let you set up the profile like you want. It doesn' t turn off wifi but disable it.
Sent from my A101IT using XDA Premium App
arpruss said:
Can you draw an icon for the app?
Click to expand...
Click to collapse
I can draw if you can code
I'll try to add an option for it to the next beta of DoublePower.
Just WiFi, or WiFi+Bluetooth? Or does Bluetooth turn off automatically?
I think BT does turn off.
PM me your email address and I'll send you a test version that does the WiFi toggle on power off.
Yep BT turns off if it's idle. It does not turn off if you are connected to anything, which is a good thing
anyways, I just sent you my email address
Download batterybooster. It will turn off WiFi, BT, GPS if you hit the standby button or if device goes to standby. And the app is free of charge.
Mit Taptalk von meinem Archos 10.1 IT verschickt.

[Q] Download while screen is off

Guys, i've been bugged by this since the i9003 days.. While my sgsl was in froyo i can download while screen is off (using 3g) and after gb upgrade when i tuen off the screen download will stop.. After i bought sgs2 i thought it will change but the same thing happened.. I think it is a feature of Gb.. My question is, is there an app that lets you download over 3g even when the screen is off???
Sent from my GT-I9100 using xda premium
Do you have JuiceDefender installed? It shuts off data when screen is off by default. My S2 downloads over 3g or wifi just fine. I do use JuiceDefender though. I set it to allow a program to stay connected (opera, adownloader, etc). But that program needs to be in the foreground when screen turns off.
If you're having the issue with wifi, make sure the sleep policy is set to never.
Also, make sure your background data is enabled just in case if you changed it.
Sent from my GT-I9100 using Tapatalk
dikai_yang said:
Do you have JuiceDefender installed? It shuts off data when screen is off by default. My S2 downloads over 3g or wifi just fine. I do use JuiceDefender though. I set it to allow a program to stay connected (opera, adownloader, etc). But that program needs to be in the foreground when screen turns off.
If you're having the issue with wifi, make sure the sleep policy is set to never.
Also, make sure your background data is enabled just in case if you changed it.
Sent from my GT-I9100 using Tapatalk
Click to expand...
Click to collapse
I don't use juice defender.. My data doesn't get disconnected, it just stops downloading when the screen is off but resumes after turning the screen on..
Sent from my GT-I9100 using xda premium
Your WiFi is set to turn off when screen is off you should be able to change this in WiFi settings as a side note it will cause more battery drain
Sent from my HTC Sensation 4G using XDA App
jslim38 said:
Your WiFi is set to turn off when screen is off you should be able to change this in WiFi settings as a side note it will cause more battery drain
Sent from my HTC Sensation 4G using XDA App
Click to expand...
Click to collapse
I want to use 3g in downloading.. Will that work?
Sent from my GT-I9100 using xda premium
You don't have Tasker installed, do you?
Probably there is some 'battery saving' app installed that has a profile to turn of 3g when screen is off.
I have a same trouble. My connection stops while the screen goes off. My wifi doen't go to sleep and I already checked option "Never" in wifi sleep policy setting. I can't listen music online or even download file has a large size while screen turn off. If I turn on it again, downloading will be continue. I think this cause is JuiceDefender, however, after uninstall it nothing change

Keep WiFi on during sleep (Never)

Does anyone else have an issue with the WiFi sleep policy? My WiFi never turns off when my tablet is in sleep mode. I set it to 'never', turn off the screen and no matter how long I wait, it is still connected to WiFi while the screen is off (which destroys the battery now). I have been turning it off manually and putting it into low performance mode every time I turn off the screen, but would like this to be automatic. Any suggestions?
Wont turn off for me also... its killing my battery. I hope a fix is coming soon. .13 has made my perfect tablet a POS.
Wifi is on all the time with nothing turned off and I lost 13% battery over 7 hours. But Im still on .11. I have 5 emails, facebook and weather on push/update amongs other things. Iwould check if something is constantly running in the background and keeping wifi on.
Use Auto Airplane Mode (free on the market). Will disable wifi when asleep. Works well.
Mine never turns off either, I use Juice Defender.
d1ez3 said:
Does anyone else have an issue with the WiFi sleep policy? My WiFi never turns off when my tablet is in sleep mode. I set it to 'never', turn off the screen and no matter how long I wait, it is still connected to WiFi while the screen is off (which destroys the battery now). I have been turning it off manually and putting it into low performance mode every time I turn off the screen, but would like this to be automatic. Any suggestions?
Click to expand...
Click to collapse
eeehmmmm..... when you set it to 'never', it will NEVER turn off wifi. so what you are describing is supposed to happen!
or did i understand you wrong?
Blackwidowman said:
But Im still on .11.
Click to expand...
Click to collapse
And there's why lol
Just putting it out there, but my WiFi state while asleep doesn't seem to do anything one way or another. My battery drains the same amount if I don't actually disable WiFi, and connectivity is never there on wake (even if set to be).
js931 said:
eeehmmmm..... when you set it to 'never', it will NEVER turn off wifi. so what you are describing is supposed to happen!
or did i understand you wrong?
Click to expand...
Click to collapse
Actually its set to "keep wifi awake on sleep" never
The OP did not specify what FW he was on hence I mentioned mine. In your case assuming youre on .13 and got the bug, I think Gary mentioned they had pin-pointed the problem and coming out with a fix by early next week.
Blackwidowman said:
The OP did not specify what FW he was on hence I mentioned mine. In your case assuming youre on .13 and got the bug, I think Gary mentioned they had pin-pointed the problem and coming out with a fix by early next week.
Click to expand...
Click to collapse
Sorry its on .13
Sorry to revive an old thread but has this issue ever been solved? No matter how many times I set "Keep Wi-Fi on during sleep" to "Never", the moment I change wifi access points or turn off then turn on wifi, it reverts back to "Always".
I am running the latest update .21.
Furthermore under "ASUS Customized Settings", "Disconnect network during sleep" has been giving me similar issues as well.
Any input would be greatly appreciated, thank you!
Mine battery widget says that wi-fi is ON all the time when sleeping no matter what is ticked in option. So i turn off wi-fi manually to save battery.
Sent from my Transformer Prime TF201 using XDA Premium HD app
I use Tasker...
Screen on, wifi on.
Screen off, wifi off.
It's automatic, and works great.
I don't mind my wifi being on, with all the apps that run in the background they always on, notifying me of new emails and app updates.
I found out just recently that my tablet was still connected to Wifi, even though the last usage of my tablet was about a day before. I have the disconnect network during sleep enabled and keep Wi-fi on during sleep set to never and I still experience 96% battery usage according to battery widget. Idle is at 4% usage. So I went through the settings, unchecked/unselected, then rechecked/reselected the choices to make sure they're actually selected. BTW, I'm on the latest firmware - 9.2.1.24. I can say it hasn't rebooted for over 265 hours.
hoang51 said:
I found out just recently that my tablet was still connected to Wifi, even though the last usage of my tablet was about a day before. I have the disconnect network during sleep enabled and keep Wi-fi on during sleep set to never and I still experience 96% battery usage according to battery widget. Idle is at 4% usage. So I went through the settings, unchecked/unselected, then rechecked/reselected the choices to make sure they're actually selected. BTW, I'm on the latest firmware - 9.2.1.24. I can say it hasn't rebooted for over 265 hours.
Click to expand...
Click to collapse
9.2.1.24 ??
kevinm2k said:
9.2.1.24 ??
Click to expand...
Click to collapse
TF101, sounds like.
Peter Galbavy said:
TF101, sounds like.
Click to expand...
Click to collapse
in prime forum.. nice! nothing like confusion!
originalnabisco said:
Sorry to revive an old thread but has this issue ever been solved? No matter how many times I set "Keep Wi-Fi on during sleep" to "Never", the moment I change wifi access points or turn off then turn on wifi, it reverts back to "Always".
I am running the latest update .21.
Furthermore under "ASUS Customized Settings", "Disconnect network during sleep" has been giving me similar issues as well.
Any input would be greatly appreciated, thank you!
Click to expand...
Click to collapse
Check this out, I hope this helps a little http://forum.xda-developers.com/showthread.php?t=1674551

Turn off wifi when away from home.

I thought there was a feature on these phone that you can set it to turn it off when you leave your house and then turn back on when you get back home. I just can't find how to do it.
fredox19 said:
I thought there was a feature on these phone that you can set it to turn it off when you leave your house and then turn back on when you get back home. I just can't find how to do it.
Click to expand...
Click to collapse
I think your thinking of the NFC ability.
Sent from my EVO using XDA
Try Tasker from the market/play store.
Sent from my EVO using XDA
Llama can do this as well and its free.
You could go the cool guy route and use NFC tags. That's what I'll be doing.
CNET Explains NFC Tags
Tags For Droid
There is an app in the Market called Auto Wifi Toggle. I use that, works great. There is also an app called Power Saver Settings (ICS) by Derek Reynolds (aka myn on xda) that shows some hidden settings in ICS. There is an option that is turned off by default that will turn off wifi when it isn't connected, so it works the same way but I'm not sure how well that works. I've been using AWT for years now. Only one issue that I find is that when restoring from TB, it doesn't work until you reconfigure it. No big deal
use power setting from derek (myn) in google play, option to turn wifi off when no connected
ticklemepinks said:
use power setting from derek (myn) in google play, option to turn wifi off when no connected
Click to expand...
Click to collapse
Didn't seem to work. It didn't do anything.
nabbed said:
Didn't seem to work. It didn't do anything.
Click to expand...
Click to collapse
It might only catch the disconnect event, meaning, you may need to enable that option, connect to a wifi network, exit the range of that wifi network and it should trigger wifi off. There may also be a small waiting period before it does it, not sure. But that would only make sense to wait 30sec - 1 min before shutting off wifi.
-viperboy- said:
It might only catch the disconnect event, meaning, you may need to enable that option, connect to a wifi network, exit the range of that wifi network and it should trigger wifi off. There may also be a small waiting period before it does it, not sure. But that would only make sense to wait 30sec - 1 min before shutting off wifi.
Click to expand...
Click to collapse
I waited for about 4-5 minutes. Perhaps these ics hidden power saving features simply weren't implemented.
I personally use Y5 Battery Saver from the store. Simple, free, and turns WiFi off when you are out of range.

Tasker WIFI automation

For some reason, when I set the "keep WIFI on when asleep" setting to "never", my wifi still takes up 80% off my battery. Does anybody know how I can use Tasker to make my wifi shut off as soon as the screen is off, and turn on as soon as the screen is turned on? I can not find anything that works!
Sent from my Transformer Prime TF201 using XDA Premium HD app
Make a new profile, add event, display, screen on. Make a new task, then choose wifi on under net. Make a second profile, event, display, screen off. New task, task, wait, add a certain amount of time to wait before turning wifi off (I'd do 5 mins), then add wifi off.
This should do it, though I'm telling you this out of memory. If anything, it's similar.
Sent from my SGH-I897 using xda premium

Categories

Resources