目标:
使用两个相同的GPU,拥有多显示器扩展显示。
硬件:
- Geforce GTX 970(x2)
- DELL E207WFP显示器(x6)
- Z97-PRO主板
- i5-4690K CPU @3.50GHz
- 24GB内存
软件:
- Ubuntu 16.04.04 LTS
- 4.4.0-116-generic内核
- NVIDIA驱动程序版本384.111
测试流程
1)硬件测试
- 测试每个显示器及其端口。(成功)
- 测试每个Mobo PCI端口,一次一个带GPU和显示器。(成功)
测试每个GPU及其所有显示端口。(成功)
注意:每个GPU都有1个显示器、1个HDMI和2个DVI端口。
- 逐个测试每个端口。(成功)
- 测试所有端口同时显示。(成功)
- 逐个测试所有涉及的电缆。(成功)
2)软件测试
- 测试Ubuntu是否能够在扩展模式下处理1个GPU上的4个显示器。(成功)
- 显示器1:全屏播放高清电影。
- 显示器2:以最高质量设置玩《方舟生存进化》。
- 显示器3:进行活动中的Discord视频通话。
- 显示器4:使用OBS软件渲染游戏和Discord,进行实时流媒体。
测试Nvidia X Server是否能够同时看到两个GPU。 (成功)
注意:默认情况下禁用一个GPU。
尝试我的目标
我尝试了许多xorg.conf文件的配置。 在大多数尝试中最接近成功的是:
- 所有屏幕都可用,显示器上显示拉伸的扩展屏幕保护程序图像。
- 鼠标可以愉快地在屏幕保护程序上穿越所有屏幕。
- 不幸的是,在尝试登录时,我遇到了无限循环登录,重新加载登录屏幕并重新提示登录。
xorg.conf文件:
#xorg.file for 6-screen, 2-GPU setup
###############################################################
# Mouse Configuration options
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection
# Keyboard Configuration options
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection
###############################################################
# Monitor Configuration options
Section "Monitor"
Identifier "Monitor0"
VendorName "Dell, Inc."
ModelName "DELL E207WFP"
HorizSync 30.0 - 83.0
VertRefresh 56.0 - 75.0
EndSection
Section "Monitor"
Identifier "Monitor1"
VendorName "Dell, Inc."
ModelName "DELL E207WFP"
HorizSync 30.0 - 83.0
VertRefresh 56.0 - 75.0
EndSection
Section "Monitor"
Identifier "Monitor2"
VendorName "Dell, Inc."
ModelName "DELL E207WFP"
HorizSync 30.0 - 83.0
VertRefresh 56.0 - 75.0
EndSection
Section "Monitor"
Identifier "Monitor3"
VendorName "Dell, Inc."
ModelName "DELL E207WFP"
HorizSync 30.0 - 83.0
VertRefresh 56.0 - 75.0
EndSection
Section "Monitor"
Identifier "Monitor4"
VendorName "Dell, Inc."
ModelName "DELL E2009W"
HorizSync 30.0 - 83.0
VertRefresh 56.0 - 75.0
EndSection
Section "Monitor"
Identifier "Monitor5"
VendorName "Dell, Inc."
ModelName "DELL E2009W"
HorizSync 30.0 - 83.0
VertRefresh 56.0 - 75.0
EndSection
################################################################
# GPU Configuration options
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce GTX 970"
BusID "PCI:1:0:0"
EndSection
Section "Device"
Identifier "Device1"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce GTX 970"
BusID "PCI:2:0:0"
EndSection
################################################################
# device & monitor bindings configuration options
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
Monitor "Monitor1"
Monitor "Monitor2"
Monitor "Monitor3"
Option "Stereo" "0"
Option "nvidiaXineramaInfoOrder" "DFP-0"
Option "metamodes" "DVI-I-1: nvidia-auto-select +1680+0, HDMI-0: nvidia-auto-select +3360+0, DP-1: nvidia-auto-select +5040+0, DVI-D-0: nvidia-auto-select +0+0"
Option "SLI" "Off"
Option "MultiGPU" "Off"
Option "BaseMosaic" "off"
DefaultDepth 24
SubSection "Display"
Depth 24
EndSubSection
EndSection
Section "Screen"
Identifier "Screen1"
Device "Device1"
Monitor "Monitor4"
Monitor "Monitor5"
Option "Stereo" "0"
Option "metamodes" "DVI-I-1: nvidia-auto-select +1680+1050, DVI-D-0: nvidia-auto-select +3360+1050"
Option "SLI" "Off"
Option "MultiGPU" "Off"
Option "BaseMosaic" "off"
DefaultDepth 24
SubSection "Display"
Depth 24
EndSubSection
EndSection
#############################################################
# Xinerma & Compsite extensions
Section "Extensions"
Option "Composite" "Disable"
EndSection
##############################################################
# Screen bindings configuration options
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 1050
Screen 1 "Screen1" Above "Screen0"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
Option "Xinerama" "1"
EndSection
###########################################################
# Unused section
Section "Files"
EndSection
澄清
这不是一个无限登录循环的问题,无限登录循环只是我的问题症状之一。
有几个无限循环的问题/答案,它们假设您犯了一个错误,并想通过重置为默认值来“修复”问题。以下是几个不适用于我的问题的重置为默认值的“解决方案”:
我不想重置为默认值,并且可以在每次尝试后使系统返回工作状态,使用一个显卡。我想知道如何进一步更改设置/配置,以达到我的目标(避免登录循环)?