Xorg.conf(nvidia)第二台显示器获取第一台显示器的设置

Xorg.conf(nvidia)第二台显示器获取第一台显示器的设置

我花了整个周末(以及之前的一些时间)尝试使用 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

现在,我尝试定义一个新的DeviceMonitor然后Screen添加,但这样做之后两个监视器ServerLayoutScreen "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)

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

[     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

答案1

您可以尝试使用以下内容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

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

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

$ xrandr --output DVI-I-1 --primary --mode 2560x1440 --output DVI-D-0 --mode 1920x1080 --right-of DVI-I-1

或甚至在多行中:

$ xrandr --output DVI-I-1 --primary --mode 2560x1440
$ xrandr --output DVI-D-0 --mode 1920x1080 --right-of DVI-I-1

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

相关内容