Skip to main content
Topic: Cannot suspend from desktop session (Read 423 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

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:
Code: [Select]
[  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
Spoiler (click to show/hide)

 

Re: Cannot suspend from desktop session

Reply #1
You've uncommented/added loads of options. Why don't you try with the stock config file instead?