我在运行 Ubuntu 20.04.01 的 Lenovo Thinkpad T440 上使用 S4 休眠模式时遇到了问题。我注意到,在让机器进入休眠状态后,电池会严重耗电。例如……昨晚我的“备用电池”还有 56% 的电量(内部电池为 100%)。大约 9-10 小时后,备用电池的电量只剩下 18%。使用 S4 时,电池使用量应该很少,因为 RAM 被转储到交换器,所有内部设备都应该断电。
我已将 BIOS 更新至最新版本。我看不到任何与睡眠/休眠相关的 BIOS 选项。
这是内核日志....只是不知道接下来该去哪里。
Dec 16 23:56:50 ThinkPad kernel: [67999.420291] ACPI: EC: interrupt blocked
Dec 16 23:56:50 ThinkPad kernel: [67999.422887] ACPI: Preparing to enter system sleep state S4
Dec 16 23:56:50 ThinkPad kernel: [67999.476197] ACPI: EC: event blocked
Dec 16 23:56:50 ThinkPad kernel: [67999.476198] ACPI: EC: EC stopped
Dec 16 23:56:50 ThinkPad kernel: [67999.769263] ACPI: EC: EC started
Dec 16 23:56:50 ThinkPad kernel: [67999.778163] ACPI: Waking up from system sleep state S4
Dec 16 23:56:50 ThinkPad kernel: [67999.784996] ACPI: EC: interrupt unblocked
Dec 16 23:56:50 ThinkPad kernel: [67999.930028] ACPI: EC: event unblocked
Dec 16 23:56:50 ThinkPad kernel: [68000.256367] ata3.00: ACPI cmd ef/02:00:00:00:00:a0 (SET FEATURES) succeeded
Dec 16 23:56:50 ThinkPad kernel: [68000.256369] ata3.00: ACPI cmd f5/00:00:00:00:00:a0 (SECURITY FREEZE LOCK) filtered out
Dec 16 23:56:50 ThinkPad kernel: [68000.256371] ata3.00: ACPI cmd ef/10:03:00:00:00:a0 (SET FEATURES) filtered out
Dec 16 23:56:50 ThinkPad kernel: [68000.256408] ata3.00: ACPI cmd ef/10:09:00:00:00:a0 (SET FEATURES) succeeded
Dec 16 23:56:50 ThinkPad kernel: [68000.257449] ata3.00: ACPI cmd ef/02:00:00:00:00:a0 (SET FEATURES) succeeded
Dec 16 23:56:50 ThinkPad kernel: [68000.257450] ata3.00: ACPI cmd f5/00:00:00:00:00:a0 (SECURITY FREEZE LOCK) filtered out
Dec 16 23:56:50 ThinkPad kernel: [68000.257452] ata3.00: ACPI cmd ef/10:03:00:00:00:a0 (SET FEATURES) filtered out
Dec 16 23:56:50 ThinkPad kernel: [68000.257509] ata3.00: ACPI cmd ef/10:09:00:00:00:a0 (SET FEATURES) succeeded
Dec 16 23:56:50 ThinkPad kernel: [68000.267670] ata1.00: ACPI cmd ef/02:00:00:00:00:a0 (SET FEATURES) succeeded
Dec 16 23:56:50 ThinkPad kernel: [68000.267672] ata1.00: ACPI cmd f5/00:00:00:00:00:a0 (SECURITY FREEZE LOCK) filtered out
Dec 16 23:56:50 ThinkPad kernel: [68000.267673] ata1.00: ACPI cmd ef/10:03:00:00:00:a0 (SET FEATURES) filtered out
Dec 16 23:56:50 ThinkPad kernel: [68000.287632] ata1.00: ACPI cmd ef/02:00:00:00:00:a0 (SET FEATURES) succeeded
Dec 16 23:56:50 ThinkPad kernel: [68000.287634] ata1.00: ACPI cmd f5/00:00:00:00:00:a0 (SECURITY FREEZE LOCK) filtered out
Dec 16 23:56:50 ThinkPad kernel: [68000.287635] ata1.00: ACPI cmd ef/10:03:00:00:00:a0 (SET FEATURES) filtered out
Dec 17 09:08:59 ThinkPad kernel: [68339.263743] ACPI: EC: interrupt blocked
Dec 17 09:08:59 ThinkPad kernel: [68339.266052] ACPI: Preparing to enter system sleep state S4
Dec 17 09:08:59 ThinkPad kernel: [68339.319058] ACPI: EC: event blocked
Dec 17 09:08:59 ThinkPad kernel: [68339.319059] ACPI: EC: EC stopped
Dec 17 09:08:59 ThinkPad kernel: [68339.611285] ACPI: EC: EC started
Dec 17 09:08:59 ThinkPad kernel: [68339.622139] ACPI: Waking up from system sleep state S4
Dec 17 09:08:59 ThinkPad kernel: [68339.628760] ACPI: EC: interrupt unblocked
Dec 17 09:08:59 ThinkPad kernel: [68339.776254] ACPI: EC: event unblocked
可能是内核错误???
答案1
看来从内核 5.4 更新到 5.9 解决了这个问题。在休眠的 16 小时内,电池电量下降了 1%,而之前的内核则下降了 20% 以上。日志还显示正在加载特定的 ThinkPad ACPI 模块。
Dec 18 16:04:45 ThinkPad kernel: [ 14.783480] thinkpad_acpi: ThinkPad ACPI Extras v0.26
Dec 18 16:04:45 ThinkPad kernel: [ 14.787791] thinkpad_acpi: This ThinkPad has standard ACPI backlight brightness control, supported by the ACPI video driver