Intel Graphics: Difference between revisions
m Added example configuration of modern Intel CPU |
Add Intel ARC (DG2/Xe-HPG) example: updated hardware.graphics config with intel-media-driver, vpl-gpu-rt, and intel-compute-runtime; notes on i915.enable_guc=3 and firmware for ffmpeg/VAAPI reliability; clarify intel-ocl is legacy. |
||
| Line 1: | Line 1: | ||
Example configuration with Hardware Acceleration & Quick Sync Video enabled on a modern Intel | Example configuration with Hardware Acceleration & Quick Sync Video enabled on a modern Intel Graphics (Including ARC) | ||
<syntaxhighlight lang="nix"> | |||
services.xserver.videoDrivers = [ "modesetting" ]; | services.xserver.videoDrivers = [ "modesetting" ]; | ||
hardware.graphics = { | hardware.graphics = { | ||
enable = true; | enable = true; | ||
extraPackages = with pkgs; [ | extraPackages = with pkgs; [ | ||
# | # Required for modern Intel GPUs (Xe iGPU and ARC) | ||
intel-media-driver # | intel-media-driver # VA-API (iHD) userspace | ||
vpl-gpu-rt # | vpl-gpu-rt # oneVPL (QSV) runtime | ||
# Optional (compute / tooling): | |||
intel-compute-runtime # OpenCL (NEO) + Level Zero for Arc/Xe | |||
# NOTE: 'intel-ocl' also exists as a legacy package; not recommended for Arc/Xe. | |||
# libvdpau-va-gl # Only if you must run VDPAU-only apps | |||
]; | ]; | ||
}; | }; | ||
environment.sessionVariables = { LIBVA_DRIVER_NAME = "iHD"; }; | |||
environment.sessionVariables = { | |||
LIBVA_DRIVER_NAME = "iHD"; # Prefer the modern iHD backend | |||
# VDPAU_DRIVER = "va_gl"; # Only if using libvdpau-va-gl | |||
}; | |||
# May help if FFmpeg/VAAPI/QSV init fails (esp. on Arc with i915): | |||
hardware.enableRedistributableFirmware = true; | |||
boot.kernelParams = [ "i915.enable_guc=3" ]; | |||
# Ensure service/user (e.g., jellyfin/plex) can access /dev/dri: | |||
# users.users.<service>.extraGroups = [ "video" "render" ]; | |||
</syntaxhighlight> | </syntaxhighlight> | ||