how to adjust mouse speed in X windows

for the longest time, one could speed up the mouse with something as simple as: xset m 5 10

these days, that doesn’t always work. here’s another method to try…

  • get a list of pointers (ignore virtual pointers):

$ xinput list
Virtual core pointer                          id=2    [master pointer  (3)]
  - Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
  - USB Optical Mouse                         id=9    [slave  pointer  (2)]
...
  • use the id of the device to list its properties:

$ xinput list-props 9
Device 'USB Optical Mouse':
        Device Enabled (141):   1
        Coordinate Transformation Matrix (143): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
        Device Accel Profile (262):     0
        Device Accel Constant Deceleration (263):       1.000000
        Device Accel Adaptive Deceleration (264):       1.000000
        Device Accel Velocity Scaling (265):    20.000000
...
use the name of the device to adjust acceleration:
xinput --set-prop 'USB Optical Mouse' 'Device Accel Velocity Scaling' 20
or slow it down by increasing the Deceleration value:
xinput --set-prop 'USB Optical Mouse' 'Device Accel Constant Deceleration' 1