Linux Mint Issues With Resume From Suspend

2015-07-14 20:12

Having trouble with black screen after resuming from suspend in Linux Mint 17.1? Linux Mint 17.1 is built on Ubuntu 14.04 (Trusty) so this might be applicable for that also.

Anyways, the problem seems to be resolved by creating a pm-action hook (see man pm-suspend for details).

As root create the following hook as /etc/pm/sleep.d/20_custom-ehci_hcd and make it executable (chmod +x):

#!/bin/sh
# File: "/etc/pm/sleep.d/20_custom-ehci_hcd".

case "${1}" in
    hibernate|suspend)
    ;;
    resume|thaw)
        chvt 1
        chvt 8
    ;;
esac

This script simply cycle between virtual terminal 1 and 8 (where X is running) on resume. Exactly why this solves the problem with a black screen on resume is beyond me but it does.

Note: X might be running on virtual terminal 7. If that's the case for you adjust the script accordingly.

I based this on this thread on ubuntu forums.