The "Call to Hibernate failed: Invalid argument" problem, i try to
resolve it by using a separate swap partition(i used a swap file before
upgrade to 24.04), changing the  /etc/default/grub by removing the
resume=xxx and resume_offset=xxx kernel parameter,  changing the
/etc/initramfs-tools/conf.d/resume  by  adding resume=xxx, then sudo
update-grub2, sudo update-initramfs -c -k all.

My config file and swap partition looks like:
$ blkid
/dev/mapper/vgubuntu-swap: UUID="a01cbd0d-9dcc-405a-9a5e-a3d2687419fc" 
TYPE="swap"

$ cat /etc/default/grub|grep LINUX
GRUB_CMDLINE_LINUX_DEFAULT="splash"
GRUB_CMDLINE_LINUX=""

$ cat /etc/initramfs-tools/conf.d/resume                               
resume=UUID=a01cbd0d-9dcc-405a-9a5e-a3d2687419fc

Test and check the log.
$ sudo systemctl hibernate
It works.

$ journalctl -x --no-pager --since='2024-04-29 13:45:00'

Some log looks like below:
The system has now entered the hibernate sleep state.
......
kernel: ACPI: PM: Preparing to enter system sleep state S4
......
kernel: ACPI: PM: Waking up from system sleep state S4
......

If anyone met the "Wakeup event detected during hibernation, rolling back" 
problem, change the /etc/modprobe.d/blacklist.conf and add blacklist kernel 
module, for example:
blacklist intel_hid

FYI.
https://bbs.archlinux.org/viewtopic.php?id=294111
Bug 218634 - Hibernate fails with "Wakeup event detected during hibernation, 
rolling back"
https://bugzilla.kernel.org/show_bug.cgi?id=218634


** Bug watch added: Linux Kernel Bug Tracker #218634
   https://bugzilla.kernel.org/show_bug.cgi?id=218634

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2057687

Title:
  systemctl hibernate error: "Call to Hibernate failed: Invalid
  argument"

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/2057687/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to