chiark / gitweb /
logind: ignore lid switch events for 30s after each suspend and 3min after startup
authorLennart Poettering <lennart@poettering.net>
Mon, 3 Mar 2014 19:49:33 +0000 (20:49 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 3 Mar 2014 19:57:09 +0000 (20:57 +0100)
commitf9cd6be10ece07e10488c05e270a0b5860779864
treef236bd39b54c2b66276c7ac72a36cb565cf0b53e
parent7e9110a29d90041b0364cb93a84aec9dd72363b6
logind: ignore lid switch events for 30s after each suspend and 3min after startup

This is needed to give USB docking stations and suchlike time to settle,
so that a display connected to an USB docking station can actually act
as a lid swith inhibitor correctly.

With this change we should have somewhat reliable docking station
support in place.
src/login/logind-action.c
src/login/logind-dbus.c
src/login/logind.c
src/login/logind.h