this post was submitted on 07 Dec 2024
59 points (95.4% liked)

Linux

48665 readers
489 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

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

you are viewing a single comment's thread
view the rest of the comments
[–] Lem453@lemmy.ca 17 points 2 weeks ago

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: https://unix.stackexchange.com/questions/720514/cannot-write-into-sys-power-mem-sleep-in-fedora-36