From f7dc63ca72ebb361b78ae284ff47bed6b42bb7e5 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Wed, 15 Apr 2026 02:26:37 -0700 Subject: [PATCH] Work around the return-from-sleep sluggishness on panther lake This is due to slow ramp after s2idle --- default/systemd/system-sleep/resume-boost | 10 ++++++++++ install/config/all.sh | 1 + install/config/hardware/intel/resume-boost.sh | 8 ++++++++ 3 files changed, 19 insertions(+) create mode 100755 default/systemd/system-sleep/resume-boost create mode 100644 install/config/hardware/intel/resume-boost.sh diff --git a/default/systemd/system-sleep/resume-boost b/default/systemd/system-sleep/resume-boost new file mode 100755 index 00000000..0ce02d94 --- /dev/null +++ b/default/systemd/system-sleep/resume-boost @@ -0,0 +1,10 @@ +#!/bin/bash + +# Temporarily switch to performance power profile on resume +# to avoid sluggishness while the system catches up, then +# drop back to balanced after 10 seconds. + +if [[ $1 == "post" ]]; then + powerprofilesctl set performance + (sleep 10 && powerprofilesctl set balanced) & +fi diff --git a/install/config/all.sh b/install/config/all.sh index 6b2f3dfa..b09332e6 100644 --- a/install/config/all.sh +++ b/install/config/all.sh @@ -43,6 +43,7 @@ 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/fix-wifi7-eht.sh +run_logged $OMARCHY_INSTALL/config/hardware/intel/resume-boost.sh run_logged $OMARCHY_INSTALL/config/hardware/dell/fix-xps-haptic-touchpad.sh run_logged $OMARCHY_INSTALL/config/hardware/dell/fix-xps-ptl-display.sh diff --git a/install/config/hardware/intel/resume-boost.sh b/install/config/hardware/intel/resume-boost.sh new file mode 100644 index 00000000..8a1f48cd --- /dev/null +++ b/install/config/hardware/intel/resume-boost.sh @@ -0,0 +1,8 @@ +# Boost CPU performance for 10 seconds after resume on Panther Lake systems. +# The powersave governor with balance_power EPP is slow to ramp frequency +# after long suspends, causing noticeable sluggishness on wake. + +if omarchy-hw-intel-ptl; then + sudo mkdir -p /usr/lib/systemd/system-sleep + sudo install -m 0755 -o root -g root "$OMARCHY_PATH/default/systemd/system-sleep/resume-boost" /usr/lib/systemd/system-sleep/ +fi