Is it possible that this is somehow related to [TRACKING] Framework AMD Ryzen 7040 Series lid wakeup behavior feedback?
Observations:
- Hardware sleep state residency is way smaller if keys are pressed during the 10 second sleep duration of the amd_s2idle.py script (laptop does not wake from sleep due to kernel workaround for spurious IRQs)
- Without any key presses during suspend, the laptop suspends reliably
- Randomly pressing keys during suspend makes it more likely for the issue to appear
- Pressing keys during regular suspend and waking the laptop shortly afterwards sometimes results in weird behavior: Sometimes everything works, sometimes the KDE Plasma Wayland session crashes (back to display manager), and sometimes the whole system crashes (Black Screen → Framework Logo → Bootloader, journald stops after entering s2idle)