我正在全新安装带有默认 gnome 桌面的 Ubuntu 18.04.2 LTS 桌面。我从“软件和更新”->“附加驱动程序”安装了 nvidia 专有驱动程序 nvidia-driver-390。
桌面启动时,它仅显示在主显示器上。我必须运行
xset dpms force off
强制显示器进入睡眠状态,然后移动鼠标唤醒它们,两个显示器都会变为活动状态。但是,其中一个显示器以非常低的分辨率(640x480)运行,而另一个则以全分辨率(1920x1200)运行。这是 Nvidia X 设置的屏幕截图。 Nvidia X 设置
第一台显示器被检测为“NVIDIA”,分辨率为 640x480(分辨率下仅有的选项是关闭、自动和 640x480)。第二台显示器被正确检测为“DELL U2415”,分辨率为 1920x1200。以下是 xrandr 命令的输出。DP-0.8 是菊花链中的第一台显示器,DP-0.1 是第二台。我已在第一台显示器上启用了 displayport 1.2,并在第二台显示器上禁用了它。
Screen 0: minimum 8 x 8, current 2560 x 1200, maximum 16384 x 16384
DVI-I-0 disconnected (normal left inverted right x axis y axis)
DP-0.1 connected 1920x1200+640+0 (normal left inverted right x axis y axis) 518mm x 324mm
1920x1200 59.95*+ 59.88
1920x1080 60.00 59.94 50.00 29.97 25.00 23.98
1600x1200 60.00
1280x1024 75.02 60.02
1280x720 60.00 59.94 50.00
1152x864 75.00
1024x768 75.03 60.00
800x600 75.00 60.32
720x576 50.00
720x480 59.94
640x480 75.00 59.94 59.93
DP-0.8 connected primary 640x480+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
640x480 59.94*+
DVI-I-1 disconnected (normal left inverted right x axis y axis)
HDMI-0 disconnected (normal left inverted right x axis y axis)
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)
DP-4 disconnected (normal left inverted right x axis y axis)
DP-5 disconnected (normal left inverted right x axis y axis)
DP-0.1.8 disconnected (normal left inverted right x axis y axis)
此时,机器上任何地方都没有 /etc/X11/xorg.conf 文件或 monitors.xml 文件。我从 Nvidia X 设置应用程序保存了 X 配置文件。保存的 /etc/X11/xorg.conf 文件如下。
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 390.77 (buildd@lcy01-amd64-022) Thu Sep 6 07:51:39 UTC 2018
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
Option "Xinerama" "0"
EndSection
Section "Files"
EndSection
Section "Module"
Load "dbe"
Load "extmod"
Load "type1"
Load "freetype"
Load "glx"
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 "NVIDIA"
HorizSync 31.5 - 31.5
VertRefresh 60.0
Option "DPMS"
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce GTX TITAN X"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "Stereo" "0"
Option "nvidiaXineramaInfoOrder" "DFP-2.8"
Option "metamodes" "DP-0.8: nvidia-auto-select +0+0, DP-0.1: nvidia-auto-select +640+0"
Option "SLI" "Off"
Option "MultiGPU" "Off"
Option "BaseMosaic" "off"
SubSection "Display"
Depth 24
EndSubSection
EndSection
我在此 xorg.config 中仅看到一个“监视器”部分。为什么它没有列出第二台监视器?
无论如何,我怎样才能让 nvidia 卡正确检测两个显示器为 Dell U2415 以及 1920x1200 分辨率?
答案1
使用设置面板中的显示设置。
启动 nvidia 服务器设置会重置我的所有显示设置,甚至会使链中第一个工作服务器进入睡眠状态。
我还将 xset 命令放入 .profile 文件中,以便它使我的显示器在登录时进入睡眠状态。
希望这个问题在 20.04 版本中得到修复。
我使用的是 P2000 Quadro 显卡,配有四台 U2515Hc 显示器。您的显卡可能太新了。
希望这有帮助,我还不能发表评论。