Fixing video corruption on resume under Ubuntu Linux
Create a file called /etc/pm/sleep.d/15_chvt and paste the below into it:
#!/bin/sh # Action script to change VT to fix occasional video corruption on resume # # Copyright: Copyright (c) 2012 # License: GPL-2 # PATH=/sbin:/usr/sbin:/bin:/usr/bin case "${1}" in resume|thaw) vt=$(/bin/fgconsole) if [ -z $vt ]; then vt=7 fi chvt $(expr $vt + 1) chvt $vt ;; esac
Labels: chvt, corruption, display, fgconsole, linux, sleep, suspend, ubuntu, video