Intel's Ronler Acres Plant

Silicon Forest
If the type is too small, Ctrl+ is your friend

Saturday, February 6, 2021

Adjust Linux Mint Mouse Speed

I just noticed that portions of this post were dropped by Feedly, which I think is some kind of RSS feed thing, so if that's how this comes to you, you may want to go to the original post. Parts of this post are done using Courier font to differentiate my comments from actual Terminal I/O (input/output).

For this bit of tediousness, xinput is your friend.

Open a terminal window. Enter this command:
        xinput --help

This will produce a long list of arguments that can be used with xinput. This is the one you want:

        xinput list [--short || --long || --name-only || --id-only] [...]

xinput list will produce of a devices:
⎡ Virtual core pointer                 id=2 [master pointer (3)]
    ↳ Virtual core XTEST pointer      id=4 [slave pointer (2)]
    ↳ SONiX USB Keyboard              id=10 [slave pointer (2)]
    ↳ PixArt USB Optical Mouse        id=11 [slave pointer (2)]
⎣ Virtual core keyboard                id=3 [master keyboard (2)]
     ↳ Virtual core XTEST keyboard     id=5 [slave keyboard (3)]
     ↳ Power Button                    id=6 [slave keyboard (3)]
     ↳ Video Bus                       id=7 [slave keyboard (3)]
     ↳ Power Button                    id=8 [slave keyboard (3)]
     ↳ SONiX USB Keyboard              id=9 [slave keyboard (3)]

Note that the mouse id is 11. Now we can learn about the mouse with

    xinput list-props 11

It comes back with a list. Velocity Scaling is the one we want.

        Device Accel Velocity Scaling (259): 10.000000

Note the number associated with the property, in this case 259. Use this to change the scaling factor:

    xinput set-prop 11 259 1



This is probably not a good fix in that it will need to be reapplied each time I reboot, but it's good enough for now.

I got some clues from the Linux Mint Forums, but there was a good deal of blather there as well.

No comments: