Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Install Graphics Drivers on Linux: Step-by-Step

· 6 min read · Home Tech

In this article
  1. Why Linux Graphics Drivers Matter
  2. Identify Your GPU and Current Driver
  3. How Linux Graphics Drivers Work
  4. Choosing the Right Driver
  5. Installing Drivers on Major Distributions
  6. Common Problems and How to Fix Them
  7. Safety and Precautions
  8. Frequently Asked Questions

To install graphics drivers on Linux, you first identify your GPU (NVIDIA, AMD, or Intel) and your Linux distribution, then use your distribution’s package manager or the vendor’s official installer to install the appropriate driver. The exact commands differ by distribution, but the process is straightforward once you know your hardware and which driver your system recommends.

Why Linux Graphics Drivers Matter

Graphics drivers translate the operating system’s drawing commands into signals your GPU can process. Without a proper driver, you get low resolution, no hardware acceleration, poor performance in games or design software, and sometimes a blank screen. Linux distributions include open-source drivers by default, but they may not support the latest features or provide maximum performance for newer GPUs. Installing the right driver ensures your system uses your hardware fully, whether you are gaming, editing video, or running machine learning workloads.

Identify Your GPU and Current Driver

Before installing anything, find out what GPU you have and which driver is currently loaded. Open a terminal and run:

  • lspci -k | grep -A 2 -E "VGA|3D" – shows your graphics hardware and the kernel driver in use.
  • sudo lshw -C display – gives detailed info including the driver name (if lshw is installed).
  • glxinfo | grep "OpenGL renderer" – shows the renderer string if Mesa tools are installed.

For example, if you see “NVIDIA Corporation GA106 [GeForce RTX 3060]” and the kernel driver is “nouveau”, you have an NVIDIA GPU running the open-source nouveau driver. If you see “AMD” and “amdgpu”, you already have the modern AMD driver.

How Linux Graphics Drivers Work

Linux uses a layered graphics stack. The kernel provides a DRM (Direct Rendering Manager) module that talks to the GPU. On top of that, userspace libraries like Mesa implement OpenGL and Vulkan. For NVIDIA, the proprietary driver includes its own kernel module (nvidia) and userspace libraries. AMD and Intel GPUs are supported by the open-source amdgpu and i915 kernel modules, combined with Mesa. The display server (X11 or Wayland) then uses these libraries to render your desktop. Most distributions automatically load the correct kernel module, but you may need to install additional userspace packages for full functionality.

Choosing the Right Driver

Your choice depends on your GPU and your needs:

  • NVIDIA: The proprietary nvidia driver offers the best performance and supports the latest features like CUDA. The open-source nouveau driver is included by default but lacks performance and newer hardware support. For most NVIDIA users, the proprietary driver is recommended.
  • AMD: The open-source amdgpu driver (with Mesa) is excellent and included in most distributions. It supports Vulkan, OpenGL, and compute via ROCm. No proprietary driver is needed for most users; AMD’s “AMDGPU-PRO” driver is optional and mainly for enterprise or specific compute workloads.
  • Intel: The open-source i915 driver is built into the kernel and works out of the box. No additional installation is needed for most Intel integrated graphics.

If you are unsure, start with the open-source driver that came with your system. Only switch to a proprietary driver if you have a specific reason, such as gaming on NVIDIA or needing CUDA.

Installing Drivers on Major Distributions

Here are the standard methods for the most common distributions. Always use your distribution’s official repositories or the vendor’s official installer—avoid random scripts from the internet.

Ubuntu and Debian

Ubuntu provides a tool called ubuntu-drivers. Run:

  1. sudo ubuntu-drivers autoinstall – automatically installs the recommended driver for your GPU.
  2. Alternatively, sudo ubuntu-drivers list shows available drivers; install one with sudo apt install nvidia-driver-550 (replace with the version listed).
  3. Reboot to load the new driver.

For Debian, use sudo apt install nvidia-driver (for NVIDIA) or ensure the firmware-amd-graphics package is installed for AMD. Debian’s non-free repositories must be enabled for NVIDIA drivers.

Fedora

Fedora includes AMD and Intel drivers by default. For NVIDIA, enable RPM Fusion repositories and install:

  1. sudo dnf install akmod-nvidia – installs the driver and a kernel module that rebuilds automatically on kernel updates.
  2. sudo dnf install xorg-x11-drv-nvidia-cuda – for CUDA support.
  3. Reboot.

Arch Linux

Arch users install from the official repos or AUR. For NVIDIA:

  1. sudo pacman -S nvidia nvidia-utils – for the proprietary driver.
  2. For AMD, the mesa and xf86-video-amdgpu packages are typically already installed.
  3. Reboot.

Note: Arch’s rolling releases may require you to update the kernel module after each kernel upgrade; tools like dkms can automate this.

Common Problems and How to Fix Them

Even with correct installation, you may hit issues. Here are the most frequent ones:

  • Blank screen after reboot: This often happens with NVIDIA. Boot into recovery mode (hold Shift at GRUB), then uninstall the driver or reconfigure Xorg. For Ubuntu, you can run sudo apt purge nvidia-* and reboot.
  • Screen resolution stuck at low value: The driver may not be loaded. Check with lsmod | grep nvidia or glxinfo. Reinstall the driver and ensure you rebooted.
  • Kernel module not found after update: If you use DKMS, the module should rebuild automatically. If not, run sudo dkms autoinstall.
  • Wayland issues with NVIDIA: Some NVIDIA drivers have problems with Wayland. You can switch to Xorg by selecting it at the login screen.

If you are stuck, search your distribution’s forums or the Arch Wiki—they have detailed troubleshooting guides.

Safety and Precautions

Installing graphics drivers is safe if you follow these rules:

  • Always back up important data before making system-level changes.
  • Use your distribution’s package manager rather than downloading random scripts from the web.
  • If you must install from the NVIDIA website, use the official runfile, but be aware it may conflict with your distribution’s package management. It’s safer to use the distro’s packages.
  • Never open your computer’s power supply or touch internal components without unplugging the PC and grounding yourself—though driver installation itself is purely software.
  • If you overclock your GPU, know that it can cause instability and may affect your warranty. No specific voltage numbers are needed; just be cautious.

Frequently Asked Questions

How do I know if my graphics driver is installed correctly?

Run glxinfo | grep "OpenGL renderer" in a terminal. If you see your GPU model (e.g., “NVIDIA GeForce RTX 3060” or “AMD Radeon RX 6700 XT”), the driver is working. If you see “llvmpipe” or “Software Rasterizer”, the driver is not loaded and you are using CPU rendering.

Do I need to install drivers for Intel integrated graphics?

No. Intel’s i915 driver is built into the Linux kernel, and Mesa provides userspace support. It works out of the box on most distributions. Only if you have a very new Intel GPU might you need a newer kernel or Mesa version.

Can I use the proprietary NVIDIA driver on Wayland?

Yes, recent NVIDIA drivers (470+ series) support Wayland, but some users experience glitches. If you have issues, switch to Xorg at the login screen. Wayland support improves with each driver release, but Xorg is still more stable for many.

What is the difference between the open-source and proprietary NVIDIA drivers?

The open-source nouveau driver is developed by the community and supports older NVIDIA GPUs well, but it lacks performance and features like CUDA. The proprietary nvidia driver is developed by NVIDIA, offers better performance, supports the latest GPUs, and includes CUDA. For gaming or compute, the proprietary driver is recommended.

How do I uninstall a graphics driver?

Use your package manager. On Ubuntu, sudo apt purge nvidia-* removes NVIDIA drivers. On Fedora, sudo dnf remove akmod-nvidia. After removal, reboot and the system will fall back to the open-source driver.

Will installing a driver void my warranty?

No, installing software drivers does not void a hardware warranty. However, if you overclock your GPU and it fails, the manufacturer may deny a warranty claim if they determine overclocking caused the damage. Driver installation itself is safe.