Sample xorg.conf

The following file is my xorg.conf file which works for me with my Radeon9700 using ATI's binary fglrx drivers. I have two LCD displays which I wanted to act as one large desktop display.

# *********************************************************************
# XOrg.conf File
# ATI Binary fglrx Drivers
# Dual Monitor Configuration
# Both Monitors are LCD Displays
# *********************************************************************

# **********************************************************************
# DRI Section: Change the permissions on the dri device so I don't 
# get agp permission errors
# **********************************************************************
 Section "DRI"
    Mode 0666
 EndSection

Section "ServerLayout"
        Identifier     "Simple Layout"
        Screen      1  "Screen 1" 0 0
        InputDevice    "Mouse1" "CorePointer"
        InputDevice    "Keyboard1" "CoreKeyboard"
EndSection

Section "Files"
        FontPath     "/usr/share/fonts/misc"
        FontPath     "/usr/share/fonts/75dpi"
        FontPath     "/usr/share/fonts/100dpi"
        FontPath     "/usr/share/fonts/Type1"
EndSection

Section "Module"
        Load  "dbe"     # Double buffer extension
        SubSection "extmod"
         Option     "omit xfree86-dga"   # don't initialise the DGA extension
        EndSubSection
        Load  "freetype"
        Load  "glx"
        Load  "dri"
EndSection

Section "InputDevice"
        Identifier  "Keyboard1"
        Driver      "kbd"
        Option      "AutoRepeat" "500 30"
        Option      "XkbRules" "xorg"
        Option      "XkbModel" "pc104"
        Option      "XkbLayout" "us"
EndSection

Section "InputDevice"
        Identifier  "Mouse1"
        Driver      "mouse"
        Option      "Protocol" "Auto"   # Auto detect
        Option      "Device" "/dev/input/mice"
        Option      "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
        Identifier   "Monitor1"
        HorizSync    31.5 - 64.3
        VertRefresh  50.0 - 100.0
        Option       "DPMS" "true"
EndSection

Section "Monitor"
        Identifier  "Monitor2"
        Option      "DPMS" "true"
EndSection

Section "Device"
        Identifier  "Radeon9700-1"
        Driver      "fglrx"
        Option      "DPMS"
        #VideoRam    65536
        Option      "DesktopSetup" "horizontal,reverse"
        BusID       "PCI:1:0:0"
EndSection

Section "Device"
        Identifier  "Radeon9700-2"
        Driver      "fglrx"
        BusID       "PCI:1:0:0"
        Screen      1
EndSection

Section "Screen"
        Identifier "Screen 1"
        Device     "Radeon9700-1"
        Monitor    "Monitor1"
        DefaultDepth     24
        SubSection "Display"
                Viewport   0 0
                Depth     8
                Modes    "1280x1024" "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     16
                Modes    "1280x1024" "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     24
                Modes    "1280x1024" "1024x768" "800x600" "640x480"
        EndSubSection
EndSection

Section "Screen"
        Identifier "Screen 2"
        Device     "Radeon9700-2"
        Monitor    "Monitor2"
        DefaultDepth     24
        SubSection "Display"
                Viewport   0 0
                Depth     24
        EndSubSection
EndSection
tux