# XF86Config-4 example for Dual Head and Xinerama mode # ---------------- This stuff needs to be adapted for your machine ----------- Section "Files" FontPath "/usr/share/fonts/misc" FontPath "/usr/share/fonts/75dpi" FontPath "/usr/share/fonts/100dpi" FontPath "/usr/share/fonts/TTF" FontPath "/usr/share/fonts/Type1" EndSection Section "Module" Load "GLcore" # MUST be there if DRI is enabled. Load "dbe" Load "extmod" Load "record" Load "bitmap" Load "freetype" Load "speedo" Load "type1" EndSection Section "InputDevice" Identifier "Generic Keyboard" Driver "kbd" Option "XkbLayout" "de" Option "XkbModel" "pc105" Option "XkbVariant" "nodeadkeys" EndSection Section "InputDevice" Identifier "Configured Mouse" Driver "mouse" Option "CorePointer" Option "Device" "/dev/psaux" Option "Protocol" "PS/2" Option "Emulate3Buttons" "true" Option "ZAxisMapping" "4 5" EndSection Section "InputDevice" Identifier "USB Mouse" Driver "mouse" Option "SendCoreEvents" "true" Option "Device" "/dev/input/mice" Option "Protocol" "ImPS/2" Option "Emulate3Buttons" "true" Option "ZAxisMapping" "4 5" EndSection # --------------- End of machine specific stuff ------------------------------ # ---------------------------------------------------------- # MONITOR section # ---------------------------------------------------------- # This section contains data for monitor configuration. # Monitor section for CRT2 (master head) Section "Monitor" Identifier "CRT2" VendorName "Monitor Vendor" ModelName "My CRT2 device" EndSection # Monitor section for CRT1 (slave head) Section "Monitor" Identifier "CRT1" VendorName "Monitor Vendor" ModelName "My VGA monitor" EndSection # ---------------------------------------------------------- # DEVICE sections # ---------------------------------------------------------- # This section contains configuration data of the video card. # Device section for CRT2 (master head) -------------------- # Device section for CRT1 (Slave head) -------------------- Section "Device" Identifier "SiS chip-2" Driver "sis" # For dual head mode, BusID must be specified! BusID "PCI:1:00:0" # Generally: Set all the options you need in the master # section, not here. See above. The only exeptions to this # rule are all Xv and gamma correction related options, such as #Option "CRT1Gamma" "false" #Option "StoredGammaBrightness" "1.1 1.1 1.1" #Option "StoredGammaPreBrightness" "1.2 1.2 1.2" #Option "XvGamma" "1.0 1.2 0.8" #Option "XvDefault..." # "Screen" selects the screen number for this device in dual head mode # Screen 1 is slave (always CRT1 = external VGA) Screen 0 EndSection Section "Device" Identifier "SiS chip-1" VendorName "SiS" # Value does not matter BoardName "SiS" # value does not matter Driver "sis" #Option "ForceCRT2Type" "TV" # Since this is the driver section for CRT2, options for adjusting the TV # image (such as TVStandard, CHTVOverscan, etc) should be placed in this # section (and not the Device section for CRT1 below) # Generally: Set as many options as possible in this device section, # not the one for CRT1. CRT2 is initialized first (thus the term # "master head") and its settings rule in many cases over the one # given in the slave device's (CRT1) section. The only exceptions for # this rule are all gamma correction and Xv related options, see below. # For dual head mode, BusID has to be specified! Check this using lspci! BusID "PCI:1:00:0" # "Screen" selects the screen number for this device in dual head mode # Screen 0 is master (always CRT2) Screen 1 EndSection # ---------------------------------------------------------- # SCREEN section(s) # ---------------------------------------------------------- # This section defines the available resulutions and depths. # Screen section for CRT2 (LCD/Plasma/DVI-D, TV, VGA2/DVI-A) Section "Screen" Identifier "Screen2" Device "SiS chip-2" Monitor "CRT1" DefaultDepth 24 SubSection "Display" Depth 24 Modes "1600x1200" EndSubSection EndSection # Screen section for CRT1 (VGA) # DefaultDepth must be identical to master screen if using Xinerama. # Otherwise, depths can be different. # A depth of 8 is not supported in dual head mode. # Resolutions can be different. Section "Screen" Identifier "Screen1" Device "SiS chip-1" Monitor "CRT2" DefaultDepth 24 SubSection "Display" Depth 24 Modes "720x576" EndSubSection EndSection Section "ServerLayout" Identifier "Default Layout" # Now enable dual head mode: Screen "Screen1" Screen "Screen2" RightOf "Screen1" # Option "Xinerama" "on" InputDevice "Generic Keyboard" InputDevice "Configured Mouse" InputDevice "USB Mouse" EndSection Section "DRI" Mode 0666 EndSection