swaywm / swaylock

Screen locker for Wayland
MIT License
853 stars 201 forks source link

Swaylock blocked and cannot interact with #344

Closed Talleyrand-34 closed 4 months ago

Talleyrand-34 commented 9 months ago

I don't know which info submit so if i do something wrong, please ask me to add.

I use nixos, hyprland and swaylock. When i suspend my laptop by bringing down the screen or have a external monitor connected through hdmi, when i want to input the password swaylock is frozen.

At first I would like a method to come around this problem like opening tty2 and reloading swaylock, or unlocking from tty2. I couldn find any resources about this.

Thank you very much for your attention

TurtleMeds commented 8 months ago

I have the same issue

Cody-W-Tucker commented 8 months ago

Similar to #124 and #217 the common link for them was Swayidle. Also plenty of similar issues on the Hyprland repo: https://github.com/hyprwm/Hyprland/issues/3581

I'm also having the same problem on NixOS, hyprland, and swayidle. I'm going to research more on my side and share anything that could be helpful.


Edit 1: I'm adding the following to NixOS config to see if that works because of https://github.com/jirutka/swaylock-effects/issues/54#issuecomment-1869806904

Edit 2: That didn't work, it fixed a different problem now baked into the Nix package where swaylock wouldn't recognize a valid password.

Edit 3: I'm switching over to hypridle and hyprlock. But from https://github.com/swaywm/swaylock/issues/124#issuecomment-576394684 they say using the git version of swaylock fixes the issue.

M4he commented 8 months ago

Same for me when using swaylock-effects with Hyprland on NixOS. There's an emergency recovery method for resetting swaylock that seems to work for me, see my comment here: https://github.com/hyprwm/Hyprland/issues/3581#issuecomment-1987363139

justDeeevin commented 7 months ago

the common link for them was Swayidle

I'm having this same problem using hypridle.

sachinchaudhary1808 commented 4 months ago

same issue i experinaced today.. 2024-6-23

idk i pressed power button and it seems to work again

kennylevinsen commented 4 months ago

Same for me when using swaylock-effects with Hyprland.

This is not swaylock-effects.


I have good reason to believe that these are all Hyprland focus bugs, especially as the linked issue says it also happens with Hyprlock. Refocus logic can be a bit tricky to get right at times, so I'm not too surprised - just not swaylock's fault so closing.

Can be reopened if discovered on sway or if the issues on the Hyprland tracker is fixed and swaylock still doesn't work afterwards.