題 如何理解系統實際使用的是哪個xorg.conf.d


如果我在Ubuntu 17.04中運行 locate xorg.conf.d | grep d$,這是我得到的:

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

擁有這樣的兩個文件夾是正常的,還是升級發行版的一些副作用,我剛才做過?

在這兩者中,系統真正使用的文件夾就是其中之一。我必須添加一個配置文件,我不知道是否要在其中一個添加它。


4
2017-08-28 20:09


起源




答案:


根據 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 是軟件將配置文件放在哪裡。


4
2017-08-29 06:22