quirks: add a quirk for the HONOR MagicBook Art 14 touchpad
authorWentao Guan <guanwentao@uniontech.com>
Mon, 23 Sep 2024 08:51:47 +0000 (08:51 +0000)
committerMarge Bot <emma+marge@anholt.net>
Wed, 2 Oct 2024 09:52:55 +0000 (09:52 +0000)
The touchpad need ModelPressurePad=1 to enable moving cursor,
and need AttrEventCode=-BTN_RIGHT to use right key by touchpad
two-fingers press..

Closes: #1040
Link: https://gitlab.freedesktop.org/libinput/libinput/-/issues/1040
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1053>

quirks/50-system-honor.quirks [new file with mode: 0644]

diff --git a/quirks/50-system-honor.quirks b/quirks/50-system-honor.quirks
new file mode 100644 (file)
index 0000000..4f5e802
--- /dev/null
@@ -0,0 +1,8 @@
+# Clickpad that announces BTN_RIGHT
+# requires ModelPressurePad=1
+[HONOR MagicBook Art 14]
+MatchName=*TOPS0102*
+MatchDMIModalias=dmi:*svnHONOR:*pnMRA-XXX*
+MatchUdevType=touchpad
+AttrEventCode=-BTN_RIGHT
+ModelPressurePad=1