summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHector Martin <marcan@marcan.st>2022-11-22 13:52:24 +0900
committerPeter Hutterer <peter.hutterer@who-t.net>2023-01-16 14:48:39 +1000
commit0f8a5cab4ad0ed90a27c8019aa88c7b4d5027666 (patch)
treed6554d8ded491b5752c5cb88988461ccc2a4cbe0
parentfc59e574e050c502c9a3adefacf97babf3d09c7a (diff)
downloadlibinput-0f8a5cab4ad0ed90a27c8019aa88c7b4d5027666.tar.gz
quirks: Add Apple MTP touchpad quirk
Apple M2 (and presumably newer) laptops now embed the touchpad controller into the main SoC, and use a new internal communications protocol between it and the main CPU. This isn't really a "bus" like SPI or I2C, so the downstream kernel driver currently uses the (not well supported) HOST bus type. MatchBus can't match on that, so let's just use a name match (plus the vendor ID, which is still valid and the usual Apple one). Signed-off-by: Hector Martin <marcan@marcan.st> (cherry picked from commit c2b420c793999ef924c4ef7e33e609fe0bd5d51c)
-rw-r--r--quirks/50-system-apple.quirks9
1 files changed, 9 insertions, 0 deletions
diff --git a/quirks/50-system-apple.quirks b/quirks/50-system-apple.quirks
index 7f7a81cd..a6d6eea9 100644
--- a/quirks/50-system-apple.quirks
+++ b/quirks/50-system-apple.quirks
@@ -105,6 +105,15 @@ AttrSizeHint=104x75
AttrTouchSizeRange=150:130
AttrPalmSizeThreshold=1600
+[Apple Laptop Touchpad (MTP)]
+MatchUdevType=touchpad
+MatchName=Apple*MTP*
+MatchVendor=0x5AC
+ModelAppleTouchpad=1
+AttrSizeHint=104x75
+AttrTouchSizeRange=150:130
+AttrPalmSizeThreshold=1600
+
# The Linux applespi driver currently uses the Synaptics vendor for some reason
[Apple Laptop Touchpad (SPI)]
MatchUdevType=touchpad