Page 3 of 22 FirstFirst 1234513 ... LastLast
Results 21 to 30 of 213

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

  1. #21
    Join Date
    Aug 2006
    Location
    ~/
    Beans
    162
    Distro
    Kubuntu 7.04 Feisty Fawn

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

    thanks - very nice - I've been having problems with suspending on a dell inspiron e1505n (yes, the one that _came_ with ubuntu).

    It works fine, except that when I resume from suspend I see my session there for 2 or 3 seconds and then it goes back to suspend. the second time I try to wake it up it will work.

    it goes:
    -Ok, I'm using the computer
    -I hit stand-by key
    -the computer goes to sleep
    -I hit the power button to wake it up
    -the screen turns on - I can see the previous session
    -BLOOP! it's gone- the computer went to sleep again
    -I hit the power button to wake up
    -it works!

    not really important, but can anyone shed any light on this?

  2. #22
    Join Date
    Aug 2006
    Location
    ~/
    Beans
    162
    Distro
    Kubuntu 7.04 Feisty Fawn

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

    ok when I hit fn+standby, I encounter the previously mentioned problem.
    when I do K menu -> logout -> suspend, it works the way it should.

    I guess I'll just use the K menu from now on.

  3. #23
    Join Date
    Aug 2006
    Location
    ~/
    Beans
    162
    Distro
    Kubuntu 7.04 Feisty Fawn

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

    Will I have to redo this when it's time to upgrade to Gutsy Gibbon?
    Triple post ftw!

  4. #24
    Join Date
    Aug 2006
    Location
    ~/
    Beans
    162
    Distro
    Kubuntu 7.04 Feisty Fawn

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

    ok I fixed my problem! yay!
    I did
    Code:
    sudo -i
    cp /etc/acpi/sleep.sh /etc/acpi/sleep.sh.bak
    apparently it ran through two different sleep scripts when I hit the suspend key

  5. #25
    Join Date
    May 2007
    Location
    PA, USA
    Beans
    113
    Distro
    Gutsy Gibbon Testing

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

    If you have errors there are a bunch of settings to mess around with:

    man s2ram:
    Code:
    OPTIONS
           -h, --help
                  Short help text.
    
           -n, --test
                  test if the machine is in the database. returns 0 if  known  and
                  supported
    
           -i, --identify
                  prints a string that identifies the machine.
    
           -f, --force
                  force  suspending,  even on unknown machines.  the following op‐
                  tions are only available with --force.
    
           -s, --vbe_save
                  save VBE state before suspending and restore after resume.
    
           -p, --vbe_post
                  VBE POST the graphics card after resume
    
           -r, --radeontool
                  turn off the backlight on radeons before suspending.
    
           -a, --acpi_sleep
                  set  the  acpi_sleep  parameter  before   suspend.    1=s3_bios,
                  2=s3_mode, 3=both
    
           -v, --pci_save
                  Save the PCI config space of the VGA card before suspend and re‐
                  store it after resume.
    Also, it is recommended to use s2both instead of s2ram in case the system loses power.

    Code:
           s2both will do precisly the same as s2disk except that it will not pow‐
           er off the system, but will suspend it to ram (put  the  system  in  S3
           mode). This has the advantage that resume will be faster, with the dis‐
           advantage that you still use batteries. If they batteries  do  deplete,
           you  still  have  the system state saved to disk and can resume without
           data loss.
    
           You will need to set up an initramfs which calls the resume program for
           this  to  work. If you use an debian kernel package which was made with
           the --initrd option and you use mkinitramfs-tools, this package  should
           include the necessary parts on your initramfs.

  6. #26
    Join Date
    Apr 2007
    Beans
    Hidden!

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

    Quote Originally Posted by crazedgremlin View Post
    ok I fixed my problem! yay!
    I did
    Code:
    sudo -i
    cp /etc/acpi/sleep.sh /etc/acpi/sleep.sh.bak
    apparently it ran through two different sleep scripts when I hit the suspend key
    That doesn't make sense. Did you move (mv) it instead of copy (cp)? Or did you enter some code in the original file after copying it, or make it non-executable? Otherwise, the old script ought to still run.

    I have the same laptop and same problem with the "start" button bringing it back but only to go back to suspend again. But, the laptop lid switch works better .. just close and reopen the lid and it will resume from suspend.

    regards,

  7. #27
    Join Date
    Aug 2006
    Location
    ~/
    Beans
    162
    Distro
    Kubuntu 7.04 Feisty Fawn

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

    haha you're right,
    I did mv instead of cp

    I really need to proofread before I post

  8. #28
    Join Date
    Apr 2007
    Beans
    Hidden!

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

    OK, so now I have a working suspend / resume and hibernate / resume. Suspend / resume worked before, but hibernate never did. I have a dell e1505 with nvidia card.

    But, still there is a problem when I use compiz/compiz-fusion/beryl. After one or two successful suspend / resume cycles, the computer locks up and I have to power off and reboot. This happened before and even now with uswsusp. I know about unchecking "sync to vblank" with compiz, but still have the problem. I also know that if I disable compiz before suspend / hibernate, resume will work. Of course, turning off compiz causes all open windows to bunch together, so it makes a lot of work after resuming. Anyone have a solution to this?

    regards,

  9. #29
    Join Date
    Mar 2007
    Beans
    94

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

    My computer will lock up like that too, whenever the display goes to sleep for too long without expliciting suspending or hibernating the system. If I have Compiz or Beryl installed (or maybe even if I'm just running Xgl, who knows?), then my computer will freeze up much more often it seems. And when my computer does this, I've learned to make sure there is no external hard drive mounted or else.

    What is the "sync to vblank" option?

    Anyways, I actually came to this thread because it solved my suspend/hibernate problems, but I just now noticed that my computer still locks up when the display goes to sleep and I don't know how to get it to resume.

  10. #30
    Join Date
    Apr 2007
    Beans
    Hidden!

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

    Quote Originally Posted by fflarex View Post

    What is the "sync to vblank" option?
    I think it's discussed on the beryl troubleshooting page:

    http://wiki.beryl-project.org/wiki/T...hooting_nVidia

    It applies only to nvidia video cards.

    regards,

Page 3 of 22 FirstFirst 1234513 ... 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
  •