我遇到了一个严重的问题,导致我的计算机无需任何键盘或鼠标点击即可自动唤醒,并保持睡眠模式约 8 秒。
编辑:它是随机发生的,有时它只是无法唤醒并正常工作,我找不到重现它的恒定方法。
可以修复吗?如果不行,那么如何才能让笔记本电脑在合上盖子时进入休眠状态?
如果有帮助的话,我正在使用 hp pavilion dv6 笔记本电脑并附加 broadcom 无线和 nvidia 驱动程序。
编辑:
以下是有关我的 /proc/acpi/wakeup 的一些信息;
nx1337@nx-HP-Pavilion-dv6-Notebook-PC:~$ cat /proc/acpi/wakeup
Device S-state Status Sysfs node
P0P2 S4 *disabled
PEGP S4 *disabled
P0P3 S4 *disabled pci:0000:00:01.0
PEGP S4 *disabled
P0P1 S4 *disabled pci:0000:00:1e.0
CIR0 S5 *enabled pnp:00:00
PS2K S3 *enabled pnp:00:07
PS2M S3 *disabled pnp:00:08
EHC1 S3 *enabled pci:0000:00:1d.0
USB1 S3 *disabled
USB2 S3 *disabled
USB3 S3 *disabled
USB4 S3 *disabled
EHC2 S3 *enabled pci:0000:00:1a.0
USB5 S3 *disabled
USB6 S3 *disabled
USB7 S3 *disabled
HDEF S0 *disabled pci:0000:00:1b.0
RP01 S4 *disabled pci:0000:00:1c.0
RP02 S4 *disabled pci:0000:00:1c.1
PXSX S5 *enabled pci:0000:03:00.0
RP03 S4 *disabled
RP04 S4 *disabled
RP05 S4 *disabled pci:0000:00:1c.4
RP08 S4 *disabled pci:0000:00:1c.7
恐怕我甚至没有 PBTN 条目,所以我不想弄乱我的系统,做出疯狂的猜测并禁用我不知道的东西 - 如果其中一个指的是我的电源按钮怎么办?
这是来自我的 var/log/syslog 的一些相关信息;
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8587.383024] PM: Syncing filesystems ... done.
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8587.452554] PM: Preparing system for mem sleep
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8587.452826] Freezing user space processes ... (elapsed 0.002 seconds) done.
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8587.454994] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8587.456292] PM: Entering mem sleep
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8587.456339] Suspending console(s) (use no_console_suspend to debug)
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8587.456695] sd 0:0:0:0: [sda] Synchronizing SCSI cache
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8587.456746] sd 0:0:0:0: [sda] Stopping disk
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8587.553531] i8042 aux 00:08: System wakeup disabled by ACPI
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8587.553549] i8042 kbd 00:07: System wakeup enabled by ACPI
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8587.553575] ene_ir 00:00: System wakeup enabled by ACPI
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8588.049478] PM: suspend of devices complete after 593.170 msecs
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8588.049702] PM: late suspend of devices complete after 0.220 msecs
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8588.050173] r8169 0000:03:00.0: System wakeup enabled by ACPI
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8588.081795] ehci-pci 0000:00:1d.0: System wakeup enabled by ACPI
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8588.097841] ehci-pci 0000:00:1a.0: System wakeup enabled by ACPI
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8588.113370] PM: noirq suspend of devices complete after 63.685 msecs
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8588.113512] ACPI: Preparing to enter system sleep state S3
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8588.117408] PM: Saving platform NVS memory
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8588.117809] Disabling non-boot CPUs ...
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8588.221247] smpboot: CPU 1 is now offline
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8588.325216] smpboot: CPU 2 is now offline
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8588.325895] Broke affinity for irq 21
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8588.325908] Broke affinity for irq 42
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8588.580520] smpboot: CPU 3 is now offline
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8588.581674] ACPI: Low-level resume complete
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8588.581741] PM: Restoring platform NVS memory
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8588.582259] Enabling non-boot CPUs ...
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8588.582310] x86: Booting SMP configuration:
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8588.582311] smpboot: Booting Node 0 Processor 1 APIC 0x1
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8588.595760] CPU1 is up
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8588.595785] smpboot: Booting Node 0 Processor 2 APIC 0x4
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8588.609304] CPU2 is up
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8588.609328] smpboot: Booting Node 0 Processor 3 APIC 0x5
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8588.622906] CPU3 is up
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8588.625304] ACPI: Waking up from system sleep state S3
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8588.646462] ehci-pci 0000:00:1a.0: System wakeup disabled by ACPI
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8588.678443] ehci-pci 0000:00:1d.0: System wakeup disabled by ACPI
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8588.790598] PM: noirq resume of devices complete after 157.634 msecs
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8588.790762] PM: early resume of devices complete after 0.124 msecs
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8588.790996] snd_hda_intel 0000:00:1b.0: irq 43 for MSI/MSI-X
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8588.794640] r8169 0000:03:00.0: System wakeup disabled by ACPI
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8588.839338] ene_ir 00:00: System wakeup disabled by ACPI
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8588.839627] i8042 kbd 00:07: System wakeup disabled by ACPI
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8589.006396] usb 2-1.5: reset high-speed USB device number 3 using ehci-pci
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8589.122299] ata6: SATA link down (SStatus 0 SControl 300)
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8589.122359] ata5: SATA link down (SStatus 0 SControl 300)
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8589.130310] ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8589.192118] ata2.00: configured for UDMA/100
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8589.350171] firewire_core 0000:04:00.0: rediscovered device fw0
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8591.473567] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8591.479306] ata1.00: configured for UDMA/100
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8591.493692] sd 0:0:0:0: [sda] Starting disk
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8591.510980] ERROR @wl_wowl_ind_wake_reason : Unable to get wake reason, err = -95
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8591.514192] PM: resume of devices complete after 2724.270 msecs
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8591.514478] PM: Finishing wakeup.
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8591.514752] firewire_ohci 0000:04:00.0: no hotplug settings from platform
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8591.514779] sdhci-pci 0000:04:00.1: no hotplug settings from platform
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8591.514803] pci 0000:04:00.2: no hotplug settings from platform
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8591.514827] jmb38x_ms 0000:04:00.3: no hotplug settings from platform
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8591.514851] pci 0000:04:00.4: no hotplug settings from platform
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8591.514960] r8169 0000:03:00.0: no hotplug settings from platform
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8591.515128] firewire_ohci 0000:04:00.0: no hotplug settings from platform
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8591.515153] sdhci-pci 0000:04:00.1: no hotplug settings from platform
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8591.515177] pci 0000:04:00.2: no hotplug settings from platform
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8591.515215] jmb38x_ms 0000:04:00.3: no hotplug settings from platform
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8591.515240] pci 0000:04:00.4: no hotplug settings from platform
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8591.514480] Restarting tasks ... done.
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8591.598871] video LNXVIDEO:02: Restoring backlight state
答案1
我遇到了一个非常类似的问题;我将向您展示一个例子,但您需要根据自己的电脑进行调整。这里的输出来自我的桌面(并进行了精简),因此应用格拉诺萨利斯。
检查你的电脑的唤醒事件:
2& [romano:~/etc] % cat /proc/acpi/wakeup
Device S-state Status Sysfs node
PCI0 S4 *disabled no-bus:pci0000:00
COM1 S4 *disabled pnp:00:06
PEGH S4 *disabled
PEGL S4 *disabled
IGBE S4 *enabled pci:0000:00:19.0
PCX1 S4 *disabled pci:0000:00:1c.0
PCX5 S4 *disabled pci:0000:00:1c.4
PCX7 S4 *disabled pci:0000:00:1c.6
HUB S4 *disabled pci:0000:00:1e.0
EUS1 S3 *enabled pci:0000:00:1d.0
EUS2 S3 *enabled pci:0000:00:1a.0
PBTN S4 *enabled
这些enabled
事件可以唤醒您的计算机。其中一个事件正在触发;您必须找出是哪一个。
例如,您可以EUS1
使用以下命令切换唤醒状态(不管它是什么意思 --- 不知道):
echo EUS1 | sudo tee /proc/acpi/wakeup
然后,您可以通过重复第一个命令来检查唤醒是否已禁用。现在您可以尝试挂起,看看 PC 是否保持挂起状态。重复。
不要禁用事件PBTN
--- 这是电源按钮。在这种情况下,您将无法恢复!
我的策略通常是禁用所有内容,减去PBTN
--- 现在恢复应该被触发仅有的使用电源按钮。然后您可以尝试重新启用其他来源(或不启用)。
找到罪魁祸首事件后,你可以将它们添加到你的事件中/etc/rc.local
以使更改永久生效。但请注意,界面设计得很糟糕,你只能切换启用/禁用的状态,而不是设置它;例如,要根据其状态独立禁用 EUS1,您应该使用
grep 'EUS1.*enabled' < /proc/acpi/wakeup >/dev/null && echo "EUS1" > /proc/acpi/wakeup
在你的/etc/rc.local
。
就我而言,罪魁祸首是 EHC 和 XHC 设备,可能是因为我有一个 USB 键盘(但不确定),这是我的摘录rc.local
:
for device in XHC EHC1 EHC2; do
grep $device /proc/acpi/wakeup | grep enabled > /dev/null && {
echo Disabling wakeup on $device
echo $device > /proc/acpi/wakeup
}
done