Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions bin/omarchy-hw-intel-xe
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

# Detect Intel GPUs using the Linux xe driver.

for uevent in /sys/class/drm/card[0-9]*/device/uevent; do
[[ -r "$uevent" ]] || continue
grep -q '^DRIVER=xe$' "$uevent" || continue
grep -q '^PCI_ID=8086:' "$uevent" || continue
compgen -G '/sys/bus/event_source/devices/xe_*' >/dev/null && exit 0
done

exit 1
2 changes: 1 addition & 1 deletion config/btop/btop.conf
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ cpu_graph_upper = "Auto"
cpu_graph_lower = "Auto"

#* If gpu info should be shown in the cpu box. Available values = "Auto", "On" and "Off".
show_gpu_info = "Auto"
show_gpu_info = "On"

#* Toggles if the lower CPU graph should be inverted.
cpu_invert_lower = true
Expand Down
1 change: 1 addition & 0 deletions install/config/all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ run_logged $OMARCHY_INSTALL/config/hardware/nvidia.sh
run_logged $OMARCHY_INSTALL/config/hardware/vulkan.sh

run_logged $OMARCHY_INSTALL/config/hardware/intel/video-acceleration.sh
run_logged $OMARCHY_INSTALL/config/hardware/intel/btop-xe.sh
run_logged $OMARCHY_INSTALL/config/hardware/intel/lpmd.sh
run_logged $OMARCHY_INSTALL/config/hardware/intel/thermald.sh
run_logged $OMARCHY_INSTALL/config/hardware/intel/ipu7-camera.sh
Expand Down
5 changes: 5 additions & 0 deletions install/config/hardware/intel/btop-xe.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Temporary until upstream/Arch btop includes Intel xe GPU support.

if omarchy-hw-intel-xe && pacman -Si btop-xe &>/dev/null; then
yes | sudo pacman -S --needed btop-xe
fi
Comment on lines +3 to +5
1 change: 1 addition & 0 deletions install/omarchy-other.packages
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ asusctl
base
base-devel
broadcom-wl
btop-xe
btrfs-progs
dkms
egl-wayland
Expand Down
10 changes: 10 additions & 0 deletions migrations/1782416832.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
echo "Install btop with Intel Xe GPU support"

if omarchy-hw-intel-xe; then
bash "$OMARCHY_PATH/install/config/hardware/intel/btop-xe.sh"

if [[ -f ~/.config/btop/btop.conf ]]; then
sed -i 's/^show_gpu_info = "Auto"/show_gpu_info = "On"/' ~/.config/btop/btop.conf
sed -i 's/^shown_boxes = "cpu mem net proc gpu0"/shown_boxes = "cpu mem net proc"/' ~/.config/btop/btop.conf
fi
fi