如何使用 DisplayLink 显示器?

Jea*_*pek 9 display xorg 11.04

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

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

有没有人能够让 displaylink 供电的显示器在 11.04 上工作?

Ste*_*nov 5

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

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

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

sudo apt-get install xserver-xorg-video-displaylink
Run Code Online (Sandbox Code Playgroud)

这里有三个关键点。

  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,通过适配器与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
Run Code Online (Sandbox Code Playgroud)


小智 1

我在配备 Intel 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
Run Code Online (Sandbox Code Playgroud)


小智 0

尝试了同样的操作,在我看来,Natty 至少忽略了 /usr/share/X11/xorg.conf.d/ 中的其他conf.文件,例如我的 /usr/share/X11/xorg.conf.d/10-monitor。我为 displaylink 创建的 config.conf - 它在 10.10 上运行。