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.
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/da4128543f fc5042dc9f6b6f1 d22ec72b77b17b3 /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.