as it seems, Fedora has several other issues with systemd's inhibit.
system hibernation should be prohibited after kernel update
Systemd service should inhibit suspend while remote users are logged in
Maybe it's better to disable systemd power management for the Xfce
spin, till all that issues are fixed for sure.
Date: Sat, 20 Oct 2012 10:29:52 +0200
From: Raphael Groner <raphgro(a)web.de>
Subject: Re: Re: heads up about f18+ and lid/power buttons
Content-Type: text/plain; charset=UTF-8
thanks for giving the hint for the workaround to inhibit systemd
trying to take over the lid handling. This is not senseful for Xfce
I am on a freshly updated Manjaro system (ArchLinux) here. So this
issue has nothing to do with Fedora in particular and should be
handled upstream somewhere, either systemd (looks for other power
managers already active in the system, maybe…) or desktop handlers
should instruct systemd as the backend what to do. That design needs
clearly rethinking, IMHO.
I've added a comment to the upstream bug.
> Just a note here in case any folks run into it before we fix it.
> systemd now by default handles lid button, power button, etc.
> This means that if you have xfce4-power-manager and have it doing
> something different from 'suspend' on lid close (I have mine set to
> "lock screen"), systemd will suspend for you.
> You can work around this by setting a startup command:
> systemd-inhibit --mode=block --what=handle-lid-switch sleep 1000000
> Ideally we would fix this in xfce4-power-manager and it would
> inhibit anything that it wants to handle itself. Failing that, we
> could add the inhibit to startxfce4, but that means that none of
> those buttons would get handled if xfce4-power-manager wasn't
> installed or running.
> See upstream bugs: