[ Content contribution] deepin23安装NVIDIA驱动
Tofloor
poster avatar
天阁创客official
deepin
2024-12-05 22:37
Author

deepin23安装NVIDIA驱动

作者:天阁创客official 作者承诺教程免费,拒绝盗版搬运,复制转发请指明出处! 让天下没有难学的技术!

deepin23安装NVIDIA驱动

安装驱动

查看默认的源中是否存在NVIDIA驱动依赖和安装包

sudo apt list | grep nvidia

安装环境依赖

sudo apt install gcc g++ dkms
sudo apt install mesa-utils

安装NVIDIA闭源驱动

sudo apt-get install bumblebee-nvidia nvidia-driver nvidia-settings nvidia-detect

启动NVIDIA显卡的守护进程

sudo systemctl status bumblebeed.service 
sudo systemctl enable bumblebeed 

用户添加到 bumblebee组看情况添加(如果用户启动又问题的时候才使用)

sudo usermod -aG bumblebee $USER

重启电脑。

驱动调用

如何跑满N 卡驱动?

列出系统PCI总线上的所有设备及其相关信息

lspci | grep -i nvidia

检查当前使用的是开源GPU还是闭源GPU 驱动

lsmod | grep nouveau

如果没有返回值,表示默认使用的是闭源的GPU。

查询当前显卡功率限制(BIOS设置决定的策略)

sudo nvidia-smi -q | grep "Power Limit"

结果如图:

安装显卡切换插件:

查看默认使用的GPU驱动

glxinfo | grep renderer
# 或者
DRI_PRIME=0 glxinfo | grep "OpenGL renderer"

默认调用结果如下:

安装GPU监视器

sudo apt install -y nvtop

目前推荐手动调用N 卡驱动,防止出现问题,不推荐直接换原来的默认驱动盒选项。

重启电脑之后,我们右键软件,点击prime-run运行,这个操作运行之后会默认调用NVIDIA驱动:

性能释放

如何调整性能?

打开NVIDIA X f服务设置:

点击到PowerMizer选项中,在下面选择性能选项,默认是Auto设置,我们需要改成 Prefer Maximum Performance选项:

启动MC 之后,使用nvtop查看GPU的调用。

游戏中:

GPU调度:

卸载驱动

sudo apt autoremove nvidia-*
sudo apt purge nvidia-driver nvidia-kernel-dkms nvidia-*

安装cuda

安装cuda Toolkit

wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.1-1_all.deb
sudo dpkg -i cuda-keyring_1.1-1_all.deb
sudo apt-get update
sudo apt-get -y install cuda-toolkit-12-6

安装cuda驱动依赖

  • 安装开源驱动
sudo apt-get install -y nvidia-open
  • 安装旧的(稳定的)驱动
sudo apt-get install -y cuda-drivers
  • 安装全部
sudo apt install -y nvidia-cuda*

卸载cuda

卸载cuda Toolkit

sudo apt-get --purge remove "*cuda*" "*cublas*" "*cufft*" "*cufile*" "*curand*"  "*cusolver*" "*cusparse*" "*gds-tools*" "*npp*" "*nvjpeg*" "nsight*" "*nvvm*"
sudo apt-get autoremove --purge -V

版权归属: 天阁创客official

本文链接: deepin23安装NVIDIA驱动-天阁创客official

许可协议: 授权许可: ©B站天阁创客official ©公众号TGSec525

Reply Favorite View the author
All Replies
2 / 2
To page
天阁创客official
deepin
2025-02-27 16:35
#21
潜水7年

进不了桌面了啊,我去,建议这个帖子预警一下

怎么可能哦,那估计就是每个电脑不一样,适配驱动情况有区别了

Reply View the author
天天,天天开心
deepin
2025-04-22 18:06
#22
潜水7年

https://zhuanlan.zhihu.com/p/686868238
直接按照这个帖子安装还好点

不得行

Reply View the author
天天,天天开心
deepin
2025-04-22 18:06
#23

如果发现没有570.144显卡驱动,官网有,咋个办?

Reply View the author
2 / 2
To page
New Thread

Popular Ranking

Change

Popular Events

More
国际排名
WHLUG