Bug#902416: systemd: systemctl hibernate: unable to resume after upgrade

Michael Biebl biebl at debian.org
Wed Jun 27 15:03:26 BST 2018


Am 27.06.2018 um 14:17 schrieb Joel Cross:
> I have attached both logs.

Ok, thanks for the logs. So it looks like no proper hibernation image
was written to disk.

If you run "systemctl hibernate", systemd-logind logind will notify
clients via D-Bus that the system is going to hibernate.
Then systemd will start the hibernate.target which in turn starts
systemd-hibernate.service. This service will call
"/lib/systemd/systemd-sleep hibernate"

The code for this binary is at
https://github.com/systemd/systemd/blob/master/src/sleep/sleep.c

Joel, can you execute "/lib/systemd/systemd-sleep hibernate" directly
and see what happens then.

This will help narrow down the problem, as we don't have any D-Bus
notifications this way and other programs possibly interfering with
hibernate.
If the above command fails, then it's likely a problem in that executable.

These are the changes between v238 and v239:

$ git log --oneline v238..v239 -- sleep.c
0cd41d4df Drop my copyright headers
96b2fb93c tree-wide: beautify remaining copyright statements
0c6979413 tree-wide: remove Lennart's copyright lines
818bf5463 tree-wide: drop 'This file is part of systemd' blurb
a1230ff97 basic/log: add the log_struct terminator to macro
4d09e1c8b Merge pull request #8676 from keszybz/drop-license-boilerplate
0ca906ace sleep: Move the error level debugging for write_mode and
write_state
17c40b3a8 sleep: Add support for setting a disk offset when hibernating
11a158922 tree-wide: drop license boilerplate
e68c79db9 Rename suspend-to-hibernate to suspend-then-hibernate
c58493c00 Introduce suspend-to-hibernate (#8274)

The only one which looks slighly relevant might be
https://github.com/systemd/systemd/commit/17c40b3a8fbfb797110c88d749bd5d37e6ee6e3c#diff-f1a8ef48b9daffd7280cdacb9044c80f

Regards,
Michael
-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20180627/9b0c7845/attachment-0002.sig>


More information about the Pkg-systemd-maintainers mailing list