13.10 hangs on waking from suspend except when suspended from console

Solution 1:

Seems I have same issue and with help of your testing I found workaround. Make a script that switch to console before suspend and switch back after resume.

In a terminal run sudoedit /etc/pm/sleep.d/fglrx-fix and paste in the following script. Afterwards make it executable by running sudo chmod u+x /etc/pm/sleep.d/fglrx-fix

Script:

#!/bin/bash
#Script kills autofs when going into standby to eliminate issues with it
case $1 in

suspend)
#suspending to RAM
    chvt 1
    echo "Going to sleep"
    sleep 1
;;
resume)
#resume from suspend 
    echo "try to resume"
    sleep 1
    chvt 7
;;       
esac    

Solution 2:

Jan's answer worked perfect for me, but the issue would still happen on hibernate. To fix this, I modified a tiny bit of the script:

#!/bin/bash
#Script kills autofs when going into standby to eliminate issues with it
case $1 in

suspend|hibernate)  # instead of just "suspend"
#suspending to RAM
    chvt 1
    echo "Going to sleep"
    sleep 1
;;
resume|thaw)  # instead of just "resume"
#resume from suspend 
    echo "try to resume"
    sleep 1
    chvt 7
;;       
esac