天天看點

DKMS helloworld

Dynamic Kernel Module Support(DKMS) is a program/frameworkthat enables generating Linux kernel moduleswhose sources generally reside outside the kernelsource tree. The concept is to have DKMS modules automatically rebuilt when a new kernel is installed.

解決ubuntu 20.04下重新開機後nVIDIA 3090*2 顯示卡丢失

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全稱是Dynamic Kernel Module Support,

它可以幫我們維護核心外的驅動程式,在核心版本變動之後可以自動重新生成新的子產品。

sudo apt update
sudo apt install dkms
ls /usr/src | grep nvidia
sudo dkms install -m nvidia -v 470.57.02
nvidia-smi
# sudo reboot           

複制

禁止核心更新

# uname -a
# sudo apt-mark hold linux-image-5.11.0-34-generic
sudo apt-mark hold linux-image-*-generic           

複制

參考連結

https://blog.chengc.name/2020/03/15/Ubuntu%E9%87%8D%E5%90%AF%E5%90%8E%E6%89%BE%E4%B8%8D%E5%88%B0NVIDIA-GPU%E9%A9%B1%E5%8A%A8/