pmaports/main/postmarketos-base/rootfs-lib-udev-rules.d-20-tm2-touchkey-input.rules
Raymond Hackley 96fc8c97c5
main/postmarketos-base: prevent from getting woken up by touchkey (MR 5357)
Fixes #2951

[ci:skip-build]: already built successfully in CI
2024-07-24 17:12:55 +02:00

10 lines
569 B
Text

# map tm2-touchkey to KEY_MENU and KEY_BACK (main variant)
SUBSYSTEM=="input", KERNEL=="event*", DRIVERS=="tm2-touchkey", ATTRS{name}!="midas-touchkey", \
ENV{KEYBOARD_KEY_00}="menu", ENV{KEYBOARD_KEY_01}="back", RUN{builtin}+="keyboard"
# (udev rule for mapping midas variants is unnecessary because the default key mapping is correct)
# prevent from getting woken up by capacitive back/menu buttons on
# certain Android devices (mostly Samsung)
SUBSYSTEM=="input", KERNEL=="event*", DRIVERS=="tm2-touchkey", \
ENV{GM_WAKEUP_KEY_139}="0", ENV{GM_WAKEUP_KEY_158}="0"