Xorg.conf (nvidia) Second Monitor 获取第一个设置

Hen*_*nyH 9 nvidia xorg multiple-monitors drivers

我一直在周末(以及之前的一段时间)尝试使用 Ubuntu 13.10 设置我的韩国 QHD270 和 Benq G2222HDL 显示器。

使用 nouveau 驱动程序安装两个显示器功能都很好。安装 nvidia 驱动程序后,Benq可以工作,但 QHD270 不工作。

现在,经过几天的努力,我设法让 QHD270 在各种博客之后工作,尤其是;这个和我一起学习。现在,不幸的是我的 G2222HDL 不起作用。我通过提供自定义 EDID 修复了 QHD270,我的 xorg.conf 看起来像这样(不包括键盘和鼠标):

Section "ServerLayout"
    Identifier     "Layout0"
    Screen  "Default Screen" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Monitor"
     Identifier "Configured Monitor"
EndSection

Section "Device"
    Identifier     "Configured Video Device"
    Driver         "nvidia"
    Option "CustomEDID" "DFP:/etc/X11/edid-shimian.bin"
EndSection

Section "Screen"
    Identifier "Default Screen"
    Device "Configured Video Device"
    Monitor "Configured Monitor"
EndSection
Run Code Online (Sandbox Code Playgroud)

现在,我试图定义一个新的DeviceMonitorScreen随后ServerLayout加入Screen "Second Screen" RightOf "Default Screen",但这样做后,所以既不监控工作。

希望使用基于 GUI 的工具解决这个问题,我打开了 NVIDIA X 服务器设置,它显示了我当前的布局:

在此处输入图片说明

正如我的打印屏幕所建议的那样,似乎有一些东西正在输出到监视器:

在此处输入图片说明

任何帮助将不胜感激。


的输出xrandr

Screen 0: minimum 8 x 8, current 5120 x 1440, maximum 16384 x 16384
DVI-I-0 disconnected (normal left inverted right x axis y axis)
DVI-I-1 connected primary 2560x1440+0+0 (normal left inverted right x axis y axis) 597mm x 336mm
   2560x1440      60.0*+
HDMI-0 disconnected (normal left inverted right x axis y axis)
DP-0 disconnected (normal left inverted right x axis y axis)
DVI-D-0 connected 2560x1440+2560+0 (normal left inverted right x axis y axis) 597mm x 336mm
   2560x1440      60.0*+
DP-1 disconnected (normal left inverted right x axis y axis)
Run Code Online (Sandbox Code Playgroud)

和我的日志文件的摘录(也许这是相关的?)

[     7.862] (--) NVIDIA(0): Valid display device(s) on GeForce GTX 680 at PCI:2:0:0
[     7.862] (--) NVIDIA(0):     CRT-0
[     7.862] (--) NVIDIA(0):     ACB QHD270 (DFP-0) (boot, connected)
[     7.862] (--) NVIDIA(0):     DFP-1
[     7.862] (--) NVIDIA(0):     DFP-2
[     7.862] (--) NVIDIA(0):     DFP-3
[     7.862] (--) NVIDIA(0):     DFP-4
[     7.862] (--) NVIDIA(0): CRT-0: 400.0 MHz maximum pixel clock
[     7.862] (--) NVIDIA(0): ACB QHD270 (DFP-0): 330.0 MHz maximum pixel clock
[     7.862] (--) NVIDIA(0): ACB QHD270 (DFP-0): Internal Dual Link TMDS
[     7.862] (--) NVIDIA(0): DFP-1: 165.0 MHz maximum pixel clock
[     7.862] (--) NVIDIA(0): DFP-1: Internal Single Link TMDS
[     7.862] (--) NVIDIA(0): DFP-2: 165.0 MHz maximum pixel clock
[     7.862] (--) NVIDIA(0): DFP-2: Internal Single Link TMDS
[     7.862] (--) NVIDIA(0): DFP-3: 330.0 MHz maximum pixel clock
[     7.862] (--) NVIDIA(0): DFP-3: Internal Single Link TMDS
[     7.862] (--) NVIDIA(0): DFP-4: 960.0 MHz maximum pixel clock
[     7.862] (--) NVIDIA(0): DFP-4: Internal DisplayPort
Run Code Online (Sandbox Code Playgroud)

fbo*_*ura 2

您可以尝试使用以下内容xorg.conf。它配置了两个Screen和一个ServerLayout部分来管理它们。

Section "Device"
    Identifier "nvidia0"
    Driver     "nvidia"
    Option     "CustomEDID" "DFP:/etc/X11/edid-shimian.bin"
    Option      "RenderAccel"              "true"
    Option      "UseEdidFreqs"             "true"
    Option      "MetaModes"     "2055x1440,1920x1080;1366x768,1366x768;1024x768,1024x768"
    Screen     0
    BusID      PCI:2:0:0
EndSection

Section "Device"
    Identifier "nvidia1"
    Driver     "nvidia"
    Option      "RenderAccel"              "true"
    Option      "UseEdidFreqs"             "true"
    Option      "MetaModes"     "2055x1440,1920x1080;1366x768,1366x768;1024x768,1024x768"
    Screen     1
    BusID      PCI:2:0:0
EndSection

Section "Monitor"
    Identifier "Monitor0"
    Option     "DPMS"
EndSection

Section "Monitor"
    Identifier "Monitor1"
    Option     "DPMS"
EndSection

Section "Screen"
    Identifier "Screen0"
    Device     "nvidia0"
    Monitor    "Monitor0"
    DefaultDepth  24
    SubSection "Display"
        Depth      24
        Modes      "2055x1440" "1920x1080" "1366x768" "1024x768" 
    EndSubSection
EndSection

Section "Screen"
    Identifier "Screen1"
    Device     "nvidia1"
    Monitor    "Monitor1"
    DefaultDepth  24
    SubSection "Display"
        Depth      24
        Modes      "2055x1440" "1920x1080" "1366x768" "1024x768" 
    EndSubSection
EndSection

Section "ServerLayout"
    Identifier "ServerLayout0"
    Screen     0 "Screen0" 0 0
    Screen     1 "Screen1" RightOf "Screen0"
    InputDevice "Generic Keyboard" "CoreKeyboard"
    InputDevice "Configured Mouse" "CorePointer"
    Option     "Xinerama"
EndSection
Run Code Online (Sandbox Code Playgroud)

我可能遗漏了一些东西,所以你必须测试一下。我使用这里的conf作为参考。

您可以尝试的另一种方法是使用 手动配置监视器xrandr。尽管如此,您将必须配置另一个Monitor部分,甚至第二个Device部分EDID,而不需要 。但命令行是:

$ xrandr --output DVI-I-1 --primary --mode 2560x1440 --output DVI-D-0 --mode 1920x1080 --right-of DVI-I-1
Run Code Online (Sandbox Code Playgroud)

甚至是多行:

$ xrandr --output DVI-I-1 --primary --mode 2560x1440
$ xrandr --output DVI-D-0 --mode 1920x1080 --right-of DVI-I-1
Run Code Online (Sandbox Code Playgroud)

编辑:添加MetaModesDevice部分,并SubSection带有模式到Screen部分。