Hi all,
I received my laptop earlier this week in Batch 8 and I’ve enjoyed getting everything set up and running with Fedora 39.
I’ve had an issue with putting the laptop to sleep where the display will turn off and then immediately turn back on as if interrupted by something. The display appears to stay on with the lid closed and as a result the battery will be severely depleted if I leave it for a couple of hours.
I haven’t done much scientific testing of this issue, but I have run the amd_s2idle.py script and the same premature wake up happens with the following output. I can provide the full log file if that is of use.
I’m running with these additional kernel parameters based on what I’ve read so far: rtc_cmos.use_acpi_alarm=1 "acpi_osi=!Windows 2020"
.
Thanks for your help in advance!
Debugging script for s2idle on AMD systems
💻 Framework Laptop 13 (AMD Ryzen 7040Series) (Laptop) running BIOS 3.3 (03.03) released 10/17/2023 and EC unknown
🐧 Fedora Linux 39 (KDE Plasma)
🐧 Kernel 6.6.4-200.fc39.x86_64
🔋 Battery BAT1 ( ) is operating at 99.02% of design
Checking prerequisites for s2idle
✅ Logs are provided via systemd
✅ AMD Ryzen 5 7640U w/ Radeon 760M Graphics (family 19 model 74)
✅ LPS0 _DSM enabled
✅ ACPI FADT supports Low-power S0 idle
✅ HSMP driver `amd_hsmp` not detected (blocked: False)
✅ PMC driver `amd_pmc` loaded (Program 0 Firmware 76.70.0)
✅ USB4 driver `thunderbolt` loaded
✅ GPU driver `amdgpu` available
✅ System is configured for s2idle
✅ NVME Samsung Electronics Co Ltd NVMe SSD Controller SM981/PM981/PM983 (SSD 970 EVO/PRO) is configured for s2idle in BIOS
✅ GPIO driver `pinctrl_amd` available
How long should suspend cycles last in seconds (default 10)?
How long to wait in between suspend cycles in seconds (default 4)?
How many suspend cycles to run (default 1)?
Suspending system in 0:00:02
Started at 2023-12-07 21:44:13.546985 (cycle finish expected @ 2023-12-07 21:44:27.547002)
Results from last s2idle cycle
○ Suspend count: 1
○ GPIOs active: ['5', '5', '5', '5', '5', '5', '5']
○ Wakeups triggered from IRQs: [9, 1]
○ Woke up from IRQ 9 (IR-IO-APIC 9-fasteoi acpi)
○ gpe0B increased from 150 to 168
○ gpe1A increased from 580456 to 586844
❌ Userspace suspended for 0:00:04.522984 (< minimum expected 0:00:09)
❌ Did not reach hardware sleep state
🔋 Battery BAT1 ( ) is operating at 99.02% of design
Explanations for your system
🚦 Userspace wasn't asleep at least 0:00:10
The system was programmed to sleep for 0:00:10, but woke up prematurely.
This typically happens when the system was woken up from a non-timer based source.
If you didn't intentionally wake it up, then there may be a kernel or firmware bug