13.10 hangs on waking from suspend except when suspended from console

9,394

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 
Share:
9,394
Pavel
Author by

Pavel

Had my first Linux experience in 2003 with Mandrake 9. Almost got sick trying to make my winmodem work. Have used Mandriva/Mageia and OpenSUSE since. Somehow experienced but not very advanced.) Ubuntu user since 2013.

Updated on September 18, 2022

Comments

  • Pavel
    Pavel over 1 year

    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.

    • Dzero
      Dzero over 10 years
      same problem, but my pc hangs 1/5 resumes, console or x doesn't matter
  • Pavel
    Pavel over 10 years
    The script does the job so I've accepted the answer, thanks. BTW, any particular reason for chmod u+x rather than chmod+x?
  • ido
    ido over 10 years
    Does the trick for me, thanks! Asus n550jv, Ubuntu 13.10 with nvidia-319-updates drivers here. Fixed blank white screen on wake issue.
  • petersaints
    petersaints about 10 years
    You are a life saver...
  • psukys
    psukys about 10 years
    Works on 14.04, Lenovo E520, ATI HD 6630M with fglrx-updates ubuntu package
  • DrumEater
    DrumEater almost 10 years
    Seems to work for most - not for me. Mid 2010 Macbook Pro 6,2 with clean install of 14.04.