第二台显示器打开一秒钟,显示 Ubuntu 徽标,然后保持空白

第二台显示器打开一秒钟,显示 Ubuntu 徽标,然后保持空白

我最近刚刚重新安装了 Ubuntu(与 Windows 11 双启动),上次安装时(与 Windows 10 双启动),2 个显示器工作正常,它们甚至在启动时一直打开。但现在安装后,我无法让第二个显示器工作。

问题:它会打开,瞬间显示 Ubuntu 徽标(主显示器不显示徽标),然后变为空白/黑色并保持这种状态。

设置:

  • 主显示器插入 Nvidia GPU(HDMI),第二台显示器插入 Intel GPU(主板上的 HDMI 端口)
  • CPU:I5 10600,主频:Asrock B460M Steel Legend
  • Ubuntu 全新安装,使用 TPM,安全启动已禁用,SGX 已禁用(如果有帮助)
  • GPU 驱动程序:nvidia-driver-470(专有,已测试 - 由于工作,由于内核兼容性,我不能使用其他驱动程序版本,或者至少我认为我不能使用)

一开始,我按照这个指南操作后,根本无法打开第二个指导(抱歉,我无法得到正确的答复)禁用 Nvidia KMS,它就会进入我上面提到的状态。

到目前为止我已经检查过

桑德拉

DVI-D-0 disconnected (normal left inverted right x axis y axis)
HDMI-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 521mm x 293mm
   1920x1080    144.00*+ 120.40   119.98   119.88   100.00    60.00    59.94    50.00    29.97    25.00    23.98  
   1680x1050     59.95  
   1600x1200     60.00  
   1600x900      60.00  
   1440x900      59.89  
   1400x1050     59.98  
   1280x1024     75.02    60.02  
   1280x960      60.00  
   1280x720      60.00    59.94    50.00  
   1024x768      75.03    70.07    60.00  
   800x600       75.00    72.19    60.32    56.25  
   720x576       50.00  
   720x480       59.94  
   640x480       75.00    72.81    59.94    59.93  
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)

英伟达

NVIDIA-SMI 470.82.00    Driver Version: 470.82.00    CUDA Version: 11.4

串行通信

00:00.0 Host bridge: Intel Corporation Device 9b53 (rev 03)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor PCIe Controller (x16) (rev 03)
00:02.0 Display controller: Intel Corporation Device 9bc8 (rev 03)
00:14.0 USB controller: Intel Corporation Device a3af
00:14.2 Signal processing controller: Intel Corporation Device a3b1
00:16.0 Communication controller: Intel Corporation Device a3ba
00:17.0 SATA controller: Intel Corporation Device a382
00:1c.0 PCI bridge: Intel Corporation Device a393 (rev f0)
00:1d.0 PCI bridge: Intel Corporation Device a398 (rev f0)
00:1f.0 ISA bridge: Intel Corporation Device a3c8
00:1f.2 Memory controller: Intel Corporation Device a3a1
00:1f.3 Audio device: Intel Corporation Device a3f0
00:1f.4 SMBus: Intel Corporation Device a3a3
01:00.0 VGA compatible controller: NVIDIA Corporation TU106 [GeForce RTX 2060 SUPER] (rev a1)
01:00.1 Audio device: NVIDIA Corporation TU106 High Definition Audio Controller (rev a1)
01:00.2 USB controller: NVIDIA Corporation TU106 USB 3.1 Host Controller (rev a1)
01:00.3 Serial bus controller [0c80]: NVIDIA Corporation TU106 USB Type-C UCSI Controller (rev a1)
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller (rev 05)
03:00.0 Non-Volatile memory controller: Silicon Motion, Inc. Device 2263 (rev 03)

内核版本

5.11.0-40-generic

显示设置和 nvidia-settings 未检测到第二台显示器 显示设置 nvidia-设置

更多信息:

  • 2 台显示器的分辨率不匹配,一台是现代 FHD,第二台是分辨率较低的旧显示器。
  • 我使用转换器将 HDMI 转换为 VGA,它在 Windows 上运行良好,在之前安装的 Ubuntu 中也是如此

我还测试了其他一些东西,但我的大脑太笨,根本记不住所有的东西,请向我询问更多信息。

附言:我对 Linux 还比较陌生,所以如果我理解您的意思比较慢,请您谅解,谢谢(英语也不是我的主要语言,所以如果语法和所有内容感觉不对,那可能就是原因)。

答案1

好的,如果有人遇到了与我同样的问题,这里有一个可能的解决办法。

我已经完全重新安装了 Ubuntu(20.04.03 LTS,最小安装和第三方驱动程序)。详情:

  1. (BIOS)仔细检查 SecureBoot(我也擦除了密钥),关闭 TPM。启用 SGX
  2. 使用 nomodeset 启动系统(否则我将陷入登录循环,第二个屏幕工作正常而主屏幕只有下划线字符。)
  3. 我将 nvidia 驱动程序从 nouveau 更改为 470(专有,已测试)。暂时不重新启动。
  4. 安装apt-file
sudo apt update
sudo apt install apt-file
sudo apt-file update

作为丢失固件的可能修复(i915 固件 - 在安装过程中,我注意到 Ubuntu 到处都出现这个错误,所以我想我最好检查一下)

  1. 禁用 nvidia KMS
sudo nano /lib/modprobe.d/nvidia-kms.conf
(add this line)options nvidia-drm modeset=0(then save it)
sudo update-initramfs -u
sudo reboot

就是这样,当我正在打字时,第二台显示器已打开并正常工作(我希望它能保持这种状态)。如果再次出现问题,将更新,如果有人有其他修复方法,请随时分享!

相关内容