• spiiroin's avatar
    [fingerprint] Use gesture actions for fingerprint wake up. Fixes JB#47437 · 64e71c69
    spiiroin authored
    Originally fingerprint wake up was modeled to:
    - wake up display like double tap does
    - exit from lockscreen when device is not locked, or
    - indicate need to unlock when device is locked
    i.e. behave as if double power key press were made.
    This however means that fingerprint wake up never ends up showing
    lockscreen where things like date and time would be visible.
    Switch from handling fingerprint wake up as something explicit into
    treating it as just another gesture with configurable actions.
    Add "tkunlock2" gesture action, which behaves like "tkunlock" when
    device is unlocked and does nothing when device is locked.
    After which users can tweak fingerprint behavior with mcetool.
    mcetool --set-touchscreen-gesture-actions=fpwakeup,unblank,tkunlock
      The default behavior.
    mcetool --set-touchscreen-gesture-actions=fpwakeup,unblank,tkunlock2
      Exits from lockscreen only if device is not locked.
    mcetool --set-touchscreen-gesture-actions=fpwakeup,unblank
      Just wakes up display, leaving lockscreen status as it is.
    Signed-off-by: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>