Saturday, October 1, 2016

How to Reverse Mouse Scroll Direction in Debian and Ubuntu

This post is based on here.

To reverse mouse scroll direction, in case you like natural scrolling direction, edit /usr/share/X11/xorg.conf.d/10-evdev.conf file and add the line highlighted in green:
...
Section "InputClass"
        Identifier "evdev pointer catchall"
        MatchIsPointer "on"
        MatchDevicePath "/dev/input/event*"
        Option "ButtonMapping" "1 2 3 5 4 6 7 8"
        Driver "evdev"
EndSection
...

Restart X11 to take effect!

7 comments:

  1. It works on Ubuntu 16.04.2.
    Thanks

    ReplyDelete
  2. Not working with Ubuntu 17.04... The file is empty/not existing.

    ReplyDelete
  3. Replies
    1. this may help you
      https://askubuntu.com/questions/1220/how-to-restart-x-window-server-from-command-line

      Delete