You are not logged in.

#1 2025-06-13 02:17:49

cloverskull
Member
Registered: 2018-09-30
Posts: 243

[SOLVED] System not setup for hibernate, yet went into hibernate

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

#2 2025-06-13 03:07:33

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,612

Re: [SOLVED] System not setup for hibernate, yet went into hibernate

check in /etc/systemd/logind.conf

Specifically, the default actions for HandleLidSwitch and SleepOperation

Offline

#3 2025-06-13 06:46:17

seth
Member
Registered: 2012-09-03
Posts: 65,014

Re: [SOLVED] System not setup for hibernate, yet went into hibernate

Online

#4 2025-06-13 21:24:32

cloverskull
Member
Registered: 2018-09-30
Posts: 243

Re: [SOLVED] System not setup for hibernate, yet went into hibernate

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

Board footer

Powered by FluxBB