该答案适用于具有ATI radeon图形卡的Ubuntu 11.04和Diamond DisplayLink BVU-195 USB显示适配器。
我终于让它适用于三台显示器。我有一个ATI radeon卡,它带有1个DVI和2个DisplayPort输出(但一次只能使用两个)和1个Diamond DisplayLink BVU 195 USB适配器。
您必须安装displaylink驱动程序。然后,您必须编写自己的xorg.conf文件。
sudo apt-get install xserver-xorg-video-displaylink
这是三个关键点。
我希望能够在显示器之间移动窗口。这意味着我不能使用xrandr。相反,我必须启用称为Xinerama的功能。如果使用默认的“ xrandr”选项,则只有鼠标光标可以在显示之间移动,而程序则不能。不是很有用!因此,Xinerama是必需品。
在配置ATI radeon驱动程序时,除非您指定“ ZaphodHeads”选项,否则显示将被克隆为在使用的两个监视器之间进行克隆。卡上的有效选项是“ DVI-0”和“ DisplayPort-0”或“ DisplayPort-1”。
您必须将所有监视器配置为16位。如果您坚持使用默认的24位,则X服务器将崩溃。
如果在启动时插入了USB监视器,则只会出现黑屏。我必须在拔下电源的情况下进行引导,将其插入,然后仅在USB屏幕变为绿色时登录。
这是我的xorg.conf,我将其放在/etc/X11/xorg.conf中。USB displaylink监视器是Screen0,连接到ATI卡的DVI监视器是Screen1,并且也通过适配器连接到ATI卡的DisplayPort监视器是Screen2。
Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
Screen 1 "Screen1" RightOf "Screen0"
Screen 2 "Screen2" RightOf "Screen1"
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
Option "Xinerama" "on"
EndSection
Section "Files"
ModulePath "/usr/lib/xorg/modules"
FontPath "/usr/share/fonts/X11/misc"
FontPath "/usr/share/fonts/X11/cyrillic"
FontPath "/usr/share/fonts/X11/100dpi/:unscaled"
FontPath "/usr/share/fonts/X11/75dpi/:unscaled"
FontPath "/usr/share/fonts/X11/Type1"
FontPath "/usr/share/fonts/X11/100dpi"
FontPath "/usr/share/fonts/X11/75dpi"
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
FontPath "built-ins"
EndSection
Section "Module"
Load "dri"
Load "record"
Load "extmod"
Load "dri2"
Load "dbe"
Load "glx"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5 6 7"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection
Section "Monitor"
Identifier "Monitor1"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection
Section "Monitor"
Identifier "Monitor2"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection
Section "Device"
Identifier "DisplayLinkDevice"
driver "displaylink"
Option "fbdev" "/dev/fb1"
EndSection
Section "Device"
Identifier "Card0"
Driver "radeon"
BusID "PCI:1:0:0"
Screen 0
Option "ZaphodHeads" "DVI-0"
EndSection
Section "Device"
Identifier "Card1"
Driver "radeon"
BusID "PCI:1:0:0"
Screen 1
Option "ZaphodHeads" "DisplayPort-1"
EndSection
Section "Screen"
Identifier "Screen0"
Device "DisplayLinkDevice"
Monitor "Monitor2"
DefaultDepth 16
EndSection
Section "Screen"
Identifier "Screen1"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 16
EndSection
Section "Screen"
Identifier "Screen2"
Device "Card1"
Monitor "Monitor1"
DefaultDepth 16
EndSection