运行状态检查器显示笔记本电脑知道机盖正在关闭。 :
while true; do cat /proc/acpi/button/lid/LID/state ; sleep 3; done
state: open
state: open
state: closed
state: open
state: open
state: closed
state: open
state: open
我也在/ etc / acpi / local中创建了一个lid.sh文件,我认为它只能工作一次!
#!/bin/bash
if grep -q closed /proc/acpi/button/lid/LID/state
then
/usr/sbin/pm-suspend
fi
直到最近,此功能一直可以正常使用。东芝Portege R830