Summary: | Automatic suspend when inhibitor is set | ||
---|---|---|---|
Product: | [Plasma] Powerdevil | Reporter: | Ralph Scharpf <rscharpf> |
Component: | general | Assignee: | Plasma Development Mailing List <plasma-devel> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | aspotashev, kde, kde |
Priority: | NOR | ||
Version: | 5.5.5 | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
URL: | http://www.vdr-portal.de/board17-developer/board21-vdr-plugins/129134-softhddevice-und-vdr-shutdown/ | ||
Latest Commit: | https://invent.kde.org/plasma/powerdevil/commit/b5dfb286a4d9b43ac74862218beb5dd7f58ea7a8 | Version Fixed In: | 5.21.0 |
Sentry Crash Report: |
Description
Ralph Scharpf
2016-06-07 17:15:51 UTC
PowerDevil currently doesn't handle Logind inhibitions at all unfortunately. This is on my agenda at somwhere but I'm not really into changing all of this yet again. At least for idle and sleep inhibitions PowerDevil might get support at some point. CC'ing David who recently looked into Logind and PowerDevil. At the moment the only truly supported inhibition is to call freedesktop inhibition on the currently active session. Thx for the fast reply. Unfortunately this is only usable by processes that run in the same session. For a daemon running with another user in an own session context the solution should automatically recognize all sessions by using directly system dbus. Also the authentication will be bad using session bus from a daemon. I will try to workaround and give the call of the freedesktop inhibition a try. Perhaps I am able to create a gateway service. A possibly relevant merge request was started @ https://invent.kde.org/plasma/powerdevil/-/merge_requests/30 Git commit b5dfb286a4d9b43ac74862218beb5dd7f58ea7a8 by Kai Uwe Broulik. Committed on 18/12/2020 at 14:40. Pushed by broulik into branch 'master'. Take into account logind sleep and idle inhibitions System services cannot access the user's session bus and that freedesktop inhibition interface appears deprecated. This patch makes PowerDevil watch logind's BlockInhibited property and internally posts an appropriate inhibition. FIXED-IN: 5.21.0 M +106 -0 daemon/powerdevilpolicyagent.cpp M +22 -0 daemon/powerdevilpolicyagent.h https://invent.kde.org/plasma/powerdevil/commit/b5dfb286a4d9b43ac74862218beb5dd7f58ea7a8 |