mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-01 20:28:16 +02:00
Ensure enable_psr=0 is set for all xps ptl systems
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user