Back to all posts
Linux

How to Install NVIDIA & Intel Graphics Drivers in Arch Linux (2025 Guide)

By Huzi

Installing graphics drivers properly is one of the most important steps after setting up Arch Linux. Whether you’re using Intel integrated graphics (like HD 4000) or a dedicated NVIDIA GPU, the right driver ensures smooth performance, proper hardware acceleration, and lag-free video playback.

This guide covers both NVIDIA and Intel graphics setup — from driver installation to troubleshooting common issues.

🧠 Why Drivers Matter

Without the correct drivers:

  • Video playback lags or tears.
  • Games and rendering apps crash.
  • GPU features like hardware acceleration don’t work.
  • The system falls back to software rendering, increasing CPU load.

Installing the right driver fixes all of this.

⚙️ Step 1: Update Your System

Always start by syncing your package database and upgrading your system:

sudo pacman -Syu

This ensures you’re working with the latest kernel and package versions — critical for compatibility.

💻 Step 2: Identify Your Graphics Card

Run the following command to detect your GPU:

lspci | grep -E "VGA|3D"

Example output:

00:02.0 VGA compatible controller: Intel Corporation HD Graphics 4000
01:00.0 3D controller: NVIDIA Corporation GK107M [GeForce GT 650M]

This shows both Intel and NVIDIA GPUs (common on laptops with hybrid graphics).

🧩 Step 3: Install Graphics Drivers

🟦 A. For Intel Graphics (HD, UHD, or Iris) Arch Linux already supports Intel GPUs via open-source Mesa drivers.

Run:

sudo pacman -S mesa lib32-mesa vulkan-intel lib32-vulkan-intel

For video acceleration (hardware-accelerated decoding):

sudo pacman -S libva-intel-driver intel-media-driver

📝 Tip:

  • intel-media-driver is recommended for 8th Gen or newer CPUs.
  • libva-intel-driver works better for older ones (like HD 4000 / HD 3000).

To check video acceleration support:

vainfo | grep "Driver version"

If it shows a valid driver (not “dummy”), it’s working!

🟨 B. For NVIDIA Graphics

  1. Detect GPU Series Run:

    lspci | grep -E "NVIDIA"
    

    Then check your GPU model on NVIDIA’s official driver list or use Arch Wiki’s NVIDIA page.

  2. Install the Correct Driver

GPU Type Package
Modern GPUs (GTX 900 series and newer) nvidia nvidia-utils lib32-nvidia-utils
Older GPUs (GTX 600 / 700) nvidia-470xx-dkms nvidia-470xx-utils
Legacy cards nvidia-390xx-dkms

Example (for modern cards):

sudo pacman -S nvidia nvidia-utils lib32-nvidia-utils
  1. Enable DKMS for Kernel Updates If you’re using a custom kernel (e.g., Zen, LTS):
    sudo pacman -S dkms
    
    Then rebuild drivers automatically when updating kernels.

🧠 Step 4: Enable Hardware Acceleration

For Intel: Create (or edit) this config file:

sudo nano /etc/environment

Add:

LIBVA_DRIVER_NAME=iHD
VDPAU_DRIVER=va_gl

Restart your system:

sudo reboot

Test video playback using:

mpv --hwdec=auto video.mp4

If it plays smoothly, hardware decoding is active.

For NVIDIA: Install the Vulkan and VDPAU packages:

sudo pacman -S nvidia-settings nvidia-utils libvdpau libva-vdpau-driver lib32-libvdpau

Then load the kernel module:

sudo modprobe nvidia

To verify:

nvidia-smi

You should see GPU utilization stats.

For video acceleration test:

vdpauinfo | grep "Decoder"

💡 Step 5: Enable Hybrid Graphics (Laptops Only)

If your laptop has both Intel + NVIDIA GPUs, install prime utilities for hybrid management:

sudo pacman -S nvidia-prime

To run apps using the NVIDIA GPU:

prime-run firefox

🧠 Tip: Add prime-run to your game launcher commands for Steam or Lutris.

🧰 Step 6: Troubleshooting Common Problems

❌ Screen Tearing Install Picom or Kwin compositor and enable VSync:

sudo pacman -S picom

Then run:

picom --vsync

❌ Black Screen After Boot Edit your GRUB line:

sudo nano /etc/default/grub

Find the line: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

Add: nouveau.modeset=0

Then update GRUB:

sudo grub-mkconfig -o /boot/grub/grub.cfg

❌ NVIDIA Settings Not Saving Run:

sudo nvidia-settings

and click Save to X Configuration File/etc/X11/xorg.conf.d/20-nvidia.conf.

🚀 Step 7: Verify Everything Works

To confirm OpenGL rendering:

glxinfo | grep "OpenGL renderer"

Expected outputs:

  • Intel → “Mesa Intel HD Graphics…”
  • NVIDIA → “NVIDIA GeForce…”

To check Vulkan support:

vulkaninfo | grep "GPU id"

If both show your GPU names — congratulations, your setup is perfect!

🧩 Optional: Install GUI Tools

For easier management:

sudo pacman -S nvidia-settings mesa-utils

You can then open NVIDIA Settings via your desktop menu.

🧱 Final Thoughts

Getting graphics drivers right in Arch Linux might look technical — but once done, your system becomes buttery smooth, with optimized video playback, faster rendering, and better battery efficiency.

If you’re running Intel HD 4000 / i7 3rd Gen hardware, the open-source Mesa drivers are incredibly efficient in 2025. And for NVIDIA users, official drivers now integrate better with Wayland and modern desktops like KDE and GNOME.

Need more Linux performance and web tools? Visit tool.huzi.pk — a growing hub for free online tools, web utilities, and tech tutorials tailored for developers and Linux users alike.


You Might Also Like


Related Posts

Linux
Fresh Arch Linux Install? Here Are My Top 10 Cozy Setup Tips
A personal, cozy guide to the top 10 essential things to do after installing Arch Linux, from updating your system and enabling multilib to customizing your UI and optimizing performance. Your friendly first steps into a beautiful, personalized Arch setup.

By Huzi

Read More
Linux
Fix: Wi-Fi Not Working After Arch Linux Installation (2025 Guide)
A complete 2025 guide to fix common Wi-Fi issues on Arch Linux after installation. Learn how to enable NetworkManager, install drivers, and troubleshoot your wireless adapter.

By Huzi

Read More
Linux
How to Install Arch Linux on a PC or Laptop (2025 Edition)
A clear, step-by-step guide for moving from Windows to Arch Linux, covering everything from booting the USB to logging into your new Arch desktop.

By Huzi

Read More
Linux
A Beginner's Guide to the Linux World
New to Linux? This guide will walk you through the basics, from understanding what it is to choosing your first distribution and mastering the command line.

By Huzi

Read More
Linux
Fresh Arch Linux Install? My Top 10 Cozy Setup Tips
A personal, cozy guide to the first 10 things to do after installing Arch Linux. Join Huzi as he walks you through updating, enabling multilib, installing an AUR helper like yay, and customizing your desktop.

By Huzi

Read More
Linux
A Beginner's Daydream: Choosing a Desktop for Arch Linux in 2025
A poetic and personal exploration of Arch Linux's best desktop environments in 2025. Join Huzi as he muses on KDE, XFCE, and GNOME, weaving in performance benchmarks with a touch of chai-fueled wonder.

By Huzi

Read More
Education
EdTech in Pakistan 2025: How AI-Powered Learning Is Transforming Classrooms
Pakistan’s classrooms are changing. More than chalk and blackboard: the rise of EdTech in 2025, and especially how AI-powered learning is rewriting what education looks like.

By Huzi

Read More
Freelancing
Remote-Work Gold Rush 2025: The 10 High-Income Skills Pakistani Freelancers Must Master (with Local Success Stories)
Discover the exact digital skills that are paying Pakistanis $30–$120/hour from home in 2025. Includes course links, project blueprints, salary data, and step-by-step 30-day action plans tailored for students, fresh grads, and career switchers.

By Huzi

Read More
Legal
How to Report a Fake Bank Transaction in Pakistan (2025 Edition)
Step-by-step paths for reporting fake bank transactions to the State Bank (SBP), Banking Mohtasib, and your bank. Updated for 2025.

By blogs.huzi.pk

Read More
Lifestyle
Restaurant-Style Chicken Karahi (Dhaba Style)
A karahi isn't simmered—it's blasted in a fiery wok where spices crackle and tomatoes caramelize in minutes. Learn how to make this authentic dish at home.

By Huzi Blogs

Read More
Linux
How to Fix "Root Device Not Found" in Arch Linux (2025 Guide)
A step-by-step guide to troubleshoot and fix the 'root device not found' error in Arch Linux, covering mkinitcpio hooks, bootloader parameters, and hardware timing issues.

By Huzi

Read More