【创作不易,求点赞+关注+收藏】😀
lsmod | grep nouveau
输出为空则说明已经禁用,有输出则说明还没禁用
sudo gedit /etc/modprobe.d/blacklist.conf
blacklist nouveau options nouveau modeset=0
sudo update-initramfs -u
lsmod | grep nouveau
为了确保没有任何进程在使用NVIDIA模块,暂时禁用X服务器:
切换到控制台模式:
sudo systemctl isolate multi-user.target
这时候会切换到TTY终端,接下来在TTY终端进行安装驱动
停止显示管理器:
sudo systemctl stop lightdm # 如果你使用的是LightDM sudo systemctl stop gdm # 如果你使用的是GDM sudo systemctl stop sddm # 如果你使用的是SDDM
root # 进入管理员模式,并输入密码 cd /home/downloads sudo chmod a+x NVIDIA-Linux-x86_64-470.256.02.run sudo ./NVIDIA-Linux-x86_64-470.256.02.run
界面出现安装图形界面,都选YES即可
nvidia-smi
sudo systemctl start lightdm # 如果你使用的是LightDM sudo systemctl start gdm # 如果你使用的是GDM sudo systemctl start sddm # 如果你使用的是SDDM
sudo systemctl isolate graphical.target