diff --git a/bin/omarchy-hw-dell-xps-oled b/bin/omarchy-hw-dell-xps-oled new file mode 100755 index 00000000..80141b8a --- /dev/null +++ b/bin/omarchy-hw-dell-xps-oled @@ -0,0 +1,7 @@ +#!/bin/bash + +# Match Dell XPS systems with LG OLED panel on Intel Panther Lake (Xe3) GPU. + +omarchy-hw-match "XPS" \ + && omarchy-hw-intel-ptl \ + && test "$(od -An -tx1 -j8 -N2 /sys/class/drm/card*-eDP-*/edid 2>/dev/null | tr -d ' \n')" = "30e4" diff --git a/install/config/hardware/dell/fix-xps-ptl-display.sh b/install/config/hardware/dell/fix-xps-ptl-display.sh index 17941e2c..91433afd 100644 --- a/install/config/hardware/dell/fix-xps-ptl-display.sh +++ b/install/config/hardware/dell/fix-xps-ptl-display.sh @@ -1,9 +1,6 @@ # Fix display issues on Dell XPS 2026+ with LG OLED panel and Intel Panther Lake (Xe3) GPU. # Power-saving features (PSR and Panel Replay) cause freezes and display glitches. -if omarchy-hw-match "XPS" \ - && omarchy-hw-intel-ptl \ - && test "$(od -An -tx1 -j8 -N2 /sys/class/drm/card*-eDP-*/edid 2>/dev/null | tr -d ' \n')" = "30e4"; then - +if omarchy-hw-dell-xps-oled; then echo "Detected Dell XPS with LG OLED panel on Panther Lake, applying display power-saving fix..." CMDLINE='KERNEL_CMDLINE[default]+=" xe.enable_psr=0 xe.enable_panel_replay=0"' diff --git a/migrations/1776099290.sh b/migrations/1776099290.sh index 55110301..87ce5d1c 100644 --- a/migrations/1776099290.sh +++ b/migrations/1776099290.sh @@ -1,6 +1,6 @@ echo "Add xe.enable_psr=0 to CMDLINE for XPS Panther Lake systems missing it" -if omarchy-hw-match "XPS" && omarchy-hw-intel-ptl && [ -f /etc/default/limine ]; then +if omarchy-hw-dell-xps-oled && [ -f /etc/default/limine ]; then UPDATED=false if ! grep -q 'xe.enable_psr' /etc/default/limine; then