mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-01 20:28:16 +02:00
Resume boosting didn't actually solve the real underlying problem
But a bios update to the XPS should.
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user