Ubuntu 长时间正常工作,但是重启后显卡工作异常执行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.
一、问题原因
主要是由于系统自动更新了内核,新内核的版本与显卡驱动不匹配导致,显卡驱动运行不正常
二、解决方法
(1)安装系统后最好先将自动更新关闭
如果显卡已经不能正常工作,进行如下操作
(2)grep menuentry /boot/grub/grub.cfg
查看目前系统的所有内核版本
将系统启动项更改为最开始的版本即可
(3)sudo gedit /etc/default/grub
4、sudo update-grub
4、reboot
重启后应该可以正常使用