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-17 02:34:30 +0000
commitd8b1a773e306e1055b2a6fc1e71cc7af77c682a2 (patch)
treeb7c510bb8e10e021b78fb5eda3c35717b35b23ab
parent5f00c32d9ec8878948696f7c89ffb8b29a591fb6 (diff)
downloadlibinput-d8b1a773e306e1055b2a6fc1e71cc7af77c682a2.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>
-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