Configuring X Window System using the xorg.conf file

This page has been converted from the Fedora Project Wiki and cleaned up for publishing here on the Fedora Docs Portal, but it has not yet been reviewed for technical accuracy. This means any information on this page may be outdated or inaccurate. Reviews for technical accuracy are greatly appreciated. If you want to help, see the README file in the source repository for instructions.

About xorg.conf

Traditionally, the xorg.conf file is used to configure the X server. In Fedora, the X configuration is determined automatically each time X is started. As a result, no xorg.conf file is created. In most cases, this works well and there is no need to manually specify X configuration.

If you need to make manual changes to your X configuration for any reason, you will first need to create an xorg.conf file.

Creating an xorg.conf file

You can create a basic file using the X executable. It will contain sections and entries that you can edit to suit your needs. To create the file, enter this command as root:

# Xorg :1 -configure

Next, copy the file to the correct location:

# cp /root/xorg.conf.new /etc/X11/xorg.conf

Now you may edit the file according to your needs.

See the xorg.conf(5) man page for more information.