Disable PSR1 on XPS IPS and OLED. XPS IPS uses PSR2 (#5315)
* 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>
This commit is contained in:
co-authored by
David Heinemeier Hansson
parent
a76757335a
commit
90bf106a70
@@ -1,14 +1,8 @@
|
||||
echo "Add xe.enable_psr=0 to CMDLINE for XPS Panther Lake systems missing it"
|
||||
echo "Ensure xe.enable_psr=0 is set in CMDLINE for XPS Panther Lake systems"
|
||||
|
||||
if omarchy-hw-dell-xps-oled && [ -f /etc/default/limine ]; then
|
||||
UPDATED=false
|
||||
|
||||
if ! grep -q 'xe.enable_psr' /etc/default/limine; then
|
||||
if omarchy-hw-match "XPS" && omarchy-hw-intel-ptl && [[ -f /etc/default/limine ]]; then
|
||||
if ! grep -Fq 'xe.enable_psr=0' /etc/default/limine; then
|
||||
echo 'KERNEL_CMDLINE[default]+=" xe.enable_psr=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