Ubuntu – How to fix microsoft mouse scrolling speed on ubuntu

microsoftmousemouse scrollscrolling

In case someone gets the same problem as I just got.

When switching from Windows to Ubuntu (in dual-boot) my Microsoft wireless mouse scroll wheel goes nuts! It's totally over-sensitive.

Best Answer

Open a prompt

List your devices, pay attention to the id from the device you want to fix, if there are 2 of them, it's ok.

$ xinput list

Mine was 9 and 10

⎡ Virtual core pointer                      id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ Microsoft Microsoft® 2.4GHz Transceiver v8.0  id=9    [slave  pointer  (2)]
⎜   ↳ Microsoft Microsoft® 2.4GHz Transceiver v8.0  id=10   [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)]
    ↳ Microsoft Microsoft® 2.4GHz Transceiver v8.0  id=8    [slave  keyboard (3)]

Now do this, x being your id

$ xinput list-props x | grep 'Scrolling Distance'
Evdev Scrolling Distance (255): 1, 1, 1

Finally, the trick is to find your ideal values, mine were 10, 10, 10

$ xinput set-prop x 'Evdev Scrolling Distance' 10, 10, 10

To permanently set the change (source):

A hidden file in your directory is ".profile" (Ctrl+H to see hidden files) Double click on it and open it. Copy paste the previous command at the end. That's it!

P.S. to apply the same command for all users you can edit the file /etc/profile (not an hidden file).

You are now good to go!