pmaports/main/postmarketos-base/rootfs-lib-udev-rules.d-20-zinitix-input.rules

8 lines
387 B
Text
Raw Normal View History

# map touchkey on Zinitix-TS to KEY_MENU and KEY_BACK
SUBSYSTEM=="input", KERNEL=="event*", DRIVERS=="Zinitix-TS", \
ENV{KEYBOARD_KEY_00}="menu", ENV{KEYBOARD_KEY_01}="back", RUN{builtin}+="keyboard"
# prevent from getting woken up by touchkey in Phosh / Gnome Mobile
SUBSYSTEM=="input", KERNEL=="event*", DRIVERS=="Zinitix-TS", \
ENV{GM_WAKEUP_KEY_139}="0", ENV{GM_WAKEUP_KEY_158}="0"