睡眠模式非常快地耗尽电池电量

当电脑在Ubuntu 18.04上睡着时,电池耗尽大约10个小时,它是联想y520(7700hq,1060与大黄蜂)。
当我测试没有插入USB设备时,实际上没有插入任何东西。
睡眠模式是s2 – 深。 我对hibernate不感兴趣(它很慢并占用很多空间)。
在Windows和Mac OS(hackintosh)中,睡眠模式在一天内使用1%或2%的电池。

从暂停状态恢复后,在终端中使用此命令:

journalctl -b | grep -i "should not be sleeping" 

如果你看到这个:

 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 

这可能意味着当你暂停CPU时,几年前根据他的赏金Q&A没有进入睡眠状态 : systemd暂停系统但是在恢复内核然后进入睡眠状态并唤醒

如果是这样的话,我很遗憾地报道这个问题在我最新的笔记本电脑上一直存在,就像在那台旧笔记本电脑上一样。


问题自2012年以来?

这个旧的电子邮件链: Re:内核停在“PM:为mem sleep准备系统”,永远不会让它“冻结用户空间进程……”也有类似的问题。

从我今天的日志文件:

 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. 
  • 第1行是正常的
  • 第2行exception并与旧的X11崩溃错误相关联
  • 第3行在恢复后发生,但应该作为暂停的一部分发生。

其他一些有趣的观点是,当它应该是大约1秒时,通常需要5到8秒才能暂停。 许多地方也报告了这个错误。


如果您在前面的部分中没有遇到同样的问题,并且您的笔记本电脑在暂停时保持温暖,那么您的修复可能在此处: Ubuntu 18.04 – 戴尔XPS13 9370不再挂在盖子关闭