我运行的是 Ubuntu 16.04,使用的是专有的 NVidia 驱动程序(版本 367.27)。我有两张显卡(一对 EVGA Titan X)和两台 4K 显示器(均为 Dell P2715Q)。显示器连接到“第一个”Titan X 上的两个 DVI 端口(第一个表示 PCI 插槽 1:0:0 或最靠近 CPU 的插槽,在本例中它们都相同)。
我注意到一些图形撕裂,并将其追溯到不匹配的刷新率。xrandr
显示一个显示器使用 30Hz,另一个显示器使用 60Hz。
当我尝试通过 NVidia X 服务器设置应用程序进行配置时,我最终得到了搞乱了 X 配置(见下文) - 第二个显示器没有任何图像,并且应用程序在主显示器上显得奇怪且拉伸。
我可以采取什么步骤来使两个显示器具有相同的刷新率?
这是否需要为每个监视器添加自定义显示和监视器部分?
xorg.conf
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 367.18 (buildd@lgw01-52) Thu May 19 23:33:33 UTC 2016
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
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 "DELL P2715Q"
HorizSync 31.0 - 140.0
VertRefresh 29.0 - 75.0
Option "DPMS"
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce GTX TITAN X"
BusID "PCI:1:0:0"
EndSection
Section "Screen"
# Removed Option "metamodes" "DP-0: 3840x2160_60 +0+0, DP-2: 3840x2160_60 +3840+0"
# Removed Option "SLI" "On"
# Removed Option "metamodes" "DP-0: nvidia-auto-select +0+0, DP-2: nvidia-auto-select +3840+0"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "Stereo" "0"
Option "nvidiaXineramaInfoOrder" "DFP-2"
Option "metamodes" "nvidia-auto-select +0+0"
Option "SLI" "AUTO"
Option "MultiGPU" "Off"
Option "BaseMosaic" "off"
SubSection "Display"
Depth 24
EndSubSection
EndSection
答案1
我能够使用与 Arch Wiki 上发布的第二个示例类似的方法来解决这个问题NVidia 卡 - TwinView。
每个显示器都插入单独的显卡,并且我已启用 SLI Mosaic 模式。我还暂时将刷新率强制为 60 Hz,但可能会取消注释并使用一个范围来查看是否有效。
我在/usr/share/X11/xorg.conf.d
命名中创建了一个新的文件99-custom.conf
,它看起来像:
Section "Device"
Identifier "Card A"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce GTX TITAN X"
BusID "PCI:1:00:0"
EndSection
Section "Device"
Identifier "Card B"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce GTX TITAN X"
BusID "PCI:2:00:0"
EndSection
Section "Monitor"
# HorizSync source: edid, VertRefresh source: edid
Identifier "Left Monitor"
VendorName "Unknown"
ModelName "DELL P2715Q"
HorizSync 31.0 - 140.0
VertRefresh 60.0 - 60.0
## Original Vertical Refresh rate
#VertRefresh 29.0 - 75.0
Option "DPMS"
EndSection
Section "Monitor"
# HorizSync source: edid, VertRefresh source: edid
Identifier "Right Monitor"
VendorName "Unknown"
ModelName "DELL P2715Q"
HorizSync 31.0 - 140.0
VertRefresh 60.0 - 60.0
## Original Vertical Refresh rate
#VertRefresh 29.0 - 75.0
Option "DPMS"
EndSection
Section "Screen"
Identifier "Left Screen"
Device "Card A"
Monitor "Left Monitor"
DefaultDepth 24
Option "Stereo" "0"
Option "SLI" "Mosaic"
Option "BaseMosaic" "True"
Option "metamodes" "GPU-0.DP-0: 3840x2160_60 +0+0, GPU-1.DP-0: 3840x2160_60 +3840+0"
SubSection "Display"
Depth 24
EndSubSection
EndSection
Section "Screen"
Identifier "Right Screen"
Device "Card A"
Monitor "Right Monitor"
DefaultDepth 24
Option "Stereo" "0"
Option "SLI" "Mosaic"
Option "BaseMosaic" "True"
Option "metamodes" "GPU-0.DP-0: 3840x2160_60 +0+0, GPU-1.DP-0: 3840x2160_60 +3840+0"
SubSection "Display"
Depth 24
EndSubSection
EndSection
Section "ServerLayout"
Identifier "Default"
Screen 0 "Left Screen" 0 0
Option "Xinerama" "0"
EndSection