如何了解系统实际使用了哪个 xorg.conf.d

如何了解系统实际使用了哪个 xorg.conf.d

如果我在 Ubuntu 17.04 中运行locate xorg.conf.d | grep d$,我会得到以下结果:

/etc/X11/xorg.conf.d
/usr/share/X11/xorg.conf.d

有两个这样的文件夹是正常的吗,或者这是我之前刚刚升级发行版的一些副作用?

这两个文件夹中哪个是系统真正使用的文件夹。我必须添加一个配置文件,但我不知道应该将其添加到哪个文件夹中。

答案1

根据man xorg.conf

When the Xorg server is started by the “root” user, the config directory search locations are as follows:

    /etc/X11/<cmdline> 
    /usr/etc/X11/<cmdline> 
    /etc/X11/xorg.conf.d 
    /usr/etc/X11/xorg.conf.d

where <cmdline> is the path specified with the −configdir command line option (which may be absolute or relative).
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 

因此/etc/X11/xorg.conf.d您应该将配置放在这里,并且/usr/share/X11/xorg.conf.d软件也会将配置文件放在这里。

相关内容