How to disable mouse acceleration in 17.04

I do not want mouse acceleration on a certain mouse, but have it enabled in general. To do this I previously used a simple one-liner, which has stopped working when I upgraded to 17.04.

The old oneliner:

xinput --set-prop 'USB OPTICAL MOUSE' 'Device Accel Profile' -1

This can be explained by looking what xinpuit --list-props 'USB OPTICAL MOUSE' lists now:

Device 'USB OPTICAL MOUSE':
    Device Enabled (140):   1
    Coordinate Transformation Matrix (142): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
    libinput Accel Speed (278): 0.000000
    libinput Accel Speed Default (279): 0.000000
    libinput Accel Profiles Available (280):    1, 1
    libinput Accel Profile Enabled (281):   1, 0
    libinput Accel Profile Enabled Default (282):   1, 0
    (etc.)

And xinput --set-prop 'USB OPTICAL MOUSE' 281 -1, 0 does not solve the problem and so I am clueless and wonder what the correct command might be.


Solution 1:

apparently some changes in the underlying code make it necessary to change the command you used to: xinput --set-prop 'USB OPTICAL MOUSE' 'libinput Accel Profile Enabled' 0, 1