logind: ignore lid switch if more than 1 display is connected

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

Previously we expected the desktop environment to take an inhibitor lock, but this opened a race on boot-up where logind might already be running but no DE is active.

Hence, let's move checking for additional displays into logind. This also opens up this logic for other DEs, given that only GNOME implemented the inhibitor logic so far.

6a79c58 logind: ignore lid switch if more than 1 display is connected
man/logind.conf.xml | 14 +++++++-----
src/login/logind-action.c | 8 +++++++
src/login/logind-core.c | 55 +++++++++++++++++++++++++++++++++++++++++++--
src/login/logind.h | 1 +
4 files changed, 71 insertions(+), 7 deletions(-)

Upstream: github.com


  • Share