Skip to content

Skip fingerprint readers libfprint lists as unsupported - #17676

Closed
moses-y wants to merge 1 commit into
omacom:quattrofrom
moses-y:fingerprint-unsupported-hwdb
Closed

moses-y wants to merge 1 commit into
omacom:quattrofrom
moses-y:fingerprint-unsupported-hwdb

Conversation

@moses-y

@moses-y moses-y commented Nov 5, 2026

Copy link
Copy Markdown

What changes

Fixes #17672.

What was broken. On an HP Pavilion Aero Laptop 13-be0xxx with an ELAN 04f3:0c00 reader, a fresh install showed the critical "set up fingerprint" notification and the Setup > Security > Fingerprint entry. Setup then asked for sudo, installed libfprint-git and fprintd, and failed at enrollment with NoSuchDevice: No devices available, followed by "Please try again". Retrying can't help.

Diagnosis.

  • omarchy-hw-fingerprint exits 0 because its product-string match *elan:arm-m4* is trusted outright.
  • The installed libfprint already says it can't drive this reader: /usr/lib/udev/hwdb.d/60-autosuspend-libfprint-2.hwdb lists usb:v04F3p0C00* under # Known unsupported devices. On libfprint-git 1:1.94.100.r10.g6f9479c-5 that section holds 35 04f3 ids and others from Synaptics, Validity, Goodix and more.
  • Nothing in the detector or setup consults that list.

The fix.

  • bin/omarchy-hw-fingerprint: reads libfprint's installed hwdb and skips any USB device whose id is listed under "Known unsupported devices", before either the product-string or the vendor match.
    • An id that also appears under a driver section still counts. A libfprint fork, or the elanmoc2 patch in libfprint-git: add the ELAN match-on-chip driver (elanmoc2) omarchy-pkgs#2170, ships a hwdb with the id under its driver, so the reader is offered again with no change here.
    • Without the file (libfprint not installed yet), detection is unchanged.
    • OMARCHY_LIBFPRINT_HWDB_PATH points it at a fixture, like the existing OMARCHY_USB_DEVICES_PATH.
  • bin/omarchy-setup-security-fingerprint: on a fresh machine, libfprint's hwdb only exists after setup's own pacman -S. So setup asks the detector again after installing packages, and stops with "The installed libfprint lists this fingerprint reader as unsupported, so it can't be enrolled." That happens before sudo for enrollment, fprintd-enroll or any PAM change.

Why read the hwdb instead of listing ids. #15185 hardcodes Synaptics ids from the same section, and only for the vendor-ID guess. A copied list goes stale whenever the libfprint-git pin moves an id into a driver, which is exactly how new readers are enabled since #10442. It also can't cover product-string matches or other vendors. Reading the installed file covers every vendor and every match path, and follows whichever libfprint is installed. This would make #15185's list unnecessary, though its Tudor exceptions need a look (below).

Related: #11841 / #15080 improve the message after enrollment fails. This change stops the reader being offered in the first place. #8940 and omacom/omarchy-pkgs#2170 add the driver for this ELAN family.

Known limits:

  • On a brand-new install, libfprint isn't installed yet when the first-run hook runs, so the invitation can still appear once. Setup then stops cleanly after its package step, and the menu entry is hidden from then on.
  • Readers that libfprint lists as unsupported but that work through a separate stack which doesn't ship its own hwdb would be hidden while stock libfprint-git is installed. This is the case for synaTudor (06cb:00be/00da/00fd/00ff, which Skip Synaptics fingerprint ids that libfprint cannot drive #15185 keeps detectable). Quattro has no synaTudor path today, but if one lands it needs an exception here.

Verification

Tests (bash test/shell.d/<file> each, logs read in full):

File Result
hw-fingerprint-test.sh Pass. 4 new cases: ELAN:ARM-M4 detected while libfprint isn't installed; not detected when the hwdb lists it as unsupported; doesn't hide a second reader; detected when an id is under a driver.
fingerprint-package-test.sh Pass. 1 new case: when the detector says no after the package install, setup stops before sudo for enrollment and before fprintd-enroll.
fingerprint-invitation-test.sh Pass, unchanged.
menu-guard-budget-test.sh Pass: batch 349ms of a 1288ms budget, slowest guard 141ms of 644ms.

With bin/ stashed (quattro's code, new tests kept), both new tests fail: a reader libfprint lists as unsupported is not detected and a reader the installed libfprint cannot drive stops before enrollment.

On hardware (HP Pavilion Aero 13-be0xxx, ELAN 04f3:0c00, Omarchy 4.5.0-3, kernel 7.2.15-1-omarchy):

libfprint installed quattro's detector This branch
libfprint-git -5 (lists 0c00 as unsupported) 0, offered 1, not offered
hwdb path pointed at a missing file 0 0 (unchanged without libfprint)
libfprint-git -6 from omacom/omarchy-pkgs#2170 (lists 0c00 under elanmoc2) 0 0, offered. Enrollment, verify, sudo, polkit and lock screen then all set up through omarchy-setup-security-fingerprint.

The detector reads the 563-line hwdb in about 21ms on this machine.

Screenshots

No new UI. The only visible difference is that Setup > Security > Fingerprint and the first-run invitation no longer appear for a reader the installed libfprint can't drive.

omarchy-hw-fingerprint trusted the ELAN:ARM-M4 product string, so ELAN
04f3:0c00 on an HP Pavilion Aero 13 was offered for setup that failed
with NoSuchDevice, although the installed libfprint lists the id under
"Known unsupported devices" (omacom#17672). Read that list from libfprint's
hwdb, letting an id under a driver win, and ask again in setup once
libfprint is installed.
@greptile-apps

greptile-apps Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 4/5

[Medium impact] The changes affect fingerprint-reader discovery and setup across Omarchy.

The initial detection check needs to preserve setup's ability to install a newer fingerprint driver before merging.

Findings

  1. P1 Setup blocks the newer driver ▶

Summary

The PR reads the installed libfprint hwdb to skip known unsupported USB readers.

  • Fingerprint detection skips USB readers libfprint lists as unsupported.
  • Fingerprint setup stops when installed libfprint cannot drive a reader.

Acknowledged limits from moses-y: a fresh install can still show the invitation before libfprint is installed; separate stacks such as synaTudor can be hidden unless an exception is added. Neither limit is reported as a finding.

Reviews (1) · Last reviewed commit: "Skip fingerprint readers libfprint lists..." · Reviewed by Greptile

Comment on lines +87 to +90
# Checked before either match, since the product string is trusted outright.
if [[ -r $dev/idVendor && -r $dev/idProduct ]] &&
libfprint_cannot_drive "$(<"$dev/idVendor"):$(<"$dev/idProduct")"; then
continue

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Setup blocks the newer driver

If stock libfprint lists a reader as unsupported but libfprint-git supports it, this exclusion makes setup's first hardware check fail. Setup reports “No fingerprint sensor detected” and exits before it can install the replacement library. The user cannot enroll through setup without replacing the library themselves.

Keep the initial check about hardware presence, and apply the unsupported-device check after package installation.

@omarchybot

Copy link
Copy Markdown
Collaborator

Read the detector and setup changes, their callers, the linked report, and the existing review comment. GPT-6 High in Codex classified this as a hardware compatibility fix, but the configured second classifier (deepseek-v4p1-flash) returned no usable classification. Classification remains unsettled, so verification has not started and no tests have run. This is waiting on classification before further review.

@omarchybot

Copy link
Copy Markdown
Collaborator

Thanks @moses-y. #15185 is the one being taken for readers libfprint cannot drive. Reading the installed hwdb has two problems #15185 avoids: with stock libfprint installed it hides a reader only libfprint-git drives, so setup exits before installing the package that would drive it (Greptile's open finding), and a TOD stack's hwdb still lists the readers its vendor module drives, so those would stop being detected. For 04f3:0c00 the better fix is your own driver in omacom/omarchy-pkgs#2170. 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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

omarchy-hw-fingerprint offers ELAN 04f3:0c00 (HP Pavilion Aero 13) though installed libfprint lists it as unsupported

2 participants