On older android phones I could dismiss clock alarm by pressing any button. On the new galaxy s9+ I have to use the screen, which is highly inconvenient if the alarm goes off when I'm driving. Therefore I'd like to configure the clock app to dismiss the alarm on button press.

Online search led to advice that was irrelevant to the current clock app, for example to use the triple dot menu of the clock app. The current clock app has nothing useful on the triple dot menu, just the About and one other item. I couldn't find the settings for that elsewhere either.

Could you suggest a solution?

1 Answer 1


You can use AutoInput with Tasker to do this.

Note: tested on stock Android with stock Clock app only.

  1. Install AutoInput.
  2. Enable Intercept Keys in it. Disable Doze if it asks for.
  3. Install and setup Tasker.
  4. Create a profile under Event → Plugin → AutoInput → Key → setup the configuration for a single key only, say a Volume rocker.
  5. Create a task for that profile named "Dismiss Alarm on keypress" and set the action to System → Cancel Alarm → Disable Current.
  6. Since Autoinput intercepts the key, you would find the key failing to perform its default functions. As a remedy, you would want to add an another action within that same task, depending upon the key you chose in Profile. I suggest you limit the keys to Volume rockers because Power key functionality may be hard to imitate through Tasker.

The benefit of using AutoInput is that it works both for Screen Off and Screen On states.

If you want to avoid this hassle, but can compromise with having functionality only when Screen is One and limited to few keys, than consider MacroDroid.

  1. Install it
  2. Setup Trigger to any Volume Button Pressed → Monitor Volume Changes → choose your key → Update Volume.
  3. Setup Action to Alarm Clock → Dismiss Active Alarm.

This should work within limited aforementioned constraints.

  • Thanks. One more question: can I map Samsung S9+ Bixby key? It's the key next to the volume rocker; I didn't find it in the tasker's list of keys.
    – Michael
    Commented Aug 30, 2018 at 17:03
  • 1
    I'm sorry. I don't know as I have not owned a Samsung device before. :-( // There used to be a way to remap that key as mentioned here but the app has been removed from Play Store. You can find its apk somewhere and try it but I cannot give assurance for that either.
    – Firelord
    Commented Aug 30, 2018 at 17:15

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .