如何使用DisplayLink显示器?

我正在尝试通过DisplayLink USB适配器将外接显示器连接到笔记本电脑。 当我插入USB电缆时,屏幕变为亮绿色。 这显然表明安装了udflib displaylink驱动程序,并检测到USB驱动程序(根据http://libdlo.freedesktop.org/wiki/displaylink-mod )。

我读过的关于如何使用ubuntu配置displaylink的所有说明都涉及手动编辑xorg.conf文件,但看起来Ubuntu 11.04与Unity处理xorg.conf的方式不同。 据我所知,它要么不使用它,要么把它放在不同的位置。

有没有人能够在11.04上运行一个有效的显示器?

这个答案适用于带有ATI radeon显卡的Ubuntu 11.04和Diamond DisplayLink BVU-195 USB显示适配器。

我终于让它适用于三台显示器。 我有一个带有1个DVI和2个DisplayPort输出的ATI radeon卡(但你一次只能使用两个)和1个Diamond DisplayLink BVU 195 USB适配器。

您必须安装displaylink驱动程序。 然后你必须编写自己的xorg.conf文件。

sudo apt-get install xserver-xorg-video-displaylink 

这里有三个关键点。

  1. 我希望能够在显示器之间移动窗口。 这意味着我不能使用xrandr。 相反,我必须启用一个名为Xinerama的东西。 如果使用默认的“xrandr”选项,则只有鼠标光标可以在显示之间移动,而程序则不能。 不是很好用! 所以Xinerama是必需品。

  2. 配置ATI radeon驱动程序时,除非您指定“ZaphodHeads”选项,否则显示将克隆在它使用的两个监视器上。 我卡上的有效选项是“DVI-0”和“DisplayPort-0”或“DisplayPort-1”。

  3. 您必须将所有监视器配置为16位。 如果坚持使用默认的24位,则X服务器崩溃。

  4. 如果在我启动时插入USB监视器,我只会看到空白屏幕。 我必须拔掉电源插头,将其插入,然后仅在USB屏幕变为绿色时登录。

这是我的xorg.conf,它放在/etc/X11/xorg.conf中。 USB displaylink监视器是Screen0,连接到ATI卡的DVI监视器是Screen1,DisplayPort监视器也通过适配器连接到ATI卡是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 

我在拥有英特尔GPU的笔记本电脑上使用Natty。 Xinerama必须关闭,且displaylink必须是主屏幕,否则驱动程序在启动时会被卸载。 英特尔正在推动两个屏幕,而第三个屏幕显示。

我说我得到了“东西”,因为我只有2D(没有Unity),更重要的是,我无法在displaylink屏幕和其他屏幕之间移动鼠标(它被卡在它开始的任何一个)。 我的菜单和所有内容仍在笔记本电脑屏幕上。

如果使用/etc/X11/xorg.conf文件,Natty很好,只是因为大多数情况下它不需要它,因为X现在自动检测很多东西。 这是我的:

 Section "ServerLayout" Identifier "Layout0" Screen "DisplayLinkScreen" Screen "Screen0" LeftOf "Screen0" EndSection Section "Monitor" Identifier "Monitor0" VendorName "Unknown" ModelName "Unknown" HorizSync 28.0 - 73.0 VertRefresh 43.0 - 72.0 Option "DPMS" EndSection Section "Device" Identifier "Device0" Driver "intel" VendorName "onboard" BusID "PCI:00:02:0" EndSection Section "Screen" Identifier "Screen0" Device "Device0" Monitor "Monitor0" DefaultDepth 24 SubSection "Display" Depth 24 EndSubSection EndSection ############### DisplayLink Stuff ############### Section "Device" Identifier "DisplayLinkDevice" driver "displaylink" Option "fbdev" "/dev/fb1" EndSection Section "Monitor" Identifier "DisplayLinkMonitor" EndSection Section "Screen" Identifier "DisplayLinkScreen" Device "DisplayLinkDevice" Monitor "DisplayLinkMonitor" SubSection "Display" Depth 24 Modes "1680x1050" EndSubSection EndSection 

通过在/usr/share/X11/xorg.conf.d放入52-displaylink.conf文件,我可以使DisplayLink连接的监视器正常工作。 但是X仅在DisplayLink连接的监视器上运行。 直接连接的监视器显示所有启动和关闭消息。 我想在可用时使用两个显示器,而在DisplayLink显示器不使用时连接显示器。

我的52-displaylink.conf文件:

 Section "Device" Identifier "DisplayLinkDevice" driver "displaylink" Option "fbdev" "/dev/fb0" # or /dev/fb1 depending on the results of dmesg EndSection Section "Monitor" Identifier "DisplayLinkMonitor" EndSection Section "Screen" Identifier "DisplayLinkScreen" Device "DisplayLinkDevice" Monitor "DisplayLinkMonitor" SubSection "Display" Depth 24
Modes "1920x1080" EndSubSection EndSection

尝试相同,在我看来,Natty至少忽略了/usr/share/X11/xorg.conf.d/中的其他conf.files,例如我的/usr/share/X11/xorg.conf.d/10-monitor。 conf我为displaylink创建了 – 它在10.10上工作。