quirks: fix force-press on Apple Magic Trackpad 2
authorDavide Depau <davide@depau.eu>
Sat, 12 Sep 2020 15:21:59 +0000 (17:21 +0200)
committerPeter Hutterer <peter.hutterer@who-t.net>
Mon, 5 Oct 2020 20:57:05 +0000 (20:57 +0000)
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>
quirks/50-system-apple.quirks

index f3d57fb..3d42c8c 100644 (file)
@@ -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