Skip to content

swaylock often takes about 30 seconds to unlock after entering the password #251

@jkseppan

Description

@jkseppan

When I run swaylock from either swayidle or by typing a command in a terminal, it often (but not every time) takes about 30 seconds to verify the password. During that time it hides the "Verifying" text, displays "Cleared" and can accept further input, so initially I thought I had typed my password wrong. I can easily type my password three or four times, and it looks like swaylock starts to verify each of them, but once the initial password attempt goes through it drops the lock, and I might end up typing the last few characters of my password in whatever window has focus.

Interestingly, if I ssh into the laptop from another host and run swaylock in that session (export WAYLAND_DISPLAY=wayland-1; swaylock -d), this problem never seems to happen. The lock screen goes away right after I am done typing my password.

Running swaylock -f from the terminal does not fix this problem; it still takes a long time to verify the password. Same results with systemd-run --user -E XDG_RUNTIME_DIR -E WAYLAND_DISPLAY swaylock.

I am attaching a screen recording. I am done typing my password at about 5 seconds, and I do nothing further until the end of the video. Here is what swaylock -d prints:

2022-08-27 14:22:13 - [main.c:1202] Parsing CLI Args
2022-08-27 14:22:13 - [main.c:1250] Using wlr-layer-shell + wlr-input-inhibitor
2022-08-27 14:22:13 - [main.c:317] output name is eDP-1
recording.mp4

I am running swaylock 1.6.1 on Fedora 36, from package swaylock-1.6-1.fc36.x86_64.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions