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

Thread: Ubuntu 9.10 won't enter suspend/hibernate

  1. #11
    Join Date
    Nov 2008
    Beans
    3

    Re: Ubuntu 9.10 won't enter suspend/hibernate

    On my HP 8540w I have created the following script

    /etc/pm/sleep.d/05_xhci

    The content of this file is
    Code:
    #!/bin/sh
    # Fix some issues with USB3
    
    if [ "$1" = "suspend" ]
    then
            modprobe -r xhci
    fi
    
    if [ "$1" = "resume" ]
    then
            modprobe xhci
    fi
    chmod 755 /etc/pm/sleep.d/05_xhci

    And now I can use my USB3 devices and go in suspend mode.
    (Perhaps you need to change the script to hibernate)

    Note that I use Lucid, version 10.4 beta 2
    Perhaps you'll need to store this file on a folder called suspend.d
    Thank you for the tips helping me to understand the issue.

    Regards
    Gab

  2. #12
    Join Date
    Apr 2010
    Beans
    1

    Re: Ubuntu 9.10 won't enter suspend/hibernate

    Hi all,
    I have the exact same problem that you are reporting. I have followed this thread and I got the same results when tried the commands you suggested. But when i checked the USB configuration, it results i have usb2 instead of usb3. Regardless, I would prefer not to disable usb ports.
    It is not the first time installing ubuntu 9.10 on this machine, and previous times, I hadn't this problem. A curiosity, maybe, I didn't remove the previous installation yet (on which suspend was working fine), and now started to fail on that partition too (that is weird, I know).

    Any Idea? Thanks in advance!
    (sorry for my poor english, from Argentina )

  3. #13
    Join Date
    Mar 2009
    Beans
    2

    Re: Ubuntu 9.10 won't enter suspend/hibernate

    Hi,
    it seems, that I have the same or similir problem.
    I am runnig Ubuntu 10.04 on Acer Aspire 9303.

    When I try to suspend (either with pm or s2ram) it starts suspending process and then instead of powering off it returns to the system.

    In logs I can find messages, that "Device usb1 failed to suspend".

    lsusb output:
    Code:
    Bus 002 Device 004: ID 04b4:0033 Cypress Semiconductor Corp. 
    Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 001 Device 003: ID 0402:5602 ALi Corp. Video Camera Controller
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    I have tried sudo modprobe -r xhci before suspending but it doesn't help. I have also tried modprobe -r usbhid hid, but that doesn't help either.

    lsusb -v doesn't show any usb3 device.

    Suspend and hibernate worked just fine before upgrade to 10.04.
    Hibernate works now, but I dont use it much. I would prefer to use suspend.

    I would appreciate any idea, which might lead to solving this issue. Thanks.

  4. #14
    Join Date
    Mar 2009
    Beans
    2

    Re: Ubuntu 9.10 won't enter suspend/hibernate

    It seems that I have found a solution for me (well it's more a workaround than a solution, but suspends works fine now).

    I understood from this bug report, that problem was in my web camera, which is using gspca_m5602 driver.

    What I had to do was create a simple script:
    Code:
    #!/bin/bash
    echo disabled >/sys/bus/usb/devices/.../power/wakeup
    # (instead of "..." put usb device which is causing you problems.
    # You can find more info in the bug report linked above. For me it was "usb1".)
    and put it into /etc/pm/sleep.d/ directory. Don't forget to "chmod 755 your_script_name".

    Thats all! Now suspend works fine for me! I guess that for hibernate u can do the same.

    Hope this will help to someone.

  5. #15
    Join Date
    Jun 2007
    Beans
    49

    Re: Ubuntu 9.10 won't enter suspend/hibernate

    I wanted to mention that the suggestion of nuage6 didn't work for me (I'm running 9.10). But using this script (which I installed in /usr/local/sbin) did work:

    #!/bin/sh
    modprobe -r xhci
    pm-suspend
    modprobe xhci

    Thanks to all who contributed to this thread! Great help.

  6. #16
    Join Date
    May 2010
    Beans
    5

    Re: Ubuntu 9.10 won't enter suspend/hibernate

    Quote Originally Posted by rmcd View Post
    I wanted to mention that the suggestion of nuage6 didn't work for me (I'm running 9.10). But using this script (which I installed in /usr/local/sbin) did work:

    #!/bin/sh
    modprobe -r xhci
    pm-suspend
    modprobe xhci

    Thanks to all who contributed to this thread! Great help.
    How do I install the above script? I mean, do I put the above code in a text file and then save it in /usr/local/sbin? Should the file have a special name and a particular format?
    I am new to Linux, and would really appreciate the help. Thanks!

  7. #17
    Join Date
    Jun 2007
    Beans
    49

    Re: Ubuntu 9.10 won't enter suspend/hibernate

    You pretty much have it right. You create a file containing the commands I posted. I named it "mysleep.sh" because there is already a "sleep" command. Then do the following
    Code:
    sudo chmod +x mysleep.sh
    sudo cp mysleep.sh /usr/local/sbin
    To explain: The first line makes the file executable. Executing the commands in the file requires that you have root privileges. You cannot execute a script in an "sbin" directory unless you become root or execute by prefacing with sudo. It goes in /usr/local/sbin because it's provided by you (local), not part of the standard installation.

    Then you run the command as
    Code:
    sudo mysleep.sh
    If I've botched the explanation, I'm sure someone will jump in and clarify.

  8. #18
    Join Date
    Jan 2007
    Beans
    68

    Re: Ubuntu 9.10 won't enter suspend/hibernate

    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.

    Works great here. But I'm afraid that it will give difficulties when the driver is in use, for example, when an external HDD is connected using USB3. Hopefully the driver will have improved by the time I get me one.

    Has anyone filed a bug report about the XHCI driver (maybe in combination with the NEC chip?) yet?

  9. #19
    Join Date
    Aug 2007
    Beans
    4

    Re: Ubuntu 9.10 won't enter suspend/hibernate

    I'm using ubuntu 10.04, Core i7 860 on P55-USB3 motherboard and I had the same problem.Disabling onboard USB3 solved it.

    Thanks.

  10. #20
    Join Date
    Jun 2007
    Beans
    2

    Re: Ubuntu 9.10 won't enter suspend/hibernate

    Wow, you guys rock. This worked for my motherboard: Gigabyte GA-790XTA-UD4. I used the script supplied by nuage06.

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
  •