#685387 pm-utils: Broken hibernate in Wheezy

#685387#5
Date:
2012-08-20 11:57:01 UTC
From:
To:
Dear Maintainer,
Use Wheezy, kernel update yesterday broke hibernate, hibernation does
not work in Ubuntu since version 12.04.
The system goes to sleep, but does not wake up. If you do spill it just
does not find that sleep.
The logs:
Aug 20 08:34:45 fl kernel: [    0.821208] PM: Hibernation image not
present or could not be loaded.
Aug 20 08:34:45 fl kernel: [    1.895650] PM: Hibernation image
partition 8:5 present
Aug 20 08:34:45 fl kernel: [    1.895654] PM: Looking for hibernation image.
Aug 20 08:34:45 fl kernel: [    1.895897] PM: Hibernation image not
present or could not be loaded.

Give the console command sudo pm-hibernate - no reaction. I give sudo
pm-suspend - goes into standby.
Sleeping(and wake up) working on echo "disk"> /sys/power/state.

#685387#10
Date:
2012-08-20 14:02:24 UTC
From:
To:
Are you using a default Debian kernel with initial ramdisk?
What is your swap partition?
Can you post the contents of /etc/initramfs-tools/conf.d/resume and
assuming you use UUID, the output of ls -la /dev/disk/by-uuid.

Michael

#685387#15
Date:
2012-08-20 14:42:35 UTC
From:
To:
Yes.
UUID=4c9191ed-1b44-4f02-8af5-f75026b43964 (/dev/sda5)
cat /etc/initramfs-tools/conf.d/resume
RESUME=UUID=4c9191ed-1b44-4f02-8af5-f75026b43964

ls -la /dev/disk/by-uuid
итого 0
drwxr-xr-x 2 root root 100 Авг 20 08:34 .
drwxr-xr-x 5 root root 100 Авг 20 08:34 ..
lrwxrwxrwx 1 root root  10 Авг 20 08:34
4c9191ed-1b44-4f02-8af5-f75026b43964 -> ../../sda5
lrwxrwxrwx 1 root root  10 Авг 20 08:34
6aa1aa1d-fdfe-4cea-9466-364ca0e4bd49 -> ../../sda6
lrwxrwxrwx 1 root root  10 Авг 20 08:34
d37e35fe-9f99-4a13-b857-6f9ebad2f62b -> ../../sda1

#685387#20
Date:
2012-08-20 15:02:10 UTC
From:
To:
Ok, this all looks fine.
You said the problem started after the recent kernel upgrade.
Did you hibernate while you still had the old kernel loaded?
Does it work if you boot using the new/upgraded kernel?

pm-utils ships a hook /etc/kernel/postinst.d/pm-utils, which creates a
file /var/run/do-not-hibernate. pm-hibernate checks for that file and
refuses to hibernate if it finds it. See [1] for a related discussion.

This might be the problem you are experiencing.

Michael

[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=597199

#685387#25
Date:
2012-08-21 20:42:00 UTC
From:
To:
Sorry for the report.
On a clean install on the same laptop error does not occur. Everything
works fine.

#685387#30
Date:
2023-12-21 17:56:09 UTC
From:
To:
Dear submitter,

as the package pm-utils has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/1058701

The version of this package that was in Debian prior to this removal
can still be found using https://snapshot.debian.org/.

Please note that the changes have been done on the master archive and
will not propagate to any mirrors until the next dinstall run at the
earliest.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmaster@ftp-master.debian.org.

Debian distribution maintenance software
pp.
Thorsten Alteholz (the ftpmaster behind the curtain)