Bug 385331 - Don't inhibit buttons when no reaction is configured OR add option to deactivate inhibit
Summary: Don't inhibit buttons when no reaction is configured OR add option to deactiv...
Status: RESOLVED INTENTIONAL
Alias: None
Product: Powerdevil
Classification: Plasma
Component: general (show other bugs)
Version: 5.10.5
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-03 15:21 UTC by Josef Kufner
Modified: 2018-03-13 11:31 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
The checkbox (104.38 KB, image/png)
2017-10-03 15:21 UTC, Josef Kufner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Josef Kufner 2017-10-03 15:21:13 UTC
Created attachment 108145 [details]
The checkbox

Currently, Powerdevil causes problems on unusual/advanced configurations because of the inhibit:

$ systemd-inhibit
     Who: PowerDevil (UID 1013/alena, PID 933/org_kde_powerde)
    What: handle-power-key:handle-suspend-key:handle-hibernate-key:handle-lid-switch
     Why: KDE handles power events
    Mode: block


For such setups it is usually better to disable Powerdevil and use systemd-logind or similar service. But that has unwanted side effects (other stuff gets broken) and requires additional workarounds.

Option A: When control of the power button and LID switch is disabled (see screenshot), Powerdevil should release inhibit and let other services handle the events. To enforce no action, the option can be enabled and "Do nothing" can be selected. See attached screenshots.

Option B: Another, a more obvious option could be to add explicit checkbox to release the inhibit. Something like "Use system setting to handle buttons and lid switch".
Comment 1 Kai Uwe Broulik 2018-03-13 07:37:28 UTC
"Do nothing" means "Do nothing" and not "let systemd do something unexpected instead"
Comment 2 Josef Kufner 2018-03-13 10:13:39 UTC
Then please add option to "let systemd do something unexpected instead".
Comment 3 Kai Uwe Broulik 2018-03-13 11:07:30 UTC
Feel free to disable autostart of PowerDevil if you don't want to use it.
Comment 4 Josef Kufner 2018-03-13 11:31:06 UTC
Well, that is a problem. PowerDevil does more than handles buttons. It also provides battery info and few other features which are very desirable.