Repository navigation
Conversation
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.
[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
SummaryThe PR reads the installed libfprint hwdb to skip known unsupported USB readers.
Acknowledged limits from Reviews (1) · Last reviewed commit: "Skip fingerprint readers libfprint lists..." · Reviewed by Greptile |
| # 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 |
There was a problem hiding this comment.
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.
|
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 ( |
|
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 |
What changes
Fixes #17672.
What was broken. On an HP Pavilion Aero Laptop 13-be0xxx with an ELAN
04f3:0c00reader, a fresh install showed the critical "set up fingerprint" notification and the Setup > Security > Fingerprint entry. Setup then asked for sudo, installedlibfprint-gitandfprintd, and failed at enrollment withNoSuchDevice: No devices available, followed by "Please try again". Retrying can't help.Diagnosis.
omarchy-hw-fingerprintexits 0 because its product-string match*elan:arm-m4*is trusted outright./usr/lib/udev/hwdb.d/60-autosuspend-libfprint-2.hwdblistsusb:v04F3p0C00*under# Known unsupported devices. Onlibfprint-git 1:1.94.100.r10.g6f9479c-5that section holds 3504f3ids and others from Synaptics, Validity, Goodix and more.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.OMARCHY_LIBFPRINT_HWDB_PATHpoints it at a fixture, like the existingOMARCHY_USB_DEVICES_PATH.bin/omarchy-setup-security-fingerprint: on a fresh machine, libfprint's hwdb only exists after setup's ownpacman -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-enrollor 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-gitpin 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:
libfprint-gitis 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):hw-fingerprint-test.shfingerprint-package-test.shfprintd-enroll.fingerprint-invitation-test.shmenu-guard-budget-test.shWith
bin/stashed (quattro's code, new tests kept), both new tests fail:a reader libfprint lists as unsupported is not detectedanda 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-git -5(lists0c00as unsupported)libfprint-git -6from omacom/omarchy-pkgs#2170 (lists0c00underelanmoc2)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.