Page 1 of 1

[SOLVED] PC starts fresh from hibernation

PostPosted: Aug 11th, '22, 14:00
by maluethy
On a desktop computer I have installed Mageia 8 with Plasma. I can put the computer into hibernation mode. When I want to start the computer from hibernation, it restarts completely instead of starting from hibernation. Accordingly, the programs and windows that are open in hibernation are no longer active. - The Standby function works fine (set to standby and restart from standby).

How can the hibernation problem be narrowed down?

The following information about the computer

Thanks in advance

inxi -F
Code: Select all
System:
 Host: localhost Kernel: 5.15.58-desktop-2.mga8 x86_64 bits: 64  
 Desktop: KDE Plasma 5.20.4 Distro: Mageia 8 mga8  
Machine:
 Type: Desktop Mobo: Micro-Star model: B450M MORTAR MAX (MS-7B89)  
 v: 1.0 serial: <superuser required> UEFI: American Megatrends LLC.  
 v: 2.E0 date: 01/13/2022  
CPU:
 Info: 6-Core model: AMD Ryzen 5 3600 bits: 64 type: MT MCP  
 L2 cache: 3 MiB  
 Speed: 2057 MHz min/max: 2200/3600 MHz Core speeds (MHz): 1: 2057  
 2: 2055 3: 2280 4: 2197 5: 3601 6: 2199 7: 2199 8: 2200 9: 2056  
 10: 2056 11: 3599 12: 2201  
Graphics:
 Device-1: AMD Navi 14 [Radeon RX 5500/5500M / Pro 5500M]  
 driver: amdgpu v: kernel  
 Display: x11 server: Mageia X.org 1.20.14 driver: amdgpu,v4l  
 resolution: 3840x2160~60Hz  
 OpenGL: renderer: AMD Radeon RX 5500 XT (NAVI14 DRM 3.42.0  
 5.15.58-desktop-2.mga8 LLVM 11.0.1)  
 v: 4.6 Mesa 21.3.8  
Audio:
 Device-1: AMD Navi 10 HDMI Audio driver: snd_hda_intel  
 Device-2: AMD Starship/Matisse HD Audio driver: snd_hda_intel  
 Sound Server: ALSA v: k5.15.58-desktop-2.mga8  
Network:
 Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet  
 driver: r8169  
 IF: enp34s0 state: up speed: 1000 Mbps duplex: full  
 mac: 00:d8:61:fc:c0:81  
Drives:
 Local Storage: total: 961.04 GiB used: 8.75 GiB (0.9%)  
 ID-1: /dev/nvme0n1 vendor: Samsung model: SSD 970 EVO 1TB  
 size: 931.51 GiB  
 ID-2: /dev/sda type: USB vendor: Generic model: N/A size: 29.53 GiB  
Partition:
 ID-1: / size: 49.2 GiB used: 5.51 GiB (11.2%) fs: ext4  
 dev: /dev/nvme0n1p5  
 ID-2: /home size: 862.09 GiB used: 461.3 MiB (0.1%) fs: ext4  
 dev: /dev/nvme0n1p7  
Swap:
 ID-1: swap-1 type: partition size: 4 GiB used: 0 KiB (0.0%)  
 dev: /dev/nvme0n1p6  
Sensors:
 Message: No sensors data was found. Is sensors configured?  
Info:
 Processes: 272 Uptime: 13m Memory: 31.28 GiB used: 1.61 GiB (5.2%)  

Re: PC starts fresh from hibernation

PostPosted: Aug 11th, '22, 16:07
by sturmvogel

Re: PC starts fresh from hibernation

PostPosted: Aug 17th, '22, 17:24
by maluethy
Thank you for the hint and the link.

Will this be fixed so that the hibernation mode works automatically again and if so, when?

Re: PC starts fresh from hibernation

PostPosted: Aug 17th, '22, 17:27
by sturmvogel
As mentioned in the bug and in the errata, this is an UPSTREAM bug. That means Mageia have to wait until the developers have fixed this. Nothing what could be done on Mageia side. See the link to the developers: https://github.com/dracutdevs/dracut/issues/924


https://en.wikipedia.org/wiki/Upstream_(software_development)

Re: PC starts fresh from hibernation

PostPosted: Aug 17th, '22, 17:49
by maluethy
Thanks for the feedback and the links.

On Bugzilla, Fedora is mentioned at the beginning. What does that have to do with Mageia? I can't put it together.

Re: PC starts fresh from hibernation

PostPosted: Aug 17th, '22, 18:18
by doktor5000
Because someone reported that using Fedora as Fedora got the dracut updates first. But dracut is used by basically all distros, so all are affected if there's no workaround applied.

Re: PC starts fresh from hibernation

PostPosted: Aug 17th, '22, 20:40
by maluethy
Thank you for the explanation.

Re: [SOLVED] PC starts fresh from hibernation

PostPosted: Aug 19th, '22, 12:26
by maluethy
I would like to do the manual fix for mga#28528. I have read this, looked around again on the subject, but I cannot implement it. How do I proceed?

Step 1): Do I type in the console: "cat /etc/dracut.conf.d/51-mageia-resume.conf" and then check that the output does not contain "add_dracutmodules"?

Step 2): Do I type in the console: "echo 'add_dracutmodules+=" resume "' >> /etc/dracut.conf.d/51-mageia-resume.conf"

Step 3): Do I enter in the console?: dracut -fv

Thanks in advance

Re: [SOLVED] PC starts fresh from hibernation

PostPosted: Aug 19th, '22, 14:28
by sturmvogel
Yes.

Re: [SOLVED] PC starts fresh from hibernation

PostPosted: Aug 19th, '22, 15:04
by maluethy
Thank you for the feedback.

Step 1): I enter the command and don't understand the output I get and what to do with it:

Code: Select all
[luethypc@localhost ~]$ cat /etc/dracut.conf.d/51-mageia-resume.conf
add_device+=" UUID=0d550460-2c41-47ea-8015-5de61342c65e "


added code tags ~Germ

Re: [SOLVED] PC starts fresh from hibernation

PostPosted: Aug 19th, '22, 16:25
by sturmvogel
First step is satisfied. 51-mageia-resume.conf does not contain add_dracutmodules

Re: [SOLVED] PC starts fresh from hibernation

PostPosted: Aug 19th, '22, 17:20
by doktor5000
maluethy wrote:
Code: Select all
add_device+=" UUID=0d550460-2c41-47ea-8015-5de61342c65e "

That means dracut will add this device (which is usually your swap partition) to enable this during early boot in the initrd, this is required for resume in some configurations.

Here's the description from the man page of dracut.conf:

Code: Select all
       add_device+=" <device> "
           Bring up <device> in initramfs, <device> should be the device
           name. This can be useful in hostonly mode for resume support
           when your swap is on LVM an encrypted partition.

Re: [SOLVED] PC starts fresh from hibernation

PostPosted: Aug 23rd, '22, 16:06
by maluethy
Thank you for the further information.
Now I was able to carry out the instructions from the manual fix and now the hibernation mode works. I am very happy, thank you for the support.