You are not logged in.
Hello.
I want to ignore the close lid action, and just turn off the screen, without blocking the system. Is it possible?
I'm using gnome and this is my /etc/systemd/logind.conf file:
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# See logind.conf(5) for details[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#HandlePowerKey=poweroff
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
HandleLidSwitch=ignore
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
LidSwitchIgnoreInhibited=yes
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RemoveIPC=yes
Offline
There is the possibility that something else might be controlling the suspend on lid switch. The various power managers that DEs ship with will typically run an inhibitor lock, so the logind actions are ignored anyway. So if you run something like gnome-power-manager, xfce4-power-manager, etc, you are looking in the wrong place.
Edit: BTW, the above should have code tags, not quote tags.
Last edited by WonderWoofy (2014-07-13 00:39:33)
Offline
LidSwitchIgnoreInhibited=yesShouldn't this be set to "no"? You don't want to ignore inhibition. And yes, DEs may control certain power events. On Gnome, you can change the lid close behavior using gnome-tweak-tool (available in the official repos).
Last edited by Pse (2014-07-12 22:54:50)
Offline