nvidia-settings 和驱动程序完全坏了

nvidia-settings 和驱动程序完全坏了

今天 Ubuntu 对我不怎么好。我是 Linux 的初学者,但我仍然具备基本知识,并且我知道自己大多数时间在做什么,不会随意按照指南/教程的指示去做。

我不知道这种情况是什么时候发生的,但当我安装 Minecraft 时,我注意到我正在使用集成显卡玩游戏,所以我检查了 NVIDIA X 服务器设置以查看发生了什么。一半的设置都消失了。我不记得是哪个了,但“PRIME 配置文件”仍然在那里,我可以选择按需配置文件、最佳性能或集成显卡(我选择了最佳性能)。跳回 MC,什么都没有改变。再次打开 NVIDIA X 服务器设置,发现除了 PRIME 配置文件之外,所有设置都消失了。嗯。

我尝试安装较旧的驱动程序(460),sudo apt-get purge *nvidia*然后sudo ubuntu-drivers autoinstall修复损坏的包并删除 Monitors.xml 文件。

nvidia-smi吐出NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.。考虑到所有情况,我很确定这是一个驱动程序问题。但我拥有最新最好的版本,甚至尝试降级也没有帮助。BIOS 中的安全启动被禁用。起初我以为 NVIDIA 发布了完全损坏的驱动程序,当我今天某个时候 apt 更新时,它安装并破坏了它。但这不能解释为什么旧驱动程序不起作用。我没有主意了,你呢?

戴尔XPS 15 7590:

CPU: i7-9750H
GPU: GTX 1650
RAM: 16GB
SSD: 512GB NVMe

编辑:好消息(有点)!重启后,nvidia-settings 现在显示以下内容:

ERROR: Unable to find display on any available system


(nvidia-settings:4729): GLib-GObject-CRITICAL **: 22:47:14.758: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
** Message: 22:47:14.761: PRIME: Requires offloading
** Message: 22:47:14.761: PRIME: is it supported? yes
** Message: 22:47:14.789: PRIME: Usage: /usr/bin/prime-select nvidia|intel|on-demand|query
** Message: 22:47:14.789: PRIME: on-demand mode: "1"
** Message: 22:47:14.789: PRIME: is "on-demand" mode supported? yes

ubuntu-drivers 设备:

== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==
modalias : pci:v000010DEd00001F91sv00001028sd00000905bc03sc02i00
vendor   : NVIDIA Corporation
model    : TU117M [GeForce GTX 1650 Mobile / Max-Q]
driver   : nvidia-driver-450-server - distro non-free
driver   : nvidia-driver-460 - distro non-free
driver   : nvidia-driver-418-server - distro non-free
driver   : nvidia-driver-470 - distro non-free recommended
driver   : nvidia-driver-470-server - distro non-free
driver   : nvidia-driver-460-server - distro non-free
driver   : xserver-xorg-video-nouveau - distro free builtin

== /sys/devices/virtual/dmi/id ==
modalias : dmi:bvnDellInc.:bvr1.13.0:bd07/22/2021:br1.13:svnDellInc.:pnXPS157590:pvr:sku0905:rvnDellInc.:rn0VYV0G:rvrA00:cvnDellInc.:ct10:cvr:
driver   : oem-somerville-meta - third-party free

sudo lshw -c 显示:

*-display                 
       description: 3D controller
       product: TU117M [GeForce GTX 1650 Mobile / Max-Q]
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:01:00.0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list rom
       configuration: driver=nouveau latency=0
       resources: irq:165 memory:ec000000-ecffffff memory:c0000000-cfffffff memory:d0000000-d1ffffff ioport:3000(size=128) memory:ed000000-ed07ffff
  *-display
       description: VGA compatible controller
       product: CoffeeLake-H GT2 [UHD Graphics 630]
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       version: 00
       width: 64 bits
       clock: 33MHz
       capabilities: pciexpress msi pm vga_controller bus_master cap_list rom
       configuration: driver=i915 latency=0
       resources: irq:166 memory:eb000000-ebffffff memory:80000000-8fffffff ioport:4000(size=64) memory:c0000-dffff

dpkg -l | grep nvidia-

ii  libnvidia-cfg1-470:amd64                    470.63.01-0ubuntu0.21.04.2                                           amd64        NVIDIA binary OpenGL/GLX configuration library
ii  libnvidia-common-470                        470.63.01-0ubuntu0.21.04.2                                           all          Shared files used by the NVIDIA libraries
ii  libnvidia-compute-470:amd64                 470.63.01-0ubuntu0.21.04.2                                           amd64        NVIDIA libcompute package
ii  libnvidia-compute-470:i386                  470.63.01-0ubuntu0.21.04.2                                           i386         NVIDIA libcompute package
ii  libnvidia-decode-470:amd64                  470.63.01-0ubuntu0.21.04.2                                           amd64        NVIDIA Video Decoding runtime libraries
ii  libnvidia-decode-470:i386                   470.63.01-0ubuntu0.21.04.2                                           i386         NVIDIA Video Decoding runtime libraries
ii  libnvidia-encode-470:amd64                  470.63.01-0ubuntu0.21.04.2                                           amd64        NVENC Video Encoding runtime library
ii  libnvidia-encode-470:i386                   470.63.01-0ubuntu0.21.04.2                                           i386         NVENC Video Encoding runtime library
ii  libnvidia-extra-470:amd64                   470.63.01-0ubuntu0.21.04.2                                           amd64        Extra libraries for the NVIDIA driver
ii  libnvidia-fbc1-470:amd64                    470.63.01-0ubuntu0.21.04.2                                           amd64        NVIDIA OpenGL-based Framebuffer Capture runtime library
ii  libnvidia-fbc1-470:i386                     470.63.01-0ubuntu0.21.04.2                                           i386         NVIDIA OpenGL-based Framebuffer Capture runtime library
ii  libnvidia-gl-470:amd64                      470.63.01-0ubuntu0.21.04.2                                           amd64        NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii  libnvidia-gl-470:i386                       470.63.01-0ubuntu0.21.04.2                                           i386         NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii  libnvidia-ifr1-470:amd64                    470.63.01-0ubuntu0.21.04.2                                           amd64        NVIDIA OpenGL-based Inband Frame Readback runtime library
ii  libnvidia-ifr1-470:i386                     470.63.01-0ubuntu0.21.04.2                                           i386         NVIDIA OpenGL-based Inband Frame Readback runtime library
ii  linux-modules-nvidia-470-5.11.0-34-generic  5.11.0-34.36                                                         amd64        Linux kernel nvidia modules for version 5.11.0-34
ii  linux-modules-nvidia-470-generic-hwe-20.04  5.11.0-34.36                                                         amd64        Extra drivers for nvidia-470 for the generic-hwe-20.04 flavour
ii  linux-objects-nvidia-470-5.11.0-34-generic  5.11.0-34.36                                                         amd64        Linux kernel nvidia modules for version 5.11.0-34 (objects)
ii  linux-signatures-nvidia-5.11.0-34-generic   5.11.0-34.36                                                         amd64        Linux kernel signatures for nvidia modules for version 5.11.0-34-generic
ii  nvidia-compute-utils-470                    470.63.01-0ubuntu0.21.04.2                                           amd64        NVIDIA compute utilities
ii  nvidia-driver-470                           470.63.01-0ubuntu0.21.04.2                                           amd64        NVIDIA driver metapackage
ii  nvidia-kernel-common-470                    470.63.01-0ubuntu0.21.04.2                                           amd64        Shared files used with the kernel module
ii  nvidia-kernel-source-470                    470.63.01-0ubuntu0.21.04.2                                           amd64        NVIDIA kernel source package
ii  nvidia-prime                                0.8.16.1                                                             all          Tools to enable NVIDIA's Prime
ii  nvidia-settings                             470.57.01-0ubuntu0.21.04.1                                           amd64        Tool for configuring the NVIDIA graphics driver
ii  nvidia-utils-470                            470.63.01-0ubuntu0.21.04.2                                           amd64        NVIDIA driver support binaries
ii  screen-resolution-extra                     0.18build2                                                           all          Extension for the nvidia-settings control panel
ii  xserver-xorg-video-nvidia-470               470.63.01-0ubuntu0.21.04.2                                           amd64        NVIDIA binary Xorg driver

相关内容