My last resolution about power button works only when monitor is connected.
If you have headless server you can use systemd-logind service. By default (in CentOS 8) it do nothing. I've only found:
in /var/log/messages.
To change this behaviour you can modify
I've uncommented line
After thins restart service:
Now power key works on headless Linux server.
Add comment