Geo*_*rge 17 battery suspend 18.04
当计算机使用 Ubuntu 18.04 进入睡眠状态时,电池会在大约 10 小时内耗尽,它是 lenovo y520(7700hq,1060 with bumblebee)。
当我测试没有插入 USB 设备时,实际上没有插入任何东西。
睡眠模式是 s2 - deep。我对休眠不感兴趣(它很慢并且需要很多空间)。
在 Windows 和 Mac OS (hackintosh) 睡眠模式下,一天消耗 1% 或 2% 的电池电量。
从挂起状态恢复后,在终端中使用此命令:
journalctl -b | grep -i "should not be sleeping"
Run Code Online (Sandbox Code Playgroud)
如果你看到这个:
Oct 21 07:20:18 alien kernel: cache: parent cpu1 should not be sleeping
Oct 21 07:20:18 alien kernel: cache: parent cpu2 should not be sleeping
Oct 21 07:20:18 alien kernel: cache: parent cpu3 should not be sleeping
Oct 21 07:20:18 alien kernel: cache: parent cpu4 should not be sleeping
Oct 21 07:20:18 alien kernel: cache: parent cpu5 should not be sleeping
Oct 21 07:20:18 alien kernel: cache: parent cpu6 should not be sleeping
Oct 21 07:20:18 alien kernel: cache: parent cpu7 should not be sleeping
Run Code Online (Sandbox Code Playgroud)
这可能意味着,当您暂停 CPU 时,并没有按照几年前他的悬赏问答将 CPU 置于睡眠状态:systemd 暂停系统,但在恢复内核后进入睡眠状态并唤醒
如果是这样,我很遗憾地报告这个问题在我最新的笔记本电脑上仍然存在,就像在那台旧笔记本电脑上一样。
这个旧的电子邮件链:Re: Kernel 在“PM: Preparing system for mem sleep”处停止,从未进入“Freezing user space processes ...”有类似的问题。
从我今天的日志文件:
Oct 21 13:48:15 alien kernel: PM: Preparing system for sleep (mem)
Oct 21 13:48:16 alien acpid[964]: client 1171[0:0] has disconnected
Oct 21 13:48:32 alien kernel: Freezing user space processes ... (elapsed 0.003 seconds) done.
Run Code Online (Sandbox Code Playgroud)
其他一些有趣的点是挂起通常需要 5 到 8 秒,而本应为 1 秒左右。很多地方也报告了这个错误。
如果您在前面的部分中没有遇到同样的问题,并且您的笔记本电脑在暂停时保持温暖,那么您的修复方法可能在这里:Ubuntu 18.04 - Dell XPS13 9370 不再在盖子关闭时暂停
| 归档时间: |
|
| 查看次数: |
11958 次 |
| 最近记录: |