1,查看ubuntu系统
(我这个是切换后的画面,原先Graphics使用Nvidia GPU,现在切换到了集显)
2,切换Intel集显显示
sudo prime-select intel
3, 重启后,发现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.
4, 查看已安装驱动的版本信息
ls /usr/src | grep nvidia
5,依次输入以下命令
sudo apt-get install dkms
sudo dkms install -m nvidia -v 525.105.17 # 根据上一步查看自己的驱动版本号
6,我的系统,经过上述步骤后,nvidia-smi仍然报错
7,输入如下命令:
sudo prime-select on-demand
8,重启系统,问题解决