mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
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 <eclecticc@users.noreply.github.com>
This commit is contained in:
@@ -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
|
||||
|
||||
14
install/config/hardware/intel.sh
Executable file
14
install/config/hardware/intel.sh
Executable file
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user