omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

Authentication failure via lock screen after some X amount of time

Open maxdmayhew opened this issue 3 months ago • 14 comments

System details

AMD 7 5800X, RTX 3070Ti, Omarchy v3.0.2

What's wrong?

I've ran into this issue a handful of times where if I lock the screen and come back an hour or so later I am unable to log in and get the Authentication failed message.

related to nvda?

Image

maxdmayhew avatar Sep 30 '25 01:09 maxdmayhew

I noticed that after the system wakes up after suspending, the login screen (hyprlock) takes some time to load completly, and if you type something too fast hyperlock does not record the first character entered - mb this is your issue ?

vaqMAD avatar Sep 30 '25 11:09 vaqMAD

I've been having the same issue. After leaving my desktop unattended for a while I come back and am unable to login. I try multiple attempts but can't sign in. Only solution is to restart my PC. I have AMD tho.

ThinkRamen avatar Oct 04 '25 20:10 ThinkRamen

+1 I can also confirm the bug, but I cannot reliably tell what exactly causes it. I faced a few times after suspending the system.

ilya-khadykin avatar Oct 10 '25 05:10 ilya-khadykin

@rsd mentioned in discussions:

More specifically pam_faillock.so (in /etc/pam.d/system-auth).

After a few wrong passwords, it will lock you out for sometime (unlock_time) even with the correct password, even in the console. The sensation is that some auth service crashed or the system got corrupted.

Will look in to this as I have a teenie-tiny bit of exp. with systemd-cryptenroll and pamu2f. If anyone finds a way to intentionally re-create this problem please post here.

d-cas avatar Oct 14 '25 05:10 d-cas

I have a Integrated Fingerprint Reader on my Lenovo thinkpad. I have not configured it but wondered somehow if any of the others with the same issue are similar? Mike

mcdent avatar Oct 14 '25 21:10 mcdent

🧱 Hyprlock PAM Unlock Issue on Omarchy

Noticed that Hyprlock can’t unlock with the correct password on current Omarchy builds.
This appears to come from a missing /etc/pam.d/hyprlock service file in the Arch base image.

🔍 Likely Cause

Without a PAM policy, Hyprlock doesn’t know how to authenticate — it just fails silently.
Upstream Arch recently added this file in their official package, so it may simply be a version gap.

🩹 Temporary Fix

You can restore normal unlock behavior by adding the missing PAM entry, then restarting your user session:

sudo tee /etc/pam.d/hyprlock >/dev/null <<'EOF'
# Omarchy PAM fix for Hyprlock (Arch-based)
auth       include        system-local-login
account    include        system-local-login
password   include        system-local-login
session    include        system-local-login
EOF

systemctl --user restart hyprland.service

🧩 Reference

Arch package reference (as of hyprlock 0.8.2-1):
https://archlinux.org/packages/extra/x86_64/hyprlock/files/

✅ Upstream Note

Once Omarchy rebases onto a newer Arch snapshot that includes this version, the issue should resolve automatically.
Until then, the above workaround restores expected PAM authentication.

ItsMick avatar Oct 15 '25 08:10 ItsMick

When I run

systemctl --user restart hyprland.service

I get the error:

Failed to restart hyprland.service: Unit hyprland.service not found.

The following worked:

systemctl --user restart [email protected]

diverseFPT avatar Oct 16 '25 09:10 diverseFPT

I have this situation too, on other distros i will restart it and it work again. but on this omarchy, i can't enter with my password after reboot.

My solution is restart and use snapshot version, and it work again.

i don't know where the problem is, but before i had that situation, i install many program. I hope my story help some people who got to this situation too

taufik-nurhidayat avatar Oct 19 '25 13:10 taufik-nurhidayat

Same issue here, after it wakes up, it asks for a password but shows “Authentication Failed.” Is there a way to open the terminal and reboot or debug the issue? Has anyone found a solution?

NurdinDev avatar Oct 24 '25 06:10 NurdinDev

I have founded this open thread in Hyprlock https://github.com/hyprwm/hyprlock/issues/499

and with ChatGPT’s help, I fixed my issue by resetting the lockout timer.

Switch to a TTY

Press Ctrl + Alt + F2 (or F3/F4) → log in with your user.

Check & clear PAM faillock

# See if you’re locked out
faillock --user "$USER"

# If there are records or a lockout timer, reset them:
sudo faillock --user "$USER" --reset

The full response: https://chatgpt.com/s/t_68fb20fc2d508191a320c078fe8c0d7d

NurdinDev avatar Oct 24 '25 06:10 NurdinDev

You can restore normal unlock behavior by adding the missing PAM entry, then restarting your user session:

sudo tee /etc/pam.d/hyprlock >/dev/null <<'EOF'
# Omarchy PAM fix for Hyprlock (Arch-based)
auth       include        system-local-login
account    include        system-local-login
password   include        system-local-login
session    include        system-local-login
EOF

This solves the problem for me. Cheers, @ItsMick!

fredrik avatar Oct 24 '25 20:10 fredrik

I also had this bug multiple times. I have an Intel laptop tho

dewnuwan7 avatar Nov 03 '25 12:11 dewnuwan7

Dang, I tried all fixes and none of them work. I could login on another TTY, but hyprlock just never authenticated me

Armadillidiid avatar Nov 19 '25 03:11 Armadillidiid

I got an issue in the UI lock screen, it won't allow me to pass with, what I think it was the correct password. 20 times or so. I had to reboot to be able to get in.

lnaie avatar Dec 01 '25 18:12 lnaie

I'm seeing a similar issue with credential validation failing when trying to install something from aur after sometime, that requires a reboot to fix. I wonder if this is a related problem or something different.

awright18 avatar Dec 10 '25 11:12 awright18

To be fair, this isn’t an Omarchy issue, it’s strictly a Hyprland one. For a proper fix, the issue likely needs to be raised upstream.

Armadillidiid avatar Dec 10 '25 16:12 Armadillidiid