休眠-似乎有效,但是现在屏幕仍然亮着?

休眠-似乎有效,但是现在屏幕仍然亮着?

Ubuntu 22.04.2 LTS

5.19.0-32-通用#33~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC 1 月 30 日星期一 17:03:34 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

很长一段时间以来,我都能sudo systemctl hibernate让笔记本电脑 (Dell XPS17) 进入休眠模式。通常需要几秒钟,屏幕会变黑,然后键盘背光会熄灭,机器基本上处于“关闭”状态,直到我稍后将其唤醒。

最近,出现了一些变化,可能是作为系统维护的一部分安装的一些东西,现在 Hibernate 出现了一些奇怪的问题。

当我发出命令时,它会像往常一样运行,然后屏幕变黑,大约一秒钟后屏幕恢复到原来显示的状态,背光级别相同,但鼠标光标冻结(或丢失),键盘无响应。就像机器处于休眠状态,但屏幕没有关闭。

如果我按住电源按钮约 10 秒钟,它就会关闭屏幕,但奇怪的是,当我稍后重新启动它时,就好像它已经休眠了一样 - 我回到原来的位置,而不是冷启动。

因此我想屏幕处理的方式发生了一些变化 - 有什么想法吗?

我尝试使用 Linux 虚拟控制台,发生了同样的事情 - 闪烁的光标在几秒钟后停止,但屏幕仍然亮着。

以下是我的 dmesg sudo systemctl hibernate

[82037.130237] PM: hibernation: hibernation entry
[82037.136832] Filesystems sync: 0.005 seconds
[82037.136836] Freezing user space processes ... (elapsed 0.002 seconds) done.
[82037.139194] OOM killer disabled.
[82037.139449] PM: hibernation: Marking nosave pages: [mem 0x00000000-0x00000fff]
[82037.139452] PM: hibernation: Marking nosave pages: [mem 0x0009f000-0x000fffff]
[82037.139454] PM: hibernation: Marking nosave pages: [mem 0x5aa9f000-0x5aa9ffff]
[82037.139455] PM: hibernation: Marking nosave pages: [mem 0x5aaae000-0x5ab26fff]
[82037.139457] PM: hibernation: Marking nosave pages: [mem 0x5abd8000-0x5abd8fff]
[82037.139458] PM: hibernation: Marking nosave pages: [mem 0x5f77a000-0x63ffefff]
[82037.139656] PM: hibernation: Marking nosave pages: [mem 0x64000000-0xffffffff]
[82037.140818] PM: hibernation: Basic memory bitmaps created
[82037.141791] PM: hibernation: Preallocating image memory
[82041.930053] PM: hibernation: Allocated 3200064 pages for snapshot
[82041.930055] PM: hibernation: Allocated 12800256 kbytes in 4.78 seconds (2677.87 MB/s)
[82041.930057] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
[82041.932177] printk: Suspending console(s) (use no_console_suspend to debug)
[82044.109104] ACPI: EC: interrupt blocked
[82044.128094] ACPI: PM: Preparing to enter system sleep state S4
[82044.144776] ACPI: EC: event blocked
[82044.144778] ACPI: EC: EC stopped
[82044.144779] ACPI: PM: Saving platform NVS memory
[82044.152148] Disabling non-boot CPUs ...
[82044.154299] smpboot: CPU 1 is now offline
[82044.159695] smpboot: CPU 2 is now offline
[82044.161962] smpboot: CPU 3 is now offline
[82044.164446] smpboot: CPU 4 is now offline
[82044.166920] smpboot: CPU 5 is now offline
[82044.169465] smpboot: CPU 6 is now offline
[82044.171983] smpboot: CPU 7 is now offline
[82044.176620] smpboot: CPU 8 is now offline
[82044.178608] smpboot: CPU 9 is now offline
[82044.180314] smpboot: CPU 10 is now offline
[82044.182275] smpboot: CPU 11 is now offline
[82044.184166] smpboot: CPU 12 is now offline
[82044.186001] smpboot: CPU 13 is now offline
[82044.187809] smpboot: CPU 14 is now offline
[82044.190045] smpboot: CPU 15 is now offline
[82044.191935] PM: hibernation: Creating image:
[82044.496503] PM: hibernation: Need to copy 3159714 pages
[82044.496505] PM: hibernation: Normal pages needed: 3159714 + 1024, available pages: 5158353

2023 年 7 月更新

选择 5.15.0-75-generic 内核可以解决这个问题。现在,当启动休眠模式时,屏幕会空白 10-20 秒,然后短暂地再次显示,然后笔记本电脑正常关机。从休眠状态唤醒会慢一点,屏幕空白约 30 秒,但一切正常。

我只尝试在 5.15 和 5.19 之间交替使用,所以我不确定是哪个版本引入了这种回归,但根据我看到的其他评论,它似乎是在 5.16 中引入的。

相关内容