Skip to content

Instantly share code, notes, and snippets.

@jamesamcl
Created June 13, 2024 20:16
Show Gist options
  • Save jamesamcl/af10a73c5f2112a7aa41cbc046474ff1 to your computer and use it in GitHub Desktop.
Save jamesamcl/af10a73c5f2112a7aa41cbc046474ff1 to your computer and use it in GitHub Desktop.

Apple Magic Trackpad 2 on Linux

As of June 2024. libinput doesn't seem configurable enough to get it behaving like it does on Mac. Instead use Synaptics.

here is the config I am using:

xinput set-prop "Apple Inc. Magic Trackpad 2" "Coordinate Transformation Matrix" 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
xinput set-prop "Apple Inc. Magic Trackpad 2" "Device Accel Profile" 1
xinput set-prop "Apple Inc. Magic Trackpad 2" "Device Accel Constant Deceleration" 0.800000
xinput set-prop "Apple Inc. Magic Trackpad 2" "Device Accel Adaptive Deceleration" 1.000000
xinput set-prop "Apple Inc. Magic Trackpad 2" "Device Accel Velocity Scaling" 18.000000
xinput set-prop "Apple Inc. Magic Trackpad 2" "Synaptics Edges" -3374, 3630, -2205, 2314
xinput set-prop "Apple Inc. Magic Trackpad 2" "Synaptics Finger" 0, 0, 0
xinput set-prop "Apple Inc. Magic Trackpad 2" "Synaptics Tap Time" 180
xinput set-prop "Apple Inc. Magic Trackpad 2" "Synaptics Tap Move" 402
xinput set-prop "Apple Inc. Magic Trackpad 2" "Synaptics Tap Durations" 180, 180, 100
xinput set-prop "Apple Inc. Magic Trackpad 2" "Synaptics ClickPad" 1
xinput set-prop "Apple Inc. Magic Trackpad 2" "Synaptics Middle Button Timeout" 0
xinput set-prop "Apple Inc. Magic Trackpad 2" "Synaptics Two-Finger Pressure" 279
xinput set-prop "Apple Inc. Magic Trackpad 2" "Synaptics Two-Finger Width" 7
xinput set-prop "Apple Inc. Magic Trackpad 2" "Synaptics Scrolling Distance" -157, -157
xinput set-prop "Apple Inc. Magic Trackpad 2" "Synaptics Edge Scrolling" 0, 0, 0
xinput set-prop "Apple Inc. Magic Trackpad 2" "Synaptics Two-Finger Scrolling" 1, 1
xinput set-prop "Apple Inc. Magic Trackpad 2" "Synaptics Move Speed" 1.000000, 1.900000, 0.021875, 0.000000
xinput set-prop "Apple Inc. Magic Trackpad 2" "Synaptics Off" 0
xinput set-prop "Apple Inc. Magic Trackpad 2" "Synaptics Locked Drags" 0
xinput set-prop "Apple Inc. Magic Trackpad 2" "Synaptics Locked Drags Timeout" 5000
xinput set-prop "Apple Inc. Magic Trackpad 2" "Synaptics Tap Action" 1, 1, 1, 1, 1, 3, 2
xinput set-prop "Apple Inc. Magic Trackpad 2" "Synaptics Click Action" 1, 3, 2
xinput set-prop "Apple Inc. Magic Trackpad 2" "Synaptics Circular Scrolling" 0
xinput set-prop "Apple Inc. Magic Trackpad 2" "Synaptics Circular Scrolling Distance" 0.100000
xinput set-prop "Apple Inc. Magic Trackpad 2" "Synaptics Circular Scrolling Trigger" 0
xinput set-prop "Apple Inc. Magic Trackpad 2" "Synaptics Circular Pad" 0
xinput set-prop "Apple Inc. Magic Trackpad 2" "Synaptics Palm Detection" 0
xinput set-prop "Apple Inc. Magic Trackpad 2" "Synaptics Palm Dimensions" 10, 198
xinput set-prop "Apple Inc. Magic Trackpad 2" "Synaptics Coasting Speed" 20.000000, 50.000000
xinput set-prop "Apple Inc. Magic Trackpad 2" "Synaptics Pressure Motion" 29, 158
xinput set-prop "Apple Inc. Magic Trackpad 2" "Synaptics Pressure Motion Factor" 1.000000, 1.000000
xinput set-prop "Apple Inc. Magic Trackpad 2" "Synaptics Resolution Detect" 1
xinput set-prop "Apple Inc. Magic Trackpad 2" "Synaptics Grab Event Device" 0
xinput set-prop "Apple Inc. Magic Trackpad 2" "Synaptics Gestures" 1
xinput set-prop "Apple Inc. Magic Trackpad 2" "Synaptics Capabilities" 1, 0, 0, 1, 1, 1, 0
xinput set-prop "Apple Inc. Magic Trackpad 2" "Synaptics Pad Resolution" 44, 47
xinput set-prop "Apple Inc. Magic Trackpad 2" "Synaptics Area" 0, 0, 0, 0
xinput set-prop "Apple Inc. Magic Trackpad 2" "Synaptics Soft Button Areas" 0, 0, 0, 0, 0, 0, 0, 0
xinput set-prop "Apple Inc. Magic Trackpad 2" "Synaptics Noise Cancellation" 1, 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment