目前,
ACPID服务已经启动,
SELinux禁用,
org.gnome.settings-daemon.plugins.power button-power 已经设置成shutdown
/etc/systemd/logind.conf 设置也是关机按钮关机
但是仅仅用户的登录并且未锁屏的时候按下关机按钮能关机,锁屏状态按关机按钮没有反应。
请问怎么实现锁屏状态下也能关机?
天蓬老师2017-04-17 14:37:09
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.