Work around the return-from-sleep sluggishness on panther lake

This is due to slow ramp after s2idle
This commit is contained in:
David Heinemeier Hansson
2026-04-15 02:26:37 -07:00
parent 9389c1f57a
commit f7dc63ca72
3 changed files with 19 additions and 0 deletions
+10
View File
@@ -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