Skip to content

Instantly share code, notes, and snippets.

@imabuddha
Created December 10, 2020 13:50
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save imabuddha/c34c732dcd11dbb278a87e7ce5330943 to your computer and use it in GitHub Desktop.
Save imabuddha/c34c732dcd11dbb278a87e7ce5330943 to your computer and use it in GitHub Desktop.
Apple Magic Trackpad 2 configuration for Raspberry Pi (& linux generally) — Properly configures the pressure sensitivity, natural scrolling, and the left/right/middle (1/2/3 finger) clicks.
# add this to /usr/share/libinput/50-system-apple.quirks (create if doesn't exist)
[Apple Magic Trackpad v2]
MatchName=*Magic Trackpad 2
AttrSizeHint=162x115
AttrTouchSizeRange=20:10
AttrPressureRange=2:0
AttrPalmSizeThreshold=900
AttrThumbSizeThreshold=700
# add this to /usr/share/X11/xorg.conf.d/99-apple-magic-trackpad-2.conf (create if doesn't exist)
Section "InputClass"
Identifier "Magic Trackpad 2"
MatchProduct "Magic Trackpad 2"
MatchDevicePath "/dev/input/event*"
Driver "libinput"
Option "NaturalScrolling" "true"
Option "ClickMethod" "clickfinger"
EndSection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment