From af724a384369a77aee970616d8b7bc4cf33883c0 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 26 Mar 2026 09:24:43 +0100 Subject: [PATCH] Only apply this display fix to the dell XPS OLED panel --- .../hardware/dell/fix-xps-ptl-display.sh | 21 +++++++++++-------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/install/config/hardware/dell/fix-xps-ptl-display.sh b/install/config/hardware/dell/fix-xps-ptl-display.sh index f6a49d34..912dc5bc 100644 --- a/install/config/hardware/dell/fix-xps-ptl-display.sh +++ b/install/config/hardware/dell/fix-xps-ptl-display.sh @@ -1,18 +1,21 @@ -# Fix display issues on Intel Panther Lake (Xe3) GPUs by disabling power-saving -# features that cause screen to run at 10hz (e.g. Dell XPS 2026). -if omarchy-hw-intel-ptl; then - echo "Detected Intel Panther Lake GPU, applying display fixes..." +# Fix display issues on Dell XPS 2026+ with LG OLED panel and Intel Panther Lake (Xe3) GPU. +# Power-saving features cause the screen to run at 10hz. +if omarchy-hw-match "XPS" \ + && omarchy-hw-intel-ptl \ + && grep -rqi "LG" /sys/class/drm/card*-eDP-*/edid 2>/dev/null; then - PANTHER_LAKE_CMDLINE='KERNEL_CMDLINE[default]+=" xe.enable_psr=0 xe.enable_panel_replay=0 xe.enable_fbc=0 xe.enable_dc=0"' + echo "Detected Dell XPS with LG OLED panel on Panther Lake, applying display fixes..." + + CMDLINE='KERNEL_CMDLINE[default]+=" xe.enable_psr=0 xe.enable_panel_replay=0 xe.enable_fbc=0 xe.enable_dc=0"' sudo mkdir -p /etc/limine-entry-tool.d - cat </dev/null -# Fix Panther Lake display issues by disabling Xe power-saving features -$PANTHER_LAKE_CMDLINE + cat </dev/null +# Fix Dell XPS OLED display issues by disabling Xe power-saving features +$CMDLINE EOF # Also append to /etc/default/limine if it exists, since it overrides drop-in configs if [ -f /etc/default/limine ] && ! grep -q 'xe.enable_psr' /etc/default/limine; then - echo "$PANTHER_LAKE_CMDLINE" | sudo tee -a /etc/default/limine >/dev/null + echo "$CMDLINE" | sudo tee -a /etc/default/limine >/dev/null fi fi