笔记本电脑在挂起几秒钟后唤醒

笔记本电脑在挂起几秒钟后唤醒

我正在运行装有 Ubuntu 20.04 的 Toshiba Satellite L745。在我让机器进入睡眠状态或合上盖子几秒钟后,它会自动唤醒。我已禁用 BIOS 中列出的所有唤醒选项。

输出: cat /proc/acpi/wakeup | grep enabled

EHC1 S3 *启用 pci:0000:00:1d.0
EHC2 S3 *启用 pci:0000:00:1a.0

ECH1/ECH2 不会切换为禁用。这些行指的是每个 lspci 命令的两个 USB 主机控制器。不知道接下来该怎么做。

我也在论坛上看到有关机器无法进入深度睡眠的问题。

输出: cat /sys/power/mem_sleep s2idle [deep] 似乎处于正确模式。

根据请求,查看下面与挂起相关的系统日志。不太熟悉挂起过程...最后一行是唯一一行显示已请求唤醒,但 CPU 在此行之前已恢复。任何帮助破译此内容的帮助都将不胜感激。

Jan  3 18:36:42 joe systemd[1]: Starting Suspend...
Jan  3 18:36:42 joe systemd-sleep[4530]: Suspending system...
Jan  3 18:36:42 joe kernel: [ 1528.423899] PM: suspend entry (deep)
Jan  3 18:36:48 joe kernel: [ 1529.134360] Filesystems sync: 0.710 seconds
Jan  3 18:36:48 joe kernel: [ 1529.134830] Freezing user space processes ... (elapsed 0.005 seconds) done.
Jan  3 18:36:48 joe kernel: [ 1529.139944] OOM killer disabled.
Jan  3 18:36:48 joe kernel: [ 1529.139946] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
Jan  3 18:36:48 joe kernel: [ 1529.141431] printk: Suspending console(s) (use no_console_suspend to debug)
Jan  3 18:36:48 joe kernel: [ 1529.157933] sd 0:0:0:0: [sda] Synchronizing SCSI cache
Jan  3 18:36:48 joe kernel: [ 1529.298187] sd 0:0:0:0: [sda] Stopping disk
Jan  3 18:36:48 joe kernel: [ 1529.946471] ACPI: EC: interrupt blocked
Jan  3 18:36:48 joe kernel: [ 1529.966401] ACPI: Preparing to enter system sleep state S3
Jan  3 18:36:48 joe kernel: [ 1529.967350] ACPI: EC: event blocked
Jan  3 18:36:48 joe kernel: [ 1529.967352] ACPI: EC: EC stopped
Jan  3 18:36:48 joe kernel: [ 1529.967354] PM: Saving platform NVS memory
Jan  3 18:36:48 joe kernel: [ 1529.967377] Disabling non-boot CPUs ...
Jan  3 18:36:48 joe kernel: [ 1529.968119] IRQ 17: no longer affine to CPU1
Jan  3 18:36:48 joe kernel: [ 1529.969178] smpboot: CPU 1 is now offline
Jan  3 18:36:48 joe kernel: [ 1529.973680] IRQ 29: no longer affine to CPU2
Jan  3 18:36:48 joe kernel: [ 1529.974714] smpboot: CPU 2 is now offline
Jan  3 18:36:48 joe kernel: [ 1529.978105] IRQ 16: no longer affine to CPU3
Jan  3 18:36:48 joe kernel: [ 1529.978120] IRQ 23: no longer affine to CPU3
Jan  3 18:36:48 joe kernel: [ 1529.979138] smpboot: CPU 3 is now offline
Jan  3 18:36:48 joe kernel: [ 1529.981806] ACPI: Low-level resume complete
Jan  3 18:36:48 joe kernel: [ 1529.981856] ACPI: EC: EC started
Jan  3 18:36:48 joe kernel: [ 1529.981857] PM: Restoring platform NVS memory
Jan  3 18:36:48 joe kernel: [ 1529.983250] Enabling non-boot CPUs ...
Jan  3 18:36:48 joe kernel: [ 1529.983307] x86: Booting SMP configuration:
Jan  3 18:36:48 joe kernel: [ 1529.983308] smpboot: Booting Node 0 Processor 1 APIC 0x1
Jan  3 18:36:48 joe kernel: [ 1529.986443] CPU1 is up
Jan  3 18:36:48 joe kernel: [ 1529.986516] smpboot: Booting Node 0 Processor 2 APIC 0x2
Jan  3 18:36:48 joe kernel: [ 1529.990130] CPU2 is up
Jan  3 18:36:48 joe kernel: [ 1529.990214] smpboot: Booting Node 0 Processor 3 APIC 0x3
Jan  3 18:36:48 joe kernel: [ 1529.993589] CPU3 is up
Jan  3 18:36:48 joe kernel: [ 1530.001938] ACPI: Waking up from system sleep state S3
Jan  3 18:36:48 joe kernel: [ 1530.002791] ACPI: EC: interrupt unblocked
Jan  3 18:36:48 joe kernel: [ 1530.039617] ACPI: EC: event unblocked
Jan  3 18:36:48 joe kernel: [ 1530.039771] rtlwifi: rtlwifi: wireless switch is on
Jan  3 18:36:48 joe kernel: [ 1530.049980] sd 0:0:0:0: [sda] Starting disk
Jan  3 18:36:48 joe kernel: [ 1530.287009] usb 2-1.5: reset high-speed USB device number 3 using ehci-pci
Jan  3 18:36:48 joe kernel: [ 1530.294975] usb 1-1.4: reset high-speed USB device number 3 using ehci-pci
Jan  3 18:36:48 joe kernel: [ 1530.386368] ata4: SATA link down (SStatus 0 SControl 300)
Jan  3 18:36:48 joe kernel: [ 1530.386419] ata5: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
Jan  3 18:36:48 joe kernel: [ 1530.395672] ata5.00: configured for UDMA/100
Jan  3 18:36:48 joe kernel: [ 1530.449372] OOM killer enabled.
Jan  3 18:36:48 joe kernel: [ 1530.449375] Restarting tasks ... done.
Jan  3 18:36:48 joe systemd[1409]: vte-spawn-e52498e8-c196-4beb-9d33-2892897d288a.scope: Succeeded.
Jan  3 18:36:48 joe kernel: [ 1530.856428] psmouse serio2: synaptics: queried max coordinates: x [..5686], y [..4786]
Jan  3 18:36:48 joe kernel: [ 1530.883491] PM: suspend exit
Jan  3 18:36:48 joe systemd-sleep[4530]: System resumed.
Jan  3 18:36:50 joe kernel: [ 1532.242920] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
Jan  3 18:36:50 joe kernel: [ 1532.244931] ata1.00: configured for UDMA/100
Jan  3 18:36:50 joe systemd-sleep[4628]: /dev/sda:
Jan  3 18:36:50 joe systemd-sleep[4628]:  setting Advanced Power Management level to 0x80 (128)
Jan  3 18:36:50 joe systemd-sleep[4628]:  APM_level#011= 128
Jan  3 18:36:50 joe systemd-sleep[4672]: /dev/sda:
Jan  3 18:36:50 joe systemd-sleep[4672]:  setting standby to 36 (3 minutes)
Jan  3 18:36:50 joe systemd[1]: systemd-suspend.service: Succeeded.
Jan  3 18:36:50 joe systemd[1]: Finished Suspend.
Jan  3 18:36:50 joe systemd[1]: Stopped target Sleep.
Jan  3 18:36:50 joe systemd[1]: Reached target Suspend.
Jan  3 18:36:50 joe systemd[1]: Stopped target Suspend.
Jan  3 18:36:50 joe NetworkManager[718]: <info>  [1609717010.3905] manager: sleep: wake requested (sleeping: yes  enabled: yes)

我最近重新安装了 Ubuntu,主要是为了尝试修复此问题(以及其他问题)。机器是全新安装的,没有更改默认设置。

如果您采取任何进一步的故障排除步骤,我们将不胜感激。

谢谢你,

答案1

我遇到了类似的问题,我报告过正在进行的错误报告

对我来说,解决方案就在这个答案中:

我今天仍在使用那个旧答案,但是我使用的是答案中的第二个脚本:/lib/systemd/system-sleep/custom-xhci_hcd

有时候我会关闭脚本,但会发生一些不寻常的事情,我不得不重新打开脚本。我无法完全解释为什么暂停/恢复会出现问题,所以当我发现某个方法有效时,我就会坚持使用它。

相关内容