logind: ignore lid switch events for 30s after each suspend and 3min after startup

System Internals / systemd - Lennart Poettering [poettering.net] - 3 March 2014 13:57 UTC

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.

f9cd6be logind: ignore lid switch events for 30s after each suspend and 3min after startup
src/login/logind-action.c | 15 ++++++++++++++-
src/login/logind-dbus.c | 3 +++
src/login/logind.c | 45 +++++++++++++++++++++++++++++++++++++++++++++
src/login/logind.h | 7 +++++++
4 files changed, 69 insertions(+), 1 deletion(-)

Upstream: github.com


  • Share