Ensure enable_psr=0 is set for all xps ptl systems

This commit is contained in:
David Heinemeier Hansson
2026-04-13 15:59:16 -07:00
parent 1df2b16f2f
commit 3eee73c0de
+14
View File
@@ -0,0 +1,14 @@
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
UPDATED=false
if ! grep -q 'xe.enable_panel_replay' /etc/default/limine; then
echo 'KERNEL_CMDLINE[default]+=" xe.enable_panel_replay=0"' | sudo tee -a /etc/default/limine >/dev/null
UPDATED=true
fi
if $UPDATED; then
sudo limine-mkinitcpio
fi
fi