Bug 32504 - wake up from hibernate doesn't work
Summary: wake up from hibernate doesn't work
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 9
Hardware: All Linux
Priority: Normal major
Target Milestone: ---
Assignee: Kernel and Drivers maintainers
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-10 16:49 CET by pat dealt
Modified: 2023-11-19 19:59 CET (History)
1 user (show)

See Also:
Source RPM: kernel-desktop-6.4.16-3.mga9
CVE:
Status comment:


Attachments

Description pat dealt 2023-11-10 16:49:11 CET
Description of problem:

Whatever is the mean used to hibernate, wake up never happens :

 - "rtcwake -m disk -s 60" doesn't work
 - "echo `date '+%s' -d '+ 1 minute'` > /sys/class/rtc/rtc0/wakealarm"
   followed by "systemctl hibernate (or Hibernate Button pushed)" doesn't work
 - "systemctl hibernate" followed by a keystroke on usb keyboard doesn't work

Though everything seems to be OK such as :

cat /sys/power/disk
[platform] shutdown reboot suspend test_resume

cat /sys/power/state
freeze mem disk

Hibernate itself works : system shutdown and when I push the Power On button, the environment is restored as it was before hibernation.
Only Wake up is failing.

More, the following actions are run without any issue :

 - rtcwake -m mem -s 60 does work
 - systemctl suspend followed by a keystroke on usb keyboard does work

By the way wake up from hibernate works also on Mageia-8 / kernel 5.15.126-desktop-1.mga8 and ubuntu 22.04 / kernel 5.15.0-88-generic

It seems that a similar bug was mentioned in this following recent email :

https://lore.kernel.org/all/CAJZ5v0iLCsiPncA1t7ogtpch9gjGjzjtDU6G5E+PHB8ZCHgY0A@mail.gmail.com/T/

... but was not recorded in bugzilla. I assume the patch proposed here has for target a recent kernel version with regards the date of the email.

Version-Release number of selected component :

Mageia-9  / kernel-desktop-6.4.16-3.

How reproducible:

 - "rtcwake -m disk -s 60" or
 - "echo `date '+%s' -d '+ 1 minute'` > /sys/class/rtc/rtc0/wakealarm"
   followed by "systemctl hibernate (or Hibernate Button pushed)" or
 - "systemctl hibernate" followed by a keystroke on usb keyboard
Comment 1 Morgan Leijström 2023-11-10 18:47:57 CET
As a first step, could you try with the vanilla kernel, i.e kernel-linus-6.4.16-6 from updates_testing?

CC: (none) => fri

Comment 2 pat dealt 2023-11-11 10:02:57 CET
Done.
With kernel-6.4.16-6.mga9, results are the same as with kernel-desktop-6.4.16-3:
No wake up from hibernate with rtcwake, wakealarme, USB keyboard.
Comment 3 Morgan Leijström 2023-11-11 13:08:30 CET
OK, assigning our kernel and drivers experts

Assignee: bugsquad => kernel

Comment 4 pat dealt 2023-11-19 19:30:52 CET
This bug was observed on an Intel computer (NUC12xxxi5).

After investigation, I discovered that "Wake up from hibernation" works on the same distribution and the same kernel (Mageia-9 / kernel-desktop-6.4.16-3.mga9)
but on another computer (Intel NUC11xxxi3) and only with "Deep S4/S5" BIOS parameter Disabled.

This parameter is absent from NUC12xxxi5 BIOS, but another new parameter  "Pseudo G3" seems to replace the old "Deep S4/S5".

Wake up from hibernation now works also on NUC12xxxi5 after disabling the new BIOS parameter "Pseudo G3".

Resolution: (none) => FIXED
Status: NEW => RESOLVED

Comment 5 Morgan Leijström 2023-11-19 19:59:40 CET
Thank you for the investigation and report.

I wonder if there is some place on internet gathering all the BIOS quirks...

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