Tasker WIFI automation - Asus Eee Pad Transformer Prime

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

Related

[Q] Tasker - can wifi on and wifi off profiles co-exist?

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.

Question about wifi sleep policy

I set my wifi sleep policy to sleep when display is off. However, when I look at activity monitor graph in the battery menu, I see that wifi is being shown as still on. I also notice when I turn on my phone I see the wifi indicator. I cant imagine its connecting that quickly!
So my question...is wifi really being turned off according to the sleep policy setting?
How long are you waiting after you turn the screen off to turn it back on to check? It definitely waits some time before shutting the wifi off.
Sent from my SAMSUNG-SGH-I777 using xda premium
Also if you have anything on your phone that wakes the wifi, or if you are checking multiple times each hour, every time it wakes it will go all the way through search for signal and make a connection and then set idle for a few minutes before it will go back to sleep.
For me I have found just leaving the wifi on all the time was a much lower battery drain than letting it sleep at all.
Sent from my SAMSUNG-SGH-I777 using XDA App

[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

Some way to keep screen turned on?

Hey,
Just got one of these.
Got me a 64Gb TF201 for work/play.
Is there someway to tell it to keep the screen on when the keyboard is connected, instead of just setting the display to never turn off in settings.
Also can you set it to automatically turn on when you open it and automatically turn off when you close it, when it is docked to the keyboard that is?
Thanks
If you leave the dock connected to your PC or power all the time, you could check the box under Developer options "Stay awake".
Also, when docked, the tablet currently turns on when you open it and turns off when you close it. Or at least mine does.
Look into using the app Tasker to do tasks like this?
You might also give "Screebl" a try. There is a free version in the Market. It hasn't been updated in a while, but it still works on my Prime/Evo 3D.
It doesn't so much work off of being "docked" -- if that is all you want, I would agree with using Tasker as an option.

Apps don't update when I turn my screen off

Hey, I was just wondering if anyone else was having this problem.
When I update or download apps from the play store, the downloading/installing stops when I turn my screen off. It seems to happen on both my wifi and 3g.
I'm running stock TMobile USA.
What could be the problem?
One more thing this only started to happen after I updated to ICS.
Sent from my HTC_Amaze_4G using XDA
Anyone? Nobody else has this problem?
Sent from my HTC_Amaze_4G using XDA
What's your Wifi Sleep Policy on?
I actually think my phone stops "syncing" when my screen is off too.
Because when I turn it back on I get flooded with messages in one my chatting apps.
Anyway, I still think my phone sleeps when the screen is off but I checked my Wifi Sleep Policy anyway.
menu>settings>wifi>menu>advanced>keep wifi on during sleep>always
Hope this helps.
It is set to never. And this happens when I'm using the 3g network as well.
I have the same issue. I can only assume that it is a battery saving feature of ICS.
Sent from my HTC_Amaze_4G using XDA
Is there a way to turn this off? It's annoying.
Sent from my HTC_Amaze_4G using XDA
I did some testing. What I did was I went into Advanced WiFi settings and changed the "Keep WiFi On During Sleep" setting. After that, I connected my device wirelessly with adbwireless. I would set it to ping a network connected device (not my computer)'s IP address through "adb shell ping (ip address here)" I would then observe results with each of 3 settings when I allowed the device to sleep according to its timeout (30 seconds).
First setting: Always [keep wifi on during sleep]- Pinged the network connected device's IP address, and once the device's screen timed out, adb stopped responding approximately 2 seconds after it timed out. It actually just halted the entire process, as when I woke it up, it resumed pinging. Normally it would have a roundtrip time of around 10-30 milliseconds. The moment I woke it up, it resumed the pinging. The first ping when I woke it up had a roundtrip of 300 milliseconds (or the amount of time it was asleep). This shows that it halts the entire process while sleeping.
Strangely, when I use my computer to ping the phone, even during sleep, the device will resume pinging the specific network connected device until I stop pinging the phone. Once stopped, the adb "hangs" until I either wake it up, or ping my phone again.
I repeated this experiment with the 2 other settings, "Only when plugged in", and "Never", and the results were the same. This must be a feature of ICS, I can only presume. I wish someone (or I) could come up with a fix, as it can get annoying. It sucks needing about 20 different apps updating, and then realizing that you can't just start updating it and then put it back in your pocket.
EDIT: Also, when I plug the phone in my computer and use adb (without adbwireless), the device will ping my network connected device continuously until I stop it. I also tested this while charging my phone and using adbwireless. The results were the same, it would continuously ping my network connected device until I stopped it. It shows that it will allow the phone using the network during sleep only when charging. I tested it with the development option "Stay awake" set to on and off. The results for both were the same.
So in other words, if I had it plugged into my charger or my computer, the phone will not suspend data if the screen turns off?
Sent from my HTC_Amaze_4G using XDA
GGWC808 said:
So in other words, if I had it plugged into my charger or my computer, the phone will not suspend data if the screen turns off?
Sent from my HTC_Amaze_4G using XDA
Click to expand...
Click to collapse
Exactly.

Categories

Resources