Skip to content

Instantly share code, notes, and snippets.

@eli9000
Last active April 11, 2023 17:52
  • Star 9 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
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

UPDATE FOR BULLSEYE

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

Thanks @makouski for this 🙌🏻


For OS older than Bullseye do the following:

Via the Terminal, type

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

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

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

@FancyChancie
Copy link

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

@makouski Thank you good sir! It worked

@max-aigner
Copy link

@makouski thanks for posting, worked for me in bullseye as well

@tjf9000
Copy link

tjf9000 commented Mar 19, 2023

@makouski Thank you! Worked for me in Bullseye, no reboot necessary.

@bzareba
Copy link

bzareba commented Apr 2, 2023

@eli9000 Hi, maybe it's worth to update doc with the script for Bullseye given by @frenchfaso ? This is the first google result for raspberry pi natural scrolling :)

@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

@eli9000
Copy link
Author

eli9000 commented Apr 11, 2023

@bzareba good idea, I will do so!

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