前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >DKMS helloworld

DKMS helloworld

原创
作者头像
vanguard
修改2021-09-09 10:32:19
1.1K0
修改2021-09-09 10:32:19
举报
文章被收录于专栏:vanguardvanguard

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 显卡丢失

代码语言:shell
复制
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,

它可以帮我们维护内核外的驱动程序,在内核版本变动之后可以自动重新生成新的模块。

代码语言:shell
复制
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

禁止内核更新

代码语言:shell
复制
# 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/

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档
http://www.vxiaotou.com