我在笔记本电脑上安装了 Ubuntu 12.04.3。将系统置于挂起状态几分钟后,它会自动唤醒。我的系统上安装了 tlp。我的笔记本电脑上还连接了 USB 键盘和鼠标。
内容/proc/acpi/wakeup
如下:-
Device S-state Status Sysfs node
P0P1 S4 *disabled
KBD0 S3 *enabled pnp:00:07
PS2M S3 *disabled pnp:00:08
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 S0 *disabled pci:0000:00:1b.0
RP01 S4 *disabled pci:0000:00:1c.0
PXSX S4 *disabled
RP02 S4 *disabled
PXSX S4 *disabled
RP03 S4 *disabled pci:0000:00:1c.2
PXSX S4 *disabled pci:0000:02:00.0
RP04 S4 *disabled pci:0000:00:1c.3
PXSX S4 *disabled pci:0000:04:00.0
RP05 S4 *disabled
PXSX S4 *disabled
RP06 S5 *disabled pci:0000:00:1c.5
PXSX S5 *disabled pci:0000:05:00.0
RP07 S4 *disabled
PXSX S4 *disabled
RP08 S4 *disabled
PXSX S4 *disabled
PEG0 S4 *disabled
PEGP S4 *disabled
PEG1 S4 *disabled
PEG2 S4 *disabled
PEG3 S4 *disabled
LID0 S3 *enabled
输出lspci
:-
00:00.0 Host bridge: Intel Corporation 3rd Gen Core processor DRAM Controller (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04)
00:16.0 Communication controller: Intel Corporation 7 Series/C210 Series Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 1 (rev c4)
00:1c.2 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 3 (rev c4)
00:1c.3 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 4 (rev c4)
00:1c.5 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 6 (rev c4)
00:1d.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation HM77 Express Chipset LPC Controller (rev 04)
00:1f.2 RAID bus controller: Intel Corporation 82801 Mobile SATA Controller [RAID mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 7 Series/C210 Series Chipset Family SMBus Controller (rev 04)
02:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5229 PCI Express Card Reader (rev 01)
04:00.0 Network controller: Intel Corporation Centrino Wireless-N 2230 (rev c4)
05:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 07)
关于如何纠正这个问题,有什么建议吗?
答案1
您是否尝试过拔掉键盘和鼠标。鼠标的细微移动可能会触发唤醒。
附注:您能发布lspci
终端的结果吗?当您从两个输出连接 pci 代码时,它可能会显示哪些设备有可能“唤醒”笔记本电脑。
编辑:我发现大多数可以唤醒计算机的设备都是通过 USB 连接的。如果您不使用 USB 连接的软件从挂起状态唤醒,您可以尝试禁用这些设备。
您可以使用sudo sh -c "echo **** > /proc/acpi/wakeup"
命令禁用(或启用)唤醒文件中的内容。****
应将其替换为您要从唤醒文件中启用/禁用的设备(例如 EHC2 或 KBD0)。
请告诉我这是否有效,以便我可以寻找其他解决方案。