How can i acces or make changes in the Libinput file?

Hi ! First i am new to Linux and i just installed Zorin OS on my Surface Laptop Studio. The trackpad does not work. I can click but it does not follow my finger. I tried the help here : Surface Laptop Studio · linux-surface/linux-surface Wiki · GitHub

But i can't modify the libinput file to add the trakpad functions... i really need help to make me acces those files. I can see them but save nothing in the file.

Hi and welcome.

All those libinput files have a lock on them because they are system files and owned by 'root', apart from the top one. You cannot edit them graphically you have to edit using the terminal. Launch a Terminal with Ctrl+ Alt+ T, or Menu | Utilities | Terminal or just enter Terminal in search bar of menu. Use that first command on the GitHub page you linked to in your last post. To save making typos there is a copy to clipboard icon at the end of each command on that GitHub page so you can paste into the Terminal. Whenever you issue a sudo command you will be asked for your login password to enable you to be elevated to 'root' (think of Run as ... Administrator in that other OS).

1 Like

Welcome to the Forum!

Open the Terminal and type

sudo nano /etc/libinput/local-overrides.quirks

likw written in the Description. Then make the Changes and to save them, press ctrl+o to save, Enter to confirm and ctrl+x to close.

2 Likes

In case you are not overly familiar with the terminal, see this thread to see how to launch the file manager with elevated permissions:

:warning: Do not get used to doing this. Use only when strictly needed, and then close it.

2 Likes

I will try this because when I type the commande line it says no such files in directory.

Then the Files doesn't exist yet. So, You have to type first

sudo mkdir /etc/libinput/local-overrides.quirks

That creates the File and then You can use the nano Command. But of Course You can install nautilus-admin and then make it in Nautilus in the graphical Way.

I will try that after work and come back with an update thank you so much to everyone answering me !

1 Like

This solution worked flawlessly !

Only works on Wayland and not on Xorg