[opensuse-kernel] hibernate issue on Tumbleweed because of missing module in initrd
Hey, So, a TW user reported in an user group (before anyone ask, yes, I'm trying to get him to open a bug! :-) ) that he's not able to hibernate on Tumbleweed. Apparently, this is known: https://www.reddit.com/r/openSUSE/comments/hjec9g/resume_from_hibernation_is... There's a bug open about hibernating, but I am not really sure it is the same think: https://bugzilla.opensuse.org/show_bug.cgi?id=1127763 Anyhow, the user also said that adding the `resume` module to initrd, as described here, things work: https://www.reddit.com/r/openSUSE/comments/hjec9g/resume_from_hibernation_is_not_working/fx4u2xj/?utm_source=share&utm_medium=web2x&context=3 I've checked, and we do put that module inside initrd on Leap. Is there a particular reason not to have it in TW as well? Regards -- Dario Faggioli, Ph.D http://about.me/dario.faggioli Virtualization Software Engineer SUSE Labs, SUSE https://www.suse.com/ ------------------------------------------------------------------- <<This happens because _I_ choose it to happen!>> (Raistlin Majere)
01.10.2020 10:21, Dario Faggioli пишет:
Hey,
So, a TW user reported in an user group (before anyone ask, yes, I'm trying to get him to open a bug! :-) ) that he's not able to hibernate on Tumbleweed.
Apparently, this is known: https://www.reddit.com/r/openSUSE/comments/hjec9g/resume_from_hibernation_is...
There's a bug open about hibernating, but I am not really sure it is the same think: https://bugzilla.opensuse.org/show_bug.cgi?id=1127763
Anyhow, the user also said that adding the `resume` module to initrd, as described here, things work: https://www.reddit.com/r/openSUSE/comments/hjec9g/resume_from_hibernation_is_not_working/fx4u2xj/?utm_source=share&utm_medium=web2x&context=3
I've checked, and we do put that module inside initrd on Leap. Is there a particular reason not to have it in TW as well?
What is the content of /sys/power/resume? What is kernel command line? This is sort of chicken and egg problem. Module "resume" is automatically included if /sys/power/resume contains non-null device and /sys/power/resume contains valid device if resume was attempted; to attempt resume you normally need to have resume module already. Comparing my Leap 15.2 and TW, Leap has resume= kernel parameter and TW does not. In any case it is very unlikely to be a kernel issue.
On 10/1/20 2:18 PM, Andrei Borzenkov wrote:
01.10.2020 10:21, Dario Faggioli пишет:
Hey,
So, a TW user reported in an user group (before anyone ask, yes, I'm trying to get him to open a bug! :-) ) that he's not able to hibernate on Tumbleweed.
Apparently, this is known: https://www.reddit.com/r/openSUSE/comments/hjec9g/resume_from_hibernation_is...
There's a bug open about hibernating, but I am not really sure it is the same think: https://bugzilla.opensuse.org/show_bug.cgi?id=1127763
Anyhow, the user also said that adding the `resume` module to initrd, as described here, things work: https://www.reddit.com/r/openSUSE/comments/hjec9g/resume_from_hibernation_is_not_working/fx4u2xj/?utm_source=share&utm_medium=web2x&context=3
I've checked, and we do put that module inside initrd on Leap. Is there a particular reason not to have it in TW as well?
What is the content of /sys/power/resume? What is kernel command line?
This is sort of chicken and egg problem. Module "resume" is automatically included if /sys/power/resume contains non-null device and /sys/power/resume contains valid device if resume was attempted; to attempt resume you normally need to have resume module already.
Comparing my Leap 15.2 and TW, Leap has resume= kernel parameter and TW does not.
In any case it is very unlikely to be a kernel issue.
My TW system does not have module resume loaded; however it both sleeps and hibernates. File /sys/power/resume contains "8:2". My swap file is on /dev/sda2. Larry -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org
Am 02.10.20 um 03:12 schrieb Larry Finger:
My TW system does not have module resume loaded; however it both sleeps
This is not a kernel module. It's a dracut "module" that needs to be included in initramfs for resume to work. So this is actually off-topic for opensuse-kernel ;-) strolchi:~ # lsinitrd -m Image: /boot/initrd-5.9.0-rc7-1.ga5f5f07-default: 14M ======================================================================== Early CPIO image ======================================================================== drwxr-xr-x 3 root root 0 Sep 28 14:09 . -rw-r--r-- 1 root root 2 Sep 28 14:09 early_cpio drwxr-xr-x 3 root root 0 Sep 28 14:09 kernel drwxr-xr-x 3 root root 0 Sep 28 14:09 kernel/x86 drwxr-xr-x 2 root root 0 Sep 28 14:09 kernel/x86/microcode -rw-r--r-- 1 root root 14336 Sep 28 14:09 kernel/x86/microcode/GenuineIntel.bin ======================================================================== Version: dracut-050+suse.227.g7a9b782d-2.1 dracut modules: bash systemd systemd-initrd i18n dm kernel-modules kernel-modules-extra lvm resume ###<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< rootfs-block suse-btrfs suse-xfs terminfo udev-rules biosdevname dracut-systemd haveged usrmount base fs-lib shutdown suse suse-initrd ======================================================================== -- Stefan Seyfried "For a successful technology, reality must take precedence over public relations, for nature cannot be fooled." -- Richard Feynman -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org
participants (4)
-
Andrei Borzenkov
-
Dario Faggioli
-
Larry Finger
-
Stefan Seyfried