heads up about f18+ and lid/power buttons

Raphael Groner raphgro at web.de
Sat Oct 20 08:29:52 UTC 2012


Hi Kevin,

thanks for giving the hint for the workaround to inhibit systemd
trying to take over the lid handling. This is not senseful for Xfce
systems, right!

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.

-R.


> 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: 
> https://bugzilla.xfce.org/show_bug.cgi?id=9326
> https://bugzilla.xfce.org/show_bug.cgi?id=9335
> 
> kevin


More information about the xfce mailing list