Xserver 未扩展到第三台显示器

Xserver 未扩展到第三台显示器

我有 2 个 GPU 和 3 个显示器,但 Ubuntu 的 X 服务器只能使用一个 GPU 或另一个 GPU,而不能同时使用。我如何告诉 X 服务器从两个 GPU 组成一个屏幕?我尝试了所有可能的配置,最终得到一个鼠标可以工作的屏幕,但当将鼠标移动到第三个显示器时,光标从指针变为“X”,它不接受移动到其上的窗口并使用黑色背景。我只需要以某种方式告诉 X 服务器第三个显示器也是屏幕的一部分,我该怎么做?

这是我的 X11 配置文件:

niko@desk:~$ cat /etc/X11/xorg.conf
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 361.42  (buildd@lgw01-18)  Tue Apr  5 14:33:28 UTC 2016

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    Screen      1  "Screen1" RightOf "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
#    Option         "Xinerama" "1"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "ViewSonic VA703-3Series"
    HorizSync       30.0 - 82.0
    VertRefresh     50.0 - 85.0
    Option         "DPMS"
EndSection

Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor1"
    VendorName     "Unknown"
    ModelName      "ViewSonic VA703-3Series"
    HorizSync       30.0 - 82.0
    VertRefresh     50.0 - 85.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 8400 GS"
    BusID          "PCI:7:0:0"
EndSection

Section "Device"
    Identifier     "Device1"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 210"
    BusID          "PCI:8:0:0"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-0"
    Option         "metamodes" "VGA-0: nvidia-auto-select +1600+0, DVI-I-1: nvidia-auto-select +0+0"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Screen1"
    Device         "Device1"
    Monitor        "Monitor1"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "CRT-1"
    Option         "metamodes" "nvidia-auto-select +0+0"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

答案1

我已启用 Xinerama ,并在配置中禁用 Composition 扩展,但它不起作用。登录屏幕显示在所有三个监视器上,但现在我遇到了另一个问题,X 会话无法启动。我可以手动启动 X 并从控制台向其输出 xterm ,但仅此而已。我想我应该找到一个专为 Xinerama 设计的窗口管理器。

编辑:Xinerama 与 X 100% 兼容。研究问题后,我发现 GNOME 或 Ubuntu 窗口管理器无法与 Xinerama 配合使用,因为它们使用已禁用的复合扩展。因此,我安装了 Xcfe,现在我拥有了超棒的窗口管理器,它比 Ubuntu 的默认窗口管理器快几倍。

相关内容