• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Two tasker profiles

barqers

Android Expert
Okay I've been searching and searching but cannot find a working answer.

I want two profiles,

1. Change the phone to airplane mode on when there is no signal. Right now I have a profile with context of cell signal between 0 and 1, then wait 1 minute, then airplane mode on if %CELLSIG < 1, wait 10 minutes, airplane mode off.

Problem is, it never turns the phone onto airplane mode when I DON'T have signal, and instead turns it on randomly whenever it feels like it I guess.

2. Lower brightness with the battery.
Context -> battery changed. Task -> Brightness = %BATT*1.5-20. It works perfectly, but it seems to interfere with my typing? Whenever this profile is acting and I'm typing something, it makes my keyboard minimize randomly whenever it feels like it???

Thanks guys!
 
1. Change the phone to airplane mode on when there is no signal. Right now I have a profile with context of cell signal between 0 and 1, then wait 1 minute, then airplane mode on if %CELLSIG < 1, wait 10 minutes, airplane mode off.

Problem is, it never turns the phone onto airplane mode when I DON'T have signal, and instead turns it on randomly whenever it feels like it I guess.

From the Tasker user guide:

Cell Signal Strength (dynamic,monitored)
%CELLSIG

The current phone signal level from 0-8 inclusive on a rougly linear scale. On some CDMA phones, the level will rise in steps of 2 (0,2,4,6,8). The value is -1 if the value is unknown or there is e.g. no service.
There is a bug with some Android versions that the reported signal strength is not updated until the device is turned off and on

I wonder if one of the bolded items could be your problem.

You said you set it up for a value of 0-1, but the value could actually be -1. Perhaps try using <2 ? Then for your IF statement, you want something like < 1. Not sure why you want such a long wait (10 minutes).

I'm guessing that it is turning off "randomly" because of the long wait you have here, and a possible problem with the cell signal variable not being constantly updated on your device.

You could also try asking in the Tasker official forums (or email the dev) to see if that bug applies to your phone.

2. Lower brightness with the battery.
Context -> battery changed. Task -> Brightness = %BATT*1.5-20. It works perfectly, but it seems to interfere with my typing? Whenever this profile is acting and I'm typing something, it makes my keyboard minimize randomly whenever it feels like it???
[/QUOTE]

I don't know what you are trying to do here with this profile (why would you want to adjust the brightness when you change the battery?), but it shouldn't impact your keyboard at all. Perhaps it is interfering with something in your custom ROM?
 
From the Tasker user guide:

Cell Signal Strength (dynamic,monitored)
%CELLSIG

The current phone signal level from 0-8 inclusive on a rougly linear scale. On some CDMA phones, the level will rise in steps of 2 (0,2,4,6,8). The value is -1 if the value is unknown or there is e.g. no service.
There is a bug with some Android versions that the reported signal strength is not updated until the device is turned off and on

I wonder if one of the bolded items could be your problem.

You said you set it up for a value of 0-1, but the value could actually be -1. Perhaps try using <2 ? Then for your IF statement, you want something like < 1. Not sure why you want such a long wait (10 minutes).

I'm guessing that it is turning off "randomly" because of the long wait you have here, and a possible problem with the cell signal variable not being constantly updated on your device.

You could also try asking in the Tasker official forums (or email the dev) to see if that bug applies to your phone.

2. Lower brightness with the battery.
Context -> battery changed. Task -> Brightness = %BATT*1.5-20. It works perfectly, but it seems to interfere with my typing? Whenever this profile is acting and I'm typing something, it makes my keyboard minimize randomly whenever it feels like it???

I don't know what you are trying to do here with this profile (why would you want to adjust the brightness when you change the battery?), but it shouldn't impact your keyboard at all. Perhaps it is interfering with something in your custom ROM?[/QUOTE]

Hey, thank you for the reply. Unfortunately that profile doesn't let you set anything lower then 0 for the context. So 0 to 1 is all I could do. :S

And I don't know how to set up a variable value :S


As for the Battery change. Basically what I want to do is dim the display as the battery empties.
 
Hey, thank you for the reply. Unfortunately that profile doesn't let you set anything lower then 0 for the context. So 0 to 1 is all I could do. :S

And I don't know how to set up a variable value :S


As for the Battery change. Basically what I want to do is dim the display as the battery empties.

You could, however, set the context as Variable Value %CELLSIG < 2

I'm not sure if that will make any difference though.

For the second profile, sorry I didn't understand that "changed" was supposed to be "charged". Not sure why that would be interfering with keyboard and typing. It shouldn't.
 
Okay I've been searching and searching but cannot find a working answer.

1. Change the phone to airplane mode on when there is no signal. Right now I have a profile with context of cell signal between 0 and 1, then wait 1 minute, then airplane mode on if %CELLSIG < 1, wait 10 minutes, airplane mode off.

Problem is, it never turns the phone onto airplane mode when I DON'T have signal, and instead turns it on randomly whenever it feels like it I guess.
http://androidforums.com/android-ap...r-profiles-everyone-using-22.html#post2359893
 
You could, however, set the context as Variable Value %CELLSIG < 2

I'm not sure if that will make any difference though.

For the second profile, sorry I didn't understand that "changed" was supposed to be "charged". Not sure why that would be interfering with keyboard and typing. It shouldn't.

Maybe it's just a glitch on my phone :P Owell, I'll disable the battery changing dimmer one for now until it gets fixed in an update.

The only problem is I don't know how to set a variable value context! I can't find it anywhere. Is it the same as "Variable Set"?
 
Yup! That's the one I copied. But for some reason doesn't work on my phone. I was hoping it wasn't a bug in my phone. But I guess it is as well :(

You did copy the waiting period, correct? Without that your phone will appear to randomly go into airplane mode.
 
You did copy the waiting period, correct? Without that your phone will appear to randomly go into airplane mode.

Yup, but I changed the first wait to 1 minute instead of 2. I tried 2 minutes as well but it isn't working.

Owell, thank you for your replies :D

I'll fiddle around with it
 
You did use an End If as the last statement, right? I know it is not shown in the above linked example, but it should he there. Without one, it will most likely do what you have been experiencing.
 
You did use an End If as the last statement, right? I know it is not shown in the above linked example, but it should he there. Without one, it will most likely do what you have been experiencing.

Damn, didn't even know there was an end if task! I'll try that out and let you know :D
 
So far it's working well. And not randomly entering airplane mode. I'll have to wrap the phone in aluminum foil and test to see if going into airplane mode works.
 
Apparently, using the pop up notification in tasker, I tracked my %CELLSIG, %CELLSRV, and %CELLID values throughout the day.

What I found is this:

%CELLSIG reports values from 0-16. 0-15 is when it has service, 16 is when the phone doesn't have service.

%CELLSRV reports either "service" or "noservice"

%CELLID reports either "%CELLID" or, when it's set (when I have service), it reports"GSM:" with a bunch of numbers.

Now, my question is this: Since my old context was if cell signal is between 0 and 1 (which I now find out that this is pointless, because the phone still has service between 0 and 1), should I switch to a "Variable Set" context?

And if so, which variable should I choose?

I could be like:

IF %CELLSRV != set
then turn airplane mode on

OR

IF %CELLSIG = 16
then turn airplane mode on

OR

IF %CELLSRV ~ noservice
then turn airplane mode on

I just can't figure out which way would be the best?

EDIT:: Apparently also the battery level context runs when the voltage changes as well. Which is why it was constantly running and interfering with my keyboard.
 
Back
Top Bottom