My laptop doesn't go to sleep, how can I diagnose this?
from strawberry@kbin.earth to linux@lemmy.ml on 07 Dec 16:29
https://kbin.earth/m/linux@lemmy.ml/t/726787

It should be that if i close the laptop and leave it, even overnight, it should only lose maybe 5% battery, but it actually loses all of it, as if it was on (it gets maybe 5 hrs of battery life)

I have it set to sleep after 5 minutes. What sorts of logs should I check to diagnose the problem?

Fedora 41 KDE spin on a 6th gen lenovo x1 carbon (intel i5-8650U)

aside from this, i really am enjoying linux on my new toy

thank you all

#linux

threaded - newest

bobslaede@feddit.dk on 07 Dec 16:37 next collapse

Some laptops have a BIOS setting for sleep mode. Windows or Linux. I have had a Lenovo with this setting.

thisisbutaname@discuss.tchncs.de on 07 Dec 16:42 next collapse

I’ll have to look for it because my laptop never went to sleep under Linux

strawberry@kbin.earth on 07 Dec 16:52 next collapse

there is something about sleep something something and the options are windows and linux, so ill see if that fixes it

strawberry@kbin.earth on 07 Dec 19:33 collapse

okay initial testing its good

the whole time i was worried because the light on the lid (in the thinkpad logo) would keep blinking, making me think it wasnt asleep

i left the laptop for 2 hours and it only dropped 1%

bobslaede@feddit.dk on 07 Dec 19:36 collapse

Awesome!

neidu3@sh.itjust.works on 07 Dec 17:08 next collapse

yum install melatonin

SnotFlickerman@lemmy.blahaj.zone on 07 Dec 17:34 collapse

apt-get install warm-milk, for debian users

marius@feddit.org on 07 Dec 18:09 next collapse

Now we need a package called alcohol that makes your laptop go to sleep but still drains its battery

SnotFlickerman@lemmy.blahaj.zone on 07 Dec 18:43 next collapse

Sleep State S5: alcohol induces intermittent sleep where the monitor keeps coming on and the turning off for indeterminate amounts of time during the night.

TDCN@feddit.dk on 07 Dec 18:55 collapse

Then when the computer wakes up the mouse is all wonky for the first few minutes

masterofn001@lemmy.ca on 07 Dec 20:14 collapse

And the liquid cooling has leaked all over the desk.

Hupf@feddit.org on 07 Dec 20:05 collapse

So, whatever Windows 11 does on my work laptop when I tell it to standby and it shuts off the screen but proceeds to spin the fans to 100% continuously?

strawberry@kbin.earth on 07 Dec 21:32 next collapse

oh I love that, especially in the middle of the night

dgriffith@aussie.zone on 08 Dec 03:25 collapse

“Just got to spin through a few trillion instructions to get things sorted before we go to standby! Won’t be a minute!”

neidu3@sh.itjust.works on 07 Dec 18:28 collapse

cd /usr/ports/hammertothehead && make && make install

…for FreeBSD users

hallettj@leminal.space on 07 Dec 18:17 next collapse

I had that symptom, and I found that my laptop was using S2 idle (suspend to idle). I fixed it by switching to S3 sleep (suspend to RAM). I suggest following the instructions in section 3 in this page: wiki.archlinux.org/title/…/Suspend_and_hibernate

Like many Arch Wiki guides, most of the information on that page is applicable to most Linux distros, not just Arch.

Lem453@lemmy.ca on 07 Dec 20:35 next collapse

This is a deep sleep issue. A google search will show that many modern processors can’t actually deep sleep (S3) and therefore the only option is to hibernate or shut it off.

To find out if you can, sleep the computer, wake it up then run:

journalctl | grep S3

There should be a line about what type of sleep is available and another line about what type of sleep your computer was just in.

If S3 is not listed as an available sleep mode you might get lucky and be able to turn it on in the bios. If you can’t then you are out of luck.

Since I use fedora atomic, I used this to turn on deep sleep: rpm-ostree kargs --append=“mem_sleep_default=deep”

On non atomic I forget exactly how but I think this is the way: unix.stackexchange.com/…/cannot-write-into-sys-po…

makingStuffForFun@lemmy.ml on 07 Dec 21:41 collapse

This is interesting. I have the same laptop.

I had this exact issue in popos on it.

I changed a setting in the bios (can’t recall exactly now), and that did nothing.

Recently I moved to fedora 41, and the problem disappeared.

So I suspect it’s a bios setting.