Bug 28528 - Resuming from hibernation instead start fresh; user loose work
Summary: Resuming from hibernation instead start fresh; user loose work
Status: NEW
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: High critical
Target Milestone: Mageia 8
Assignee: All Packagers
QA Contact:
URL: https://www.mageialinux-online.org/fo...
Whiteboard: MGA8TOO
Keywords: IN_ERRATA8
Depends on:
Reported: 2021-03-05 15:18 CET by Alain Choucroot
Modified: 2021-04-10 22:55 CEST (History)
8 users (show)

See Also:
Source RPM: dracut-051-4.mga8.src.rpm
Status comment:


Description Alain Choucroot 2021-03-05 15:18:41 CET
Description of problem:

With a newly installed mga8 on a mga7 computer, hibernation does not work anymore. More precisely hibernating (for example via "systemctl hibernate") seems ok. Yet it reboots "normally", ignoring the stored image

Comparing this mga8 computer with another "unmigrated" mga7 computer reveals that the "resume" module in dracut is missing, replaced by "kernel-modules-extra"

A workaround is to manually add the module in 51-mageia-resume.conf

#cat /etc/dracut.conf.d/51-mageia-resume.conf
add_device+=" UUID=2b1f437b-3e28-4f03-adce-19e79a021be8 "
add_dracutmodules+=" resume "
localhost dracut.conf.d # dracut -fv

Then hibernating works again.
Comment 1 Aurelien Oudelet 2021-03-05 15:30:50 CET
Hi, thanks for reporting this bug.*

I put my system to hibernate state (leaving a LibreOffice and Firefox opened to make sure the difference).
Rebooting leads me to sddm asking me for new session, no LibreOffice nor Firefox window opened...

Raising priority and severity as putting a system to hibernate and to be not able to restore session can lead to a potential data loss for unsaved work.

Assigned to the package maintainer for Cauldron and MGA8TOO.

(Please set the status to 'assigned' if you are working on it)

Severity: minor => critical
Priority: Normal => High
CC: (none) => mageia, ouaurelien, thierry.vignaud
Keywords: (none) => FOR_ERRATA8
Assignee: bugsquad => pkg-bugs
Whiteboard: (none) => MGA8TOO
Target Milestone: --- => Mageia 8
Component: Installer => RPM Packages
Version: 8 => Cauldron
Source RPM: dracut => dracut-051-4.mga8.src.rpm

Morgan Leijström 2021-03-05 17:53:29 CET

CC: (none) => fri

Comment 2 Morgan Leijström 2021-03-08 13:21:43 CET
This is severe.
@ Aurelien, did you try the suggested workaround?
Comment 3 Aurelien Oudelet 2021-03-08 15:30:51 CET
Tried and it works!
Comment 4 Morgan Leijström 2021-03-08 15:56:56 CET
As it is severe and much wanted, it deserves a subchapter:


Morgan Leijström 2021-03-08 16:01:21 CET

Summary: Hibernation doesn't work after installation from Mageia-8-x86_64.iso => Resuming from hibernation instead start fresh; user loose work

Comment 5 Christophe Nanteuil 2021-03-28 22:36:36 CEST
I confirm the bug and that the workaround works.

CC: (none) => christophe.nanteuil

Comment 6 Thomas Andrews 2021-04-03 22:09:15 CEST
I can confirm this happening on my HP Probook 6550b. Fortunately, I don't do much of any critical work on this laptop. 

The two incidents I remember were when I was reading my morning newspaper. I was called away, and closed the lid to conserve the battery until I returned. LEDs indicated the data was being saved, but when I went to resume it did a cold boot. All I had to do was re-download the newspaper, but still, it was a bit annoying.

Since it's not critical for me I will be leaving this alone, so I can have an untouched system ready to test the update that fixes this when it's sent to QA.

CC: (none) => andrewsfarm

Comment 7 Neal Gompa 2021-04-04 01:37:08 CEST
There's an upstream issue for this: https://github.com/dracutdevs/dracut/issues/924

I poked the issue and I'll talk to the developer working on the issue after the Easter holiday in Germany is over.

CC: (none) => ngompa13

Filip Komar 2021-04-04 22:35:06 CEST

CC: (none) => filip.komar

Comment 8 Morgan Leijström 2021-04-10 22:34:24 CEST
Verified problem and fix on mga8 Plasma 64 bit installed by classical install,
 * upgraded to cauldron *  since a while, on Dell Precision M4400. 

Partitioning: Dual boot w MSW10, and using LVM.

Verified "add_dracutmodules" line is missing:
 # cat /etc/dracut.conf.d/51-mageia-resume.conf 
 add_device+=" /dev/vg-M4400/lv_swap "

Added the missing line by
 # echo 'add_dracutmodules+=" resume "' >> /etc/dracut.conf.d/51-mageia-resume.conf 

 # dracut -fv

And now suspend-resume works :)
Comment 9 Morgan Leijström 2021-04-10 22:55:49 CEST
Added the procedure in errata.

Note You need to log in before you can comment on or make changes to this bug.