Bug 458130

Summary: Fingerprint authentication sometimes fails to activate immediately; sometimes activates after a few seconds, and sometimes only activates once you try to enter an incorrect/empty password once
Product: [Plasma] plasmashell Reporter: Philippe ROUBACH <philippe.roubach>
Component: Screen lockingAssignee: Plasma Bugs List <plasma-bugs>
Status: CONFIRMED ---    
Severity: normal CC: bshah, kdedev, miranda, nate, nicolas.fella, postix
Priority: NOR    
Version First Reported In: 6.2.4   
Target Milestone: 1.0   
Platform: openSUSE   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=487635
https://bugs.kde.org/show_bug.cgi?id=500694
https://bugs.kde.org/show_bug.cgi?id=469951
https://bugs.kde.org/show_bug.cgi?id=506567
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: lock screen
a screenshot of what you see when you click on the > button on the lock screen?

Description Philippe ROUBACH 2022-08-21 06:55:05 UTC
Sorry, I don't know what KDE component is aware of this bug report.

1. add fingerprint authentication
2. restart the desktop PC

OBSERVED RESULT

The password dialog is displayed instead of the fingerprint dialog

EXPECTED RESULT

the fingerprint dialog is displayed instead of the fingerprint dialog

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.25.4
KDE Frameworks Version: 5.97.0
Qt Version: 5.15.5
KDE Gears 22.08.0

ADDITIONAL INFORMATION

openSUSE Tumbleweed

When you add fingerprint authentication, this for using fingerprint authentication and as backup password authentication.
Comment 1 Philippe ROUBACH 2022-08-21 07:04:40 UTC
same problem with the lock screen.
Comment 2 Nate Graham 2022-08-23 10:17:22 UTC
Can you attach screenshots that show the things that you see which are not the things that you're expecting to see?
Comment 3 Philippe ROUBACH 2022-08-23 10:42:38 UTC
Sorry i made an error in "expected result"

EXPECTED RESULT

the fingerprint dialog is displayed instead of the password dialog
Comment 4 Philippe ROUBACH 2022-08-23 10:43:07 UTC
How to take a screenshot of the lock screen ?
Comment 5 Nate Graham 2022-08-23 10:48:53 UTC
Your phone? But you can take a screenshot of the other thing with Spectacle.
Comment 6 Philippe ROUBACH 2022-08-23 10:52:32 UTC
With my smartphone when I activated the fingerprint reader authentication then password field was no more displayed.
The password field is displayed :
- if there is too many fails about fingerprint reading
- after 7 days of using the fingerprint authentication according to not forget the password.

Displaying the password field when you activated the fingerprint authentication is confusing. You must display nothing or just a message saying "please touch the fingerprint to unlock"
Comment 7 Nate Graham 2022-08-23 10:54:52 UTC
Screenshots please
Comment 8 Philippe ROUBACH 2022-08-23 11:20:29 UTC
Created attachment 151520 [details]
lock screen

You can see that the password field is displayed by default even if you activated the fingerprint authentication.
Comment 9 Philippe ROUBACH 2022-08-23 11:22:29 UTC
same problem with login screen
Comment 10 Nate Graham 2022-08-25 07:05:30 UTC
The login screen doesn't have fingerprint support yet, so that's expected.

Your screenshot depicts the lock screen without fingerprint support enabled, or with it not working. If it was working, there would be text saying something like "Swipe your [finger] on the fingerprint reader" above the password field. So it looks like there's a bug here, rather than a design choice.

Are you saying that you *never* see the "Swipe your [finger] on the fingerprint reader" text anywhere?
Comment 11 Philippe ROUBACH 2022-08-25 07:22:01 UTC
I confirm the capture of the lock screen. There is only a message saying "swipe ..." if you click on ">". By default, there is a password field.

sddm file contents :

#%PAM-1.0
auth    [success=1 new_authtok_reqd=1 default=ignore]   pam_unix.so try_first_pass likeauth nullok
auth    sufficient      pam_fprintd.so
auth     include        common-auth
account  include        common-account
password include        common-password
session  required       pam_loginuid.so
session  include        common-session
session  optional       pam_keyinit.so revoke force


kde file contents :

auth 			sufficient  	pam_unix.so try_first_pass likeauth nullok
auth 			sufficient  	pam_fprintd.so
Comment 12 Philippe ROUBACH 2022-08-25 07:24:28 UTC
>> Are you saying that you *never* see the "Swipe your [finger] on the fingerprint reader" text anywhere?

No

On login screen and lock screen you must click on ">" to launch fingerprint dialog.
Comment 13 Nate Graham 2022-08-25 07:43:27 UTC
Can you attach a screenshot of what you see when you click on the > button on the lock screen?
Comment 14 Philippe ROUBACH 2022-08-25 08:05:09 UTC
Created attachment 151572 [details]
a screenshot of what you see when you click on the > button on the lock screen?
Comment 15 Nate Graham 2022-08-25 12:56:46 UTC
Thanks. Re-titling.

I can confirm this issue as this has happened sporadically to me. It's not 100% reproducible though.
Comment 16 Philippe ROUBACH 2022-08-28 12:12:00 UTC
If I understand well the chapter "Using a fingerprint reader" here https://wiki.archlinux.org/title/SDDM#Using_a_fingerprint_reader
then it is normal to expect to get first the password field, then by typing "enter" with an empty password field to get the fprint dialog.

If I sum up :

to get only fprint dialog you add in sddm file 

auth 			sufficient  	pam_fprintd.so

to get password field then fprint dialog you add in sddm file

auth 			[success=1 new_authtok_reqd=1 default=ignore]  	pam_unix.so try_first_pass likeauth nullok
auth 			sufficient  	pam_fprintd.so

What do we add to get fprint dialog then password field dialog as a backup ?
Comment 17 postix 2023-09-29 12:21:40 UTC
Is this about klockscreen or about SDDM / display manager?
Comment 18 Philippe ROUBACH 2023-09-29 12:25:27 UTC
sddm login and lock screen