Ubuntu – Enable natural scrolling on ubuntu 17.04 with gnome-shell

gnomescrollingtouchpad

I've installed gnome-shell on ubuntu 17.04 and it works perfectly, but I'm having an hard time trying to enable natural scrolling using the trackpad. It works perfectly out of the box in unity, but in gnome despite I activated the natural scrolling in system settings, it does not work. I also created the file ".Xmodmap" in my home folder with:

pointer = 1 2 3 5 4 6 7 8 9 10 11 12

and then:

xmodmap .Xmodmap

I also tried to logout/login, but the natural scrolling is still disabled.
Finally, I tried to install the package "naturalscrolling":

sudo add-apt-repository ppa:zedtux/naturalscrolling
sudo apt-get install naturalscrolling

but I get:

E: Unable to locate package naturalscrolling

Any idea?

ps: My machine is a Dell XPS 15' 9560

UPDATE:

by running xinput list I see this:

↳ DLL07BE:01 06CB:7A13 Touchpad             id=12   [slave  pointer  (2)]
⎜   ↳ SynPS/2 Synaptics TouchPad                id=15   [slave  pointer  (2)]

Why there are 2 different touchpads?

$ /usr/bin/xinput set-prop 15 "libinput Scroll Method Enabled" 0, 1, 0
property 'libinput Scroll Method Enabled' doesn't exist, you need to specify its type and format

UPDATE 2:

I noticed that natural scrolling is actually working in Pycharm (java based IDE), but Chrome, "Files" and other apps still scroll normally 🙁

UPDATE 3:

I "solved" with a clean install of Ubuntu GNOME (which supports natural scrolling out of the box)

Best Answer

I'm running Ubuntu Gnome 17.04 on a Dell XPS 15 9530, and here's what worked for me:

The solution was to leave xserver-xorg-input-libinput installed, and instead remove xserver-xorg-input-synaptics, then reboot. It seems as if the upgrade installed both and was choosing synaptic by default, which doesn't seem to have a natural scrolling option.