SysTutorials

Adding nomodeset to GRUB2 on Fedora and Ubuntu

· updated April 12, 2026

The nomodeset kernel parameter tells Linux to disable kernel mode setting (KMS), forcing the graphics driver to use basic VESA modes instead of native driver features. This is useful for troubleshooting display issues during boot or installation.

When You Need nomodeset

Common scenarios that require nomodeset:

Adding nomodeset Temporarily (One Boot)

On Fedora (GRUB2):

  1. Boot the system and wait for the GRUB menu
  2. Select the kernel you want to boot
  3. Press e to edit the boot entry
  4. Find the line starting with linux or linux16
  5. Add nomodeset at the end of that line
  6. Press Ctrl+X or F10 to boot

On Ubuntu (GRUB2):

  1. Same process — press e at the GRUB menu
  2. Find the line starting with linux
  3. Add nomodeset after quiet splash (or wherever in the parameter list)
  4. Press F10 to boot

Making nomodeset Permanent

Fedora / RHEL:

# Edit the GRUB default config
sudo nano /etc/default/grub

# Add nomodeset to GRUB_CMDLINE_LINUX
GRUB_CMDLINE_LINUX="...existing params... nomodeset"

# Rebuild GRUB config
sudo grub2-mkconfig -o /boot/grub2/grub.cfg

# For UEFI systems:
sudo grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg

Ubuntu / Debian:

sudo nano /etc/default/grub
# Add nomodeset to GRUB_CMDLINE_LINUX_DEFAULT
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset"

sudo update-grub

What nomodeset Actually Does

Without KMS (nomodeset active):

With KMS (default, no nomodeset):

After Boot: Fix the Real Issue

nomodeset is a workaround, not a fix. After booting successfully, address the root cause:

Nvidia GPUs: Install the proprietary driver:

# Fedora
sudo dnf install akmod-nvidia
sudo akmods --force
sudo dracut --force

# Ubuntu
sudo ubuntu-drivers autoinstall

AMD GPUs: Usually work with open-source drivers. Update your kernel and mesa:

sudo dnf update kernel mesa-dri-drivers   # Fedora
sudo apt update && sudo apt upgrade       # Ubuntu

Intel GPUs: Generally well-supported. If issues persist, try i915.modeset=0 instead of nomodeset for Intel-specific troubleshooting.

Removing nomodeset

Once you’ve installed proper graphics drivers, remove nomodeset from GRUB:

sudo nano /etc/default/grub
# Remove nomodeset from GRUB_CMDLINE_LINUX

# Rebuild GRUB
sudo grub2-mkconfig -o /boot/grub2/grub.cfg    # Fedora
sudo update-grub                                 # Ubuntu

Running with nomodeset long-term means no GPU acceleration, poor display performance, and higher power usage. Always fix the underlying driver issue.

Several other kernel parameters can help with graphics troubleshooting:

Combine parameters as needed:

nomodeset video=1024x768 vga=792

The vga= parameter sets the console resolution before KMS loads. Common values:

Debugging Graphics Issues

If you’re still having problems after installing drivers, gather debug info:

# Check which GPU driver is loaded
lspci -k | grep -A3 VGA

# Check kernel DRM messages
dmesg | grep drm

# Check X11 log (if using X11)
cat /var/log/Xorg.0.log | grep EE

# List available DRM drivers
ls /lib/modules/$(uname -r)/kernel/drivers/gpu/drm/

These logs help identify whether the issue is with the driver, firmware, or hardware detection.

← All posts