From 6a79c58603ea816a1b4fa1520397b4e138bc1ca0 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 3 Mar 2014 19:30:16 +0100 Subject: logind: ignore lid switch if more than 1 display is connected 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. --- man/logind.conf.xml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'man/logind.conf.xml') diff --git a/man/logind.conf.xml b/man/logind.conf.xml index 54cc379048..7673201664 100644 --- a/man/logind.conf.xml +++ b/man/logind.conf.xml @@ -242,10 +242,10 @@ ignore, logind will never handle these keys. If lock, all running - sessions will be screen-locked; otherwise, - the specified action - will be taken in the respective - event. Only input devices with the + sessions will be screen-locked; + otherwise, the specified action will + be taken in the respective event. Only + input devices with the power-switch udev tag will be watched for key/lid switch events. HandlePowerKey= @@ -257,7 +257,11 @@ default to suspend. HandleHibernateKey= defaults to - hibernate. + hibernate. Note + that the lid switch is ignored if the + system is inserted in a docking + station, or if more than one display + is connected. -- cgit v1.2.3-54-g00ecf