11

Since updating, natural scrolling works just fine - up until reboot. Toggling the setting off and on again does the trick, but is rather... Annoying.

Grateful for any advice!

Scrounger
  • 113

2 Answers2

9

edit:

I just found a better solution / workaround to my original answer:

Add Option "NaturalScrolling" "on" to /usr/share/X11/xorg.conf.d/40-libinput.conf

In context:

Section "InputClass"
        Identifier "libinput pointer catchall"
        MatchIsPointer "on"
        MatchDevicePath "/dev/input/event*"
        Option "NaturalScrolling" "on"
        Driver "libinput"
EndSection

Then restart the X session (i.e.: log out or restart)

skiss
  • 146
  • I have a wireless / bluetooth mouse. Natural scrolling setting is ignored everytime I disconnect and reconnect my mouse. Although it is activated in Gnome Control Center, I have to switch it off and on again to make it work. The strange thing is, I have two laptopts (Dell & HP) with Ubuntu 20.04; HP works fine, Dell has this annoying bug. No idea what else to check or do – Mariano 'AcidWindsurf' Oct 16 '20 at 13:14
  • @Mariano'AcidWndsurf' thanks for you insight. I have updated my answer. – skiss Oct 16 '20 at 14:43
  • Excellent! It worked perfectly. Thank you very much! – Mariano 'AcidWindsurf' Oct 17 '20 at 16:11
6

I've noticed the same; it's really annoying. Mine also "forgets" the setting I have for Caps Lock (make it an Esc), which drives me crazy.

The following two terminal commands will fix things

gsettings set org.gnome.desktop.peripherals.mouse natural-scroll true

And for my escape problem: gsettings set org.gnome.desktop.input-sources xkb-options "['caps:escape']"

(edit2) Since I've turned the settings off and on again in the terminal, they haven't magically disappeared. Maybe it's enough to just run the below once? (turn it off and on again :) )

gsettings set org.gnome.desktop.peripherals.mouse natural-scroll false
gsettings set org.gnome.desktop.peripherals.mouse natural-scroll true
mwmwm
  • 141