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!

14 comments:

  1. Replies
    1. This comment has been removed by the author.

      Delete
  2. It works on Ubuntu 16.04.2.
    Thanks

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

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

      Delete
  5. Works great in Linux Lite!! Thanks

    ReplyDelete
  6. This comment has been removed by the author.

    ReplyDelete
  7. This works for me with browser windows, but not others (e.g. text documents, pdfs). Am I missing something? I am using Ubuntu 16.04.

    ReplyDelete