diff --git a/migrations/1776099290.sh b/migrations/1776099290.sh new file mode 100644 index 00000000..bd386014 --- /dev/null +++ b/migrations/1776099290.sh @@ -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