Cannot suspend from desktop session
Hi all,
whenever I try to suspend my system via loginctl suspend from a desktop session (tested in hyprland, weston, xfce) the screen simply goes black, the computer becomes totally unresponsive and I have to reboot it by holding the power button.
Suspending and resuming works as expected if run from a tty even if a desktop session is running on another tty.
I am using an nvidia gpu, but by itself the nvidia-sleep script itself works fine as well if run in a desktop session (i.e. nvidia-sleep.sh suspend; sleep 5; nvidia-sleep.sh resume)
I also tried switching to seatd as outlined here https://forum.artixlinux.org/index.php/topic,3050.0.html but that doesn't seem to have any effect on the outcome.
Disabling HandleNvidiaSleep makes suspending quietly fail with this in dmesg:
[ 789.690781] elogind-daemon[2393]: Entering sleep state 'suspend'...
[ 789.690785] PM: suspend entry (deep)
[ 789.705288] Filesystems sync: 0.014 seconds
[ 814.714785] loginctl[3944]: Failed to suspend system via elogind: Connection timed out
This is my sleep.conf
[Sleep]
AllowSuspend=yes
AllowHibernation=yes
AllowSuspendThenHibernate=yes
AllowHybridSleep=yes
SuspendMode=deep
SuspendState=mem standby freeze
HibernateMode=platform shutdown
HibernateState=disk
HybridSleepMode=suspend platform shutdown
HybridSleepState=disk
#HibernateDelaySec=
SuspendEstimationSec=60min
# elogind additions
AllowPowerOffInterrupts=no
BroadcastPowerOffInterrupts=yes
AllowSuspendInterrupts=no
BroadcastSuspendInterrupts=yes
#SuspendByUsing=
#HibernateByUsing=
HandleNvidiaSleep=yes