Natural Scrolling in Lubuntu 17.04

Solution 1:

You can try this. Notice 6 and 7 are swapped.

NaturalScrolling:

echo "pointer = 1 2 3 5 4 7 6 8 9 10 11 12" > ~/.Xmodmap && xmodmap ~/.Xmodmap

Information from: https://andym3.wordpress.com/2011/09/03/the-one-line-method-of-getting-natural-scrolling-in-linux/

Solution 2:

As @Pilot6 suggested, make an edit to /usr/share/X11/xorg.conf.d/40-libinput.conf. But add to to BOTH the 'pointer' and 'touchpad' sections.

Find the 'pointer' section and add the "Natural Scrolling" option there.

Section "InputClass"
    Identifier "libinput pointer catchall"
    MatchIsPointer "on"
    MatchDevicePath "/dev/input/event*"
    Driver "libinput"
    Option "NaturalScrolling" "true"  # <-- add this line
EndSection

Do the same for the touchpad section:

Section "InputClass"
    Identifier "libinput touchpad catchall"
    MatchIsTouchpad "on"
    MatchDevicePath "/dev/input/event*"
    Driver "libinput"
    Option "NaturalScrolling" "true" # <-- add this line
EndSection

Save these changes, reboot, and natural scrolling should now work for you.