From ac08aaf834817d170742b6846b153a10f9530c2d Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Tue, 21 Apr 2026 17:19:34 +0200 Subject: [PATCH] Resume boosting didn't actually solve the real underlying problem But a bios update to the XPS should. --- default/systemd/system-sleep/resume-boost | 16 ---------------- install/config/all.sh | 1 - install/config/hardware/intel/resume-boost.sh | 8 -------- migrations/1776784497.sh | 5 +++++ 4 files changed, 5 insertions(+), 25 deletions(-) delete mode 100644 default/systemd/system-sleep/resume-boost delete mode 100644 install/config/hardware/intel/resume-boost.sh create mode 100644 migrations/1776784497.sh diff --git a/default/systemd/system-sleep/resume-boost b/default/systemd/system-sleep/resume-boost deleted file mode 100644 index 318519e8..00000000 --- a/default/systemd/system-sleep/resume-boost +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash - -# Temporarily switch to performance power profile on resume -# to avoid sluggishness while the system catches up, then -# restore the previous profile after 10 seconds. - -if [[ $1 == "pre" ]]; then - mkdir -p /run/omarchy - powerprofilesctl get > /run/omarchy/power-profile-before-sleep -fi - -if [[ $1 == "post" ]]; then - previous=$(cat /run/omarchy/power-profile-before-sleep 2>/dev/null || echo "balanced") - powerprofilesctl set performance - systemd-run --on-active=10 --timer-property=AccuracySec=1 powerprofilesctl set "$previous" -fi diff --git a/install/config/all.sh b/install/config/all.sh index 0f8f3d6d..69267195 100644 --- a/install/config/all.sh +++ b/install/config/all.sh @@ -44,7 +44,6 @@ 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 diff --git a/install/config/hardware/intel/resume-boost.sh b/install/config/hardware/intel/resume-boost.sh deleted file mode 100644 index 3d177cfd..00000000 --- a/install/config/hardware/intel/resume-boost.sh +++ /dev/null @@ -1,8 +0,0 @@ -# Boost CPU performance for 10 seconds after resume on Intel 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; 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 diff --git a/migrations/1776784497.sh b/migrations/1776784497.sh new file mode 100644 index 00000000..ef03e32d --- /dev/null +++ b/migrations/1776784497.sh @@ -0,0 +1,5 @@ +echo "Remove resume boost feature" + +if [[ -f /usr/lib/systemd/system-sleep/resume-boost ]]; then + sudo rm /usr/lib/systemd/system-sleep/resume-boost +fi