Bug 481808 - Clicking "Sleep" on the lockscreen makes it also display a failed login attempt
Summary: Clicking "Sleep" on the lockscreen makes it also display a failed login attempt
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Screen locking (show other bugs)
Version: 6.2.4
Platform: Compiled Sources Linux
: NOR minor
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: qt6
: 488484 496152 499118 500451 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-02-25 12:10 UTC by Ilya Bizyaev
Modified: 2025-03-06 20:51 UTC (History)
22 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ilya Bizyaev 2024-02-25 12:10:01 UTC
SUMMARY
When I put the computer to sleep from a lock screen, I see that before the screen goes black, the password field behaves as if I tried unlocking with a wrong password.


STEPS TO REPRODUCE
1. Lock the screen (e.g. Meta+L)
2. Click “Sleep”

OBSERVED RESULT
The password field is greyed out, a message about an invalid password is displayed, then the computer sleeps.

EXPECTED RESULT
The computer goes to sleep without password drama :)

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20240223
KDE Plasma Version: 6.0.80
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.7.5-1-default (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION
Comment 1 duha.bugs 2024-02-25 18:13:53 UTC
Confirming as I can reproduce (also git master). 
I wonder if this is an issue with the source build or if this is reproducible on regular installs.
Comment 2 TraceyC 2024-02-26 01:30:32 UTC
I am able to reproduce this bug on an install of Plasma6 on Solus, installed through a private repo where we're testing it
Comment 3 Patrick Silva 2024-02-26 15:03:19 UTC
Confirmed on neon unstable.
Comment 4 Nate Graham 2024-02-27 18:44:26 UTC
Interesting, I cannot reproduce the issue. I do have fingerprint auth enabled, so maybe that changes the behavior somehow.
Comment 5 Christian Muehlhaeuser 2024-03-11 07:03:28 UTC
Confirmed, also seeing this with 6.0.1.
Comment 6 bug2017 2024-04-18 19:33:38 UTC
I can confirm that with 6.0.0 on Gentoo, but it happens only happens start from the 3rd sleep cycle. Logging in reset the failure count.
Comment 7 w0ie2m7jx 2024-05-21 12:54:23 UTC
I also have this problem. The sleep also takes a while to do but that may just be a me problem. Also having memory problems with high usage that seem to build up over time, with all apps closed I'm idle on 3GB but have no idea if it's related. Spamming sleep also gets you locked out, had to wait 10 minutes for it to let me enter my password.

SOFTWARE/OS VERSIONS
Operating System: Manjaro Linux 
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.1.0
Qt Version: 6.7.0
Kernel Version: 6.6.30-2-MANJARO (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 7730U with Radeon Graphics
Memory: 7.1 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Manufacturer: Micro-Star International Co., Ltd.
Product Name: Modern 15 B7M
System Version: REV:1.0
Comment 8 duha.bugs 2024-06-14 14:54:39 UTC
*** Bug 488484 has been marked as a duplicate of this bug. ***
Comment 9 Nate Graham 2024-09-09 21:46:26 UTC
Never mind, I can reproduce it. The key for me is to go to sleep twice. Steps to reproduce for me:

1. Meta+L to lock
2. Click sleep button
3. Wake up machine (in my case, by briefly pressing the power button)
4. Click sleep again

It will now shake and then sleep, and then when waking up from sleep, shake again — in both cases displaying the failed login attempt text.
Comment 10 K Freed 2024-10-15 20:59:15 UTC
Confirming this issue with my setup. Has existed since Plasma 6 rolled out.

Operating System: EndeavourOS 
KDE Plasma Version: 6.2.0
KDE Frameworks Version: 6.7.0
Qt Version: 6.7.3
Kernel Version: 6.11.3-nitrous (64-bit)
Graphics Platform: Wayland
Comment 11 Nate Graham 2024-11-13 18:19:18 UTC
*** Bug 496152 has been marked as a duplicate of this bug. ***
Comment 12 kdebugs 2024-12-24 17:11:50 UTC
Adding the phrase "Unlocking failed" for better search results.

Does it every time for me.

Comment 7's report that "Spamming sleep also gets you locked out" confirms what I suspected, but I can't confirm personally because I don't know how to configure that (something to do with PAM's faillock?).  So this is not merely cosmetic but fairly important.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Manjaro, linux 6.11.10-2-MANJARO x86_64
KDE Plasma Version: 6.2.4
KDE Frameworks Version: 6.8.0 
Qt Version: 6.8.1
Comment 13 Nate Graham 2025-01-27 20:17:03 UTC
*** Bug 499118 has been marked as a duplicate of this bug. ***
Comment 14 fanzhuyifan 2025-02-21 01:36:44 UTC
*** Bug 500451 has been marked as a duplicate of this bug. ***
Comment 15 fanzhuyifan 2025-02-21 01:37:23 UTC
Clicking on sleep in lockscreen also turns on fingerprint reader (500451), and in my case, turns on facial recognition (howdy)
Comment 16 eric.raguzin 2025-02-21 03:40:30 UTC
It happens to me on ArchLinux with Wayland. I did it twice and journalctl showed:

Feb 16 23:13:42 kscreenlocker_greet[88142]: pam_unix(kde:auth): unexpected response from failed conversation function
Feb 16 23:13:42 kscreenlocker_greet[88142]: pam_unix(kde:auth): conversation failed
Feb 16 23:13:42 kscreenlocker_greet[88142]: pam_unix(kde:auth): auth could not identify password for []
Feb 16 23:13:51 kscreenlocker_greet[88142]: pam_unix(kde:auth): unexpected response from failed conversation function
Feb 16 23:13:51 kscreenlocker_greet[88142]: pam_unix(kde:auth): conversation failed
Feb 16 23:13:51 kscreenlocker_greet[88142]: pam_unix(kde:auth): auth could not identify password for []
Feb 16 23:13:58 kscreenlocker_greet[88142]: qt.qpa.wayland: Could not create EGL surface (EGL error 0x3000)
Feb 16 23:13:58 kscreenlocker_greet[88142]: Failed to write to the pipe: Bad file descriptor.
Comment 17 justinsolstice 2025-03-06 20:51:26 UTC
Recently stumbled upon this issue too. 

OS: Arch Linux 
KDE Plasma Version: 6.3.0
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.2
Kernel Version: 6.12.13-1-lts (64-bit)
Graphics Platform: Wayland