| Summary: | Suspend inhibits also end up keeping the display on | ||
|---|---|---|---|
| Product: | [Unmaintained] Powerdevil | Reporter: | Michael Terry <mike> |
| Component: | general | Assignee: | Plasma Bugs List <plasma-bugs-null> |
| Status: | RESOLVED WORKSFORME | ||
| Severity: | minor | CC: | bugseforuns, jpetso, me, natalie_clarius, nate |
| Priority: | NOR | ||
| Version First Reported In: | 5.27.80 | ||
| Target Milestone: | --- | ||
| Platform: | Kubuntu | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Michael Terry
2024-05-01 23:54:11 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/xdg-desktop-portal-kde/-/merge_requests/305 I was a little too excited about also marking this bug as fixed as a result of the above MR, but it doesn't fix this. The good news is that an InterruptSession inhibit works as intended at least on Plasma 6.1.3: * To test, I create an equivalent inhibitor which will be picked up by PowerDevil as InterruptSession: * systemd-inhibit --what=sleep --who=test --why=bug486422 sleep 3600 * Direct D-Bus calls to `org.freedesktop.portal.Inhibit` (with "Sleep" flag) or PowerDevil's own D-Bus API would behave the same. * In the Screen Locking configuration, I set a 1 minute timeout and in Power Management, turn off screen after 20 seconds when locked. * As an alternative test, I set Screen Locking to Never and in Power Management, turn off screen after 1 minute. * The screen turns off either way after the defined timeout while the system does not suspend. (In the first test, it will lock before turning off.) So I can't tell what went wrong for your user in particular, but I was able to confirm that Plasma's current implementation works as expected in this case. |