After installing nvidia-driver-450
,
$ 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.
$ dkms status
nvidia, 450.66, 5.4.0-48-generic, x86_64: installed
$ dmesg |grep -i nvidia
[ 14.962730] nvidia: loading out-of-tree module taints kernel.
[ 14.962743] nvidia: module license 'NVIDIA' taints kernel.
[ 14.972616] nvidia: module verification failed: signature and/or required key missing - tainting kernel
[ 14.981365] nvidia-nvlink: Nvlink Core is being initialized, major device number 238
[ 14.981946] NVRM: The NVIDIA GeForce GT 820M GPU installed in this system is
NVRM: supported through the NVIDIA 390.xx Legacy drivers. Please
NVRM: visit http://www.nvidia.com/object/unix.html for more
NVRM: information. The 450.66 NVIDIA driver will ignore
[ 14.981948] NVRM: No NVIDIA graphics adapter found!
[ 14.982119] nvidia-nvlink: Unregistered the Nvlink Core, major device number 238
[ 15.084633] nvidia-nvlink: Nvlink Core is being initialized, major device number 238
[ 15.085182] NVRM: The NVIDIA GeForce GT 820M GPU installed in this system is
NVRM: supported through the NVIDIA 390.xx Legacy drivers. Please
NVRM: visit http://www.nvidia.com/object/unix.html for more
NVRM: information. The 450.66 NVIDIA driver will ignore
[ 15.085183] NVRM: No NVIDIA graphics adapter found!
[ 15.085330] nvidia-nvlink: Unregistered the Nvlink Core, major device number 238
[ 41.535885] nvidia-nvlink: Nvlink Core is being initialized, major device number 237
[ 41.536467] NVRM: The NVIDIA GeForce GT 820M GPU installed in this system is
NVRM: supported through the NVIDIA 390.xx Legacy drivers. Please
NVRM: visit http://www.nvidia.com/object/unix.html for more
NVRM: information. The 450.66 NVIDIA driver will ignore
[ 41.536468] NVRM: No NVIDIA graphics adapter found!
[ 41.536633] nvidia-nvlink: Unregistered the Nvlink Core, major device number 237
After uninstalling nvidia-driver by sudo apt-get remove --purge nvidia-*
$ dpkg -l | grep nvidia
rc libnvidia-compute-390:i386 390.138-0ubuntu0.18.04.1 i386 NVIDIA libcompute package
$ ubuntu-drivers devices
== /sys/devices/pci0000:00/0000:00:1c.4/0000:03:00.0 ==
modalias : pci:v000010DEd00001140sv000017AAsd0000380Dbc03sc02i00
vendor : NVIDIA Corporation
model : GF117M [GeForce 610M/710M/810M/820M / GT 620M/625M/630M/720M] (GeForce 820M)
driver : nvidia-340 - distro non-free
driver : nvidia-driver-450 - distro non-free recommended
driver : xserver-xorg-video-nouveau - distro free builtin
Although sudo ubuntu-drivers autoinstall
install nvidia-drive-450
but nvidia-smi
desn’t work.
What’s the solution?