System Fails to Resume from Hibernation
This document (000020287) is provided subject to the disclaimer at the end of this document.
SUSE Linux Enterprise Server 15 SP3
Putting a system in Hibernation mode, does not execute the resume function, but performs a standard reboot, losing any grey data expected to be saved.
a) Install the YaST2 Patch:
For systems where Hibernate / S4 capabilities are required, any system running SUSE Linux Enterprise 15 SP3 GM must be updated with the yast2-4.3.62-3.5.1.x86_64.rpm patch, which can be downloaded from the SUSE Customer Center.
1. To install the patch, copy the RPM to the Desktop of the system being patched.
2. Open a Terminal and type zypper in yast2-4.3.62-3.5.1.x86_64.rpm
3. Reboot the system.
b) Manually Enabling Resume Functionality
Add "resume" to the initrd with the following commands:
# echo 'add_dracutmodules+=" resume"' > /etc/dracut.conf.d/resume.conf
# chmod a-x /usr/lib/systemd/systemd-hibernate-resume
The first line makes the resume functionality a permanent part of the initrd.
The second line deactivates systemd-hibernate-resume so that Dracut includes /usr/lib/dracut/modules.d/95resume/parse-resume.sh in the initrd.
parse-resume.sh does use the resume=... parameter from /etc/cmdline.d/95resume.conf and triggers the resume from userspace as desired.
A regression, due to the missing resume boot parameter
# systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
To verify if it's been masked run:
# systemctl status sleep.target suspend.target hibernate.target hybrid-sleep.target
To re-enable suspend and hibernation:
# systemctl unmask sleep.target suspend.target hibernate.target hybrid-sleep.target
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:000020287
- Creation Date: 15-Jun-2021
- Modified Date:22-Jun-2021
- SUSE Linux Enterprise Desktop
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: email@example.com