Page 3 of 3 FirstFirst 123
Results 21 to 25 of 25

Thread: Ubuntu 9.10 won't enter suspend/hibernate

  1. #21
    Join Date
    Jun 2009
    Beans
    14
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Ubuntu 9.10 won't enter suspend/hibernate

    the mysleep.sh solution worked for me to be able to Sleep my computer.

    That is, I have a file with these lines:
    Code:
    #!/bin/sh
    modprobe -r xhci
    pm-suspend
    modprobe xhci
    and if I
    Code:
    sudo mysleep.sh
    in the terminal, then my computer does go to sleep.

    That's great, but how can I get it to work so that when I press the suspend button, or Ctrl+alt+del SUSPEND, it runs that command?
    Any ideas for incorporating this into the regular controls?

  2. #22
    Join Date
    May 2010
    Beans
    35

    Re: Ubuntu 9.10 won't enter suspend/hibernate

    Thanks nuage6, your script solved my suspend issues.

    The problem was the Asus U3S6 sata usb3 card and Im running ubuntu 10.04.2. Disabling the xhci drivers doesnt affect the sata portion of the card either.

    Thanks again!

  3. #23
    Join Date
    Sep 2009
    Location
    USA
    Beans
    422
    Distro
    Kubuntu

    Re: Ubuntu 9.10 won't enter suspend/hibernate

    Quote Originally Posted by MadEgg View Post
    Same problem here. Disabling USB3 does the trick on my Gigabyte X58A-UD3R mainboard. But the approach you are taking for unloading the module before suspending is more of a workaround then necessary. Suspending has the right tools for this.

    I implemented it like this. Put the following code (as root) into

    /etc/pm/sleep.d/05_disable_usb3
    Code:
    #!/bin/bash
    
    ## Unload USB 3 module before sleep
    
    case "$1" in
        suspend)
            /sbin/modprobe -r xhci
            ;;
        hibernate)
            /sbin/modprobe -r xhci
            ;;
        thaw)
            /sbin/modprobe xhci
            ;;
        resume)
            /sbin/modprobe xhci
            ;;
    esac
    After saving this, make it executable:

    Code:
    chmod ugo+x /etc/pm/sleep.d/05_disable_usb3
    Now, when suspending, the script is passed suspend, and while resuming the scripts is passed resume, so it always performs the correct action.
    I know this thread is a year old. And I believe the problem has been fixed for more recent releases. But I'm still on 10.04 (LTS) and finally got suspend working due to this.

    But I wanted to update it. The above works for me. But the xhci module has been renamed to xhci_hcd

    So I used the above script, but substituted "xhci" for "xhci_hcd" and it works for me.

    So maybe others that are still on the old LTS this will work for them also.

  4. #24
    Join Date
    Aug 2011
    Beans
    6

    Re: Ubuntu 9.10 won't enter suspend/hibernate

    thanks for this thread. But it still doesn't work out for me though I tried the script

    For Hibernate or Suspend, my laptop just turns to black screen but is still running and what's worse is I cannot get it back.. it remains the black screen though I push the power botton..

    any idea? thanks

  5. #25
    Join Date
    Jun 2007
    Beans
    49

    Re: Ubuntu 9.10 won't enter suspend/hibernate

    For me, this tip helped greatly in 10.04. Edit the boot command line (in /etc/default/grub, if you're using grub2) to add "nomodeset":

    GRUB_CMDLINE_LINUX_DEFAULT="nomodeset"

    Then run sudo update-grub, and reboot.

Page 3 of 3 FirstFirst 123

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
  •