Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I know waking from suspend is an issue, but this looks like a separate bug.

When I suspend 13.10 on HP Pavillion dv6 (AMD 6770M/fglrx 13.10.10) from x, it suspends normally but freezes when waking. I get a black screen with a frozen cursor.

But when I suspend from console with sudo pm-suspend, it wakes normally, and I can then get back my x with ctrl-alt-f7.

If I suspend by closing lid under x, also freezes when waking up. If I suspend by closing lid under console, it wakes up into the x (?) login, then into a clean session.

UPDATE. I checked my syslog, kern.log and pm-suspend.log, they appear to show a standard suspend procedure which is completed normally, then followed by many blank lines (000s), then normal start procedure after hard reset. I may be wrong but looks like kernel panic to me.

Also, if I suspend with dbus (How can I suspend/hibernate from command line?) instead of pm-suspend, outcome is same.

share|improve this question
    
same problem, but my pc hangs 1/5 resumes, console or x doesn't matter –  ArK Nov 6 '13 at 20:33
    
any suggestions anyone? –  Pavel Nov 7 '13 at 22:03
add comment

2 Answers

up vote 7 down vote accepted

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    
share|improve this answer
1  
The script does the job so I've accepted the answer, thanks. BTW, any particular reason for chmod u+x rather than chmod+x? –  Pavel Dec 14 '13 at 21:48
    
Awesome workaround! Thanks! –  Vlad Alexandru Ionescu Dec 18 '13 at 11:06
    
Does the trick for me, thanks! Asus n550jv, Ubuntu 13.10 with nvidia-319-updates drivers here. Fixed blank white screen on wake issue. –  ido Jan 12 at 13:26
add comment

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)
#suspending to RAM
    chvt 1
    echo "Going to sleep"
    sleep 1
;;
resume|thaw)
#resume from suspend 
    echo "try to resume"
    sleep 1
    chvt 7
;;       
esac 
share|improve this answer
add comment

protected by Community Feb 3 at 17:16

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.