#第一个显卡
Section "Device"
Identifier "Generic Video Card"
Driver "fglrx"
Screen 0
BusID "PCI:4:0:0"
EndSection
#第二个显卡
Section "Device"
Identifier "Generic Video Card1"
Driver "fglrx"
Screen 1
BusID "PCI:4:0:0"
EndSection
#第一个显示器
Section "Monitor"
Identifier "Generic Monitor"
Option "DPMS"
HorizSync 28-64
VertRefresh 43-60
EndSection
#第二个显示器
Section "Monitor"
Identifier "Generic Monitor1"
Option "DPMS"
HorizSync 28-64
VertRefresh 43-60
EndSection
#第一个桌面配置
Section "Screen"
Identifier "Default Screen"
Device "Generic Video Card"
Monitor "Generic Monitor"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
....
EndSection
#第二个桌面配置
Section "Screen"
Identifier "Default Screen1"
Device "Generic Video Card1"
Monitor "Generic Monitor1"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
....
EndSection
#桌面排版
Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
Screen "Default Screen1" RightOf "Default Screen" #增加此行
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice "stylus" "SendCoreEvents"
InputDevice "cursor" "SendCoreEvents"
InputDevice "eraser" "SendCoreEvents"
EndSection
Section "DRI"
Mode 0666
EndSection
#extend screen, can drag window between screens...
Section "ServerFlags"
Option "Xinerama" "true"
EndSection
对于ati驱动,可以只有一个Card Device,然后在其中加一个option就可以了,只是现在忘了那个option是什么了,以后再补充吧。