sleep hack for surface
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user