this post was submitted on 21 Dec 2023
103 points (92.6% liked)
Technology
58303 readers
11 users here now
This is a most excellent place for technology news and articles.
Our Rules
- Follow the lemmy.world rules.
- Only tech related content.
- Be excellent to each another!
- Mod approved content bots can post up to 10 articles per day.
- Threads asking for personal tech support may be deleted.
- Politics threads may be removed.
- No memes allowed as posts, OK to post as comments.
- Only approved bots from the list below, to ask if your bot can be added please contact us.
- Check for duplicates before posting, duplicates may be removed
Approved Bots
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Sleep battery usage.
Seriously, I don't know what is up with Linux but it wastes so much battery during sleep. My laptop lasts 8 hours on normal, daily use, but if I put it to sleep: 24h max.
Isn't sleep supposed to just keep the RAM powered on because that component requires power to keep state? How can "keeping the lights on" waste so much energy?
I have given up on sleep long ago. Why don't you just hibernate? With ssds the boot is really quick.
Edit: I got frustrated with ACPI and uefi issues on my laptops. I wish we had open source uefis for most laptops.
I thought sleep would be good, but I think you're right. At this point I might just give up on sleep.
Unfortunately, that means repartitioning my drive as I don't have swap at all (64GB RAM) 😢
CC BY-NC 4.0
Usually swap can be quite a bit smaller than RAM it might still work.
Edit: You might want to check out lvm if you do repartition. Also many filesystems support swap files on them.
I've read about LVM a few times, but it feels like I'd need a deep dive in file systems to get it.
CC BY-NC-SA 4.0
Hibernate to swapfile is possible you don't need to repartition
Hadn't thought about that! I'll have a look. IIRC it's not recommended on BTRFS, but maybe that changed.
CC BY-NC-SA 4.0
How old is your machine? Starting 10 or so years ago, but really picked up the pace is "modern standby" or S0 standby. Basically in sleep your laptop doesn't go to sleep, it enters a "low power state" and even worse, keeps wifi on and tries to run background tasks. It's supposed to be quick to wake from sleep but it's not. S1 standby was incredibly fast to wake.
Literally the last thing I want my computer do do when in sleep is compute. I want it to use as little power as possible without dumping my ram.
I just use hibernation now. Fuck sleep. It was S3, but still wasting a lot of energy even though it's supposed to be handled by hardware after the kernel hands it off.
@[email protected] let me to the path of light. Boot is slow, but that's fine. Battery life is more important to me.