summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavide Depau <davide@depau.eu>2020-09-12 17:21:59 +0200
committerPeter Hutterer <peter.hutterer@who-t.net>2020-10-07 08:15:14 +1000
commitc6ab679fef3c8eb96dee4e9d9f9bce7f30847232 (patch)
tree4988cf160ccae237146fe1d134873058d5dd450f
parentdcf05cd757be7798f79dbdb4b843418bcbf698be (diff)
downloadlibinput-c6ab679fef3c8eb96dee4e9d9f9bce7f30847232.tar.gz
quirks: fix force-press on Apple Magic Trackpad 2
The current defaults detect force presses as palm or thumb. The values provided here work for a 99% accurate palm/thumb detection and provide close zero false positives in my tests. Signed-off-by: Davide Depau <davide@depau.eu> (cherry picked from commit ec939611fd2bda5bf379d79295a0c9b4282e3b23)
-rw-r--r--quirks/50-system-apple.quirks6
1 files changed, 4 insertions, 2 deletions
diff --git a/quirks/50-system-apple.quirks b/quirks/50-system-apple.quirks
index f3d57fb7..3d42c8c3 100644
--- a/quirks/50-system-apple.quirks
+++ b/quirks/50-system-apple.quirks
@@ -57,7 +57,8 @@ MatchProduct=0x0265
AttrSizeHint=162x115
AttrTouchSizeRange=20:10
AttrPalmSizeThreshold=900
-AttrThumbSizeThreshold=700
+AttrThumbSizeThreshold=800
+AttrPalmPressureThreshold=190
[Apple Magic Trackpad v2 (new vendor ID)]
MatchVendor=0x004C
@@ -65,7 +66,8 @@ MatchProduct=0x0265
AttrSizeHint=162x115
AttrTouchSizeRange=20:10
AttrPalmSizeThreshold=900
-AttrThumbSizeThreshold=700
+AttrThumbSizeThreshold=800
+AttrPalmPressureThreshold=190
[Apple Touchpad OneButton]
MatchUdevType=touchpad