我安装的 nvidia-440 驱动程序(我的系统推荐的驱动程序)似乎运行正常,但我的系统拒绝实际跑步它。我使用它安装了它sudo ubuntu-drivers autoinstall
并且一切都检查无误。
$ prime-select query
nvidia
$ sudo apt list --installed | grep "nvidia*"
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
libnvidia-cfg1-440/focal-updates,focal-security,now 440.100-0ubuntu0.20.04.1 amd64 [installed,automatic]
libnvidia-common-440/focal-updates,focal-updates,focal-security,focal-security,now 440.100-0ubuntu0.20.04.1 all [installed,automatic]
libnvidia-compute-440/focal-updates,focal-security,now 440.100-0ubuntu0.20.04.1 amd64 [installed,automatic]
libnvidia-compute-440/focal-updates,focal-security,now 440.100-0ubuntu0.20.04.1 i386 [installed,automatic]
libnvidia-container-tools/now 1.1.1-1 amd64 [installed,local]
libnvidia-container1/now 1.1.1-1 amd64 [installed,local]
libnvidia-decode-440/focal-updates,focal-security,now 440.100-0ubuntu0.20.04.1 amd64 [installed,automatic]
libnvidia-decode-440/focal-updates,focal-security,now 440.100-0ubuntu0.20.04.1 i386 [installed,automatic]
libnvidia-encode-440/focal-updates,focal-security,now 440.100-0ubuntu0.20.04.1 amd64 [installed,automatic]
libnvidia-encode-440/focal-updates,focal-security,now 440.100-0ubuntu0.20.04.1 i386 [installed,automatic]
libnvidia-extra-440/focal-updates,focal-security,now 440.100-0ubuntu0.20.04.1 amd64 [installed,automatic]
libnvidia-fbc1-440/focal-updates,focal-security,now 440.100-0ubuntu0.20.04.1 amd64 [installed,automatic]
libnvidia-fbc1-440/focal-updates,focal-security,now 440.100-0ubuntu0.20.04.1 i386 [installed,automatic]
libnvidia-gl-440/focal-updates,focal-security,now 440.100-0ubuntu0.20.04.1 amd64 [installed,automatic]
libnvidia-gl-440/focal-updates,focal-security,now 440.100-0ubuntu0.20.04.1 i386 [installed,automatic]
libnvidia-ifr1-440/focal-updates,focal-security,now 440.100-0ubuntu0.20.04.1 amd64 [installed,automatic]
libnvidia-ifr1-440/focal-updates,focal-security,now 440.100-0ubuntu0.20.04.1 i386 [installed,automatic]
nvidia-compute-utils-440/focal-updates,focal-security,now 440.100-0ubuntu0.20.04.1 amd64 [installed,automatic]
nvidia-dkms-440/focal-updates,focal-security,now 440.100-0ubuntu0.20.04.1 amd64 [installed,automatic]
nvidia-driver-440/focal-updates,focal-security,now 440.100-0ubuntu0.20.04.1 amd64 [installed]
nvidia-kernel-common-440/focal-updates,focal-security,now 440.100-0ubuntu0.20.04.1 amd64 [installed,automatic]
nvidia-kernel-source-440/focal-updates,focal-security,now 440.100-0ubuntu0.20.04.1 amd64 [installed,automatic]
nvidia-prime/focal,focal,now 0.8.14 all [installed,automatic]
nvidia-settings/focal,now 440.64-0ubuntu1 amd64 [installed]
nvidia-utils-440/focal-updates,focal-security,now 440.100-0ubuntu0.20.04.1 amd64 [installed,automatic]
xserver-xorg-video-nvidia-440/focal-updates,focal-security,now 440.100-0ubuntu0.20.04.1 amd64 [installed,automatic]
这是我的特定系统设备:
$ sudo ubuntu-drivers devices
== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==
modalias : pci:v000010DEd00001CBAsv00001028sd00000831bc03sc00i00
vendor : NVIDIA Corporation
model : GP107GLM [Quadro P2000 Mobile]
driver : nvidia-driver-390 - distro non-free
driver : nvidia-driver-435 - distro non-free
driver : nvidia-driver-440 - distro non-free recommended
driver : xserver-xorg-video-nouveau - distro free builtin
但当我检查时,我看到的是这样的:
$ 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.
$ inxi -G
Graphics:
Device-1: Intel driver: i915 v: kernel
Device-2: NVIDIA GP107GLM [Quadro P2000 Mobile] driver: N/A
Display: x11 server: X.Org 1.20.8 driver: fbdev unloaded: modesetting,vesa
resolution: 1920x1080~60Hz
OpenGL: renderer: Mesa Intel UHD Graphics P630 (CFL GT2)
v: 4.6 Mesa 20.0.8
$ nvidia-settings
ERROR: NVIDIA driver is not loaded
ERROR: Unable to load info from any available system
(nvidia-settings:14641): GLib-GObject-CRITICAL **: 11:56:30.855: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
** Message: 11:56:30.858: PRIME: Requires offloading
** Message: 11:56:30.858: PRIME: is it supported? yes
** Message: 11:56:30.879: PRIME: Usage: /usr/bin/prime-select nvidia|intel|on-demand|query
** Message: 11:56:30.879: PRIME: on-demand mode: "1"
** Message: 11:56:30.879: PRIME: is "on-demand" mode supported? yes
我的计算机似乎仍在使用我的英特尔卡:
$ lspci -vnnn | perl -lne 'print if /^\d+\:.+(\[\S+\:\S+\])/' | grep VGA
00:02.0 VGA compatible controller [0300]: Intel Corporation Device [8086:3e94] (prog-if 00 [VGA controller])
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GP107GLM [Quadro P2000 Mobile] [10de:1cba] (rev a1) (prog-if 00 [VGA controller])
我已经编辑了 grub,禁用了 nouveau 和 wayland,几乎做了我能想到的所有事情。你能帮助我吗?