Skip to content

Latest commit

 

History

History
60 lines (53 loc) · 1.14 KB

README.md

File metadata and controls

60 lines (53 loc) · 1.14 KB

install_nvidia_driver_on_ubuntu

禁用Nouveau开源驱动

在终端中

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

在文件中添加 blacklist nouveau 更新 initramfs

sudo update-initramfs -u

重启电脑

清理原nvidia驱动

sudo apt autoremove --purge nvidia*

下载Nvidia Driver

https://www.nvidia.cn/Download/index.aspx

安装驱动

停止gdm

sudo service gdm stop

安装驱动

安装必要软件包

sudo apt install gcc make

ctrl+alt+f3进入虚拟控制台,登陆后

sudo ./NVIDIA-Linux-x86_64-XXX.XX.run
sudo apt install nvidia-prime nvidia-settings
reboot

Extra

解决画面撕裂

sudo vim /etc/modprobe.d/nvidia-blacklists-nouveau.conf

或者

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

添加options nvidia_drm modeset=1

sudo update-initramfs -u

可用主机列表

factory device model system status
HP Pavilion15 bc011tx ubuntu1904 work
HP Pavilion15 bc011tx ubuntu1810 work
HP Pavilion15 bc011tx ubuntu1804 work