LyraNovaHeart Gorts

Joined: 15 Apr 2025 Age: 27 Posts: 48 Location: Los Angeles, California
|
Posted: Sun Sep 14, 2025 2:18 am Post subject: A Half Assed Fix to Suspend when closing the lid on Laptops. |
|
|
Modern standby... don't we all love it? I'm sure we all do (No we don't, fuck you Microsoft).
Anyways, there isn't really much of a full fix, as this applies to laptops where S3 sleep, aka suspend to RAM doesn't exist. A lot of modern laptops, hell even some laptops made for Linux have this problem, since they have S0iX or S2 Idle. Those two sleep states aren't really sleep states at all. If Linux tries to enter sleep/suspend when you have only those states, it's going to crash. Now, This fix only applies to the lid, it does NOT apply to suspend itself, this option will remain broken. What my laptop does, and I have a Clevo V560EU, is it seemingly restarts and the WiFi card will not work until you restart the system again. This ensures that you get at least a somewhat proper sleep state.
Pre Setup: Check your current sleep states.
Of course, this doesn't apply to every laptop. Some work just fine with sleep mode, and you should NOT modify your setup if sleep mode works fine. This mostly applies to laptops with modern standby.
To Check, run | Code: | | cat /sys/power/mem_sleep | , this will show the supported sleep states of your laptop, if it is S3, Do NOT continue, if it is s2idle, continue to the next step.
Fix: Change logind.conf to hibernate.
Using hibernate mode is probably your best fix, almost every laptop has this as it's how Fast startup on windows at least works, and given most are made for windows, you'll see it on yours likely. To do this:
- 1. Run | Code: | | sudo nano /etc/systemd/logind.conf |
- 2. Find any lines including and uncomment them. (aka removing the pound sign)
- 3. Once uncommented, change suspend to hibernate.
- 4. Press Ctrl + S to save, then Ctrl + X to exit.
- 5. Restart.
- 6. Test by closing the lid, if it wakes up from hibernation and wifi works, it has been successfully applied.
Additional Notes:
Honestly, this shouldn't even be a problem. The fact I have to write a post on how to fix sleep mode is honestly embarrassing. I do not however blame Linux though, this is NOT a Linux issue. Rather, this is an industry and manufacture issue. Since about 2019 ish, I want to say? Microsoft has been pushing for modern standby. This mode keeps your device on to do things like apply updates. A lot of people hate this because it just does not work properly 90% of the time. It often results in overheated laptops, drained batteries and broken suspend on Linux. S3 sleep was fine, but of course Microsoft had to fuck it up. Intel also is trying to phase out S3 sleep. _________________ I'm one day closer to being who I wanna be~ |
|