Disable Nouveau#

Ubuntu#

Run the below command to verify if Nouveau is loaded:

lsmod | grep nouveau

Output:

1nouveau              1949696  0
2mxm_wmi                16384  1 nouveau
3video                  49152  1 nouveau
4i2c_algo_bit           16384  2 mgag200,nouveau
5ttm                   106496  2 drm_vram_helper,nouveau
6drm_kms_helper        184320  4 mgag200,nouveau
7drm                   491520  6 drm_kms_helper,drm_vram_helper,mgag200,ttm,nouveau
8wmi                    32768  5 wmi_bmof,dell_smbios,dell_wmi_descriptor,mxm_wmi,nouveau

If you see the above output, follow the below steps to disable Nouveau:

1cat <<EOF | sudo tee /etc/modprobe.d/blacklist-nouveau.conf
2blacklist nouveau
3options nouveau modeset=0
4EOF

Regenerate the kernel initramfs:

sudo update-initramfs -u

And reboot your system:

sudo reboot

RHEL#

Run the below command to verify if Nouveau is loaded:

sudo nano /etc/default/grub

Output:

1GRUB_TIMEOUT=5
2GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
3GRUB_DEFAULT=saved
4GRUB_DISABLE_SUBMENU=true
5GRUB_TERMINAL_OUTPUT="console"
6GRUB_CMDLINE_LINUX="crashkernel=auto resume=/dev/mapper/rhel-swap rd.lvm.lv=rhel/root rd.lvm.lv=rhel/swap rhgb quiet modprobe.blacklist=nouveau"
7GRUB_DISABLE_RECOVERY="true"
8GRUB_ENABLE_BLSCFG=true

If you see the above output, follow the below steps to disable Nouveau:

1echo "blacklist nouveau" > /etc/modprobe.d/denylist.conf
2
3echo "options nouveau modeset=0" >> /etc/modprobe.d/denylist.conf

Regenerate the grub config file and add a boot menu entry for EFI firmware configuration.

1sudo dracut --force
2grub2-mkconfig -o /boot/efi/EFI/redhat/grub.cfg

Reboot your system:

sudo systemctl reboot

After the reboot has completed, check to ensure that the nouveau driver has been disabled:

lsmod | grep nouveau