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.
dup of bug #8729?
That patch should be enhanced to support inhibition.
(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.
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.