linux - 安装GNOME图形界面的CentOS7如何实现在锁屏状态按电源按钮关机
伊谢尔伦
伊谢尔伦 2017-04-17 14:35:09
0
1
890

目前,
ACPID服务已经启动,
SELinux禁用,
org.gnome.settings-daemon.plugins.power button-power 已经设置成shutdown
/etc/systemd/logind.conf 设置也是关机按钮关机

但是仅仅用户的登录并且未锁屏的时候按下关机按钮能关机,锁屏状态按关机按钮没有反应。
请问怎么实现锁屏状态下也能关机?

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(1)
Peter_Zhu

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!