Bug 452108 - Directly wakes up again from sleep/standby if keyboard shortcut is used on Wayland
Summary: Directly wakes up again from sleep/standby if keyboard shortcut is used on Wa...
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 5.24.4
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: wayland-only
Depends on:
Blocks:
 
Reported: 2022-03-31 12:52 UTC by Oliver Klee
Modified: 2024-06-07 20:02 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Klee 2022-03-31 12:52:43 UTC
SUMMARY
In a Wayland session, if a keyboard shortcut is used to activate standby/sleep, the system shortly goes into standby (as seen be the power LED) and then directly wakes up again.

This problem does not occur if standby is triggered using the KDE menu or via systemctl suspend, and it also does not occur on a X11 session.

STEPS TO REPRODUCE
1.  Log in to a Wayland session.
2. Set a keyboard shortcut for activating standby.
3. Use the keyboard shortcut.

OBSERVED RESULT
The system shortly goes into standby (as seen be the power LED) and then directly wakes up again.

EXPECTED RESULT
The system shortly goes into standby and stays that way until I press a key.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
If I remember correctly, this used to in earlier 5.24.x versions (I think until 5.24.2 or 5.24.4).
Comment 1 Nate Graham 2022-04-01 18:49:30 UTC
Does it work as expected on X11?
Comment 2 Oliver Klee 2022-04-02 19:39:41 UTC
Yes, on X11 it works as expected.
Comment 3 Oliver Klee 2022-04-04 10:46:53 UTC
Would it help if I created some logs (which?) for triggering standby via the KDE menu vs. via the keyboard shortcut?
Comment 4 Patrick Silva 2022-10-29 14:20:47 UTC
Cannot reproduce on neon unstable.

Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.26.80
KDE Frameworks Version: 5.100.0
Qt Version: 5.15.6
Graphics Platform: Wayland
Comment 5 Zamundaaa 2024-06-07 20:02:18 UTC
KWin doesn't handle device wakeup, that's on a kernel or even firmware level. FWIW I can't reproduce this issue either though