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!

16 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
  4. Works great in Linux Lite!! Thanks

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

    ReplyDelete
  6. 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
  7. Work here on Debian 9 Stretch as well! Different conf but same principles

    ReplyDelete
  8. I had better luck (as in, it worked globally in the browser AND in Terminal) following these directions https://ducfilan.wordpress.com/2016/09/20/enable-system-wide-inverse-reverse-natural-scrolling-on-ubuntu-16-04/

    ReplyDelete