Skip to content

Instantly share code, notes, and snippets.

@eli9000
Last active Apr 3, 2022
Embed
What would you like to do?
Change your Raspberry Pi scrolling to Natural Scrolling (like iOS)

How to invert mouse wheel to NaturalScrolling in Linux for Raspberry Pi

Via the Terminal, type the following

cd /usr/share/X11/xorg.conf.d
sudo nano 40-libinput.conf

Add to following line to the BOTTOM of the FIRST Section "InputClass"

Option "NaturalScrolling" "true"

Here is a visual representation

Nice work braaaaah

Once you're finished, write to the file and then exit.

Restart your Pi

Enjoy that natural scrolling goodness!

Cheers

@imabuddha
Copy link

imabuddha commented Dec 8, 2020

Works great, thanks! 🙇

@ikjl
Copy link

ikjl commented Apr 6, 2021

Thank you. The screen shot helped me.

Copy link

ghost commented Apr 21, 2021

Thanks a lot, works great.

@frenchfaso
Copy link

frenchfaso commented Nov 11, 2021

Seems not to work anymore with the latest Raspberry Pi OS (bullseye)

@FancyChancie
Copy link

FancyChancie commented Feb 5, 2022

Thank you so much @eli9000, my frustration level has lowered... "not all zeros wear capes."

@frenchfaso, this worked just fine for me using bullseye.

@makouski
Copy link

makouski commented Mar 6, 2022

@frenchfaso, I have the same problem: updating 40-libinput.conf did not work in bullseye but it did work in buster.
this is how I enabled natural scrolling in bullseye:
gsettings set org.gnome.desktop.peripherals.mouse natural-scroll true

@arseniyturin
Copy link

arseniyturin commented Mar 19, 2022

@makouski Thank you good sir! It worked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment