Guides 11792 Published by

The article explains how to get NVIDIA drivers up and running on Linux Mint 21 or 20, highlighting why the default firmware and xserver packages are often too old to support modern GPUs. It walks readers through identifying the exact GPU model with lspci, purging any previous NVIDIA packages, optionally adding a graphics PPA, installing the appropriate driver either from apt or directly from NVIDIA’s website, configuring Xorg with nvidia‑xconfig, rebooting, and confirming success with nvidia‑smi. The guide also details common hiccups such as kernel mismatches, Secure Boot rejecting unsigned modules, and display‑manager configuration issues, offering practical ways to dodge each one. In short, it stresses the importance of cleaning out old drivers, choosing a driver version that matches both hardware and kernel, and exercising patience so the system can deliver reliable 3D performance.



Installing NVIDIA Drivers on Linux Mint 21/20

In this quick walk‑through you’ll learn how to get the latest NVIDIA drivers up and running on a fresh Mint installation, why each step matters, and what pitfalls to avoid. I’ve been in the same spot when a new kernel update broke the GPU, so stick with me.

Why the “official” repository isn’t always the best choice

When you first boot a clean Mint 21/20, the default linux-firmware and xserver-xorg-video-nvidia packages are often too old to support your card. Trying to install them can leave you with an unusable display or worse, a black screen that only resolves after rolling back the kernel. The trick is to pull in the driver directly from NVIDIA’s site or the official PPA and then let Mint manage the rest.

Step 1: Check what GPU you actually have
lspci -k | grep -EA3 'VGA|Display'

The output tells you the exact model, which is essential for picking the right driver version. A mistake here means a driver that will refuse to load or will lock up your system.

Step 2: Remove any old NVIDIA packages
sudo apt purge '^nvidia-.*'

Leftover files from a previous install can conflict with new binaries. I’ve seen systems crash after an update when stale modules were still in the kernel’s memory.

Step 3: Add the graphics PPA (optional but handy)
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update

This repository keeps a more up‑to‑date set of drivers than Mint’s default repos. If you’re not comfortable with PPAs, skip this step and download the binary directly from NVIDIA.

Step 4: Install the driver package

If using the PPA:

sudo apt install nvidia-driver-550

Replace 550 with whatever is recommended for your card (check the output of ubuntu-drivers devices).

If downloading manually, grab the .run file from NVIDIA’s website and run:

chmod +x NVIDIA-Linux-x86_64-550.78.run
sudo ./NVIDIA-Linux-x86_64-550.78.run

The PPA version automatically links to kernel modules; the manual installer gives you the latest, but you must handle module building yourself.

Step 5: Configure Xorg to use NVIDIA
sudo nvidia-xconfig --no-drm

This writes a minimal /etc/X11/xorg.conf that tells the system to load the proprietary driver instead of Nouveau. I’ve had cases where leaving this file blank caused the display manager to fall back to open‑source drivers and drop GPU acceleration.

Step 6: Reboot and verify
sudo reboot

After the machine restarts, confirm everything is hooked up:

nvidia-smi

You should see your GPU name, driver version, memory usage, and a healthy Process list. If you get “NVIDIA-SMI has failed because it couldn't communicate with NVIDIA drivers,” double‑check that the kernel module nvidia is loaded (lsmod | grep nvidia) and that no old Xorg config files are lurking in /etc/X11.

Common hiccups and how to dodge them
  • Kernel mismatch – If you’ve upgraded your kernel without reinstalling the driver, the module won’t load. Reinstall after each kernel update.
  • Secure Boot enabled – By default, Secure Boot will reject unsigned NVIDIA modules. Either disable it in BIOS or sign the drivers yourself (Mint makes this painless with mokutil).
  • Multiple display managers – If you’re on a hybrid system that switches between LightDM and GDM, make sure both are configured to use /usr/share/X11/xorg.conf.d/.
Final thought

Getting NVIDIA drivers working on Mint is usually just a handful of commands plus a bit of patience. Skip the auto‑update tricks that blindly install old drivers; pick the version that matches your GPU and kernel, clean out the old bits first, and you’ll have smooth 3D performance in no time.