summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg V <greg@unrelenting.technology>2021-03-16 01:17:06 +0300
committerPeter Hutterer <peter.hutterer@who-t.net>2021-03-24 14:45:17 +1000
commita49826a7a8cf5c62db5fd3b430781e7b9c423615 (patch)
tree3aad974a82c94468e3f8db17d78346eb7529191b
parentf905054b5bc124ec29f5a88ab16273f40895dd8b (diff)
downloadlibinput-a49826a7a8cf5c62db5fd3b430781e7b9c423615.tar.gz
quirks: add quirks for Apple SPI input devices
The Linux applespi driver currently uses the Synaptics vendor ID on the trackpad for some reason (even though, at least from bcm5974 we only know that Broadcom is involved..) but my upcoming FreeBSD driver uses the Apple vendor ID everywhere, so add two quirks. Signed-off-by: Greg V <greg@unrelenting.technology> (cherry picked from commit d8b1a773e306e1055b2a6fc1e71cc7af77c682a2)
-rw-r--r--quirks/50-system-apple.quirks25
1 files changed, 25 insertions, 0 deletions
diff --git a/quirks/50-system-apple.quirks b/quirks/50-system-apple.quirks
index 3d42c8c3..7f7a81cd 100644
--- a/quirks/50-system-apple.quirks
+++ b/quirks/50-system-apple.quirks
@@ -27,6 +27,12 @@ AttrTouchSizeRange=150:130
MatchName=*Apple Inc. Apple Internal Keyboard*
AttrKeyboardIntegration=internal
+[Apple Internal Keyboard (SPI)]
+MatchUdevType=keyboard
+MatchBus=spi
+MatchVendor=0x5AC
+AttrKeyboardIntegration=internal
+
# The Apple MagicMouse has a touchpad built-in but the kernel still
# emulates a full 2/3 button mouse for us. Ignore anything from the
# ABS interface
@@ -89,3 +95,22 @@ MatchBus=usb
MatchVendor=0x5AC
MatchProduct=0x0262
AttrPalmSizeThreshold=1600
+
+[Apple Laptop Touchpad (SPI)]
+MatchUdevType=touchpad
+MatchBus=spi
+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
+MatchBus=spi
+MatchVendor=0x6CB
+ModelAppleTouchpad=1
+AttrSizeHint=104x75
+AttrTouchSizeRange=150:130
+AttrPalmSizeThreshold=1600