#!/bin/bash # # This script changes to terminal 1 before suspend, and back to terminal 7 on resume # to workaround fglrx freezing the machine right after resume. case $1 in suspend) chvt 1 sleep 1 ;; resume) sleep 1 chvt 7 ;; esac