lazy l3ib ramblings

nobody really does anything.

how to correctly operate a mouse

19:12 p1: jvd how to decrease mouse sens@x?

19:13 p1: new mouse is max sens compared to old

20:29 p1: jvd: o nm found a button@mouse to do it :P

20:29 p1: p hardcore

20:31 jvd: no

20:31 jvd: NO

20:31 jvd: doin it rong

20:32 jvd: that’s like reducing your screen resolution if text is too small

20:32 jvd: instead of increasing font size

If you have a pro gamer mouse with insane resolution (HIGH DPI LOL!), you’ll want to fix some things in Xorgy. They keep changing things around, so you might find misleading references on The Internet.

The relevant settings are described in a potentially obscure document. First, find out what your mouse device is called.

ε % xinput list

⎡ Virtual core pointer                     id=2 [master pointer  (3)]

⎜   ↳ Virtual core XTEST pointer               id=4 [slave  pointer  (2)]

⎜   ↳ Logitech G9 Laser Mouse                 id=8 [slave  pointer  (2)]

⎜   ↳ Logitech G9 Laser Mouse                 id=9 [slave  pointer  (2)]

⎜   ↳ Macintosh mouse button emulation         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)]

    ↳ Power Button                             id=7 [slave  keyboard (3)]

    ↳ AT Translated Set 2 keyboard             id=10 [slave  keyboard (3)]

Clearly mine is called ‘Logitech G9 Laser Mouse’. Unfortunately, for some reason, there are two of them listed. If we try to use the name to denote the device, xinput doesn’t know what to do. We’ll use the ‘id’ thing instead. Through sophisticated scientific experiments, I found that setting things for id 8 works (I didn’t need to touch id 9).

 First, we want to disable acceleration. Note that the magic number 8 is the id we just found, and -1 means no acceleration.

xinput set-prop 8 “Device Accel Profile” -1

The mouse pointer probably still moves too quickly. Luckily, the aforementioned document describes a setting that can help us.

xinput set-prop 8 “Device Accel Constant Deceleration” 3

You’ll probably have to play with that last ‘3’ to get the sensitivity to a comfortable level.

These settings will be lost when you restart X. I put the xinput lines in my .xinitrc to fix that.

This concludes the lesson on correct mouse operation.

More Information