summaryrefslogtreecommitdiff
path: root/pm/functions
diff options
context:
space:
mode:
Diffstat (limited to 'pm/functions')
-rwxr-xr-xpm/functions1
1 files changed, 1 insertions, 0 deletions
diff --git a/pm/functions b/pm/functions
index 75397c4..8d3f64c 100755
--- a/pm/functions
+++ b/pm/functions
@@ -49,6 +49,7 @@ take_suspend_lock()
remove_suspend_lock()
{
rm -f /var/run/pm-suspend
+ chvt 1
chvt $VT
openvt -- sh -c "usleep $1 ; rm -f /.suspended >/dev/null 2>&1 0<&1" >/dev/null 2>&1 0<&1 &
}