[systemd-devel] [logind] retroactive lid close handle upon vt switch

Lennart Poettering lennart at poettering.net
Fri Jan 23 09:20:37 PST 2015


On Fri, 23.01.15 15:43, b3nmore (b3nmore at googlemail.com) wrote:

> > Why precisely does your original session inhibit the lid switch? If
> > you want to turn off the lid switch then turn it off properly,
> > inhibition is not really about turning something fully off. It's about
> > temporarily making logind not process it, for example, because you
> > want to process it yourself or so.
> > 
> > GNOME for example never inhibits the lid switch, because there's
> > really no reason to. Why does your DE inhibit it?
> 
> xfpm (the power manager of xfce) allows to configure how the system
> should react to certain power events. In this case you can configure it
> to either suspend or hibernate or lock the screen or just switch off the
> screen, when the lid is closed. In order to do so, xfpm inhibits the
> handle of the lid switch and initiates the configured pm action on its own.
> It works as intended with one exception, when one uses a screen locker,
> which switches vt's (other lockers are o.k.).

I'd strongly recommend not doing this this way. Inhibitors aren't
really for that. Change logind.conf, or so, to make this a system-wide
change. But doing this with inhibitors, only does this temproarily.

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list