我在华硕 n550jv 上运行 Ubuntu 14.04。我在 13.10 中也遇到了这个问题。
我想在笔记本电脑盖打开时禁用从挂起恢复。对此的传统答案涉及echo "LID" > /proc/acpi/wakeup
,但此文件中没有 LID 的条目:
$ cat /proc/acpi/wakeup
Device S-state Status Sysfs node
RP01 S4 *disabled pci:0000:00:1c.0
PXSX S4 *disabled
PXSX S4 *disabled
RP03 S4 *disabled pci:0000:00:1c.2
PXSX S4 *disabled pci:0000:04:00.0
WLAN S3 *disabled
RP04 S4 *disabled pci:0000:00:1c.3
PXSX S4 *disabled pci:0000:05:00.0
GLAN S4 *disabled
EHC1 S3 *enabled pci:0000:00:1d.0
EHC2 S3 *enabled pci:0000:00:1a.0
XHC S3 *enabled pci:0000:00:14.0
HDEF S4 *disabled pci:0000:00:1b.0
PEG0 S4 *disabled pci:0000:00:01.0
PEGP S4 *disabled pci:0000:01:00.0
PEGA S4 *disabled
PEG1 S4 *disabled
PEG2 S4 *disabled
SLPB S4 *enabled
acpi_listen 也没有什么帮助:
$ acpi_listen
button/lid LID 00000080 000000f5
video GFX0 00000080 00000000
button/lid LID 00000080 000000f6
video GFX0 00000080 00000000
我找到了一些额外的信息,但遗憾的是这没有帮助:
使用以下方式切换 /sys/devices/platform/asus-nb-wmi/lid_resume
# echo 0 > /sys/devices/platform/asus-nb-wmi/lid_resume
参考文献:
https://github.com/torvalds/linux/commit/c0b91b6d5226247fa4fe894eb592bcc56bc7e9fd
https://wiki.ubuntu.com/Kernel/Reference/S3