[Q] Tasker delay GPS mode - Android Q&A, Help & Troubleshooting

I'm new to using Tasker but figured out how to make my GPS turn on high accuracy mode and bluetooth on and off when it is plugged in to the car.
All I did was create a new profile > State > power > changed source to AC, then using secure settings plugin had it enable GPS, then changed state to inverted to have it turn off ( I could of used exit state which I just figured out). It works, changes to high accuracy when it's plugged in then battery saving mode when it's not.
Thing is, I'd like a 5 minute delay before it turns off and I can't figure out how to do it. I did find a profile on the Tasker Wiki that turns BlueTooth off with a 5 minute delay that works fine, I figured I could learn from it and do the same with the GPS, but nope.
Can anyone help me figure this out? Thanks for any help

Related

Bluetooth does not pick up after turning flight mode off

When you turn flight mode on and then later turn it back off, the bluetooth functionality doesn't appear to work. Its turned on, but when a call comes through it doesn't pick up. Does anyone else have thise problem with the XDA2? Is it yet another 'feature'?
Exactly the same on the MDA2.
BT is ON, but the BT headset mode remains disabled, so each time you switch off the flight mode, you have to turn on the headset mode. Really stupid IMHO.
I don't think this is a "problem" or a bug.
Turning on flight mode means there should not be any Radio activity. Therefore BT Radio will be turned off as well. It makes sense.
It remembers your last BT Radio selection though. So, when the flight mode is off, BT Radio mode will resume like it was before flight mode, that is either OFF, ON or DISCOERABLE. The only thing that it doesn't remember is which profile was enabled. So you'll have to enable it when flight mode is off.
The only thing that it doesn't remember is which profile was enabled. So you'll have to enable it when flight mode is off.
Click to expand...
Click to collapse
This is exactly what we were talking about...or at least is what I was TRYING to explain...IMHO is very stupid that it does not remember the profile that was enables, this means that every time we have to turn on the profile again...
Is it that when Flight Mode(phone) is switched ON, the bluetooth won't work.
Is it that when Flight Mode(phone) is switched ON, the bluetooth won't work.
Click to expand...
Click to collapse
well i would suppose so since places like in planes and on some hospitals where they fear interfearence from wireless devices like cellphones they see bluetooth the same way
i suppose that it should turn wifi off aswell
but what they are talking about is that when you turn flight mode back on the bluetooth stack dont recall some of it's settings
Cheers for the reply, forgive me if this sounds stupid but to re-enable the bluetooth profile after switching flight mode back off, do you use Ultra Profile or is it done some other way?

Anyone else using Tasker? If so, what profiles you setting up?

I love Tasker. I use it a lot on my phone for all kinds of automated tasks. For the Prime, I have set up the following so far:
1. at 11pm it shuts off WiFi and starts back up at 6:30am (save battery if I forget to put it on charger)
2. at 10pm it shuts off BT and never starts back up in morning (save battery if I forget to put it on charger or forget to turn BT off)
3. at 10pm it shuts off GPS and never starts back up in morning (save battery if I forget to put it on charger or forget to turn GPS off) - UPDATE: I see now this one will not work in the HC OS as the system requires user interaction to set GPS
4. at 11pm it shuts off Sync and starts back up at 6:30am (save battery if I forget to put it on charger and I dont want to hear gMail alerts all nigh)
5. When on power cable, it (a) turns off the need to unlock it (b) leaves the screen on
6. give me an alert tone at 20% battery
7. if it is in my car and attached via BT it turns up the brightness (since I am outside) and leaves on display (as I normally also have it plugged in) so I can use things like Torque and the Navi/GPS and see the screen
thats all for now... anyone else?
Lock-N-Load said:
I love Tasker. I use it a lot on my phone for all kinds of automated tasks. For the Prime, I have set up the following so far:
1. at 11pm it shuts off WiFi and starts back up at 6:30am (save battery if I forget to put it on charger)
2. at 10pm it shuts off BT and never starts back up in morning (save battery if I forget to put it on charger or forget to turn BT off)
3. at 10pm it shuts off GPS and never starts back up in morning (save battery if I forget to put it on charger or forget to turn GPS off)
4. at 11pm it shuts off Sync and starts back up at 6:30am (save battery if I forget to put it on charger and I dont want to hear gMail alerts all nigh)
5. When on power cable, it (a) turns off the need to unlock it (b) leaves the screen on
6. give me an alert tone at 20% battery
7. if it is in my car and attached via BT it turns up the brightness (since I am outside) and leaves on display (as I normally also have it plugged in) so I can use things like Torque and the Navi/GPS and see the screen
thats all for now... anyone else?
Click to expand...
Click to collapse
Never heard of that but it sounds like an awesome app
Sent from my Transformer Prime TF201 using xda premium
Lock-N-Load said:
I love Tasker. I use it a lot on my phone for all kinds of automated tasks. For the Prime, I have set up the following so far:
1. at 11pm it shuts off WiFi and starts back up at 6:30am (save battery if I forget to put it on charger)
2. at 10pm it shuts off BT and never starts back up in morning (save battery if I forget to put it on charger or forget to turn BT off)
3. at 10pm it shuts off GPS and never starts back up in morning (save battery if I forget to put it on charger or forget to turn GPS off)
4. at 11pm it shuts off Sync and starts back up at 6:30am (save battery if I forget to put it on charger and I dont want to hear gMail alerts all nigh)
5. When on power cable, it (a) turns off the need to unlock it (b) leaves the screen on
6. give me an alert tone at 20% battery
7. if it is in my car and attached via BT it turns up the brightness (since I am outside) and leaves on display (as I normally also have it plugged in) so I can use things like Torque and the Navi/GPS and see the screen
thats all for now... anyone else?
Click to expand...
Click to collapse
Haven't gotten my Prime yet, but that Tasker app sounds pretty cool. It sound kind of like JuiceDefender, except there's a lot more options.
With those settings, what kind of Battery life do you get?
If you don't know what Tasker is, you have no idea how powerful it is. It is amazing, you can control virtually every function, setting, alert, automation, etc. What I have done here is the tip if the iceberg. I have some for my phone that sense I am in my car, thanks to BT, and does a series of 3 to 4 steps like turn up brightness, play a tone to tell me it is connected to my car, start up a certain app, etc..
Lock-N-Load said:
If you don't know what Tasker is, you have no idea how powerful it is. It is amazing, you can control virtually every function, setting, alert, automation, etc. What I have done here is the tip if the iceberg. I have some for my phone that sense I am in my car, thanks to BT, and does a series of 3 to 4 steps like turn up brightness, play a tone to tell me it is connected to my car, start up a certain app, etc..
Click to expand...
Click to collapse
That's epic.
Sent from my Transformer Prime TF201 using xda premium
Tasker is pretty awesome!
A bit of a learning curve, but once you figure it out, the sky is the limit.
I have a profile that if I receive a text while driving, it autoresponds telling the person texting and driving is dangerous and I am currently driving at xx MPH and will get with them later.
I get a lot of people inquiring about that one.
The most useful one I have is it looks at my calendar and if it is during the time of my meeting, it automatically puts my phone on vibrate. That way I don't have to worry about it. When meeting is over, it reverts back to normal.
Yes, tasker is INCREDIBLE. Once you figure it out, it can almost double your battery life (at least it did on my phone).
You can try reddit.com/r/tasker, where most people post awesome tasker profiles and ask for help accomplishing certain settings. There are also a ton on the internet if you google search for tasker set-ups:
http://tasker.wikidot.com/profile-index (this is a great one)
I have been using Tasker for a while. It is incredible. My current challenge is switching to switftkey when I have my TFP keyboard undocked, and to the asus keyboard when the keyboard is docked. Tasker can detect the keyboard being plugged in, but not being unplugged. If anyone solves this, I would love to hear about it.
Tasker is one of the defining differences between ios and Android. Really shows off how powerful android can really be if you're willing to take the time
OP wanna post your profiles? And maybe a quick writeup (or link) how to apply them for those who dont know...
I used to use tasker for BLN to enable notifications from various apps that normally didnt work with BLN, as well as making my phone vibrate every minute or so if theres a missed notification (text, etc) for aprox 5 minutes just so that way if i was with a customer at work (retail) i could deal with the customer but wouldnt forget about the messages i got
Awesome app indeed.
poniard said:
I have been using Tasker for a while. It is incredible. My current challenge is switching to switftkey when I have my TFP keyboard undocked, and to the asus keyboard when the keyboard is docked. Tasker can detect the keyboard being plugged in, but not being unplugged. If anyone solves this, I would love to hear about it.
Click to expand...
Click to collapse
Put a small SD card in the dock. Have Tasker check when it mounts/unmounts.
Might not work since there's no notification on unmounting /Removable/SD. Maybe have it check for access to /Removable/SD every X minutes?
poniard said:
I have been using Tasker for a while. It is incredible. My current challenge is switching to switftkey when I have my TFP keyboard undocked, and to the asus keyboard when the keyboard is docked. Tasker can detect the keyboard being plugged in, but not being unplugged. If anyone solves this, I would love to hear about it.
Click to expand...
Click to collapse
if you are rooted, keyboard manager is a free app in the market that does this. when im not docked, i gvet thumb keyboard 4. when i am docked, asus stock. hasnt failed me yet
Got mine setup with a profile to set off an alarm when the microsd gets unmounted.
Almost lost my mircrosd once before with it popping out and not realising to later - hopefully this should help
I have 4 profiles that I copied from my phone to do the same tasks:
Home: When near my Home wi-fi AP, turn on wi-fi. When no longer near the AP, turn off wi-fi.
Sleep Mode: Put device on silent, turn on airplane mode (11PM-5AM).
Work Location: When near my office wi-fi, turn on wi-fi, turn on silent mode. When no longer near the AP (i.e. not at work), turn off wi-fi, turn off silent mode off.
Work Timer: During work days/hours (M-F 6-3), turn silent mode on. After work hours, turn silent mode off. Exception: if there's an event with a description of "Vacation" on the calendar. If that exists, device does not go into silent mode.
There are others that I use on my phone.
korax85 said:
Got mine setup with a profile to set off an alarm when the microsd gets unmounted.
Almost lost my mircrosd once before with it popping out and not realising to later - hopefully this should help
Click to expand...
Click to collapse
BRILLIANT! I have actually seen no use for tasker for myself til now. I've always REALLY liked he concept, but there isn't ANYTHING that I want happening automatically. Until now. Thanks!!!
korax85 said:
Got mine setup with a profile to set off an alarm when the microsd gets unmounted.
Almost lost my mircrosd once before with it popping out and not realising to later - hopefully this should help
Click to expand...
Click to collapse
GREAT idea. Just set one up so "card Unmounted" plays an Alarm that will go on and on and on until I address it.
stretchwookie said:
but there isn't ANYTHING that I want happening automatically. Until now. Thanks!!!
Click to expand...
Click to collapse
Really, you don't want to shut BT or WiFi or GPS or Sync while you sleep to conserver battery overnight?? That alone is a useful set of tasks.
Lock-N-Load said:
GREAT idea. Just set one up so "card Unmounted" plays an Alarm that will go on and on and on until I address it.
Really, you don't want to shut BT or WiFi or GPS or Sync while you sleep to conserver battery overnight?? That alone is a useful set of tasks.
Click to expand...
Click to collapse
i understand how powerful this tool can and is. but i shut my prime off at night... there is no battery to conserve... lol sorry. im glad it works for you guys though! it REALLY may be worth investing the money into though JUST for microsd unmount alerts.
Something tells me you don't fully grasp the true depth & scope of Taskers abilities. Thus far the tasks listed are child splay that barely scrape the surface.
Lock-N-Load said:
Something tells me you don't fully grasp the true depth & scope of Taskers abilities. Thus far the tasks listed are child splay that barely scrape the surface.
Click to expand...
Click to collapse
i believe you are correct. but i am not very imaginative. so its very possible that i cant just find a use for it, doesnt meant that it isnt there. i plan on doing some research into some of the already made profiles to see if someone interests me. so far, the unmount microsd seems to be the only plausible for me
Not sure how I missed this thread before; I'm a huge fan of Tasker. All of what follows was written for my Samsung Epic 4G: I don't even have Tasker installed on my TFP because so much of what I do is smartphone-focused. Sooner or later I'll get around to putting together some tablet-specific scripts.
Surreptitiously snaps a photo from the front-facing camera every time the screen is unlocked, with no visual or audio indication. This is set up so as to always keep the last 2 photos stored, and will overwrite older photos. Images can be retrieved remotely via a secret text message.
Set up secret text messages that trigger the phone to gather information such as GPS location (reverse geocoded to an address), speed, heading, altitude, local cell tower ID and signal strength, nearby and connected WiFi SSIDs, WAN IP, currently open app, whether the screen is turned on, battery strength, and covert photographs taken from the front and rear cameras (including the one that was captured from the front camera when the screen was last unlocked) and text/email me back without notifying whomever has the phone. Another message will make my phone freak out, announce it's been stolen, announce that all of the above information has been sent to the owner of the phone, flash the LED in an SOS, and force all outbound calls to go to me.
If I send a secret message to my phone, it calls me back, and enables speakerphone, so I can speak with whomever has my phone. It also reroutes any outbound calls to my number. I can also ask it to send me photos from the front and rear cameras on the phone.
Ensured that when the phone is connected to my home's local cell tower, it always rings when I call it. I never have to worry about it being on vibrate while under a couch cushion or in a snowbank next to the driveway.
When I plug in a headset or it connects to my car's bluetooth, it pops up a list of media applications for me to use, and if I don't select one or back out of the selection, it automatically starts my Pandora, and kills the app when I unplug / disconnect. Basically, I get in my car, my music plays. I get out, it stops. Same with headphones.
When it detects the cell tower near my work, it enables vibrate.
If it detects a cell tower that is not the one near my home or work, it turns on the ringer and disables WiFi (unless I re-enable it).
If someone calls me that I don't even want a voicemail from, I add their number to a list in Tasker, and when they call me, it picks up the line and immediately hangs it up. Working on one that will play back a fake "Your call could not be completed as dialed" message.
Checks accuweather.com in the morning on work days to see if it's raining, snowing, sleeting, or hailing. If any of the above, it rings an alarm 30 minutes early. I also built in snooze functions and a voice notification in the morning about the outside temperature and conditions. This script recently broke (accuweather probably did something to affect the output of my HTTPGet) so I've been using the voice notification in Alarm Clock Plus, though it doesn't wake me up early. With current weather conditions I'm going to have to get my script fixed for the head start. My how-to on this script is on Tasker's wiki, here: http://tasker.wikidot.com/weather-clock
If I start Google Navigation with GPS disabled, it closes the app, enables GPS, and starts the app back up again. No more fiddling with GPS settings while on the go. Sometimes this script is not 100% reliable... I've got to look at it again some time to figure out why.
I made a blog post a while back about how to take the pictures remotely with the camera, and you can read about it here:
http://sean-the-electrofreak.blogspot.com/2011/10/more-fun-with-tasker-covert-mugshots.html
The email-attachment part can also be used to send audio recordings, which I've not actually implemented yet but wouldn't be difficult.
I've been putting off for the last 6 months or so my write-up on all the rest... I just have to find time for it!

Bluetooth Always Discoverable, Wifi Never Sleeps - Not always the case

I have both of these setting turned on, but for some reason the bluetooth discoverability will dissapear every few hours for a few minutes, and the wifi seams to go to sleep after a certain amount of time (hours) after the screen is off. I imagine, particularly with the wifi that this might be done to conserve battery.
The reason I know this is that I use the phones bluetooth discoverability to determine whether or not I am at home or away, and trigger events accordingly through my home automation software. When the bluetooth mac address of my phone is not found to be present, a ping is sent through wifi as a fallback. However both are failing according to the logs. (not to mention all my lights and electonics turning off while watching a movie, or even worse the lights and electronics turning on at two in the morning as if I had just arrived home when actually I was asleep in bed)
I didn't have this problem with my OG EVO 4g, and so I am hoping there is a hidden setting or even maybe an app available that will hold these setting to do what they say, and not just use them as a suggestion. I understand the battery trade-off.
Edit: I am on a CM10 ROM, so I do not have smart sync
Well go to advanced in the WiFi and Bluetooth setting. And you'll see what to do when you get there
milli5410 said:
Well go to advanced in the WiFi and Bluetooth setting. And you'll see what to do when you get there
Click to expand...
Click to collapse
I already know what to do there (as is pointed out in the title of the topic), those are both enabled.

Wi-Fi performance, sleep mode, VOIP, notifications

I've seen a few reports that people do not receive new mail notifications when the screen is off. The wifi implementation by HTC is horribly broken. You'd think that enabling the option "Always keep wifi ON during sleep" would do just that, but it doesn't. Disabling Power Save mode doesn't help either.
What I found to help is enabling the option "Best Wi-Fi Performance" under the Wi-Fi Advanced settings. Not sure what the battery impact is though.
I started looking into it because I was having VOIP problems when using CSipSimple. I noticed that every time I put my phone to my ear the screen would turn off (the proximity sensor) and the call would become really choppy - it would not get disconnected, just very choppy. Then I enabled the advanced CSipSimple option to keep the screen on during a call and that fixed the problem. Then I started looking if there was another setting that I could use while keeping the screen off. It seems "Best Wi-Fi Performance" does it, even if Power Save mode is ON.
So, if you want notifications to come in while the screen is off, try this option.
For VOIP calls, it's probably easier to just configure the VOIP client (if it supports it) to keep the screen on during the call, unless you are on the phone for hours and it doesn't make sense to drain the battery because of the screen. Then again, turning on the option above is a better choice. Now it would be nice for these VOIP/SIP clients to have an option to toggle the HTC setting on during a call and flip it back to its previous state at the end of the call.

Tasker profile becomes inactive after phone is idle for 10 minutes

Hi all,
I have an AT&T Samsung Note 3 SM-N900A running Android 4.3 (baseband version N900AUCUBMJ5, kernel v3.4.0-1625098). I rooted it using Kingo, installed Tasker (with Secure Settings plugin), and created 2 profiles: one with a 'Home' location context, and one with a 'Work' location context. In the 'Location Edit' map screen for each, I set a pinned location w/ a radius of 200m. I also de-select 'GPS' (leaving only 'NET'), since I don't want GPS enabled all the time (to extend battery life). I confirm that these work when I'm actively using the phone.. the profile becomes active when I'm at the specified location (as expected). I know it's active because it's displayed in the Notification Panel (and it's also shown in green in the Tasker profiles list).
The issue I'm having is that after ~10 minutes of idle time (i.e. when the display is off and I'm not using the phone), I find that the profile is no longer active when I turn the display back on and start using the phone again. I confirmed that this *doesn't* happen after 1 minute, 2 minutes, nor 5 minutes… only > 10. I also confirmed that it happens for both profiles consistently. However, as soon as I start Tasker again from the Apps Drawer (or from Recent Apps screen), the profile is immediately activated again, and my Enter task is re-run.
I enabled the run log in Tasker prefs, but it basically shows a clean activation of the profile (with no warnings or anything that looks weird to me).
I know there's a 10-minute timeout in the Display Off Monitoring prefs, but that doesn't seem to be related to my issue. I tried reducing the All Checks Seconds from 600 to 90, rebooted the phone, and it still took ~10 minutes before the profile would become inactive after the phone being idle.
Any thoughts as to what the culprit might be? Are there any system logs I can look at that might shed some light here? I'm new to Android, and this seemed like the place to ask..
Thanks.
Ok, not solved..
Alright, bumping this, as the problem is back again after some time.
Has anyone ever seen Tasker exhibit the behavior I described? Again, I start the phone and Tasker profile is active, let the phone go idle for >10 minutes, the profile is no longer active and I need to restart Tasker manually to make it active again.
Still trying to figure out what logs are best to look at..

Categories

Resources