[Exchange and share] deepin V23安装英伟达官网显卡驱动
Tofloor
poster avatar
pengwang1120
deepin
2023-09-07 06:59
Author

deepin V23安装NVIDIA官网驱动,其他版本都适用

原帖1:https://www.bilibili.com/read/cv12531465/ 原帖2:https://bbs.deepin.org/post/232923

有核显与独显 请看原帖

本贴只有独显的台式机, 笔记本请看原帖,核显与独显可以随意转换!!!

1.英伟达官网下载显卡对应型号驱动:https://www.nvidia.cn/Download/index.aspx?lang=cn

下载后建议改名,比如我是3060显卡,改的是3060.run ,下载后默认在文件管理器下载文件夹内,再移动到主目录(home)文件夹内

2卸载之前安装的NVIDIA驱动

pkexec apt autoremove nvidia-*

回车,再输入y确认,清理电脑上残留的nvidia驱动

3禁用nouveau

nouveau是通过逆向“NVIDIA的Linux驱动”创造的一个开源第三方NVIDIA显卡驱动程序,因此其效果差,性能低,在手动安装NVIDIA时需要禁用nouveau驱动

终端执行以下命令修改文件

sudo vi /etc/modprobe.d/blacklist.conf

以下内容复制到文件中

blacklist nouveau

blacklist lbm-nouveau

options nouveau modeset=0

alias nouveau off

alias lbm-nouveau off

按住Shift + : 输入wq 回车

保存退出

由于nouveau是构建在内核中的,所以要执行下面命令生效:

sudo update-initramfs -u

4重启deepin

reboot

重启后查看nouveau有没有运行,没输出代表禁用生效

lsmod | grep nouveau

5关闭图形界面

安装NVIDIA驱动程序时,需要停止当前的图形界面

使用快捷键CTRL+ALT+F2进入超级终端(黑底白字界面),登录账号

关闭图形界面: sudo service lightdm stop

6、给驱动文件添加执行权限

下载好的NVIDIA驱动文件是.run格式,需要添加执行权限,使用cd指令进入下载好的驱动文件路径,如果没有改浏览器的下载路径,路径一般是/home/用户名/Downloads

先找到文件路径

cd /home/用户名 ,回车,输入 ls 查看有哪些文件,可以看到重命名的显卡驱动.run

给驱动赋权

sudo chmod +x 英伟达驱动名字.run

7、安装NVIDIA显卡驱动

sudo ./英伟达驱动名字.run

这个时候会出现一个页面,一系列yes,还有一个界面选择install and cover,意为安装和覆盖,然后等待几分钟

8、重启deepin

reboot

这样NVIDIA驱动就装好了!

使用nvidia-smi命令 查看是否有输出
截图_deepin-terminal_20230906224409.png

Reply Favorite View the author
All Replies
相对湿度
deepin
2023-09-07 07:10
#1

不明白为什么这么复杂,直接sudo ./英伟达驱动名字.run,按我的理解就是等于覆盖了,就算有旧的我也不管了,然后重启,一切完事。出错了大不了重装(必须有备份重要数据习惯的人才能干的哦)。

Reply View the author
pengwang1120
deepin
2023-09-07 07:25
#2
相对湿度

不明白为什么这么复杂,直接sudo ./英伟达驱动名字.run,按我的理解就是等于覆盖了,就算有旧的我也不管了,然后重启,一切完事。出错了大不了重装(必须有备份重要数据习惯的人才能干的哦)。

原驱动没卸载干净,容易报错,,我试过

Reply View the author
pengwang1120
deepin
2023-09-07 07:27
#3
pengwang1120

原驱动没卸载干净,容易报错,,我试过

必须卸载干净,才能安装新显卡驱动

Reply View the author
相对湿度
deepin
2023-09-07 07:52
#4
pengwang1120

必须卸载干净,才能安装新显卡驱动

我不玩游戏,所以一直买的电脑都是直接核显,不感觉到什么,不过你说的这个特性,有点像win,安装的时候,直接提示你已经有旧版,先卸载旧版重启后再自动安装新的(在win里面,核显独显一样,都会提示)。

Reply View the author
阿尼樱奈奈
Moderator
2023-09-07 13:54
#5
pengwang1120

原驱动没卸载干净,容易报错,,我试过

要把原来的开源驱动卸载干净,并加入黑名单

Reply View the author
dgmenghuan
deepin
2023-09-07 16:35
#6

tail

Reply View the author
mozixun
deepin
2023-09-09 18:55
#7

所以最后还是内置驱动的AMD显卡好

Reply View the author
安奕宸
deepin
2023-09-10 01:58
#8

截图_deepin-terminal_20230909175114.png

找不到命令怎么回事有知道的吗?

Reply View the author
pengwang1120
deepin
2023-09-11 17:25
#9
安奕宸

截图_deepin-terminal_20230909175114.png

找不到命令怎么回事有知道的吗?

你没安装显卡驱动

Reply View the author
130******80
deepin
2023-10-14 07:43
#10

unable to determine the path to install the libglvnd EGL vendor lobrary config files,Check that youhave pkg-config and the libglvnd development librarles installed,or specify a path with --glvnd-egl config-path.

unable to load the "nvidia-drm" kernel module.

inatallation has failed.please see the file "/var/log/nvidia-installer.log' for details.you may suggestions on fixing installation problems in the README available on Linux driver dowload page at www.nvdia.com.

Reply View the author
amcoke
deepin
2023-11-18 00:20
#11
It has been deleted!
130******80
deepin
2023-12-09 19:31
#12
130******80

unable to determine the path to install the libglvnd EGL vendor lobrary config files,Check that youhave pkg-config and the libglvnd development librarles installed,or specify a path with --glvnd-egl config-path.

unable to load the "nvidia-drm" kernel module.

inatallation has failed.please see the file "/var/log/nvidia-installer.log' for details.you may suggestions on fixing installation problems in the README available on Linux driver dowload page at www.nvdia.com.

有大佬能解答不?

Reply View the author