Hello. I need some help with suspending to RAM my full Intel Huawei D15 BOD-WXX9 M1010 laptop with Artix 6.4.10-artix1-1 runit and btrfs cryptsetup.
Hibernation works well: laptop hibernates and restores fine in encrypted state. But suspend didn't work at all: system just crashes after resume (by keyboard or power key) and then autoreboots after a minute.
I tried several guides and wiki but nothing works...
My /etc/elogind/logind.conf is:
[Login]
KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#UserStopDelaySec=10
HandlePowerKey=ignore
HandlePowerKeyLongPress=ignore
HandleRebootKey=ignore
HandleRebootKeyLongPress=ignore
HandleSuspendKey=ignore
HandleSuspendKeyLongPress=ignore
HandleHibernateKey=ignore
HandleHibernateKeyLongPress=ignore
HandleLidSwitch=ignore
HandleLidSwitchExternalPower=ignore
HandleLidSwitchDocked=ignore
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
LidSwitchIgnoreInhibited=no
#RebootKeyIgnoreInhibited=no
#HoldoffTimeoutSec=30s
#IdleAction=ignore
IdleActionSec=3600s
#RuntimeDirectorySize=10%
#RuntimeDirectoryInodesMax=
#RemoveIPC=yes
#InhibitorsMax=8192
#SessionsMax=8192
#StopIdleSessionSec=infinity
I also have some personal scripts in /etc/acpi/ (thats why I have so many "ignores") but I don't think it counts.
My /etc/elogind/sleep.conf is:
[Sleep]
AllowSuspend=yes
AllowHibernation=yes
AllowSuspendThenHibernate=yes
AllowHybridSleep=yes
SuspendMode=deep
#SuspendMode=suspend
SuspendState=mem standby freeze
HibernateMode=platform shutdown
HibernateState=disk
HybridSleepMode=suspend platform shutdown
HybridSleepState=disk
HibernateDelaySec=10800
#SuspendEstimationSec=60min
# elogind additions
AllowPowerOffInterrupts=no
BroadcastPowerOffInterrupts=yes
AllowSuspendInterrupts=no
BroadcastSuspendInterrupts=yes
#SuspendByUsing=
#HibernateByUsing=
HandleNvidiaSleep=no
If "SuspendMode=suspend" I got:
[svyatoslav@svey ~]$ loginctl suspend
Failed to suspend system via elogind: Sleep verb "suspend" not supported
If "SuspendMode=deep" it suspends, but crashes after resume (and reboots after 1 minute of "inactivity"), "echo "deep" > /sys/power/state" and "echo -n mem >/sys/power/state" do the same thing. Also "echo "freeze" > /sys/power/state" works (it suspends and resumes) but it isn't what I want.
I tried all both in Hyprland and TTY – nothing works.
So what should I do to fix deep suspend to memory? And how can I debug this? Thanks.