Skip to content

Name a fingerprint reader fprintd cannot see instead of asking for a retry - #15080

Closed
omarchybot wants to merge 1 commit into
quattrofrom
fix/issue-11841
Closed

omarchybot wants to merge 1 commit into
quattrofrom
fix/issue-11841

Conversation

@omarchybot

Copy link
Copy Markdown
Collaborator

omarchy setup security fingerprint sends a reader libfprint cannot drive through enrollment and then says "Enrollment failed. Please try again." omarchy-hw-fingerprint only proves a reader is on the bus — a Goodix 27c6:55b4, or an Elan MOC sensor outside the elanmoc table, is detected correctly — but with no libfprint driver fprintd exposes no device, fprintd-enroll fails before it scans anything, and no retry can succeed.

When enrollment fails, the script now asks fprintd-list whether fprintd sees any device. On the exact No devices available it prints that the reader was detected but fprintd has no usable device, that libfprint most likely has no driver for it, and where to look up its USB ID. The wording stops at "most likely" because fprintd also lists no device when a driver exists but failed to initialise. Any other failure keeps the existing retry message, and the check runs only after a failed enrollment, so a working reader's path is unchanged. test/shell.d/fingerprint-package-test.sh covers both failure messages and that neither touches PAM or the lock screen.

#14342 adds a Synaptics Tudor hint on the same failure path, gated on the same no-device condition; whichever lands second should put the Tudor hint ahead of this general one.

Fixes #11841

🤖 Generated by Opus 5.5 in Claude Code. Reviewed by Codex Medium.

A reader omarchy-hw-fingerprint detects but libfprint has no driver for (Goodix 27c6:55b4, Elan MOC outside the elanmoc table) leaves fprintd with no device, so enrollment fails and "Please try again" can never come true. When enrollment fails and fprintd-list reports no devices, say the reader has no usable device and most likely no libfprint driver, and point at the supported-devices list. The check runs only after a failed enrollment, so a working reader's path is unchanged.

Fixes #11841

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Codex Medium <noreply@openai.com>
@greptile-apps

greptile-apps Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable issues were found.

Summary

Adds a clearer explanation when enrollment fails and fprintd-list reports no usable device.

  • Fingerprint setup gives driver guidance when fprintd finds no device.

Reviews (1) · Last reviewed commit: "Name a reader fprintd cannot see instead..." · Reviewed by Greptile

@omarchybot

Copy link
Copy Markdown
Collaborator Author

This competes with #11842, which @busbyjon opened a month earlier for the same issue, #11841, and #11842 is the one to carry forward.

Both detect a reader fprintd exposes no device for by running fprintd-list "$USER" and matching its exact No devices available, and both replace "Please try again" with a pointer to libfprint's supported-devices list. #11842 checks before enrollment, so a reader that cannot be driven is never sent through fprintd-enroll at all. This one checks only after enrollment has failed. Both are correct under the script's set -e, and #11842 also fixes the cause, so the older one keeps the fix and the credit. It has already been reproduced on a worker against a real fprintd with no reader, and its author says they tested it on the reporter's hardware.

This pull request does carry one real improvement, and it has been handed to #11842 to fold in, crediting this branch. fprintd also lists no device when a driver exists but failed to initialise, so #11842's "libfprint has no driver for it" and "this exact sensor isn't supported yet" can be wrong about a supported reader. The wording here is accurate: fprintd has no usable device, libfprint most likely has no driver, and lsusb shows the USB ID to look up. The test here that an ordinary enrollment failure still asks for a retry goes with it.

This was not run on a worker: verifying a fix that will not be merged would spend a worker on nothing. Checked by Claude Opus 5.5, reading both diffs against quattro. Codex Medium was asked separately which one should land, without my answer. It also chose #11842 and named the same wording improvement; its independence is not guaranteed. Asked separately whether the two are the same change, Codex said they were not, so this stays open as a competing fix rather than being closed as a duplicate. Which one lands is the maintainer's decision.

omarchybot added a commit to busbyjon/omarchy that referenced this pull request Oct 17, 2026
…kely cause

An empty fprintd device list shows fprintd cannot use the reader, not that libfprint has no driver for it: a driver that failed to initialise leaves the same empty list. So the message no longer says the sensor isn't supported or that retrying won't help; it says fprintd has no usable device, that libfprint most likely has no driver, and to look the USB ID up with lsusb. A new case checks that a failed scan on a reader fprintd can see still asks for a retry. Both come from omacom#15080, which made the same fix after enrollment and is folded in here.

Co-Authored-By: Omarchybot <317366263+omarchybot@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@omarchybot

Copy link
Copy Markdown
Collaborator Author

#11842 is older, stops before enrollment starts rather than after it fails, and already carries this pull request's wording and retry test since 6f83c77. Nothing here is left to port. This was closed at the maintainer's request after a review of every open fingerprint pull request. Fable 5 in Claude Code read it against today's quattro; no second model checked the closure, so reopen it if this reads your change wrong.

@omarchybot omarchybot closed this Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fingerprint setup gives no diagnosis when libfprint has no driver for the detected reader

1 participant