! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
allow inhibiting systemd from handling power management functions
Status:
RESOLVED: INVALID
Product:
Xfce4-settings
Component:
General

Comments

Description Kevin Fenzi 2012-09-23 04:13:20 CEST
As of systemd version 190, systemd now takes over handling lid button, power and sleep buttons, etc. 
This overrides xfce4-power-manager. It would be nice if xfce4 session could inhibit this on startup. 

From the systemd NEWS file: 

"        * logind's inhibition logic has been updated. By default,
          logind will now handle the lid switch, the power and sleep
          keys all the time, even in graphical sessions. If DEs want
          to handle these events on their own they should take the new
          handle-power-key, handle-sleep-key and handle-lid-switch
          inhibitors during their runtime. A simple way to achiveve
          that is to invoke the DE wrapped in an invocation of:

          systemd-inhibit --what=handle-power-key:handle-sleep-key:handle-lid-switch ..."

See also: http://www.freedesktop.org/wiki/Software/systemd/inhibit

It may be that xfce4-power-manager should take this instead of xfce4-session... which would allow for systemd to handle things still in cases where xfce4-power-manager was not running.
Comment 1 Raphael Groner 2012-10-07 22:28:36 CEST
dup of bug #8729? 

That patch should be enhanced to support inhibition.
Comment 2 Kevin Fenzi 2012-10-07 22:59:07 CEST
(In reply to comment #1)
> dup of bug #8729? 
> 
> That patch should be enhanced to support inhibition.

I suppose it's loosely related... but bug #8729 was for systemd logind support. This is a seperate issue around handling of buttons for power management. 

Also, inhibiting in session may mean people who don't run/have installed xfce4-power-manager will not have anything to handle those button presses, so I would think we would want it to take the inhibit when it starts and let systemd just handle it in those cases where nothing else would. But it may be that this is hard to implement in xfce4-power-manager, so short term a system wide inhibt could be fine.
Comment 3 Sean Davis editbugs 2015-01-31 15:18:30 CET
Marking as invalid.  This has been added to xfce4-power-manager 1.4

xfce4-session should not control power settings, that's what the xfce4-power-manager is for.

Bug #9326

Reported by:
Kevin Fenzi
Reported on: 2012-09-23
Last modified on: 2015-01-31

People

Assignee:
Nick Schermer
CC List:
7 users

Version

Version:
4.10.0

Attachments

Additional information