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 +