一会儿回来我获得了一些帮助来控制笔记本电脑触摸板的可点击区域。
为了使解决方案永久化,答案建议我向计算机xorg.conf
文件中添加一行条目。但我的计算机似乎没有。
我可以只创建一个吗?我可以只添加建议的一行吗,还是我还需要其他东西来使文件有效?我把它放在哪里?
答案1
标准方法是将其复制/usr/share/X11/xorg.conf.d/50-synaptics.conf
到/etc/X11/xorg.conf.d
并调用它51-mysinaptics.conf
(例如,它将在标准之后被读取)---然后读取它并进行相应的编辑。
在我的版本中,一开始就有:
Section "InputClass"
Identifier "touchpad catchall"
Driver "synaptics"
MatchIsTouchpad "on"
# This option is recommend on all Linux systems using evdev, but cannot be
# enabled by default. See the following link for details:
# http://who-t.blogspot.com/2010/11/how-to-ignore-configuration-errors.html
MatchDevicePath "/dev/input/event*"
EndSection
(请注意,有人修改了它,但没有修改注释 --- 这就是注释的危险之处)。我会尝试在这里添加它,然后重新启动 X。
关于启动配置的详细信息可以在这里找到man xorg.conf.d
;这里有趣的部分是:
当以普通用户身份启动服务器时,会在以下目录中搜索附加配置文件:
/etc/X11/<cmdline> /etc/X11/<cmdline> /etc/X11/xorg.conf.d /etc/X11/xorg.conf.d
和
Finally, configuration files will also be searched for in directories reserved for system use. These are to separate configuration files from the vendor or 3rd party packages from those of local administration. These files are found in the following directories: /usr/share/X11/xorg.conf.d /usr/share/X11/xorg.conf.d
命令:读取/应用配置的顺序并不十分清楚;我认为编号较高的“脚本”(如/usr/share/X11/xorg.conf.d/51-synaptics-quirks.conf
)会取代编号较低的脚本(如/usr/share/X11/xorg.conf.d/10-evdev.conf
),但我不确定哪一个会被选中。
/usr/share/X11/xorg.conf.d/50-wacom.conf
和/etc/X11/xorg.conf/50-wacom.conf
或者如果所有的/etc/X11/xorg.conf/
都会取代所有的/usr/share/X11/xorg.conf.d/
配置 --- 手册对我来说不清楚。如果你有权威的答案,非常欢迎你编辑这部分!
答案2
在你的控制台中,如果你执行“man xorg”,你会发现:
-configure
When this option is specified, the Xorg server loads all video driver
modules, probes for available hardware, and writes out an initial xorg.
conf(5) file based on what was detected. This option currently has
some problems on some platforms, but in most cases it is a good way to
bootstrap the configuration process. This option is only available
when the server is run as root (i.e, with real-uid 0).