Ubuntu Hardy and Hibernate Issues

As I mentioned in my last post I had some minor problems with Ubuntu Hardy (8.04) and hibernation. It didn’t always work.

However it now seems like I might have overcome this problem. At first I thought it might had something to do with my docking station. Hibernating while docked, booting up while not and vice versa. The problem was that the machine would freeze during startup after being in hibernation. So to be able to actually see what was going on, I removed the splash screen, and afther this I haven’t had any problems with hibernate what so ever.

Come to think of it, this isn’t the only time the splash screen have caused problems. I had another machine where it refused to boot as long as the splash parameter was set. Luckily, with grub, we are able to edit the boot parameters at boot. Something that wasn’t possible with LILO in the good old days.

To remove the splash screen more permanently than editing grub at each boot. You can,would be to edit the file /boot/grub/menu.1st and remove the word ‘splash’ from the kernel parameters. Just remember that this will sneak its way in the next time you upgrade the kernel. Or rather, Ubuntu upgrades your kernel. as Stian said in the first comment, edit the line “# defoptions=quiet splash” to “#defopts=”quiet nosplash” in the file /boot/grub/menu.1st. Do not remove the leading #.

Please leave a comment if you found this useful.

5 thoughts on “Ubuntu Hardy and Hibernate Issues

  1. This did not solve it for me: What I did was three things to get hibernate to work with Ubuntu Hardy 2.6.24.21 on Thinkpad T42.
    1. change platform to shutdown
    >sudo gedit /usr/lib/pm-utils/functions
    change from “platform” to “shutdown”

    2. whitelist ptyq4
    >sudo gedit /etc/default/acpi-support:
    # Add modules to this list to have them removed before suspend and reloaded
    # on resume. An example would be MODULES=”em8300 yenta_socket”
    #
    # Note that network cards and USB controllers will automatically be unloaded
    # unless they’re listed in MODULES_WHITELIST
    MODULES=”ptyq4″

    3. Changes grub to point to swap on resume
    >sudo gedit /boot/grub/menu.lst
    UUID (for your swap partition) and nosplash making it look like this:
    title Ubuntu 8.04.1, kernel 2.6.24-21-generic
    root (hd0,4)
    kernel /boot/vmlinuz-2.6.24-21-generic root=UUID=5d6b95b0-19cb-4753-856f-663838a2bc6d ro quiet nosplash resume=UUID=fb7c67e6-ac30-42f7-8df5-cf127eab9013
    initrd /boot/initrd.img-2.6.24-21-generic
    quiet

  2. Thanks zcat! In my case, all I had to do was enable the grub changes to include the “resume=UUID” line …
    It actually also works with splash enabled.

Leave a Reply