To change power button behaviour in CentOS I've created file /etc/dconf/db/local.d/01-power:
[org/gnome/settings-daemon/plugins/power] power-button-action='interactive'
and restart or update dconf:
dconf update
Sources: Changing Behavior when Pressing the Power Button in Graphical Target Mode
Add comment