Comment 9 for bug 1652499

Revision history for this message
Yann Salmon (yannsalmon) wrote : Re: Cannot hibernate properly ; systemd-sleep hangs

Judging by the absence of the line "Hibernation is possible, Active" in the log when this problem occurs, I think that the execution of systemd-sleep does not reach line 256 in sleep-config.c <https://github.com/systemd/systemd/blob/da4128543ffc5042dc9f6b6f1d22ec72b77b17b3/src/shared/sleep-config.c#L256> which is part of a function named enough_memory_for_hibernation and is indirectly called by line 208 in sleep.c <https://github.com/systemd/systemd/blob/master/src/sleep/sleep.c#L208>.

I will set the SYSTEMD_BYPASS_HIBERNATION_MEMORY_CHECK environment variable to true as this seems to shortcut this function.