You are not logged in.

#1 2024-07-08 04:18:01

come_raczy
Member
Registered: 2024-06-16
Posts: 3

hyprlock and suspend fail to resume with wlogout

I am running hyprland with NVIDIA proprietary drivers and I have trouble getting hyperlock and suspend to work with wlogout.

This is the command that I use:

    hyprlock & sleep 1 ; systemctl suspend

When I run this command in a terminal, everything works fine. The system suspends, and when I press the power button, the system resumes to the hyprlock screen as expected.
When I bind this command to a key and use that to lock and suspend, everything works as expected as well.

When I use this as an "action" in wlogout, everything works fine if I resume immediately after suspend.
However, if I wait until the monitor goes to sleep, when I resume, I only get a uniformly red screen, with the mouse cursor, and it doesn't unlock if I type the password. If I go to another tty and try `killall hyprlock`, it says 'hyprlock: no process found'.
This is the entry for "suspend" in the wlogout layout file:

    {
        "label" : "suspend",
        "action" : "hyprlock & sleep 1 ;  systemctl suspend",
        "text" : "Suspend",
        "keybind" : "u"
    }

What would be good starting points for me to figure out what's going on? In which log files should I look, and what should I look for?

Offline

Board footer

Powered by FluxBB