SUMMARY Seems to be that the keyboard is still activated when lid is closed and the device goes into sleeping-mode. When pressing a key when the lid is closed (I think the display itself presses some keys) the computer wakes up and the display turns on. STEPS TO REPRODUCE 1. Close your laptops lid with "What happens when lid is closed"-Setting set to "sleep" 2. Slightly open the lid so that the display does NOT turn on (laptop doesn't wake up from sleep) an press a key with a rubber or so. 3. Display should turn on even though lid is closed. PROBLEM This drains the battery and causes the system to maybe overload when many buttons are pressed by the display. SOFTWARE/OS VERSIONS Linux/KDE Plasma: Fedora 40, Plasma 6.1 SOLUTION Second event-handling case for lid-closed-sleep: Keyboard should be deactivated and only be reactivated after opening the lid.
This is generally pretty difficult because we don't get to hear about the cause of the system being woken up. Not sure if the kernel even knows about it. There have been past efforts to make the system suspend again when the lid is still closed (https://invent.kde.org/plasma/powerdevil/-/merge_requests/279) and there is some potential for Plasma to make improvements this way, but it's not easy to get right without introducing regressions.
Should be fixed with https://invent.kde.org/plasma/powerdevil/-/merge_requests/489 in Plasma 6.3
*** Bug 497768 has been marked as a duplicate of this bug. ***