Skip to content

Instantly share code, notes, and snippets.

@perguth
Last active August 29, 2015 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save perguth/cd83e1a70a3fb4c25f00 to your computer and use it in GitHub Desktop.
Save perguth/cd83e1a70a3fb4c25f00 to your computer and use it in GitHub Desktop.
Fix freeze-after-suspend for a Samsung 730U. Src: http://askubuntu.com/a/387676/207593
#!/bin/sh
# Install
# =======
# sudo gedit /etc/pm/sleep.d/01_switchvt
# paste this script
# sudo chmod 755 /etc/pm/sleep.d/01_switchvt
case "$1" in
resume|thaw)
chvt 7
;;
suspend|hibernate)
chvt 1
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment