AutoInput Handle gestures or taps on AOD (Samsung Alway On Display)

Discussion in 'AutoApps' started by SnipER, Mar 1, 2020.

  1. SnipER

    SnipER New Member

    Joined:
    Mar 1, 2020
    Messages:
    6
    Likes Received:
    0
    Hello!
    Is this possible?

    What I have is AOD ON by notification receive and OFF by either notifications gone or by dispplay turn on.
    AOD itself is hidden by power button or double tap.

    What I want to do is hide AOD on single tap or swipe. Can this or similar be achieved?

    Thank you!
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,055
    Likes Received:
    768
    Check the Any Sensor event in the Tasker beta and see if your device has a sensor for that :) I know my Pixel 3 does!
     
  3. SnipER

    SnipER New Member

    Joined:
    Mar 1, 2020
    Messages:
    6
    Likes Received:
    0
    Thank you! I tried Palm Sensor, but it worked inside the poket and to just any screen covering.

    It worked with "Touch Proximity Sensor", 1000, Throttle.
    Now It react to long press. But it also reakst to unpress (after this press) - can I eliminate this?

    Also, are settings above ok? Will they not drain the battery? Or can you suggest better method?
     
  4. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,055
    Likes Received:
    768
    Maybe you can use Debounce instead of throttle? Does that work better?
     
  5. SnipER

    SnipER New Member

    Joined:
    Mar 1, 2020
    Messages:
    6
    Likes Received:
    0
    Unfortunately, no. I've tried all 4 methods and I always get 2 calls, sometimes 1 right after untouching screen, sometimes after delay.
    I wanted to make "switch", like, enabling AOD on 1-second-touch-and-hold and disabling on another and could not achieve this.

    Well, thank you anyway, disabling on touch is already great!
     
  6. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,055
    Likes Received:
    768
    Maybe you can check the event data variable so that you know which of the gestures it was? :) Maybe that contains what you need.
     
  7. SnipER

    SnipER New Member

    Joined:
    Mar 1, 2020
    Messages:
    6
    Likes Received:
    0
    Thanks for advice, but tried that and as_values() for "Touch Proximity Sensor" returns 5.0 on screen off and 4.0 on both touch and untouch (with screen off).
    Also, "Palm Proximity Sensor" always returns 0.0.
     
  8. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,055
    Likes Received:
    768
    Ah, that's too bad... Was worth a try!
     

Share This Page