SUMMARY I have set a shortcut for sleep (Meta + S), and if I put the PC to sleep using this shortcut, when I wake the PC up with a key press (any key), the computer goes back to sleep right away. This happens on my desktop with two different different USB keyboards (both connected to the same USB hub). My guess is that somehow the shortcut key press before the sleep is sent to the PC again when it wakes up, so Plasma thinks I pressed the sleep shortcut again and puts the PC to sleep. I am not sure on how many PC's this happens, but if it can be fixed without too much efforts, I wish it gets fixed. For example, it could have some sort of guard period where the sleep shortcut is ignored, when the PC is waking up from sleep, like 1 second. STEPS TO REPRODUCE 1. Set a shortcut for sleep 2. Put the PC to sleep using the shortcut 3. Press any key to wake the PC up. OBSERVED RESULT The computer goes back to sleep right away. EXPECTED RESULT The computer wakes up. SOFTWARE/OS VERSIONS Operating System: Arch Linux KDE Plasma Version: 6.3.2 KDE Frameworks Version: 6.11.0 Qt Version: 6.8.2 Kernel Version: 6.13.4-arch1-1 (64-bit) Graphics Platform: Wayland Processors: 12 × AMD Ryzen 5 3600 6-Core Processor Memory: 31.3 GiB of RAM Graphics Processor: Intel® Arc ADDITIONAL INFORMATION
Thank you for the bug report! However Plasma 6.0.4 is no longer eligible for support or maintenance from KDE; supported versions are 5.27. (LTS), and 6.3 (non-LTS) or newer. Please upgrade to a supported version as soon as your distribution makes it available to you. Plasma is a fast-moving project, and bugs in one version are often fixed in the next one. If you need support for Plasma 6.0.4, please contact your distribution, who bears the responsibility of providing support for older releases that are no longer supported by KDE. If you can reproduce the issue after upgrading to a supported version, feel free to re-open this bug report.
I don't know why it was set to 6.0.4. Probably some kind of mistake with the mouse wheel. I'm using 6.3.2, as shown above, so I am re-opening it.
Hm, I can't reproduce this - the computer goes to sleep on Meta+S, and immediately wakes up on any key press (even the sleep shortcut itself) without going back to sleep.
Created attachment 179109 [details] system log text (In reply to cwo from comment #3) > Hm, I can't reproduce this - the computer goes to sleep on Meta+S, and > immediately wakes up on any key press (even the sleep shortcut itself) > without going back to sleep. Since it just happened again, I asked A.I. for a command to get the system log of the last 10 minutes, for which it gave "journalctl --since "10 minutes ago" > last_10_minutes.log". I will attach the file. Maybe you can see why it happened. If the command is not correct, let me know the correct command to know what causes the immediate re-sleep.
I also can't reproduce the issue. Do you by any chance have multiple screens on this system?
(In reply to Nate Graham from comment #5) > I also can't reproduce the issue. > > Do you by any chance have multiple screens on this system? Yes, I have two monitors, using per-monitor DPI on Wayland.
Thanks, I thought it sounded familiar. *** This bug has been marked as a duplicate of bug 493974 ***
(In reply to Nate Graham from comment #7) > Thanks, I thought it sounded familiar. > > *** This bug has been marked as a duplicate of bug 493974 *** It does not look like the same problem to me. The computer is a desktop PC with two DP monitors. There is no lid. It does not happen if I put the PC to sleep using the sleep button on the KickOff menu.
The fact that one of the screens is on a laptop seems to be a coincidence, so I think it's the same issue.