If I run in Ubuntu 17.04 locate xorg.conf.d | grep d$, here is what I get:


Is it normal to have two folders like these, or is it some side-effect of upgrading the distribution, which I did just before?

Which is, out of the two, the folder that is really used by the system. I have to add a configuration file and I do not know whether to add it in the one or the other.


According to man xorg.conf,

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


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:


So /etc/X11/xorg.conf.d is where you should put your configuration, and /usr/share/X11/xorg.conf.d is where the software will put configuration files.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.