You are not logged in.
Hey friends,
I don't have a 'resume' entry on my kernel command line. My memory setup is 32gb RAM, half of that for zram, and then a 32gb swapfile. The swapfile is on btrfs on a luks-encrypted volume.
Recently I had my laptop screen closed. This typically goes into sleep mode. Well, I noticed while my laptop was closed that the fans suddenly (some time after closing the lid) turned on and loud. This probably lasted 15 minutes before I decided to inspect what was going on and the SDDM screen was on but I was unable to login. None of the ctrl-alt-f# or REISUB options worked...closing and opening the screen, tapping the power button, etc., nothing actually helped. I was forced to hold the power button down for a long time until it fully powered off.
Upon booting again, it tried to resume from hibernate. Ultimately this failed and treated it like a fresh login.
Why is this happening? Is this merely because I have the 32gb swapfile? Is there a way, at a system level, I can completely disable hibernate? This is actually pretty disruptive as I'd like to be able to safely close the lid and have my laptop simply sleep.
Thanks!
Last edited by cloverskull (2025-06-13 21:24:46)
Offline
check in /etc/systemd/logind.conf
Specifically, the default actions for HandleLidSwitch and SleepOperation
Offline
As to why this happens: https://wiki.archlinux.org/title/Power_ … _initramfs
Online
Ah, thanks @Seth, looks like the solve is here:
File is /etc/systemd/sleep.conf.d/disable-sleep.conf
[Sleep]
AllowSuspend=no
AllowHibernation=no
AllowHybridSleep=no
AllowSuspendThenHibernate=no
Offline