NVIDIA-SMI has failed because it couldn‘t communicate with the NVIDIA driver

在ubuntu系统下用了一段时间的Nvidia显卡,某天开机分辨率异常,重启也无法调整
执行: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.

主要原因是内核版本在关机后自动更新了,高版本内核

解决方案:

重新启动进入启动引导页面时,选择Advanced options for Ubuntu选项:

在进入Advanced options for Ubuntu子菜单中选择较低的内核版本回车启动:

我发生问题的时候内核版本是5.4.0-124,选择5.4.0-121进入即可正常启动。

进入之后输入:

uname -a
nvidia-smi

可以查看对应的信息。

NVIDIA-SMI has failed because it couldn‘t communicate with the NVIDIA driver_第1张图片

也可以一劳永逸的修改:

终端执行:

sudo gedit /etc/default/grub

GRUB_DEFAULT=0修改为GRUB_DEFAULT="1> 3"

NVIDIA-SMI has failed because it couldn‘t communicate with the NVIDIA driver_第2张图片

修改后保存退出,执行:

sudo update-grub

再重新启动应该就是默认的内核版本启动。

你可能感兴趣的:(ubuntu,linux)