swaywm / swaylock

Screen locker for Wayland
MIT License
851 stars 202 forks source link

Unable to unlock screen with intl keyboard layout #250

Open oliversahr opened 2 years ago

oliversahr commented 2 years ago

Hi, unlocking swaylock is not possible when using English (Dvorak, intl., with dead keys) as a layout when the password contains some special characters like ". Typing " with an intl. layout requires to press shift + ', then hitting space to actually input the character. I guess at least the " character does not work in a password with the layout. Using a password without special characters works as expected.

Running swaylock in a terminal: 2022-08-25 16:42:59 - [swaylock-1.6/pam.c:101] pam_authenticate failed: invalid credentials

dmesg: [<numbers>] audit: type=1100 audit(<numbers>): pid=48171 uid=1000 auid=1000 ses=1 subj==unconfined msg='op=PAM:unix_chkpwd acct="<username>" exe="/usr/bin/unix_chkpwd" hostname=? addr=? terminal=? res=failed'

The password works in regular terminals in sway, and with the regular dvorak layout in the TTYs.

Can I provide more information?

Thanks and best regards, Oliver

rouja commented 1 year ago

I had the same issue :(