From 91af40fd7c37e44f467d4abee8de110a9a61e428 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 30 Apr 2026 17:26:14 +0200 Subject: [PATCH] Enable fred=on on intel ptl machines --- install/config/all.sh | 1 + install/config/hardware/intel/fred.sh | 18 ++++++++++++++++++ migrations/1777546300.sh | 9 +++++++++ 3 files changed, 28 insertions(+) create mode 100644 install/config/hardware/intel/fred.sh create mode 100644 migrations/1777546300.sh diff --git a/install/config/all.sh b/install/config/all.sh index 78f249ec..2fd0f02c 100644 --- a/install/config/all.sh +++ b/install/config/all.sh @@ -44,6 +44,7 @@ run_logged $OMARCHY_INSTALL/config/hardware/intel/lpmd.sh run_logged $OMARCHY_INSTALL/config/hardware/intel/thermald.sh run_logged $OMARCHY_INSTALL/config/hardware/intel/ipu7-camera.sh run_logged $OMARCHY_INSTALL/config/hardware/intel/ptl-kernel.sh +run_logged $OMARCHY_INSTALL/config/hardware/intel/fred.sh run_logged $OMARCHY_INSTALL/config/hardware/intel/fix-wifi7-eht.sh run_logged $OMARCHY_INSTALL/config/hardware/dell/fix-xps-haptic-touchpad.sh diff --git a/install/config/hardware/intel/fred.sh b/install/config/hardware/intel/fred.sh new file mode 100644 index 00000000..c25e4c79 --- /dev/null +++ b/install/config/hardware/intel/fred.sh @@ -0,0 +1,18 @@ +# Enable Flexible Return and Event Delivery on Intel Panther Lake. + +DROP_IN="/etc/limine-entry-tool.d/intel-panther-lake-fred.conf" +DEFAULT_LIMINE="/etc/default/limine" + +if omarchy-hw-intel-ptl; then + if [[ ! -f $DROP_IN ]] || ! grep -q 'fred=on' "$DROP_IN"; then + sudo mkdir -p /etc/limine-entry-tool.d + cat </dev/null +# Intel Panther Lake FRED support +KERNEL_CMDLINE[default]+=" fred=on" +EOF + fi + + if [[ -f $DEFAULT_LIMINE ]] && ! grep -q 'fred=on' "$DEFAULT_LIMINE"; then + sudo tee -a "$DEFAULT_LIMINE" < "$DROP_IN" >/dev/null + fi +fi diff --git a/migrations/1777546300.sh b/migrations/1777546300.sh new file mode 100644 index 00000000..fc40e222 --- /dev/null +++ b/migrations/1777546300.sh @@ -0,0 +1,9 @@ +echo "Enable FRED on Intel Panther Lake systems" + +DEFAULT_LIMINE="/etc/default/limine" + +if omarchy-hw-intel-ptl && [[ -f $DEFAULT_LIMINE ]] && ! grep -q 'fred=on' "$DEFAULT_LIMINE"; then + source "$OMARCHY_PATH/install/config/hardware/intel/fred.sh" + + sudo limine-update +fi