VOOZH about

URL: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1301601/comments/13

⇱ Comment #13 : Bug #1301601 : Bugs : linux package : Ubuntu


Comment 13 for bug 1301601

Revision history for this message 👁 Image
Øyvind Stegard (oyvindstegard) wrote : #13

Console switch workaround is reliable and prevents possible hangs on suspend when screen locking is enabled.

It's implemented with a simple script in /etc/pm/sleep.d/99switch_to_vt1:

#!/bin/sh
# Possible workaround for bug:
# https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1301601
#
# Switch to a VT before suspending and back after resume

case "$1" in
    resume|thaw)
        /bin/chvt 7
    ;;
    suspend|hibernate)
        /bin/chvt 1
    ;;
esac