赞
踩
sudo apt-get remove --purge nvidia-* //卸载原来的驱动
//打开黑名单文件
sudo gedit /etc/modprobe.d/blacklist.conf
//在文本文件中,添加如下
blacklist nouveau
options nouveau modeset=0
//在终端进行更新
sudo update-initramfs –u
//重启检测是否禁用成功
reboot
lsmod | grep nouveau//如果没有输出禁用成功
sudo apt-get update //更新软件列表
sudo apt-get install g++
sudo apt-get install gcc
sudo apt-get install make
lspci | grep -i nvidia //查看显卡的型号
常见错误:nvidia-drm正在运行(要关闭当前一些nvidia的服务)
ERROR: An NVIDIA kernel module ‘nvidia-drm’ appears to already be loaded in your kernel. This may be because it is in use (for example, by an X server, a CUDA program, or the NVIDIA Persistence Daemon), but this may also happen if your kernel was configured without support for module unloading. Please be sure to exit any programs that may be using the GPU(s) before attempting to upgrade your driver. If no GPU-based programs are running, you know that your kernel supports module unloading, and you still receive this message, then an error may have occured that has corrupted an NVIDIA kernel module’s usage count, for which the simplest remedy is to reboot your computer.
第一步:首先进入文本终端
ctrl+alt+F3 //我的是拯救者Y7000P使用这个进入,其他型号可以试试F1、F2... 退出:ctrl+alt+F1
第二步:关闭nvidia的相关服务+安装驱动
sudo systemctl isolate multi-user.target //Isolate multi-user.target
lsmod | grep nvidia.drm //Note that nvidia-drm is currently in use. 查看是否在运行
sudo modprobe -r nvidia-drm //Unload nvidia-drm
lsmod | grep nvidia.drm //Note that nvidia-drm is not in use anymore.
sudo chmod a+x NVIDIA-Linux-x86_64-xxx.run //赋予权限
sudo ./NVIDIA-Linux-x86_64-xxx.run -no-x-check -no-nouveau-check -no-opengl-files
//-no-x-check:安装驱动时关闭X服务 -no-nouveau-check:安装驱动时禁用nouveau -no-opengl-files:只安装驱动文件,不安装OpenGL文件
第三步:安装的选项内容
he distribution-provided pre-install script failed! Are you sure you want to continue?
选择 yes 继续。
Would you like to register the kernel module souces with DKMS? This will allow DKMS to automatically build a new module, if you
install a different kernel later?
选择NO 继续
Would you like to run the nvidia-xconfigutility to automatically update your x configuration so that the NVIDIA x driver will be used when you restart x? Any pre-existing x confile will be backed up.
选择 Yes 继续
1、进入bios系统,将secure boot设置为disable boot
2、将独显直连打开
《ubuntu16.04系统run方式安装nvidia显卡驱动》https://blog.csdn.net/xunan003/article/details/81665835
《ERROR: An NVIDIA kernel module ‘nvidia-drm‘ appears to already be loaded in your kernel.》https://blog.csdn.net/Jessica__Chan/article/details/118224245
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。