* Disable PSR1 on XPS IPS and OLED. IPS uses PSR2 * Improve conditional flow * Simplify the migration logic * We don't actually need this We are using += everywhere --------- Co-authored-by: David Heinemeier Hansson <david@hey.com>
21 lines
814 B
Bash
21 lines
814 B
Bash
# Fix display issues on Dell XPS Panther Lake (Xe3) systems.
|
|
# Xe PSR causes freezes and display glitches on both OLED and IPS panels.
|
|
# LG OLED panels also need Panel Replay disabled.
|
|
if omarchy-hw-match "XPS" && omarchy-hw-intel-ptl; then
|
|
echo "Detected Dell XPS on Panther Lake, applying display power-saving fixes..."
|
|
|
|
if omarchy-hw-dell-xps-oled; then
|
|
CMDLINE='KERNEL_CMDLINE[default]+=" xe.enable_psr=0 xe.enable_panel_replay=0"'
|
|
COMMENT='Disable Xe PSR and Panel Replay on Dell XPS Panther Lake OLED systems'
|
|
else
|
|
CMDLINE='KERNEL_CMDLINE[default]+=" xe.enable_psr=0"'
|
|
COMMENT='Disable Xe PSR on Dell XPS Panther Lake systems'
|
|
fi
|
|
|
|
sudo mkdir -p /etc/limine-entry-tool.d
|
|
cat <<EOF | sudo tee /etc/limine-entry-tool.d/dell-xps-ptl-display.conf >/dev/null
|
|
# $COMMENT
|
|
$CMDLINE
|
|
EOF
|
|
fi
|