Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: 8.04 - Hibernate wont resume

  1. #1
    Join Date
    Nov 2007
    Beans
    14

    8.04 - Hibernate wont resume

    Hi people, I have ubuntu 8.04 installed on my laptop, at the beginning hibernate used to don't work, it seemed like i had not a swap partition working, then i changed the fstab setting my swap partition as /dev/sda5 as it should be, since before it was setted by UID and it used to change continuously :S

    Now hibernate seems to work, I mean, it does hibernate, but when i power on the computer... it does not resume the hibernated situation, it just boots the computer like if I just restarted the machine.

    Anyone does have any idea to fix my problem? thank you guys

  2. #2
    Join Date
    Nov 2007
    Beans
    14

    Re: 8.04 - Hibernate wont resume

    No one does have any idea to help me?

  3. #3
    Join Date
    Nov 2007
    Beans
    14

    Re: 8.04 - Hibernate wont resume

    I still have this problem and I can't find a way to solve it :S

  4. #4
    Join Date
    Nov 2007
    Beans
    40

    Re: 8.04 - Hibernate wont resume

    I have the same issue just that my ubuntu won't even hibernate it quits after pressing hibernate and than nothing happends

  5. #5
    Join Date
    Jun 2008
    Beans
    6

    Re: 8.04 - Hibernate wont resume

    Hi PintoZ,
    I had pretty much the same problem (i.e. it would hibernate but not thaw).
    In my case, the problem was that I had recreated the swap (with mkswap). The point is that to resume, ubuntu needs to know where the resume data were saved. This info is in the initramfs and reference is often made to the UUID of the partition rather than the device (e.g. /dev/sda3), which changes if you remake the swap. So:

    1. identify the initramfs that you are currently using. You can look at /boot/grub/menu.lst. The line
    Code:
    default 0
    says which option is booted by default. The corresponding initrd option specifies the image file, e.g.
    Code:
    initrd	/boot/initrd.img-2.6.24-17-generic
    2. copy that image to /tmp and extract it:

    Code:
    mkdir /tmp/initramfs
    cp /boot/initrd.img-2.6.24-17-generic /tmp/initramfs/image.gz
    gunzip -c -9 /tmp/initramfs/image.gz | cpio -i -d -H newc --no-absolute-filenames
    now look at the file /tmp/initramfs/conf/conf.d/resume. It will be something like:
    Code:
    RESUME=UUID=11e49f41-85e5-4889-873e-efc1be92f07d
    3. You could change this UUID to match that of your swap partition and remake the initrd file or, more easily, just remake the swap so that it has the UUID you found:

    Code:
    swapoff -a
    mkswap -U 11e49f41-85e5-4889-873e-efc1be92f07d /dev/sda3
    swapon -a
    Naturally, you will have to change all the specifics (UUID, /dev/sda3 , initrdxxx) to match your configuration. You may also need root privileges for some commands.

    Hope it helps.

    Actually, you mentioned your swap's UUID changes continuously (?). In that case, maybe you can remake the initramfs with a /tmp/initramfs/conf/conf.d/resume file that looks like this: RESUME=/dev/sda3

  6. #6
    Join Date
    Apr 2006
    Location
    Fresno CA
    Beans
    2,790
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: 8.04 - Hibernate wont resume

    This may not be your particular problem but, swap space needs to be the size of RAM or more for hibernate to work.
    Last edited by fragos; August 28th, 2008 at 05:16 AM.
    Thank a veteran -- George 8)
    Internet Coach & Writer
    Personal Blog -- 3 Joes' Blog

  7. #7
    Join Date
    Apr 2007
    Beans
    6

    Re: 8.04 - Hibernate wont resume

    Elfantin: Thanks for the guide, this was exactly my problem with hibernate. Your guide was fairly easy to follow, except I was confused at one point. If you don't cd into /tmp/initramfs before you extract the image, it will extract everything into where ever you happen to be (the home folder in my case). So your next step doesn't work. Simple thing, but confusing for a new user.

    Also, one problem I have with guides in general is that they give you big commands like your extract line, without explaining whats going on, or what the options do, or anything.

    Anyways, thanks for the awesome help. Now hibernate works on my laptop.

  8. #8
    Join Date
    May 2008
    Beans
    58

    Re: 8.04 - Hibernate wont resume

    Hi there,
    I had a problem with hibernate and suspend - followed the guide and it worked!!!
    so far so good, but now I have for the first time experienced that my laptop shuts down due to overheating!!
    Rebooted and now the CPU temperature is at 75C - not healthy.
    Could that have anything to do with changing settings I did using this guide?
    The one thing I did not see in my stup is a UUID number in my /tmp/initramfs/conf/conf.d/resume file. So I set my swap to dev/sda5 , which my /boot/grub/menu.lst said.
    Any ideas - and just in case how could I reverse the changes I made with this guide?

  9. #9
    Join Date
    Jun 2006
    Location
    Gwangju, Korea
    Beans
    3,479

    Re: 8.04 - Hibernate wont resume

    Quote Originally Posted by Elfantin View Post
    now look at the file /tmp/initramfs/conf/conf.d/resume.
    That file doesn't exist on my system. Perhaps it's because I didn't create a swap partition when I installed (I have 3GB of RAM, so the only reason to have swap is for hibernation, and I didn't realize I needed swap for that). How do I add that file to my initrd?

  10. #10
    Join Date
    May 2007
    Beans
    73

    Re: 8.04 - Hibernate wont resume

    I also have the same problem. Nothing in my initrd folder at all.

Page 1 of 2 12 LastLast

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
  •