Bug 505987

Summary: Fingerprint and smartcard text briefly appear when not supported
Product: [Plasma] plasmashell Reporter: Dan <bugs.kde.org.wish522>
Component: Screen lockingAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: minor CC: domker2, espidev, gamerminstrel, kde, kde, kde, kdedev, nate, olib141
Priority: NOR Keywords: junior-jobs
Version First Reported In: 6.4.2   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Dan 2025-06-22 17:39:32 UTC
SUMMARY
When entering the login screen, there is text that says
(Or scan your fingerprint on the reader)
(Or scan your smartcard)
This text disappears after about a second. It shouldn't appear in the first place because by device doesnt support those login methods.

STEPS TO REPRODUCE
1. Lock the session (Super+L) or wake device up from sleep (move cursor or press any key)

OBSERVED RESULT
The text appears then disappears after about a second.

EXPECTED RESULT
The text shouldnt appear in the first place when device does not support those login methods or does not have an external peripheral device attached which does.

SOFTWARE/OS VERSIONS
`kinfo`
Operating System: Arch Linux 
KDE Plasma Version: 6.4.0
KDE Frameworks Version: 6.15.0
Qt Version: 6.9.1
Kernel Version: 6.15.2-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 4 × AMD A8-7410 APU with AMD Radeon R5 Graphics
Memory: 8 GiB of RAM (6.7 GiB usable)
Graphics Processor: AMD Radeon R5 Graphics

ADDITIONAL INFORMATION
I don't have smartcard or fingerprint login set up. I use a regular password.

Possible regression of https://bugs.kde.org/show_bug.cgi?id=487634 ?
Comment 1 Nate Graham 2025-06-24 17:12:33 UTC
Two questions:
1. You reported this agains plasma-login. Ar you actually using plasma-login, or did you mean SDDM?
2. When you say the login screen, do you mean the lock screen? The SDDM login screen has no support for this at all.
Comment 2 Wuzado 2025-06-27 11:50:37 UTC
I have also encountered this issue. This should likely be filled under plasmashell -> Screen locking, as in bug 487634.

kinfo output:
Operating System: Arch Linux 
KDE Plasma Version: 6.4.1
KDE Frameworks Version: 6.15.0
Qt Version: 6.9.1
Kernel Version: 6.15.3-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i5-8350U CPU @ 1.70GHz
Memory: 16 GiB of RAM (15.5 GiB usable)
Graphics Processor: Intel® UHD Graphics 620
Comment 3 Bug Janitor Service 2025-07-12 03:47:34 UTC
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Wuzado 2025-07-12 23:15:54 UTC
Hi, I'd be happy more than happy to answer any questions regarding this bug - I can still reproduce this issue on the newest (6.4.2/6.16.0) KDE version.

Sidenote - I can't seem to be able to change the component from general to Screen locking. Could anyone change it to the correct one? Thanks!
Comment 5 Dan 2025-07-19 08:48:56 UTC
As an end-user, how am i meant to know exactly which component it is? idk for sure if its login screen, lock screen or SDDM. All are essentially the same to me. Even if it's not quite the right place, i feel like its worth mentioning anyway so that something can be done about it.
Follow the steps to reproduce the bug and it's that screen that i'm on about.
Comment 6 Nate Graham 2025-07-19 13:23:38 UTC
Can reproduce on a KDE Linux system that's had PAM set up for fingerprint auth. The text briefly appears on the lock screen despite the system not actually having fingerprint reader hardware.

We should probably conditionalize the text's appearance on the user having actually set up the system for using a fingerprint reader.
Comment 7 Nate Graham 2025-07-19 13:32:14 UTC
Indeed, the problem is here: https://invent.kde.org/plasma/plasma-desktop/-/blob/master/desktoppackage/contents/lockscreen/MainBlock.qml#L131

That code takes into account only that an authentication type is supported on the system in theory, not that the hardware for it is present, or that the user has indicated they wish to use it.

There's a bit of code in the Users KCM that can detect the presence of a fingerprint reader device that could perhaps be moved up a level and used here: https://invent.kde.org/plasma/plasma-workspace/-/blob/master/kcms/users/src/fingerprintmodel.cpp#L79

And then we'd have to do the same thing for smartcards.
Comment 8 Domker 2025-08-25 18:10:22 UTC
I have been experiencing this problem for some time as well, even though this is a desktop computer without a fingerprint reader or smartcard. The problem is directly related to '/usr/share/plasma/shells/org.kde.plasma.desktop/contents/lockscreen/MainBlock.qml', that is, the 'plasma-desktop' package. 

I don't even have the 'fprintd' package installed. In '/etc/pam.d/' there are files named 'kde-fingerprint' and 'kde-smartcard', which are part of the 'kscreenlocker' package. 
I tried commenting out '-auth required pam_fprintd.so', but this causes the screen lock not to ask for a password; there is only an 'unlock' button. Moreover, with 'fairlock' configured, using this button locks the entire user account.

kinfo output: 
Operating System: Arch Linux 
KDE Plasma Version: 6.4.4
KDE Frameworks Version: 6.17.0
Qt Version: 6.9.1
Kernel Version: 6.16.3-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i7-4790K CPU @ 4.00GHz
Memory: 16 GiB of RAM (15.6 GiB usable)
Graphics Processor: NVIDIA GeForce GTX 980
Manufacturer: ASUS
Product Name: All Series
Comment 9 TraceyC 2025-09-16 16:54:57 UTC
*** Bug 509542 has been marked as a duplicate of this bug. ***