Page 16 of 22 FirstFirst ... 61415161718 ... LastLast
Results 151 to 160 of 213

Thread: [HowTo]: Fix suspend and hibernate on laptops

  1. #151
    Join Date
    Aug 2006
    Beans
    5

    My succes story

    For me, it worked using uswsusp right after updating to Gutsy. Now it's gone again. What I did to fix it:

    * Did what was described here:
    http://knowledge76.com/index.php/Suspend_and_Hibernate
    * Did some basic tests from here:
    http://www.mjmwired.net/kernel/Docum...-debugging.txt
    The reboot/disk test showed directly that mysql was a problem. I disabled mysql, did some tests again, and it worked fine! This is now my custom hibernate script:
    #!/bin/bash
    /etc/init.d/mysql stop
    echo platform >/sys/power/disk
    echo disk >/sys/power/state
    /etc/init.d/mysql start

    Don't think this is using swsusp, but it works... who cares
    By the way, the Menu -> Shutdown -> Hibernate thing does still not work; it blanks the screen for a few minutes and then just returns.
    Last edited by zeekoe; December 14th, 2007 at 12:33 PM.

  2. #152
    Join Date
    Jan 2007
    Beans
    9
    Distro
    Gutsy Gibbon Testing

    Re: [HowTo]: Fix suspend and hibernate on laptops

    (sorry for me english, but i don'ts speak that very well.. i speak spanish)

    i try this in a laptop packard bell easynote mx36-u-2080

    I'm running compiz fusion with the latest fglrx driver of ati propieatry, with a intel core duo 1.73ghz and 1gb ram... on ubuntu gutsy

    when i try... it seems like to the resume image is done.. but when i reboot the sistem (s2disk) the screen freeze and i only see a message like that:

    resume: Image loadding succesfull.

    But the sistem don't start...
    What can i do???

    other thing the command s2ram doesn't exists... i see only a s2disk and s2both... i supose s2both = s2ram ...

  3. #153
    Join Date
    Nov 2007
    Location
    Bozeman, MT
    Beans
    26
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: [HowTo]: Fix suspend and hibernate on laptops

    For me, the fix worked only when I entered the command:
    Code:
     s2ram --force
    from the terminal. To fix this, I had to do the following:


    Code:
    sudo aptitude install uswsusp
    After that, I pulled the 0.7 version off of

    http://packages.debian.org/sid/i386/uswsusp/download

    and installed it. I don't know if it is necessary to install the one from the Ubuntu repos, but that's how I did it.

    Test it out: Use
    Code:
    sudo s2ram --force
    If that works, back up the following file:
    Code:
    sudo cp /usr/lib/hal/scripts/linux/hal-system-power-suspend-linux /usr/lib/hal/scripts/linux/hal-system-power-suspend-linux.bak
    Then, edit the original:
    Code:
     sudo gedit /usr/lib/hal/scripts/linux/hal-system-power-suspend-linux
    Replace all of the text with the following:
    Code:
    #!/bin/sh
    
    /usr/sbin/s2ram --force

    Now, it works like a charm!

    P.S. Sometimes I get a white screen after I suspend, and all I need to do is enter my password and hit enter.
    Last edited by chiefmanyrabbitguteat; January 22nd, 2008 at 09:29 AM.

  4. #154
    Join Date
    Sep 2005
    Location
    Northfleet, Kent, UK
    Beans
    346
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: [HowTo]: Fix suspend and hibernate on laptops

    Quote Originally Posted by chiefmanyrabbitguteat View Post
    For me, the fix worked only when I entered the command:
    Code:
     s2ram --force
    from the terminal. To fix this, I had to do the following:


    Code:
    sudo aptitude install uswsusp
    After that, I pulled the 0.7 version off of

    http://packages.debian.org/sid/i386/uswsusp/download

    and installed it. I don't know if it is necessary to install the one from the Ubuntu repos, but that's how I did it.

    Test it out: Use
    Code:
    sudo s2ram --force
    If that works, back up the following file:
    Code:
    sudo cp /usr/lib/hal/scripts/linux/hal-system-power-suspend-linux /usr/lib/hal/scripts/linux/hal-system-power-suspend-linux.bak
    Then, edit the original:
    Code:
     sudo gedit /usr/lib/hal/scripts/linux/hal-system-power-suspend-linux
    Replace all of the text with the following:
    Code:
    #!/bin/sh
    
    /usr/sbin/s2ram --force
    Now, it works like a charm!

    P.S. Sometimes I get a white screen after I suspend, and all I need to do is enter my password and hit enter.
    Thanks chiefmanyrabbitguteat

    Suspend works OK now on my HP Compaq nx7400 laptop.

    Anyone been able to get hibernate to work as well?

  5. #155
    Join Date
    Nov 2005
    Beans
    149
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: [HowTo]: Fix suspend and hibernate on laptops

    both hibernate and suspend now work on my IBM X60

  6. #156
    Join Date
    Apr 2006
    Beans
    5

    Re: [HowTo]: Fix suspend and hibernate on laptops

    On a Dell Inspiron 5160, I've managed to get s2both working properly from the command line using sudo s2both, which was a huge ordeal. However, pressing the Fn-Esc (Suspend) does nothing at all. After running "xev", no events are reported for this key event. All of the other Fn keys report events. Furthermore, pressing the power button does nothing as well. Performing the suspend or hibernate from the Gnome menu appear t suspend and hibernate, but when powered on again, they screen is blank but the system appears to be running.

    Does anyone know how to enable these events?

    Running Gutsy, kernel version 2.6.22-14-generic.

    Thanks!
    Last edited by gobucks; February 17th, 2008 at 06:17 PM.

  7. #157
    Join Date
    Sep 2006
    Beans
    2

    Re: [HowTo]: Fix suspend and hibernate on laptops

    Hi,
    I have a compaq Evo n610c and I managed to get suspend to ram working. Not using s2ram.
    I added to grub kernel line "acpi=off".
    It just work pressing the suspend button, not with the suspend icon. Also hibernation does not work anymore. Maybe somebody with the same laptop can fix the hibernation and suspend with the icons.

    warpjavier

    PS.
    Does anybody knows what script is executed when I press the suspend button and I have ACPI deactivaded?

    thanks
    Last edited by warpjavier; February 22nd, 2008 at 01:46 AM.

  8. #158
    Join Date
    Apr 2006
    Beans
    5

    Re: [HowTo]: Fix suspend and hibernate on laptops

    My suspicions were correct. The problem is not Ubuntu, it is the BIOS. It does not properly report all ACPI messages. I found this link where they discussed how to patch it on the fly:

    http://bugzilla.kernel.org/show_bug.cgi?id=1752#c103

    This made my power and suspend button start working, but after suspending, the resume does not work. The system powers up again, but gets stuck before X starts.

    Any recommendations?

  9. #159
    Join Date
    Apr 2006
    Beans
    5

    Re: [HowTo]: Fix suspend and hibernate on laptops

    Quote Originally Posted by gobucks View Post
    My suspicions were correct. The problem is not Ubuntu, it is the BIOS. It does not properly report all ACPI messages. I found this link where they discussed how to patch it on the fly:

    http://bugzilla.kernel.org/show_bug.cgi?id=1752#c103

    This made my power and suspend button start working, but after suspending, the resume does not work. The system powers up again, but gets stuck before X starts.

    Any recommendations?
    I got suspend working properly. After following the above steps in the link, then the instructions in this link:

    https://help.ubuntu.com/community/Nv...cumentation%29

    everything works fine. Hope this helps someone else.

  10. #160
    Join Date
    Sep 2007
    Beans
    209
    Distro
    Gutsy Gibbon Testing

    Re: [HowTo]: Fix suspend and hibernate on laptops

    I get a weird message
    Code:
    s2disk: Could not stat the resume device file. Reason: No such file or directory

Page 16 of 22 FirstFirst ... 61415161718 ... 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
  •