You are not logged in.

#1 2013-07-07 10:29:33

andy4712
Member
Registered: 2013-05-20
Posts: 4

power key handler

I am running the latest Arch (pacman -Suy executed on 2013-07-07, kernel 3.9.9.1) with OpenBox on a Samsung 900X4C.
No acpid installed.
When I press the power key/button the system gets shut down all right (I can see some log messages).

My question is WHY?!

As I understand https://wiki.archlinux.org/index.php/Sy … management, /etc/systemd/logind.conf controls
what happens when the power key is pressed. Here is mine:
[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#Controllers=
#ResetControllers=cpu
#InhibitDelayMaxSec=5
#HandlePowerKey=poweroff
HandlePowerKey=ignore
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
HandleLidSwitch=suspend
#PowerKeyIgnoreInhibited=no
PowerKeyIgnoreInhibited=yes
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
LidSwitchIgnoreInhibited=yes
#IdleAction=ignore
#IdleActionSec=30min

So, unless there is a systemd-ghostd handling the power key (and possibly also ignoring the lid switch), I'd expect
NOTHING to happen on keydown for the power button.

What IS the real "chain of command" here?

Thanks a lot for your help,

André

Last edited by andy4712 (2013-07-07 10:33:59)

Offline

#2 2013-07-07 10:54:51

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: power key handler

my logind.conf and my laptop doesn't shut down

[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#Controllers=
#ResetControllers=cpu
#InhibitDelayMaxSec=5
HandlePowerKey=ignore
HandleSuspendKey=ignore
HandleHibernateKey=ignore
HandleLidSwitch=ignore
PowerKeyIgnoreInhibited=ignore
SuspendKeyIgnoreInhibited=ignore
HibernateKeyIgnoreInhibited=ignore
LidSwitchIgnoreInhibited=ignore
#IdleAction=ignore
#IdleActionSec=30min

I don't know if this is perfect, but it works smile

Offline

Board footer

Powered by FluxBB