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?
Shutdown by power button doesn't work
-
- Posts: 45
- Joined: 2010/01/28 21:05:11
- Location: University of the Free State - South Africa
- Contact:
Re: Shutdown by power button doesn't work
Perhaps verify the values of the following:
In config file : /etc/systemd/logind.conf
In config file : /etc/systemd/logind.conf
Code: Select all
PowerKeyIgnoreInhibited=no
HandlePowerKey=poweroff