我是 Linux 新手,最近安装了 Ubuntu 18.04。我需要50-synaptics.conf
在 Ubuntu 18.04 中编辑该文件,但 GKSU 已被弃用,当我运行
gedit admin:///usr/share/X11/xorg.conf.d/50-synaptics.conf
表明:
The specified location is not mounted.
我该怎么做才能打开并更新这个文件?
输出
aayush@aayush-taneja:~$ gksu gedit /usr/share/X11/xorg.conf.d/50-synaptics.conf
Command 'gksu' not found, did you mean:
command 'ksu' from deb heimdal-clients
command 'ksu' from deb krb5-user
command 'gosu' from deb gosu
Try: sudo apt install <deb name>
aayush@aayush-taneja:~$ sudo apt install gksu
[sudo] password for aayush:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package gksu is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'gksu' has no installation candidate
aayush@aayush-taneja:~$ gedit admin:///usr/share/X11/xorg.conf.d/50-synaptics.conf
** (gedit:4614): WARNING **: 22:17:30.045: The specified location is not mounted
^C
答案1
首先进入文件系统。
然后
usr
。然后
share
。然后
x11
。您将看到一个名为的文件
51-synaptics-quirks.conf
您无法编辑该文件,因此您必须以 root 身份打开该目录。
只需在目录中单击鼠标右键,然后选择“以 root 身份打开”即可。
然后打开文件并将其粘贴到 END SECTION 之后的末尾:
# Disable generic Synaptics device, as we're using # "DLL0704:01 06CB:76AE Touchpad" # Having multiple touchpad devices running confuses syndaemon Section "InputClass" Identifier "SynPS/2 Synaptics TouchPad" MatchProduct "SynPS/2 Synaptics TouchPad" MatchIsTouchpad "on" MatchOS "Linux" MatchDevicePath "/dev/input/event*" Option "Ignore" "on" EndSection