-
-
Notifications
You must be signed in to change notification settings - Fork 3
Arch Linux Hardware Acceleration
Mattscreative edited this page Dec 5, 2025
·
2 revisions
Complete beginner-friendly guide to hardware acceleration on Arch Linux, including VAAPI, VDPAU, GPU acceleration for video playback, encoding, and browser acceleration.
- Understanding Hardware Acceleration
- VAAPI Setup
- VDPAU Setup
- Video Player Configuration
- Browser Acceleration
- Troubleshooting
Hardware acceleration uses GPU for video processing.
Benefits:
- Lower CPU usage
- Better performance
- Power savings
- Smooth playback
Available APIs:
- VAAPI: Video Acceleration API (Intel/AMD)
- VDPAU: Video Decode and Presentation API (NVIDIA)
- NVDEC/NVENC: NVIDIA decode/encode
Install packages:
# Intel VAAPI
sudo pacman -S intel-media-driver libva-intel-driver
# AMD VAAPI
sudo pacman -S libva-mesa-driver
# VAAPI utils
sudo pacman -S libva-utilsCheck VAAPI:
# List VAAPI devices
vainfo
# Check codecs
vainfo --display drm --codecsInstall packages:
# NVIDIA VDPAU
sudo pacman -S libvdpau libvdpau-va-gl
# VDPAU info
sudo pacman -S vdpauinfoCheck VDPAU:
# Check VDPAU
vdpauinfoConfigure MPV:
# Edit MPV config
vim ~/.config/mpv/mpv.confAdd:
# Hardware acceleration
hwdec=auto
vo=gpu
gpu-context=wayland
Configure VLC:
# VLC > Tools > Preferences > Input/Codecs
# Hardware-accelerated decoding: AutomaticUse FFmpeg:
# Hardware decode
ffmpeg -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -i input.mp4 output.mp4Enable acceleration:
# Edit about:config
# Set:
media.ffmpeg.vaapi.enabled = true
media.ffvpx.enabled = falseEnable acceleration:
# Launch with flags
chromium --enable-features=VaapiVideoDecoderCheck drivers:
# Check VAAPI
vainfo
# Check VDPAU
vdpauinfo
# Check GPU
glxinfo | grep "OpenGL renderer"Install codecs:
# Install codecs
sudo pacman -S gstreamer-vaapiThis guide covered VAAPI, VDPAU, video player configuration, browser acceleration, and troubleshooting.
- Arch Linux Graphics Drivers - GPU setup
- Arch Linux Multimedia - Multimedia
- ArchWiki Hardware Acceleration: https://wiki.archlinux.org/title/Hardware_video_acceleration
This guide is based on the ArchWiki. For the most up-to-date information, always refer to the official ArchWiki.