ubuntu does not load the image from swap after hibernation

Bug #1801551 reported by stephen bond

This bug report was converted into a question: question #676281: ubuntu does not load the image from swap after hibernation.

16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
initramfs-tools (Ubuntu)
Undecided
Unassigned

Bug Description

after upgrading from 16.04 to 18.04 the upgrade messes up the boot process and hibernatation does not work. I hibernate by

systemctl hibernate

it asks for a password and it seemingly saves the image and shuts down. when I start the computer it does not load the saved image but opens a blank session losing the saved workspace. very inconvenient to start from scratch every time.

Revision history for this message
stephen bond (stephen-cbond) wrote :

the above approach worked fine in 16.04

Revision history for this message
stephen bond (stephen-cbond) wrote :

forgot to mention: I need the hibernation as this is for a laptop and using suspend simply drains the battery and it dies, hibernation could preserve the battery over a week.

Revision history for this message
Steve Langasek (vorlon) wrote :

This would certainly not be a bug in grub, which has nothing to do with hibernate/resume handling.

What disk is the target for your hibernation? What are the contents of the RESUME setting in your initramfs? (unmkinitramfs /boot/initrd.img /tmp/initrd; cat /tmp/initrd/main/conf/conf.d/zz-auto-resume)

Resume from hibernation only works if you resume into the same kernel after hibernation that you were running before hibernation. Is it possible that you were rebooting into a different kernel version due to kernel security updates having been applied?

affects: grub (Ubuntu) → initramfs-tools (Ubuntu)
Changed in initramfs-tools (Ubuntu):
status: New → Incomplete
Revision history for this message
stephen bond (stephen-cbond) wrote :

Steve,

I will be happy to test any specific commands

cat: /tmp/initrd/main/conf/conf.d/zz-auto-resume: No such file or directory

also I saw other bug reports reporting the same problem see

In Progress
#332365

I thought that hibernate will dump the workspace onto swap. I think it does that. however the wake up does not load from swap.
can you suggest some diagnostic commands?
thanks

Revision history for this message
stephen bond (stephen-cbond) wrote :

cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sdb7 during installation
UUID=72511ae3-b3b2-40b5-833e-ba6722bec17f / ext4 errors=remount-ro 0 1
# swap was on /dev/sdb6 during installation
UUID=5dbf169d-1f88-46c2-a99b-17540bf6801c none swap sw 0 0

Revision history for this message
stephen bond (stephen-cbond) wrote :

if anybody can help with making hibernation work on ubuntu 18.04 pls let me know.

the bug report is incomplete and I have no idea how to complete it.

Changed in initramfs-tools (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
Steve Langasek (vorlon) wrote :

Since zz-auto-resume is absent, please show the output of 'unmkinitramfs /boot/initrd.img /tmp/initrd; ls /tmp/initrd/main/conf/conf.d/'.

Changed in initramfs-tools (Ubuntu):
status: Invalid → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for initramfs-tools (Ubuntu) because there has been no activity for 60 days.]

Changed in initramfs-tools (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Related questions