Nvidia 驱动程序从 525 个显示端口更新不再适用于 GTX 2070

Nvidia 驱动程序从 525 个显示端口更新不再适用于 GTX 2070

问题: 尝试更新我的 nvidia 驱动程序后,我在重启时陷入了持续的黑屏。我能够回到我的桌面,但现在我的显示端口连接/双显示器无法工作。只有我的单台显示器上的 HDMI 可以工作。

背景: 这发生在一天之内。我试图让最新的《铁拳》运行起来,我想我会从 525 更新我的 nvidia 驱动程序。我最初选择了 550,但我错过了这是测试版。最初尝试安装 550 时,我遇到了问题,因此我运行了以下命令:

sudo apt install nvidia-driver-550 --fix-missing

进而

sudo apt install nvidia-driver-550 --fix-broken install

我不记得这个输出到底发生了什么,然后我运行了这个命令:

apt --fix-broken install

通过这 3 个命令,我删除了一些我需要的 Nvidia 依赖项(我认为),并且我在终端中停留了一段时间,甚至无法返回桌面。查看我的日志时,我确实看到了这个错误,但我不知道这是否是主要错误。

RmInitAdapter
rm_init_adapter failed
nvidia-drm Failed to allocate NvKMsKapiDevice

从这里的其他帖子和 nvidia 的表单来看,我最终清除了所有 Nvidia 驱动程序,断开了我的 gpu 连接,并且能够通过 HDMI 从主板进入我的桌面。使用软件和更新 > 附加驱动程序,我重新安装了多个版本,因为我一直在尝试修复我的问题,但我已经没有主意了。我安装了这 3 个版本:nvidia 驱动程序元包 nvidia-525、535,现在我使用的是 545。

日志/配置信息: 操作系统:Ubuntu 22.04,GNOME 内核:6.5.0-15-generic(并在 6.5.0-14-generic 上尝试过)

nvidia-smi

+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 545.29.06              Driver Version: 545.29.06    CUDA Version: 12.3     |
|-----------------------------------------+----------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |         Memory-Usage | GPU-Util  Compute M. |
|                                         |                      |               MIG M. |
|=========================================+======================+======================|
|   0  NVIDIA GeForce RTX 2070        Off | 00000000:01:00.0  On |                  N/A |
|  0%   38C    P8               3W / 175W |    496MiB /  8192MiB |      3%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+
                                                                                         
+---------------------------------------------------------------------------------------+
| Processes:                                                                            |
|  GPU   GI   CI        PID   Type   Process name                            GPU Memory |
|        ID   ID                                                             Usage      |
|=======================================================================================|
|    0   N/A  N/A      1490      G   /usr/lib/xorg/Xorg                          143MiB |
|    0   N/A  N/A      1755      G   /usr/bin/gnome-shell                         70MiB |
|    0   N/A  N/A      3049      G   ...irefox/3728/usr/lib/firefox/firefox      187MiB |
|    0   N/A  N/A      4054      G   ...39692028,3432445436170888676,131072       52MiB |
|    0   N/A  N/A      5373      G   ...,WinRetrieveSuggestionsOnlyOnDemand       36MiB |
+---------------------------------------------------------------------------------------+
dpkg -l | grep nvidia
rc  glx-alternative-nvidia                            1.2.1~deb11u1                                    amd64        allows the selection of NVIDIA as GLX provider
ii  libnvidia-cfg1-545:amd64                          545.29.06-0ubuntu0.22.04.2                       amd64        NVIDIA binary OpenGL/GLX configuration library
ii  libnvidia-common-545                              545.29.06-0ubuntu0.22.04.2                       all          Shared files used by the NVIDIA libraries
rc  libnvidia-compute-450-server:amd64                450.248.02-0ubuntu0.22.04.1                      amd64        NVIDIA libcompute package
rc  libnvidia-compute-470-server:amd64                470.223.02-0ubuntu0.22.04.1                      amd64        NVIDIA libcompute package
rc  libnvidia-compute-510:amd64                       510.73.05-0ubuntu0.22.04.1                       amd64        NVIDIA libcompute package
rc  libnvidia-compute-525:amd64                       525.147.05-0ubuntu0.22.04.1                      amd64        NVIDIA libcompute package
rc  libnvidia-compute-535:amd64                       535.154.05-0ubuntu0.22.04.1                      amd64        NVIDIA libcompute package
ii  libnvidia-compute-545:amd64                       545.29.06-0ubuntu0.22.04.2                       amd64        NVIDIA libcompute package
ii  libnvidia-compute-545:i386                        545.29.06-0ubuntu0.22.04.2                       i386         NVIDIA libcompute package
ii  libnvidia-decode-545:amd64                        545.29.06-0ubuntu0.22.04.2                       amd64        NVIDIA Video Decoding runtime libraries
ii  libnvidia-decode-545:i386                         545.29.06-0ubuntu0.22.04.2                       i386         NVIDIA Video Decoding runtime libraries
ii  libnvidia-egl-wayland1:amd64                      1:1.1.9-1.1                                      amd64        Wayland EGL External Platform library -- shared library
ii  libnvidia-eglcore:i386                            515.48.07-1                                      i386         NVIDIA binary EGL core libraries
ii  libnvidia-encode-545:amd64                        545.29.06-0ubuntu0.22.04.2                       amd64        NVENC Video Encoding runtime library
ii  libnvidia-encode-545:i386                         545.29.06-0ubuntu0.22.04.2                       i386         NVENC Video Encoding runtime library
ii  libnvidia-extra-545:amd64                         545.29.06-0ubuntu0.22.04.2                       amd64        Extra libraries for the NVIDIA driver
ii  libnvidia-fbc1-545:amd64                          545.29.06-0ubuntu0.22.04.2                       amd64        NVIDIA OpenGL-based Framebuffer Capture runtime library
ii  libnvidia-fbc1-545:i386                           545.29.06-0ubuntu0.22.04.2                       i386         NVIDIA OpenGL-based Framebuffer Capture runtime library
ii  libnvidia-gl-545:amd64                            545.29.06-0ubuntu0.22.04.2                       amd64        NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii  libnvidia-gl-545:i386                             545.29.06-0ubuntu0.22.04.2                       i386         NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii  linux-objects-nvidia-525-open-6.5.0-15-generic    6.5.0-15.15~22.04.1+1                            amd64        Linux kernel nvidia modules for version 6.5.0-15 (objects)
ii  linux-objects-nvidia-525-open-6.5.0-15-lowlatency 6.5.0-15.15.1.1~22.04.1+1                        amd64        Linux kernel nvidia modules for version 6.5.0-15 (objects)
rc  nvidia-compute-utils-450-server                   450.248.02-0ubuntu0.22.04.1                      amd64        NVIDIA compute utilities
rc  nvidia-compute-utils-470-server                   470.223.02-0ubuntu0.22.04.1                      amd64        NVIDIA compute utilities
rc  nvidia-compute-utils-525                          525.147.05-0ubuntu0.22.04.1                      amd64        NVIDIA compute utilities
rc  nvidia-compute-utils-535                          535.154.05-0ubuntu0.22.04.1                      amd64        NVIDIA compute utilities
ii  nvidia-compute-utils-545                          545.29.06-0ubuntu0.22.04.2                       amd64        NVIDIA compute utilities
rc  nvidia-dkms-450-server                            450.248.02-0ubuntu0.22.04.1                      amd64        NVIDIA DKMS package
rc  nvidia-dkms-470-server                            470.223.02-0ubuntu0.22.04.1                      amd64        NVIDIA DKMS package
rc  nvidia-dkms-525                                   525.147.05-0ubuntu0.22.04.1                      amd64        NVIDIA DKMS package
rc  nvidia-dkms-525-open                              525.147.05-0ubuntu0.22.04.1                      amd64        NVIDIA DKMS package (open kernel module)
rc  nvidia-dkms-535                                   535.154.05-0ubuntu0.22.04.1                      amd64        NVIDIA DKMS package
rc  nvidia-dkms-535-open                              535.154.05-0ubuntu0.22.04.1                      amd64        NVIDIA DKMS package (open kernel module)
ii  nvidia-dkms-545                                   545.29.06-0ubuntu0.22.04.2                       amd64        NVIDIA DKMS package
ii  nvidia-driver-545                                 545.29.06-0ubuntu0.22.04.2                       amd64        NVIDIA driver metapackage
ii  nvidia-firmware-545-545.29.06                     545.29.06-0ubuntu0.22.04.2                       amd64        Firmware files used by the kernel module
rc  nvidia-kernel-common-450-server                   450.248.02-0ubuntu0.22.04.1                      amd64        Shared files used with the kernel module
rc  nvidia-kernel-common-470-server                   470.223.02-0ubuntu0.22.04.1                      amd64        Shared files used with the kernel module
rc  nvidia-kernel-common-525                          525.147.05-0ubuntu0.22.04.1                      amd64        Shared files used with the kernel module
rc  nvidia-kernel-common-535                          535.154.05-0ubuntu0.22.04.1                      amd64        Shared files used with the kernel module
ii  nvidia-kernel-common-545                          545.29.06-0ubuntu0.22.04.2                       amd64        Shared files used with the kernel module
ii  nvidia-kernel-source-545                          545.29.06-0ubuntu0.22.04.2                       amd64        NVIDIA kernel source package
ii  nvidia-prime                                      0.8.17.1                                         all          Tools to enable NVIDIA's Prime
ii  nvidia-settings                                   510.47.03-0ubuntu1                               amd64        Tool for configuring the NVIDIA graphics driver
ii  nvidia-utils-545                                  545.29.06-0ubuntu0.22.04.2                       amd64        NVIDIA driver support binaries
ii  screen-resolution-extra                           0.18.2                                           all          Extension for the nvidia-settings control panel
ii  xserver-xorg-video-nvidia-545                     545.29.06-0ubuntu0.22.04.2                       amd64        NVIDIA binary Xorg driver

Nvidia 设置确实通过 HDMI 显示我的一台显示器,但没有通过显示端口显示我的其他显示器。我现在不知道该怎么做才能让我的显示端口正常工作,并使双显示器再次工作。

谢谢您的帮助。

编辑1 我改用了内核 5.15,因为我没有意识到 6.5 需要 gcc-12。然后我再次重新清除了 nvidia 驱动程序,并使用 gcc-11 重新安装了 nvidia-driver-525,但仍然没有成功。我尝试使用 gcc-12 回到 6.5,并尝试使用 545,但仍然没有成功。但我让事情变得更糟,因为在 5.15 上运行时,nvidia-smi 不再起作用,出现此错误,我无法再在 6.5 中进入我的桌面。

Failed to initialize NVML: Driver/library version mismatch

以下是更新后的 grep 搜索

dpkg -l | grep nvidia
rc  glx-alternative-nvidia                            1.2.1~deb11u1                                    amd64        allows the selection of NVIDIA as GLX provider
ii  libnvidia-cfg1-525:amd64                          525.147.05-0ubuntu0.22.04.1                      amd64        NVIDIA binary OpenGL/GLX configuration library
ii  libnvidia-common-525                              525.147.05-0ubuntu0.22.04.1                      all          Shared files used by the NVIDIA libraries
rc  libnvidia-compute-450-server:amd64                450.248.02-0ubuntu0.22.04.1                      amd64        NVIDIA libcompute package
rc  libnvidia-compute-470-server:amd64                470.223.02-0ubuntu0.22.04.1                      amd64        NVIDIA libcompute package
rc  libnvidia-compute-510:amd64                       510.73.05-0ubuntu0.22.04.1                       amd64        NVIDIA libcompute package
ii  libnvidia-compute-525:amd64                       525.147.05-0ubuntu0.22.04.1                      amd64        NVIDIA libcompute package
ii  libnvidia-compute-525:i386                        525.147.05-0ubuntu0.22.04.1                      i386         NVIDIA libcompute package
rc  libnvidia-compute-535:amd64                       535.154.05-0ubuntu0.22.04.1                      amd64        NVIDIA libcompute package
rc  libnvidia-compute-545:amd64                       545.29.06-0ubuntu0.22.04.2                       amd64        NVIDIA libcompute package
ii  libnvidia-decode-525:amd64                        525.147.05-0ubuntu0.22.04.1                      amd64        NVIDIA Video Decoding runtime libraries
ii  libnvidia-decode-525:i386                         525.147.05-0ubuntu0.22.04.1                      i386         NVIDIA Video Decoding runtime libraries
ii  libnvidia-egl-wayland1:amd64                      1:1.1.9-1.1                                      amd64        Wayland EGL External Platform library -- shared library
ii  libnvidia-eglcore:i386                            515.48.07-1                                      i386         NVIDIA binary EGL core libraries
ii  libnvidia-encode-525:amd64                        525.147.05-0ubuntu0.22.04.1                      amd64        NVENC Video Encoding runtime library
ii  libnvidia-encode-525:i386                         525.147.05-0ubuntu0.22.04.1                      i386         NVENC Video Encoding runtime library
ii  libnvidia-extra-525:amd64                         525.147.05-0ubuntu0.22.04.1                      amd64        Extra libraries for the NVIDIA driver
ii  libnvidia-fbc1-525:amd64                          525.147.05-0ubuntu0.22.04.1                      amd64        NVIDIA OpenGL-based Framebuffer Capture runtime library
ii  libnvidia-fbc1-525:i386                           525.147.05-0ubuntu0.22.04.1                      i386         NVIDIA OpenGL-based Framebuffer Capture runtime library
ii  libnvidia-gl-525:amd64                            525.147.05-0ubuntu0.22.04.1                      amd64        NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii  libnvidia-gl-525:i386                             525.147.05-0ubuntu0.22.04.1                      i386         NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii  linux-objects-nvidia-525-open-6.5.0-15-generic    6.5.0-15.15~22.04.1+1                            amd64        Linux kernel nvidia modules for version 6.5.0-15 (objects)
ii  linux-objects-nvidia-525-open-6.5.0-15-lowlatency 6.5.0-15.15.1.1~22.04.1+1                        amd64        Linux kernel nvidia modules for version 6.5.0-15 (objects)
rc  nvidia-compute-utils-450-server                   450.248.02-0ubuntu0.22.04.1                      amd64        NVIDIA compute utilities
rc  nvidia-compute-utils-470-server                   470.223.02-0ubuntu0.22.04.1                      amd64        NVIDIA compute utilities
ii  nvidia-compute-utils-525                          525.147.05-0ubuntu0.22.04.1                      amd64        NVIDIA compute utilities
rc  nvidia-compute-utils-535                          535.154.05-0ubuntu0.22.04.1                      amd64        NVIDIA compute utilities
rc  nvidia-compute-utils-545                          545.29.06-0ubuntu0.22.04.2                       amd64        NVIDIA compute utilities
rc  nvidia-dkms-450-server                            450.248.02-0ubuntu0.22.04.1                      amd64        NVIDIA DKMS package
rc  nvidia-dkms-470-server                            470.223.02-0ubuntu0.22.04.1                      amd64        NVIDIA DKMS package
ii  nvidia-dkms-525                                   525.147.05-0ubuntu0.22.04.1                      amd64        NVIDIA DKMS package
rc  nvidia-dkms-525-open                              525.147.05-0ubuntu0.22.04.1                      amd64        NVIDIA DKMS package (open kernel module)
rc  nvidia-dkms-535                                   535.154.05-0ubuntu0.22.04.1                      amd64        NVIDIA DKMS package
rc  nvidia-dkms-535-open                              535.154.05-0ubuntu0.22.04.1                      amd64        NVIDIA DKMS package (open kernel module)
rc  nvidia-dkms-545                                   545.29.06-0ubuntu0.22.04.2                       amd64        NVIDIA DKMS package
ii  nvidia-driver-525                                 525.147.05-0ubuntu0.22.04.1                      amd64        NVIDIA driver metapackage
rc  nvidia-fabricmanager-535                          535.154.05-0ubuntu0.22.04.1                      amd64        Fabric Manager for NVSwitch based systems.
rc  nvidia-kernel-common-450-server                   450.248.02-0ubuntu0.22.04.1                      amd64        Shared files used with the kernel module
rc  nvidia-kernel-common-470-server                   470.223.02-0ubuntu0.22.04.1                      amd64        Shared files used with the kernel module
ii  nvidia-kernel-common-525                          525.147.05-0ubuntu0.22.04.1                      amd64        Shared files used with the kernel module
rc  nvidia-kernel-common-535                          535.154.05-0ubuntu0.22.04.1                      amd64        Shared files used with the kernel module
rc  nvidia-kernel-common-545                          545.29.06-0ubuntu0.22.04.2                       amd64        Shared files used with the kernel module
ii  nvidia-kernel-source-525                          525.147.05-0ubuntu0.22.04.1                      amd64        NVIDIA kernel source package
ii  nvidia-prime                                      0.8.17.1                                         all          Tools to enable NVIDIA's Prime
ii  nvidia-settings                                   510.47.03-0ubuntu1                               amd64        Tool for configuring the NVIDIA graphics driver
ii  nvidia-utils-525                                  525.147.05-0ubuntu0.22.04.1                      amd64        NVIDIA driver support binaries
ii  screen-resolution-extra                           0.18.2                                           all          Extension for the nvidia-settings control panel
ii  xserver-xorg-video-nvidia-525                     525.147.05-0ubuntu0.22.04.1                      amd64        NVIDIA binary Xorg driver

我不知道现在我应该做什么才能让 6.5 或 5.15 正常工作。

答案1

在将版本的所有功能更改为与 6.5、535 和 gcc-12 兼容后,我能够通过拔掉所有东西(包括长时间的电源)来使显示端口重新工作。之后,我打开电脑,然后插入显示端口,然后插入显示器的电源。此时它就可以再次工作了。

感谢您让我了解 gcc-12 6.5 和全新安装。如果没有它,我将无法让它工作。

相关内容