Ubuntu – Where is the xorg.conf file in Ubuntu 18.04

multiple-monitorsxorgxorg.conf

I just installed Ubuntu 18.04. I have a machine with two gpus and 5 monitors. Getting them to work week has been challenging in the past, using previous versions of Ubuntu. In the end I manually created a xorg.conf file and worked well. Since then, every time I installed a new Ubuntu, I would just paste that file in /etc/X11/, reboot, and that would be good.

After installing Ubuntu 18.04 that strategy had not worked. I can't find where the xorg.conf file is located. Can you tell me where it is? Had there been a change in Ubuntu so that xorg is no longer used?

Thanks,

Best Answer

Lot of info in the man pages, try this in a terminal:

man xorg.conf

tldr;

You should find your xorg.conf file or yours config files in one or more of the following directories:

/etc/X11/<cmdline> 
/usr/etc/X11/<cmdline> 
/etc/X11/$XORGCONFIG 
/usr/etc/X11/$XORGCONFIG 
/etc/X11/xorg.conf 
/etc/xorg.conf 
/usr/etc/X11/xorg.conf.<hostname> 
/usr/etc/X11/xorg.conf 
/usr/lib/X11/xorg.conf.<hostname> 
/usr/lib/X11/xorg.conf

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

PS: would you mind sharing your xorg.conf? I'm trying a setup similar to yours. Check my question here