Skip to content

Instantly share code, notes, and snippets.

@cmd-save
Last active September 8, 2020 17:24
Show Gist options
  • Select an option

  • Save cmd-save/9856157f3a4a8ed9d7600a64e3e9c4d7 to your computer and use it in GitHub Desktop.

Select an option

Save cmd-save/9856157f3a4a8ed9d7600a64e3e9c4d7 to your computer and use it in GitHub Desktop.
Remove all nvidia driver related packages

Remove all nvidia packages ,skip this if your system is fresh installed

sudo apt-get remove nvidia* && sudo apt autoremove

install some packages for build kernel:

sudo apt-get install dkms build-essential linux-headers-generic

now block and disable nouveau kernel driver:

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

Insert follow lines to the blacklist.conf:

blacklist lbm-nouveau
options nouveau modeset=0
alias nouveau off
alias lbm-nouveau off

save and exit.

Disable the Kernel nouveau by typing the following commands(nouveau-kms.conf may not exist,it is ok):

echo options nouveau modeset=0 | sudo tee -a /etc/modprobe.d/nouveau-kms.conf

build the new kernel by:

sudo update-initramfs -u

reboot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment