From bc8cf58b5a56ddca3f65bec9bb0ac71c0837fde4 Mon Sep 17 00:00:00 2001 From: Colin Date: Tue, 10 Oct 2023 00:02:31 +0000 Subject: [PATCH] sxmo: inputhandler: map powerx3 from screenoff state --- hosts/modules/gui/sxmo/hooks/sxmo_hook_inputhandler.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hosts/modules/gui/sxmo/hooks/sxmo_hook_inputhandler.sh b/hosts/modules/gui/sxmo/hooks/sxmo_hook_inputhandler.sh index 0878b098..614a206f 100755 --- a/hosts/modules/gui/sxmo/hooks/sxmo_hook_inputhandler.sh +++ b/hosts/modules/gui/sxmo/hooks/sxmo_hook_inputhandler.sh @@ -102,6 +102,10 @@ if [ "$STATE" = "screenoff" ]; then # power twice => toggle media player handle_with playerctl play-pause ;; + "powerbutton_three") + # power once during deep sleep often gets misread as power three, so treat these same + handle_with sxmo_state_switch.sh set unlock + ;; esac fi