1、识别显卡
$ lspci -nn | egrep -i "3d|display|vga"
00:02.0 VGA compatible controller [0300]: Intel Corporation CometLake-H GT2 [UHD Graphics] [8086:9bc4] (rev 05)
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation TU117M [10de:1f99] (rev a1)
以上若是识别出则说明显卡正常
2、检测并安装显卡驱动
2.1、安装NVIDIA-detect 并执行
$ nvidia-detect
Detected NVIDIA GPUs:
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation TU117M [10de:1f99] (rev a1)
Checking card: NVIDIA Corporation TU117M (rev a1)
Your card is supported by the default drivers.
Your card is also supported by the Tesla 470 drivers series.
Your card is also supported by the Tesla 450 drivers series.
It is recommended to install the
nvidia-driver
package.
根据结果进行安装
以下安装包: nvidia-driver
firmware-misc-nonfree
nvidia-cuda-dev nvidia-cuda-toolkit
目前多次安装英伟达驱动并未出现任何问题
文档来自:
https://www.cnblogs.com/mutuu/p/16786696.html#%E8%AF%86%E5%88%AB%E6%98%BE%E5%8D%A1