You are not logged in.

#1 2014-07-12 22:21:22

Aegidius
Member
From: Italy
Registered: 2011-06-29
Posts: 288
Website

Unable to ignore lid close

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

#2 2014-07-12 22:44:25

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Unable to ignore lid close

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

#3 2014-07-12 22:54:19

Pse
Member
Registered: 2008-03-15
Posts: 415

Re: Unable to ignore lid close

LidSwitchIgnoreInhibited=yes

Shouldn'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

Board footer

Powered by FluxBB