Skip to content

Instantly share code, notes, and snippets.

@vladimiroff
Created June 10, 2016 13:10
Show Gist options
  • Save vladimiroff/a7123c4fcc6ce3b93febee42a83cb3da to your computer and use it in GitHub Desktop.
Save vladimiroff/a7123c4fcc6ce3b93febee42a83cb3da to your computer and use it in GitHub Desktop.
Apple's Magic Mouse works out of the box on linux (kernel/drivers/hid/hid-magicmouse.ko.gz). However, I wanted to edit the acceleration a bit. I'm not using this mouse for more than an year now, but still wouldn't like to lose this, because it took me some time to figure out how these acceleration variables work in X.
Section "InputClass"
Identifier "Apple Magic Mouse"
MatchIsPointer "yes"
MatchVendor "0x5ac"
MatchProduct "0x30d"
Driver "hid-magicmouse"
Option "AccelerationNumerator" "2"
Option "AccelerationDenominator" "1"
Option "AccelerationThreshold" "4"
EndSection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment