在终端中
sudo vim /etc/modprobe.d/blacklist.conf
在文件中添加 blacklist nouveau 更新 initramfs
sudo update-initramfs -u
重启电脑
sudo apt autoremove --purge nvidia*
https://www.nvidia.cn/Download/index.aspx
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
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 |