[Bug 2057687] Re: systemctl hibernate error: "Call to Hibernate failed: Invalid argument"
Flansch
2057687 at bugs.launchpad.net
Sun Sep 1 20:35:10 UTC 2024
Upgraded from Ubuntu 22.04 to 24.04 and now hibernate fails with "Invalid argument". Tried the steps from #2 and this leads to the error "Not enough suitable swap space for hibernation available on compatible block devices and file systems" although hibernating worked fine before updating. After a reboot I'm back to "Invalid argument".
When following the advice to /sys/power/resume the error is gone but instead of hibernating the screen goes black for a moment and then the desktop returns. Also, when looking into the file later the content returned to "0:0".
What works is pm-hibernate but I wouldn't know how to add it to the power menu and power button.
This is so annoying...
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to initramfs-tools in Ubuntu.
https://bugs.launchpad.net/bugs/2057687
Title:
systemctl hibernate error: "Call to Hibernate failed: Invalid
argument"
Status in initramfs-tools package in Ubuntu:
Confirmed
Status in systemd package in Ubuntu:
Confirmed
Bug description:
After upgrading systemd to 255(255.2-3ubuntu2) hibernate stopped
working.
Trying to hibernate:
systemctl hibernate
I get:
Call to Hibernate failed: Invalid argument
systemctl status systemd-hibernate.service
---------------------------------------------
× systemd-hibernate.service - Hibernate
Loaded: loaded (/usr/lib/systemd/system/systemd-hibernate.service; static)
Active: failed (Result: exit-code) since Tue 2024-03-12 18:48:12 MSK; 1min 33s ago
Docs: man:systemd-hibernate.service(8)
Process: 4473 ExecStart=/usr/lib/systemd/systemd-sleep hibernate (code=exited, status=1/FAILURE)
Main PID: 4473 (code=exited, status=1/FAILURE)
CPU: 5ms
мар 12 18:48:12 ASUSPRO-P3540FA systemd[1]: Starting systemd-hibernate.service - Hibernate...
мар 12 18:48:12 ASUSPRO-P3540FA systemd-sleep[4473]: Failed to find location to hibernate to: Invalid argument
мар 12 18:48:12 ASUSPRO-P3540FA systemd[1]: systemd-hibernate.service: Main process exited, code=exited, status=1/FAILURE
мар 12 18:48:12 ASUSPRO-P3540FA systemd[1]: systemd-hibernate.service: Failed with result 'exit-code'.
мар 12 18:48:12 ASUSPRO-P3540FA systemd[1]: Failed to start systemd-hibernate.service - Hibernate.
--------------------------------------------------
Previous version (254.x) worked: swapfile(on EXT4 fs) is used to
hibernate/resume, resume with resume_offset kernel parameters.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/2057687/+subscriptions
More information about the foundations-bugs
mailing list