You are not logged in.

#1 2012-12-22 21:34:47

quasifilmie
Member
Registered: 2011-10-27
Posts: 296

Lid close action- logind and gnome 3.6

First of all, I am aware of the many threads related but I feel my problem is slightly special smile  My laptop lid close action on BATTERY is "suspend" and my laptop lid close action on AC is "nothing".

Here is my logind.conf

#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#Controllers=
#ResetControllers=cpu
#InhibitDelayMaxSec=5
#HandlePowerKey=poweroff
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
HandleLidSwitch=ignore
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
LidSwitchIgnoreInhibited=no

Currently, when I close my laptop lid when plugged in I get no change on power as intended per gnome tweak tool. I get this same behaviour when my laptop is not plugged in which, in this case, is unintended. I want gnome-tweak-tool to handle this stuff but I can't figure out how to do this logind.conf. I have tried LidSwitchIgnoreInhibnited=off and LidSwitchIgnoreInhibited=off. I get no change. I think HandleLidSwitch=ignore is correct. Any help would most appreciated big_smile

Last edited by quasifilmie (2012-12-22 21:36:19)

Offline

#2 2012-12-23 07:08:03

Varg
Member
From: Belgium
Registered: 2010-07-07
Posts: 272

Re: Lid close action- logind and gnome 3.6

As far as I know the logind.conf file does some basic handling of ACPI events. A DE like Gnome will handle ACPI events on its own. So using logind.conf with gnome might give conflicts. You should disable those options in logind.conf ( Normally when the line is in a comments it defaults to no ). When running a DE I put those lines in comment ( even when running a WM, acpid still seems to do a better job. )

When it still doesn't work it's probably a problem with gnome power manager, can't help you with that smile

Last edited by Varg (2012-12-23 07:10:59)

Offline

#3 2012-12-24 05:41:37

quasifilmie
Member
Registered: 2011-10-27
Posts: 296

Re: Lid close action- logind and gnome 3.6

Thanks for the reply Varg. All those lines were originally in comment. I un-commented LidSwitchIgnoreInhibited to no (there is also an off option??) since it defaults to yes according to the man page. At this point, I am just hoping gnome plays nicer with logind in 3.8 and that logind config becomes intelligible. From what I've read, KDE seems to play nicer with the systemd changes though.

Offline

#4 2012-12-24 12:39:32

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,577

Re: Lid close action- logind and gnome 3.6

Varg wrote:

( Normally when the line is in a comments it defaults to no ).

Logind does not follow that convention, the values on the commented lines are the DEFAULT values.

The options quasifilmie has appear to be correct, but i agree with varg acpid seems to do better.
acpid also has the advantage your settings will be used when not in X.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB