From a8a907791b9e4a28c7c58981db4e5ba99a25cba5 Mon Sep 17 00:00:00 2001 From: Nirav Patel <28994301+eclecticc@users.noreply.github.com> Date: Tue, 9 Sep 2025 11:04:22 -0700 Subject: [PATCH] Install video acceleration for intel GPUs (#1368) * install the needed packages for intel GPUs * keep forgetting that this is included by source --------- Co-authored-by: Nirav Patel --- install.sh | 1 + install/config/hardware/intel.sh | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100755 install/config/hardware/intel.sh diff --git a/install.sh b/install.sh index f13de37..8dd39a3 100755 --- a/install.sh +++ b/install.sh @@ -47,6 +47,7 @@ source $OMARCHY_INSTALL/config/hardware/printer.sh source $OMARCHY_INSTALL/config/hardware/usb-autosuspend.sh source $OMARCHY_INSTALL/config/hardware/ignore-power-button.sh source $OMARCHY_INSTALL/config/hardware/nvidia.sh +source $OMARCHY_INSTALL/config/hardware/intel.sh source $OMARCHY_INSTALL/config/hardware/fix-f13-amd-audio-input.sh # Login diff --git a/install/config/hardware/intel.sh b/install/config/hardware/intel.sh new file mode 100755 index 0000000..5c45e78 --- /dev/null +++ b/install/config/hardware/intel.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +# This installs hardware video acceleration for Intel GPUs +# Check if we have an Intel GPU at all +if INTEL_GPU=$(lspci | grep -iE 'vga|3d|display' | grep -i 'intel'); then + # HD Graphics and newer uses intel-media-driver + if [[ "${INTEL_GPU,,}" =~ "hd graphics"|"xe"|"iris" ]]; then + sudo pacman -S --needed --noconfirm intel-media-driver + elif [[ "${INTEL_GPU,,}" =~ "gma" ]]; then + # Older generations from 2008 to ~2014-2017 use libva-intel-driver + sudo pacman -S --needed --noconfirm libva-intel-driver + fi +fi +