You are not logged in.

#1 2020-04-07 12:00:46

BBBob
Member
Registered: 2018-04-24
Posts: 8

[SOLVED] Can not hibernate after upgrading systemd

After upgrading systemd (243.162-2 -> 245.4-2), the system can not hibernate, it shows Failed to hibernate system via logind: Not enough swap space for hibernation. However, I have a 20G swap file space while my memory is 16G.
And then I downgraded systemd, systemd-libs, and systemd-sysvcompat to 2.43.162-2. It can hibernate normally. And then I upgrade them and it shows the error again.  Thanks in advance!

Last edited by BBBob (2020-04-08 17:20:47)

Offline

#2 2020-04-08 11:12:57

sabroad
Member
Registered: 2015-05-24
Posts: 242

Re: [SOLVED] Can not hibernate after upgrading systemd

It may be that recent systemd is more stringent about swap ids.
What's the output of the following commands?

# cat /proc/cmdline
# findmnt --fstab -t swap

--
saint_abroad

Offline

#3 2020-04-08 11:37:56

BBBob
Member
Registered: 2018-04-24
Posts: 8

Re: [SOLVED] Can not hibernate after upgrading systemd

cat /proc/cmdline:

initrd=\intel-ucode.img initrd=\initramfs-linux.img root=PARTUUID=81f96f42-8512-497b-8719-2b398183e3cb rw button.lid_init_state=open i915.enable_rc6=0 i915.enable_psr=0 intel_idle.max_cstate=4 resume=/dev/nvme0n1p4 resume_offset=5486592

findmnt --fstab -t swap:

TARGET SOURCE                    FSTYPE OPTIONS
none   /home/xuzhenan/C/swapfile swap   defaults

Last edited by BBBob (2020-04-08 11:40:00)

Offline

#4 2020-04-08 17:31:20

BBBob
Member
Registered: 2018-04-24
Posts: 8

Re: [SOLVED] Can not hibernate after upgrading systemd

Solved here.
Thanks for the help!

Offline

Board footer

Powered by FluxBB