diff options
Diffstat (limited to 'pm/sleep.d/90chvt')
-rwxr-xr-x | pm/sleep.d/90chvt | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/pm/sleep.d/90chvt b/pm/sleep.d/90chvt deleted file mode 100755 index 47a2c85..0000000 --- a/pm/sleep.d/90chvt +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/sh -# Ensure we eare in text mode by switching to an unused vt. -# Also avoids lots of ghastly suspend/resume errors due to trying -# to suspend/resume while running in X. - -. "${PM_FUNCTIONS}" - -case "$1" in - hibernate|suspend) - fgconsole |savestate console - chvt 63 - ;; - thaw|resume) - state_exists console || exit 1 - chvt $(restorestate console) - deallocvt 63 - ;; - *) - ;; -esac |