Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 25

Thread: Problem with suspend

  1. #11
    Join Date
    Mar 2013
    Beans
    31

    Re: Diagnosing Sleep Disorders

    Here are the results of the test in post #9:

    http://paste.ubuntu.com/5697150/

    And Toz, after closing the lid and waiting for the computer to suspend, it "looks" like it's about to wake up after I hit the power key, but goes to a black screen. Brightness keys have no effect. Ctrl-Alt-F1 does not bring up the terminal. The sequence Ctl-Alt-T, sudo reboot does not reboot the machine. space bar, trackpad, trackpad clicks, mouse clicks, all have no effect.
    Last edited by thatstheway; April 11th, 2013 at 03:01 AM.

  2. #12
    Join Date
    Mar 2013
    Beans
    31

    Re: Diagnosing Sleep Disorders

    The results of the test in post #9, that is. [sorry, I can't figure out how to delete posts. "Edit Post" says Edit/Delete in the rollover, but I can't see the Delete option.]
    Last edited by thatstheway; April 11th, 2013 at 02:51 AM.

  3. #13
    Join Date
    Jun 2005
    Location
    Toronto, Canada
    Beans
    Hidden!
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Diagnosing Sleep Disorders

    I think that suspend/resume is working in both instances. From your log file:
    Wed Apr 10 18:38:36 PDT 2013: Running hooks for suspend.
    .....
    Wed Apr 10 18:38:40 PDT 2013: performing suspend
    Wed Apr 10 18:38:53 PDT 2013: Awake.
    Wed Apr 10 18:38:53 PDT 2013: Running hooks for resume
    .....
    Wed Apr 10 18:38:55 PDT 2013: Finished.
    .....
    .....
    Wed Apr 10 18:39:14 PDT 2013: Running hooks for suspend.
    .....
    Wed Apr 10 18:39:17 PDT 2013: performing suspend
    Wed Apr 10 18:40:11 PDT 2013: Awake.
    Wed Apr 10 18:40:11 PDT 2013: Running hooks for resume
    .....
    Wed Apr 10 18:40:13 PDT 2013: Finished.
    I believe the issue is that when you close the lid and re-open it, the screen isn't coming back.

    As a first step, lets get some brightness values.
    First, clear out the log file:
    Code:
    sudo rm /var/log/pm-suspend.log
    Then, create the file /etc/pm/sleep.d/000brightness:
    Code:
    gksudo gedit /etc/pm/sleep.d/000brightness
    ...with the following content:
    Code:
    #!/bin/bash
    case "$1" in
    	hibernate|suspend)
    		for file in /sys/class/backlight/*; do echo $file; cat $file/brightness; cat $file/max_brightness; done
    		;;
    	thaw|resume)
    		for file in /sys/class/backlight/*; do echo $file; cat $file/brightness; cat $file/max_brightness; done
                    ;;
            *)
                    ;;
    esac
    ...save the file and make the file executable:
    Code:
    sudo chmod +x /etc/pm/sleep.d/000brightness
    Then, close the lid, recover the computer, and post back /var/log/pm-suspend.log.
    Last edited by Toz; April 11th, 2013 at 02:53 PM.

  4. #14
    Join Date
    Mar 2013
    Beans
    31

    Re: Diagnosing Sleep Disorders

    Ok I'll try not to figure out why, but things have changed. When I closed the lid before, the power light would change from steady green to pulsing red, as it did when I issued the command from the menu. But after those changes, it remains steady green, and when I open the lid again and press any key, the xscreensaver log-on comes up, something I've never seen before. (possibly because it was too dark and I wasn't expecting this?) I can then log on, and resume!

    Here's the suspend log:

    http://paste.ubuntu.com/5697303/

    Did it really suspend? Hm, I just tried the suspend command from the menu and it didn't work. It looked like it was going to suspend, the wireless signal cleared out, but then the signal came back and it didn't suspend. I cleared the log, tried it from the menu, and this is what the log now says:

    http://paste.ubuntu.com/5697315/

  5. #15
    Join Date
    Jun 2005
    Location
    Toronto, Canada
    Beans
    Hidden!
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Diagnosing Sleep Disorders

    Sorry, typo in the script. Try this version of the script instead:
    Code:
    #!/bin/bash
    case "$1" in
    	hibernate|suspend)
    		for file in /sys/class/backlight/*; do echo $file; cat $file/brightness; cat $file/max_brightness; done
    		;;
    	thaw|resume)
    		for file in /sys/class/backlight/*; do echo $file; cat $file/brightness; cat $file/max_brightness; done
                    ;;
            *)
                    ;;
    esac

  6. #16
    Join Date
    Mar 2013
    Beans
    31

    Re: Diagnosing Sleep Disorders

    Thanks! Here it is:

    http://paste.ubuntu.com/5698531/

  7. #17
    Join Date
    Jun 2005
    Location
    Toronto, Canada
    Beans
    Hidden!
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Problem with suspend

    Can you go into the BIOS and if you have a VT-d virtualization setting, disable it by switching to "VT-x only".

    EDIT: If that doesn't work, lets try some quirks.

    First, delete /etc/pm/config.d/module so that we are using pm-suspend again.

    Then, create a custom quirks file:
    Code:
    gksudo gedit /etc/pm/config.d/custom-quirks
    ...and add the following:
    Code:
    ADD_PARAMETERS="--quirk-s3-bios"
    Finally, delete /var/log/pm-suspend.log and perform 2 suspends: one from the menu and one by closing the lid. Post back /var/log/pm-suspend.log.
    Last edited by Toz; April 11th, 2013 at 06:33 PM.

  8. #18
    Join Date
    Mar 2013
    Beans
    31

    Re: Problem with suspend

    Thanks again, Toz! The BIOS for my machine (Toshiba Portege R100) is very barebones, and doesn't have any virtualization options. The only option it has that has anything to do with graphics is Power on Display, which I have set to "LCD+AnalogRGB," and the other option is "Auto Selected." I can go into more detail about my barebones BIOS options if it seems useful.

    I tried your "quirk" test, and this time, Suspend-from-the-menu behaved exactly how Suspend-from-closed-lid has been behaving, a black screen and a reboot. Here is the log:

    http://paste.ubuntu.com/5699214/

  9. #19
    Join Date
    Jun 2005
    Location
    Toronto, Canada
    Beans
    Hidden!
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Problem with suspend

    Quote Originally Posted by thatstheway View Post
    Thanks again, Toz! The BIOS for my machine (Toshiba Portege R100) is very barebones, and doesn't have any virtualization options. The only option it has that has anything to do with graphics is Power on Display, which I have set to "LCD+AnalogRGB," and the other option is "Auto Selected." I can go into more detail about my barebones BIOS options if it seems useful.

    I tried your "quirk" test, and this time, Suspend-from-the-menu behaved exactly how Suspend-from-closed-lid has been behaving, a black screen and a reboot. Here is the log:

    http://paste.ubuntu.com/5699214/
    Lets try a few more quirks. Edit /etc/pm/config.d/custom-quirks and change the quirk to:
    Code:
    --quirk-vbe-post
    ...and try again.

    Other quirks to try would include:
    --quirk-vbemode-restore
    --quirk-vbestate-restore

    Reference: http://manpages.ubuntu.com/manpages/...-action.8.html

  10. #20
    Join Date
    Mar 2013
    Beans
    31

    Re: Problem with suspend

    Results of

    Code:
    --quirk-vbe-post
    :

    Behavior: Suspend-by-menu and suspend-by-lid required reboots.

    Log:

    http://paste.ubuntu.com/5699417/

    I'll try the others...

Page 2 of 3 FirstFirst 123 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •