Silence/stop alarm when face down

1,990 views
Skip to first unread message

Kasper Hettinga

unread,
Feb 2, 2011, 10:48:18 AM2/2/11
to Tasker
I'm happily using Tasker for some time now and made like 20 tasks,
very useful tool!.
I always have my phone in a "pouch". I made a task that when I have an
incoming call + the phone is face down, that it will silence the
phone. Very effective: if I don't want to pick up the phone, I just
turn it around and it gets silenced, without the need to take it out
of its pouch.
I would love to make a similar task for my alarm clock (currently
using the default android clock for setting alarm, but would not mind
making alarms in tasker - that won't be a problem). But what I would
like is that if the alarm goes off + the phone is face down, the alarm
is silenced. So that when I turn it around (again, without taking it
out of its pouch) it gets silenced/stopped. I found it would be easy,
but after spending some time on this forum and at least an hour trying
all kind of things, I didn't manage yet.

What I did try, amongst others, was use the option for "Alarm Clock"
under events, but if I use the task to set "Alarm Volume" to 0, the
phone is not silenced. Probably related to the fact that alarm clock
is an event, and as such is instantaneous (as Tasker warns me already).

Rudolf

unread,
Feb 2, 2011, 12:58:34 PM2/2/11
to Tasker
I'm not sure what you're trying to achieve here;

do you want to stop the alarm as a result of turning the device
around?

or

do you want to mute all alarms when the phone is face down?

For the first one you should look into gestures.
The second can be achieved with a state, face down.

Rich

unread,
Feb 2, 2011, 2:04:27 PM2/2/11
to Tasker
Agree with Rudolf's suggestions. Take a look at the user guide for
more explanations. I currently use the face down state for a sleep
mode notification profile and it works well, just opposite of what
you're trying to do (turn on alarms vs. silence them).

On Feb 2, 9:58 am, Rudolf <rudolfhetroodneuzigerend...@gmail.com>
wrote:

Kasper Hettinga

unread,
Feb 3, 2011, 8:14:31 AM2/3/11
to Tasker
Thanks for the suggestions.

What I would like is simply to cancel the alarm when I flip the phone
in the morning. Works for calling (combination of states "incoming
call" + "orientation=face down").

I feel I'm getting closer. I made a "Alarm" profile, where at a
certain time I start a music file and I set the variable "%ALARM" to
"On". And indeed, the music file starts at the set time. Second step
was to make a "StopAlarm" profile. This profile is activated by
"%ALARM=On" + "Orientation is Face down". In this profile, the music
file is stopped and %ALARM is set to "Off".
Problem is that Orientation is not checked when the screen is off, and
the starting of the music file by the Alarm profile doesn't turn the
screen on....So, only if I press I button and then turn the face down,
the Alarm is cancelled.
Message has been deleted

Kasper Hettinga

unread,
Feb 3, 2011, 1:47:49 PM2/3/11
to Tasker
I managed to find a work-around.
With the SecureSettings plugin for tasker, I can disable the keyguard.
So when the Alarm profile start, in addition to starting the music
file, I also let it disable the keyguard and have the screen turn on.
I then added to the StopAlarm profile that it will not only stop the
music, but also turn on the keyguard again. In the Alarm profile, I
also let it enable the keyguard again just before it stops, so that
the keyguard is always enabled, whether I cancel the Alarm by flipping
the phone or whether I just let it play its sound....

Rudolf

unread,
Feb 4, 2011, 4:26:40 AM2/4/11
to Tasker
Clock+ is an enhanced version of the stock Clock app and allows an
alarm to snooze as a result of moving the phone. (Using the motion
sensor)
Don't know how to use tasker for this.

Kasper Hettinga

unread,
Feb 4, 2011, 6:24:47 AM2/4/11
to Tasker
Hi Rudolf,

Thanks for the idea: it is indeed easier for my wish to use a separate
app than Tasker. Although I didn't really solve my problem in Tasker,
at least I learned a lot about programming tasker.

Kasper
Reply all
Reply to author
Forward
0 new messages