Page 1 of 3 123 LastLast
Results 1 to 10 of 25

Thread: Ubuntu 9.10 won't enter suspend/hibernate

  1. #1
    Join Date
    Apr 2010
    Beans
    6

    Ubuntu 9.10 won't enter suspend/hibernate

    Greetings forum-goers. I have been trying to get my new (custom built) computer to suspend and hibernate without success. Whenever I tell it to suspend or hibernate the screen goes black, almost as if it were working, but immediately returns to a login screen. The power never turns off. I have successfully been able to suspend under windows vista, so it would seem that hardware is certainly capable. But I cannot replicate this under an installed or live-cd version of ubuntu.

    I am using ubuntu 9.10 64 bit, a core i7 920, and a gigabyte X58A-UD3R motherboard.

    It would seem that the computer supports suspend and hibernate:
    Code:
    $ cat /sys/power/state
    mem disk
    But after running
    Code:
    $ sudo pm-suspend
    unsuccessfully, the log file shows
    Code:
    $ cat /var/log/pm-suspend.log
    Initial commandline parameters: 
    Sat Apr  3 15:45:36 EST 2010: Running hooks for suspend.
    /usr/lib/pm-utils/sleep.d/000record suspend suspend: success.
    /usr/lib/pm-utils/sleep.d/00auto-quirk suspend suspend: Adding quirks from HAL: --quirk-dpms-on --quirk-dpms-suspend --quirk-vbe-post --quirk-vbemode-restore --quirk-vbestate-restore --quirk-vga-mode-3 
    success.
    /usr/lib/pm-utils/sleep.d/00logging suspend suspend: Linux zeus 2.6.31-20-generic #58-Ubuntu SMP Fri Mar 12 04:38:19 UTC 2010 x86_64 GNU/Linux
    Module                  Size  Used by
    binfmt_misc            10220  1 
    ppdev                   8232  0 
    snd_hda_codec_realtek   277860  1 
    snd_hda_intel          31880  2 
    snd_hda_codec          87584  2 snd_hda_codec_realtek,snd_hda_intel
    snd_hwdep               9352  1 snd_hda_codec
    snd_pcm_oss            44704  0 
    snd_mixer_oss          18976  1 snd_pcm_oss
    snd_pcm                93160  3 snd_hda_intel,snd_hda_codec,snd_pcm_oss
    snd_seq_dummy           3460  0 
    snd_seq_oss            33440  0 
    snd_seq_midi            8192  0 
    snd_rawmidi            27296  1 snd_seq_midi
    snd_seq_midi_event      8448  2 snd_seq_oss,snd_seq_midi
    snd_seq                60608  6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
    snd_timer              26992  2 snd_pcm,snd_seq
    snd_seq_device          8308  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
    iptable_filter          3872  0 
    ip_tables              21200  1 iptable_filter
    snd                    77096  16 snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
    soundcore               9088  1 snd
    xhci                   40772  0 
    x_tables               25832  1 ip_tables
    lp                     11908  0 
    psmouse                57124  0 
    snd_page_alloc         10928  2 snd_hda_intel,snd_pcm
    nvidia              10316904  56 
    serio_raw               6596  0 
    joydev                 13088  0 
    parport                40528  2 ppdev,lp
    dm_raid45              78504  0 
    xor                     5456  1 dm_raid45
    ohci1394               33780  0 
    usbhid                 43968  0 
    ieee1394              100896  1 ohci1394
    r8169                  38884  0 
    mii                     6368  1 r8169
    floppy                 65192  0 
                 total       used       free     shared    buffers     cached
    Mem:       6124104    1838148    4285956          0      44244     237876
    -/+ buffers/cache:    1556028    4568076
    Swap:      8980292          0    8980292
    success.
    /usr/lib/pm-utils/sleep.d/00powersave suspend suspend: success.
    /usr/lib/pm-utils/sleep.d/01PulseAudio suspend suspend: success.
    /etc/pm/sleep.d/10_grub-common suspend suspend: success.
    /etc/pm/sleep.d/10_unattended-upgrades-hibernate suspend suspend: success.
    /usr/lib/pm-utils/sleep.d/49bluetooth suspend suspend: not applicable.
    /usr/lib/pm-utils/sleep.d/55NetworkManager suspend suspend: success.
    /usr/lib/pm-utils/sleep.d/75modules suspend suspend: success.
    /usr/lib/pm-utils/sleep.d/90clock suspend suspend: not applicable.
    /usr/lib/pm-utils/sleep.d/94cpufreq suspend suspend: success.
    /usr/lib/pm-utils/sleep.d/95anacron suspend suspend: stop: Unknown instance: 
    success.
    /usr/lib/pm-utils/sleep.d/95led suspend suspend: not applicable.
    /usr/lib/pm-utils/sleep.d/96laptop-mode suspend suspend: success.
    /usr/lib/pm-utils/sleep.d/98smart-kernel-video suspend suspend: success.
    /usr/lib/pm-utils/sleep.d/99video suspend suspend: kernel.acpi_video_flags = 0
    success.
    /etc/pm/sleep.d/action_wpa suspend suspend: success.
    Sat Apr  3 15:45:37 EST 2010: performing suspend
    Sat Apr  3 15:45:38 EST 2010: Awake.
    Sat Apr  3 15:45:38 EST 2010: Running hooks for resume
    /etc/pm/sleep.d/action_wpa resume suspend: success.
    /usr/lib/pm-utils/sleep.d/99video resume suspend: success.
    /usr/lib/pm-utils/sleep.d/98smart-kernel-video resume suspend: success.
    /usr/lib/pm-utils/sleep.d/96laptop-mode resume suspend: success.
    /usr/lib/pm-utils/sleep.d/95led resume suspend: not applicable.
    /usr/lib/pm-utils/sleep.d/95anacron resume suspend: success.
    /usr/lib/pm-utils/sleep.d/94cpufreq resume suspend: success.
    /usr/lib/pm-utils/sleep.d/90clock resume suspend: not applicable.
    /usr/lib/pm-utils/sleep.d/75modules resume suspend: success.
    /usr/lib/pm-utils/sleep.d/55NetworkManager resume suspend: success.
    /usr/lib/pm-utils/sleep.d/49bluetooth resume suspend: not applicable.
    /etc/pm/sleep.d/10_unattended-upgrades-hibernate resume suspend: success.
    /etc/pm/sleep.d/10_grub-common resume suspend: success.
    /usr/lib/pm-utils/sleep.d/01PulseAudio resume suspend: success.
    /usr/lib/pm-utils/sleep.d/00powersave resume suspend: success.
    /usr/lib/pm-utils/sleep.d/00logging resume suspend: success.
    /usr/lib/pm-utils/sleep.d/00auto-quirk resume suspend: success.
    /usr/lib/pm-utils/sleep.d/000record resume suspend: success.
    Sat Apr  3 15:45:38 EST 2010: Finished.
    So I installed uswsusp and tried running s2ram
    Code:
    $ sudo s2ram
    Machine is unknown.
    This machine can be identified by:
        sys_vendor   = "Gigabyte Technology Co., Ltd."
        sys_product  = "X58A-UD3R"
        sys_version  = " "
        bios_version = "F1"
    See http://suspend.sf.net/s2ram-support.html for details.
    
    If you report a problem, please include the complete output above.
    forcing it gives
    Code:
    $ sudo s2ram --force
    Switching from vt1 to vt1
    [  739.651149] pm_op(): usb_dev_suspend+0x0/0x10 returns -2
    [  739.651151] PM: Device usb9 failed to suspend: error -2
    [  739.651154] PM: some devices failed to suspend
    s2ram_do: No such file or directory
    switching back to vt1
    but running lsusb shows nothing on usb9:
    Code:
    $ lsusb
    Bus 009 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 008 Device 002: ID 413c:2003 Dell Computer Corp. Keyboard
    Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 003 Device 002: ID 046d:c521 Logitech, Inc. MX620 Laser Cordless Mouse
    Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    I thought it was about time I asked for help. Does anyone have any ideas how I could fix this problem? Thanks!

    Solved (sort of): The USB port causing the problem was USB version 3. Turning the USB3 controller off in the BIOS alleviated the problem. But it's only really a temporary solution.
    Last edited by om06zr; April 7th, 2010 at 03:46 PM. Reason: Added solution

  2. #2
    Join Date
    Jul 2009
    Location
    Houston, Texas
    Beans
    1,044
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: Ubuntu 9.10 won't enter suspend/hibernate

    Try
    Code:
    apmsleep
    Best thing that ever happened to me on Ubuntu Forums: http://i.imgur.com/itEJe.png

  3. #3
    Join Date
    Apr 2010
    Beans
    6

    Re: Ubuntu 9.10 won't enter suspend/hibernate

    Code:
    $ sudo apmsleep +00:01
    apmsleep: Your kernel does not support APM.
    apmsleep: Recompile kernel with APM and /dev/rtc support

  4. #4
    Join Date
    Jul 2009
    Location
    Houston, Texas
    Beans
    1,044
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: Ubuntu 9.10 won't enter suspend/hibernate

    Hmm...How about
    Code:
    sudo /etc/acpi/sleep.sh
    Best thing that ever happened to me on Ubuntu Forums: http://i.imgur.com/itEJe.png

  5. #5
    Join Date
    Apr 2010
    Beans
    6

    Re: Ubuntu 9.10 won't enter suspend/hibernate

    Code:
    $ sudo /etc/acpi/sleep.sh
    cat: /var/lib/acpi-support/system-manufacturer: No such file or directory
    cat: /var/lib/acpi-support/system-product-name: No such file or directory
    cat: /var/lib/acpi-support/system-version: No such file or directory
    cat: /var/lib/acpi-support/bios-version: No such file or directory

  6. #6
    Join Date
    Jul 2009
    Location
    Houston, Texas
    Beans
    1,044
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: Ubuntu 9.10 won't enter suspend/hibernate

    Then I have no idea, sorry.
    Best thing that ever happened to me on Ubuntu Forums: http://i.imgur.com/itEJe.png

  7. #7
    Join Date
    Apr 2010
    Beans
    6

    Re: Ubuntu 9.10 won't enter suspend/hibernate

    Thanks anyway!

  8. #8
    Join Date
    Jul 2009
    Location
    Houston, Texas
    Beans
    1,044
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: Ubuntu 9.10 won't enter suspend/hibernate

    Anytime.
    Best thing that ever happened to me on Ubuntu Forums: http://i.imgur.com/itEJe.png

  9. #9
    Join Date
    Apr 2007
    Location
    New Zealand
    Beans
    66
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Ubuntu 9.10 won't enter suspend/hibernate

    I have the exact same problem as you, and have managed to solve it by turning off *all* USB devices in the BIOS.

    I'm running an Asus N61J laptop with a Core i7 720M.

    Next task is to figure out how, if at all, I can disable the particular USB component that is causing me problems without removing my ability to use a USB mouse/keyboard...

  10. #10
    Join Date
    Apr 2010
    Beans
    6

    Re: Ubuntu 9.10 won't enter suspend/hibernate

    AHA! It seems that the troublesome usb port was USB3.

    Code:
    $lsusb -v
    Bus 009 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Device Descriptor:
      bLength                18
      bDescriptorType         1
      bcdUSB               3.00
      bDeviceClass            9 Hub
      bDeviceSubClass         0 Unused
      bDeviceProtocol         3 
      bMaxPacketSize0         9
      idVendor           0x1d6b Linux Foundation
      idProduct          0x0002 2.0 root hub
      bcdDevice            2.06
      iManufacturer           3 
      iProduct                2 
      iSerial                 1 
      bNumConfigurations      1
      Configuration Descriptor:
        bLength                 9
        bDescriptorType         2
        wTotalLength           25
        bNumInterfaces          1
        bConfigurationValue     1
        iConfiguration          0 
        bmAttributes         0xe0
          Self Powered
          Remote Wakeup
        MaxPower                0mA
        Interface Descriptor:
          bLength                 9
          bDescriptorType         4
          bInterfaceNumber        0
          bAlternateSetting       0
          bNumEndpoints           1
          bInterfaceClass         9 Hub
          bInterfaceSubClass      0 Unused
          bInterfaceProtocol      0 Full speed (or root) hub
          iInterface              0 
          Endpoint Descriptor:
            bLength                 7
            bDescriptorType         5
            bEndpointAddress     0x81  EP 1 IN
            bmAttributes            3
              Transfer Type            Interrupt
              Synch Type               None
              Usage Type               Data
            wMaxPacketSize     0x0004  1x 4 bytes
            bInterval              12
    
    ...
    (the "bcdUSB 3.00" part). By disabling the USB3 controller in the BIOS I am now able to suspend and resume. Although now I don't get to use those ports. I guess linux doesn't have great support for USB3 yet?

    Clarification: By USB3 I mean USB version 3
    Last edited by om06zr; April 7th, 2010 at 03:47 PM. Reason: Added clarifaction

Page 1 of 3 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
  •