[kscreenlocker] [Bug 490924] The first password attempt is rejected after system wakes from sleep.

"Hinokami Dev" <[email protected]>
Newsgroups gmane.comp.kde.devel.bugs
Message-ID <[email protected]/>
https://bugs.kde.org/show_bug.cgi?id=490924

Hinokami Dev <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #41 from Hinokami Dev <[email protected]> ---
## Summary

I am experiencing what appears to be the same KScreenLocker/PAM suspend-resume
issue described in this bug.

When my system is locked and then suspended, KScreenLocker reports a failed
authentication immediately after resume, even though I have not entered my
password at all. The lock screen shakes and displays **"Unlocking failed"**
automatically.

### Steps to reproduce

1. Lock the system using `Meta+L`.
2. Leave the system locked until it goes to sleep/suspend automatically.
3. Wake the system using the power button on the keyboard.
4. Observe the lock screen before entering any password.

### Observed behavior

Immediately after waking:

* The lock screen shakes as if an incorrect password was entered.
* **"Unlocking failed"** is displayed.
* No password has been entered.
* After this automatic failure, entering the correct password works normally.

I can also reproduce the issue when using the **Sleep** button directly from
the lock screen.

### Expected behavior

After resuming from suspend, the lock screen should simply wait for my
password. It should not report a failed authentication when no authentication
attempt was made.

### System information

* Fedora Linux 44
* KDE Plasma 6.7.4
* KDE Frameworks: [please add output]
* KScreenLocker: `6.7.4-1.fc44`
* Qt: [please add output]
* Kernel: [please add output]
* Graphics platform: Wayland
* PAM: `1.7.2-2.fc44`
* Architecture: x86_64

### Additional information

This is not simply an incorrect-password issue. The failure occurs
automatically immediately after resume, before I enter anything.

If I lock the system and unlock it without suspending, the password is accepted
normally. The problem is specifically associated with suspend/resume while the
system is locked.

I found an existing KDE bug discussing very similar behavior, including
`PAM_CONV_ERR` and cancellation of the PAM authentication conversation when
suspending from the lock screen. The discussion also references MR 340 as a
possible fix.

I am reporting this because the issue still appears to be reproducible on
Fedora 44 with KScreenLocker 6.7.4.

-- 
You are receiving this mail because:
You are watching all bug changes.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.