Arch Linux NVIDIA: Driver Setup Guide
In this article
Arch Linux does not install NVIDIA drivers automatically; you must choose between the proprietary nvidia package and the open-source nouveau driver, then configure Xorg or Wayland and, for hybrid laptops, the PRIME offloading system. The proprietary driver generally offers better performance and power management for recent GeForce and workstation cards, while nouveau is included in the kernel and requires no extra setup but lacks reclocking and advanced features on most modern GPUs. Arch's rolling-release model means driver packages track the latest kernel, so keeping the system updated is essential to avoid breakage.
Background: Why Arch Handles NVIDIA Differently
Arch Linux follows a strict "do it yourself" philosophy. Unlike distributions that bundle a driver during installation, Arch expects you to identify your GPU and install the correct package from the official repositories. This is deliberate: NVIDIA's proprietary driver is closed-source, kernel-version-sensitive, and licensed in a way that prevents redistribution in some contexts, so Arch keeps it as an optional package rather than a default.
The open-source nouveau driver is part of the Linux kernel itself. It works out of the box for basic display output, but on most modern NVIDIA cards it cannot change clock speeds (reclocking), which means performance is far below what the hardware can deliver. For gaming, CUDA workloads, or any 3D acceleration on recent GPUs, the proprietary driver is usually the practical choice.
Arch also offers nvidia-open, a set of open-source kernel modules released by NVIDIA for Turing (RTX 20 series) and newer GPUs. These are not the same as nouveau: they are official NVIDIA code, but the userspace components remain proprietary. They are increasingly recommended for newer cards, especially with Wayland.
How the Driver Stack Works
An NVIDIA setup on Arch has several layers that must match:
- Kernel module — nvidia (proprietary) or nvidia-open (open kernel modules), built against your running kernel.
- Userspace libraries — nvidia-utils, which provides OpenGL, Vulkan, and CUDA support.
- Kernel mode setting (KMS) — early KMS is configured via mkinitcpio so the display initializes smoothly at boot.
- Display server — Xorg uses the nvidia driver module; Wayland compositors use GBM/EGLStreams depending on version.
- PRIME — on hybrid laptops, PRIME handles rendering on the discrete GPU and displaying on the integrated one.
If any layer is mismatched — for example, a kernel module built for a different kernel version — you get a black screen, a fallback to nouveau, or a failed graphical target. This is the most common source of "NVIDIA broke after an update" reports.
How to Choose the Right Package
The correct package depends on your GPU generation and your display server. As a rule of thumb:
- GTX 700 series and older — use the legacy proprietary branches (e.g., nvidia-390xx or older), which are frozen and may not support current kernels.
- GTX 900 through GTX 10 series — the standard nvidia package is appropriate.
- RTX 20 series (Turing) and newer — either nvidia or nvidia-open works; nvidia-open is often preferred for Wayland and newer kernels.
- Laptops with hybrid graphics — install the driver plus nvidia-prime for offloading, and check whether your laptop uses MUX switching or pure offload.
Check your GPU with lspci -k | grep -A 2 -E "(VGA|3D)" before installing anything. This shows the card model and which kernel driver is currently in use.
Step-by-Step Installation
- Update the system:
sudo pacman -Syu. Never install a kernel module against a partially upgraded system. - Install the kernel headers for your kernel (e.g.,
linux-headersfor the default kernel). - Install the driver and utilities:
sudo pacman -S nvidia nvidia-utils(ornvidia-openfor newer cards). - Enable early KMS by adding
nvidia(ornvidia-open) to the MODULES array in/etc/mkinitcpio.conf, then runsudo mkinitcpio -P. - For hybrid laptops, install
nvidia-primeand useprime-runto launch applications on the discrete GPU. - Reboot and verify with
nvidia-smi, which should list your GPU and driver version.
If you use Wayland, note that some compositors require additional environment variables (such as LIBVA_DRIVER_NAME=nvidia and GBM_BACKEND=nvidia-drm) for hardware video acceleration and correct rendering. Consult the Arch Wiki page for your specific compositor.
Common Problems and Fixes
- Black screen after update — usually a kernel/module mismatch. Boot an older kernel or a live USB, then reinstall the driver and headers and rebuild the initramfs.
- nouveau loads instead of nvidia — blacklist nouveau by adding
blacklist nouveauto a file in/etc/modprobe.d/and rebuild the initramfs. - Screen tearing on Xorg — enable the
ForceFullCompositionPipelineoption in your Xorg configuration, or switch to a Wayland session where tearing is generally handled by the compositor. - Suspend/resume failures — enable the
nvidia-suspend,nvidia-hibernate, andnvidia-resumeservices, which are provided by the driver package. - Wayland flickering or crashes — try nvidia-open if you are on a supported card, and ensure your compositor is configured for NVIDIA's GBM backend.
A frequent misconception is that installing the driver is enough. In practice, most failures come from skipping the kernel headers, forgetting to rebuild the initramfs, or mixing packages from different repositories (such as AUR builds against a different driver version).
Proprietary vs. Open Modules: What Actually Differs
The proprietary nvidia package includes both kernel modules and userspace libraries. The nvidia-open package replaces only the kernel modules with open-source code; the userspace stack is still the same proprietary nvidia-utils. In practice, performance is similar on supported cards, but nvidia-open integrates more cleanly with newer kernels and is required for some features on recent GPUs. It does not support older cards (pre-Turing), so check compatibility before switching.
Nouveau, by contrast, is fully open source and in-kernel, but it lacks reclocking on most modern hardware. It is a reasonable fallback for troubleshooting or for older cards where proprietary support has ended, but it is not suitable for gaming or CUDA.
Frequently Asked Questions
Do I need to install NVIDIA drivers on Arch?
Only if you want 3D acceleration, CUDA, or better power management. The system will boot and display a desktop with nouveau without any extra packages, but performance on modern cards will be poor.
Which package should I install for an RTX 30 series card?
Either nvidia or nvidia-open works. nvidia-open is often recommended for Wayland and newer kernels, while the proprietary package remains a safe default for Xorg and CUDA workloads.
Why does nvidia-smi say "No devices were found"?
This usually means the kernel module is not loaded or the driver is not installed correctly. Check lsmod | grep nvidia and the output of dmesg for module load errors, then verify that the kernel headers match your running kernel.
Can I switch between nvidia and nvidia-open?
Yes, but remove the old package first to avoid conflicting kernel modules. Rebuild the initramfs after switching and reboot before testing.
Does Secure Boot affect NVIDIA drivers on Arch?
Yes. With Secure Boot enabled, the kernel module must be signed or the bootloader must be configured to trust it. Unsigned modules will be rejected, and the driver will fail to load. You will need to sign the modules yourself or disable Secure Boot.
Is overclocking supported?
NVIDIA provides limited overclocking controls through nvidia-settings and Coolbits. Overclocking and undervolting can cause instability and may affect your warranty; proceed cautiously and test thoroughly.