The cause of the problem is that acpid will execute a script file before shutting down or restarting: /etc/acpi/actions/power.sh And this script file will execute a series of checks. If it does not pass, it will exit. . The easiest way is to comment out all the code in the script file, leaving only the last shutdown -H now.
But before that, SELinux must be turned off because it will prevent shutdown or restart operations from the lock screen.
The cause of the problem is that acpid will execute a script file before shutting down or restarting: /etc/acpi/actions/power.sh
And this script file will execute a series of checks. If it does not pass, it will exit. .
The easiest way is to comment out all the code in the script file, leaving only the last shutdown -H now.
But before that, SELinux must be turned off because it will prevent shutdown or restart operations from the lock screen.