我正在使用 Lubuntu 13.04,并希望按下电源按钮时可以关闭计算机。目前它只会打开电源偏好菜单(注销、重启、休眠等等)。
在 Lubuntu 中,有 xfce4-power-manager v1.2 ,我尝试通过设置 常规->按下电源按钮时->关闭 选项来修复它,但这没有改变任何东西。
非常感谢任何帮助。
/etc/acpi/powerbtn.sh
,然后确保以下行是它的最后几行。# If all else failed, just initiate a plain shutdown.
/sbin/shutdown -h now "Power button pressed"
/etc/acpi/events/powerbtn
,并确保与下面的内容匹配,特别是最后一部分。# /etc/acpi/events/powerbtn
# This is called when the user presses the power button and calls
# /etc/acpi/powerbtn.sh for further processing.
# Optionally you can specify the placeholder %e. It will pass
# through the whole kernel event message to the program you've
# specified.
# We need to react on "button power.*" and "button/power.*" because
# of kernel changes.
event=button[ /]power
action=/etc/acpi/powerbtn.sh
sudo service acpid restart
sudo apt-get install acpid
命令来安装 acpid。 - Glutanimate