Try   HackMD

Turn off Nouveau

Before we install NVIDIA gpu, we need to make sure Nouveau which is turned off.

Steps

  1. Check the status.
lsmod | grep nouveau

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

  1. Add the following content
sudo vim /etc/modprobe.d/blacklist.conf

With the following contents:

blacklist nouveau
options nouveau modeset=0

Regenerate the kernel initramfs:

sudo update-initramfs -u

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

  1. Adjust the resolution
sudo vim /etc/default/grub

Find this line: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
Change to: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset"

Also, find this line: #GRUB_GFXMODE=800x4001 (the value maybe not the same.)
Change to: GRUB_GFXMODE=1920x1080

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

Update it:

sudo update-grub

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

  1. Reboot and check the status again

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

Note:

Normally we do not need to turn off it during installing the GPU driver for newer computers.

Here is a very primitive environment that it did not install anything after I installed the Ubuntu 20.04 operating system. My GPU is RTX 2070 super.

I check the status of nouveau (turn on), and running kernel version compilered by gcc version and the gcc version which was installed by build-essential.

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

I installed the GPU driver version which is v510 by the apt command (Not the file downloaded from website i.e., NVIDIA-XXX.run).

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

In the installation, I encountered the MOK stage, but that was okay.
Reboot it, and check the gpu status by nvidia-smi.

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

Here is detail configuration for this computer.

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

Reference