![Nvidia-smi 失败,因为它无法与 Nvidia 驱动程序通信](https://linux22.com/image/930510/Nvidia-smi%20%E5%A4%B1%E8%B4%A5%EF%BC%8C%E5%9B%A0%E4%B8%BA%E5%AE%83%E6%97%A0%E6%B3%95%E4%B8%8E%20Nvidia%20%E9%A9%B1%E5%8A%A8%E7%A8%8B%E5%BA%8F%E9%80%9A%E4%BF%A1.png)
更换 GPU 后,我将我的 ubuntu 升级到了 20.04.1 LTS(升级过程坎坷,无法正常重启等,这是另一个问题)
无论如何,我正在尝试更新 nvidia 驱动程序。但不知何故nvidia-smi
无法与驱动程序通信,并给我错误:
Nvidia-smi has failed because it couldn't communicate with the Nvidia driver
我已完成以下操作:
ubuntu-drivers devices
vendor: NVIDIA Corporation
model: GP102 [GeFOrce GTX 1080 Ti]
....
driver : nvidia-driver-450 -distro non-free recommended
还
lspci -vnn |grep VGA
lscpi : unable to loac libkmod resources error -12
65:00.0 VGA compatible controller [0300]: NVIDIA Corporation Gp102 [GeForce GTS 1080 Ti] [10de:1b06] (rev a1) (prog-iff 00 [VGA Controller]
sudo apt install build-essential liblvnd-dev pkg-config
already the newest version
sudo hwinfo --gfxcard --short
graphics card:
nVidia GP102 [GeForce GTX 1080 Ti]
Primary display adapter: #51
您可以看到卡在那里。但是,当检查“设置”->“关于图形”时,图形显示"llvmpipe (LLVM 10.0.0 256 bitys)
它无法识别该卡。
在软件和更新中,我还可以图形化地看到其他驱动程序
NVIDIA Corporation GP102 [GeForce GTX 1080 Ti]
This device is using the recommended driver
Using NVIDIA driver metapackage from nvidia-driver-450 (proprietary tested
1 proprietary driver in use
因此看起来它已经安装好了。
但是当调用Nvidia X Server时,窗口完全是空的。
我怎样才能让我的机器识别驱动程序和卡?
PS 我也按照 nvidia 论坛的建议做了
grep nvidia /etc/modprobe.d/* /lib/modprobe.d/*
/etc/modprobe.d/blacklist-framebuffer.conf:blacklist nvidiafb
我也这么做了
nvidia-settings
ERROR: NVIDIA driver is not loaded
ERROR: Unable to load info from any available syste,
G_IS_OBJECT (object ) failed