The Cookie Machine - Click here to drag window

DUMMY TEXT - Real text set in assets/js/theCookieMachine.js

Views: 15,332β€…    Votes:  9β€…    βœ… Solution
Tags: 18.04   suspend   battery  
Link: πŸ” See Original Answer on Ask Ubuntu πŸ”—

URL: https://askubuntu.com/q/1085901
Title: Sleep mode drains battery very fast
ID: /2018/10/21/Sleep-mode-drains-battery-very-fast
Created: October 21, 2018    Edited:  October 21, 2018
Upload: November 24, 2022    Layout:  post
TOC: false    Navigation:  false    Copy to clipboard:  false


After resuming from suspend, use this command in the terminal:

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

If you see this:

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

It could mean when you suspended the CPU’s were not put to sleep as per his bounty Q&A a couple of years ago: systemd suspends system but upon resume kernel then enters sleep and wake-up

If so, I’m sad to report the problem persists to this day on my newest laptop just as it did on that older laptop.


Problem since 2012?

This old email chain: Re: Kernel stops at β€œPM: Preparing system for mem sleep”, never makes it to β€œFreezing user space processes … β€œ has a similar problem.

From my log file today:

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.

Some other interesting points is it often takes 5 to 8 seconds to suspend when it should be about 1 second. This bug is reported in many places too.


If you don’t have the same problem in the previous sections and, your laptop stays warm when suspended, then your fix maybe here: Ubuntu 18.04 - Dell XPS13 9370 no longer suspends on lid close

⇧ How do I prevent 'cd' command from going to home directory? I find GNOME desktop slower and less suited to my needs than Unity. What can I do about it?  β‡©