双 GPU,双显示器:第二台显示器为黑色,带有鼠标阴影

双 GPU,双显示器:第二台显示器为黑色,带有鼠标阴影

我在 Ubuntu 16.04 上将两个显示器连接到我的每台 GTX 980 Ti。NVIDIA X Server 设置成功检测到两个显示器和两个屏幕,其中屏幕 1 的绝对位置设置为 +1920+0。

这是我的 xorg.conf 文件:

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 375.20  (buildd@lcy01-26)  Sat Nov 19 12:38:43 UTC 2016

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    Screen      1  "Screen1" RightOf "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"
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 VX2433wm"
    HorizSync       24.0 - 82.0
    VertRefresh     50.0 - 75.0
    Option         "DPMS"
EndSection

Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor1"
    VendorName     "Unknown"
    ModelName      "ViewSonic VP2365WB"
    HorizSync       24.0 - 82.0
    VertRefresh     50.0 - 75.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 980 Ti"
    BusID          "PCI:1:0:0"
EndSection

Section "Device"
    Identifier     "Device1"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 980 Ti"
    BusID          "PCI:2:0:0"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-0"
    Option         "metamodes" "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" "DFP-0"
    Option         "metamodes" "nvidia-auto-select +0+0"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

但是,我的第二台显示器(显示器 1、屏幕 1)是空白的(黑色)。但奇怪的是:我可以将鼠标移到第二台屏幕上,然后我会看到一个黑色十字,鼠标所在的位置有白色边界。我在第二个屏幕上看不到任何其他东西(全黑),也无法将窗口拖到上面。

以下是运行的输出:sudo lshw -c video

*-display               
       description: VGA compatible controller
       product: GM200 [GeForce GTX 980 Ti]
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:01:00.0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
       configuration: driver=nvidia latency=0
       resources: irq:135 memory:de000000-deffffff memory:c0000000-cfffffff memory:d0000000-d1ffffff ioport:e000(size=128) memory:df000000-df07ffff
  *-display
       description: VGA compatible controller
       product: GM200 [GeForce GTX 980 Ti]
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:02:00.0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
       configuration: driver=nvidia latency=0
       resources: irq:136 memory:dc000000-dcffffff memory:a0000000-afffffff memory:b0000000-b1ffffff ioport:d000(size=128) memory:dd000000-dd07ffff

我尝试过使用 xorg.conf 以及 NVIDIA X 服务器设置,但到目前为止没有任何效果,我的第二台显示器仍然空白。当我从 14.04 升级到 16.04 时出现了这个问题。我安装了双操作系统,带有 Windows,第二台显示器在我的另一个操作系统上正常。

答案1

经过几天的麻烦,我终于找到了解决方案,或者可能只是一种解决方法:除非您在 nvidia 设置中启用 Xinerama,否则多显示器设置将无法工作。

要做到这一点:

  • 打开终端,写入sudo nvidia-settings

  • 在 X 服务器显示配置中,启用 Xinerama

  • 保存到 X 配置文件(您可能希望在此步骤之前创建 xorf.conf 文件的备份)。关闭设置窗口。

  • 在终端中运行sudo service lightdm restart

相关内容