sleep hack for surface

This commit is contained in:
Henrik Bakken
2025-11-06 15:42:30 +01:00
parent 8c2dcfcfa5
commit a6e27b8903
6 changed files with 36 additions and 9 deletions
@@ -1,8 +1,8 @@
[Login]
IdleAction=suspend-then-hibernate
IdleAction=hibernate
IdleActionSec=10min
HandlePowerKey=suspend-then-hibernate
HandlePowerKey=hibernate
HandlePowerKeyLongPress=poweroff
HandleLidSwitch=suspend-then-hibernate
HandleLidSwitchExternalPower=suspend-then-hibernate
HandleLidSwitch=hibernate
HandleLidSwitchExternalPower=hibernate
HandleLidSwitchDocked=ignore
+12
View File
@@ -0,0 +1,12 @@
#!/bin/sh
# This file (or a link to it) must be in /lib/systemd/system-sleep/iptsd.sh
logger -t "iptsd-hack" "\$0=$0, \$1=$1, \$2=$2"
if [ $1 == "pre" ]; then
logger -t "iptsd-hack" "stopping iptsd"
iptsd-systemd -- stop
else
logger -t "iptsd-hack" "starting iptsd"
iptsd-systemd -- start
fi