Page 1 of 1

Shutdown by power button doesn't work

Posted: 2014/10/05 06:45:51
by jokibaer
I want shutdown my CentoOS 7 machine by pressing the power button. Since it doesn't work out of the box, I tried the following:

yum -y install acpid
service acpid start
chkconfig acpid on

Unfortunately without effect, probably because this was valid for CentOS 6.x only. Before I had FreeBSD installed, shutdown by power button worked with it, so generally my machine is capable to do so.

Does anyone know how to get it working?

Re: Shutdown by power button doesn't work

Posted: 2014/10/20 12:08:16
by vanecka
Perhaps verify the values of the following:
In config file : /etc/systemd/logind.conf

Code: Select all

PowerKeyIgnoreInhibited=no
HandlePowerKey=poweroff