Skip to content

Fingerprint: guide Tudor devices to synaTudor on enroll failure - #14342

Open
FarzadHayat wants to merge 3 commits into
omacom:quattrofrom
FarzadHayat:tudor-guidance
Open

FarzadHayat wants to merge 3 commits into
omacom:quattrofrom
FarzadHayat:tudor-guidance

Conversation

@FarzadHayat

@FarzadHayat FarzadHayat commented Oct 6, 2026 •

Copy link
Copy Markdown

Synaptics Tudor match-on-sensor readers (06cb:00be/00da/00fd/00ff) are detected by omarchy-hw-fingerprint but unsupported by upstream libfprint, so stock enroll fails with NoSuchDevice (e.g. Lenovo Yoga C740 06cb:00be).

This detects those IDs via sysfs on enroll failure and explains the community synaTudor TOD path instead of a generic retry message. Non-Tudor behavior is unchanged.

Follow-up from review:

  • Reruns with libfprint-tod-git installed never reinstall libfprint-git (would remove the working TOD driver); only fprintd/usbutils are topped up.
  • Tudor hint shows only when enroll output reports no device available, so a scan failure on a second reader keeps the general message.
  • Reported reader id comes from the matched sysfs device, not the first 06cb lsusb line.
  • Enroll output streams live via tee (scan progress stays visible) while a copy feeds the no-device gate; pipefail scoped to that pipeline.
  • Adds test/shell.d/fingerprint-tudor-test.sh: sysfs fixtures for all four Tudor ids, non-Tudor, 06cb decoy, empty dir, TOD install paths, and output-reaches-user; every failure run asserts no PAM/lock changes.

Verified live on Yoga C740 06cb:00be: stock libfprint-git fails, TOD stack (libfprint-tod-git + synaTudor relink) enrolls/verifies. Full auto-install intentionally out of scope: proprietary Windows driver blob at build time, AUR-only packaging, per-ID driver variants, and tudor_host crash recovery (restart services).

Synaptics Tudor match-on-sensor readers (06cb:00be/00da/00fd/00ff)
are detected by omarchy-hw-fingerprint but unsupported by upstream
libfprint, so stock enroll fails with NoSuchDevice. Detect these IDs
via sysfs on enroll failure and explain the community synaTudor TOD
path instead of a generic retry message.

Verified live on Lenovo Yoga C740 (06cb:00be): stock fails, TOD
stack enrolls/verifies. Full auto-install intentionally out of
scope (proprietary blob, AUR-only, per-ID drivers).
@greptile-apps

greptile-apps Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[Medium risk] Adds fingerprint device detection and enrollment guidance logic.

The PR appears safe to merge; enrollment guidance is visible again, and failed enrollment still prevents authentication changes.

What we checked:

  • Failed enrollment stays blocked: pipefail records enrollment failure even when tee succeeds. Authentication files change only after enrollment and verification both succeed.

Summary

The PR explains the community synaTudor path when a Tudor reader is present and enrollment reports no available device. It preserves an installed libfprint-tod-git stack and adds fixture-based tests.

  • The latest change restores enrollment output while scans are running.
  • The previous fixes still preserve the TOD driver, name the matched reader, and keep unrelated scan failures on the general error path.
  • No new actionable issues were found. Tests were inspected, not executed.

Reviews (3) · Last reviewed commit: "Fingerprint: stream enroll output live w..."

Comment thread bin/omarchy-setup-security-fingerprint Resolved
Comment thread bin/omarchy-setup-security-fingerprint Resolved
Comment thread bin/omarchy-setup-security-fingerprint Resolved
Comment thread bin/omarchy-setup-security-fingerprint Resolved
- Reruns with libfprint-tod-git installed no longer install
  libfprint-git (which would remove the working TOD driver); only
  fprintd/usbutils are topped up.
- Tudor guidance shows only when enroll output reports no device
  available, so a scan failure on a second reader keeps the general
  message.
- Reported reader id comes from the matched sysfs device instead of
  the first 06cb lsusb line.
- Add fixture-based regression tests for all four Tudor ids, the
  decoy-06cb case, and the TOD install paths.
Comment thread bin/omarchy-setup-security-fingerprint Resolved
Tee fprintd-enroll through to the terminal so scan progress stays
visible, keeping a copy for the no-device gate. pipefail stays scoped
to that pipeline. Test asserts enroll output reaches the user.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants