mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-01 20:28:16 +02:00
Add ASUS ExpertBook B9406 fingerprint reader (FocalTech FT9349) support (#5454)
The B9406CAA ships with a Focal Tech FT9349 ESS sensor on USB 2808:a97a. Mainline libfprint at 1.94.x lacks the open-source focaltech_moc driver entirely; the driver is in libfprint master under LGPL but no upstream release has shipped with PID 0xa97a in id_table[]. OPR carries libfprint-git with both the driver and the PID patch. Inline detection in omarchy-setup-fingerprint via /sys/bus/usb so we don't introduce a one-off hardware-match script just for this case. The check is cheap and runs only when the user opts into fingerprint setup (lazy install pattern). Once upstream libfprint catches up, the extra branch becomes harmless because libfprint-git provides=libfprint. Tested end-to-end on B9406CAA: fprintd-enroll completes, fprintd-verify matches enrolled fingers and rejects others, survives suspend/resume. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.7
parent
09411c4581
commit
542ae346a0
@@ -100,6 +100,21 @@ else
|
||||
|
||||
# Install required packages
|
||||
print_info "Installing required packages..."
|
||||
|
||||
# ASUS ExpertBook B9406CAA ships a FocalTech FT9349 ESS reader (USB
|
||||
# 2808:a97a). Mainline libfprint at 1.94.x lacks the focaltech_moc
|
||||
# driver (and its 0xa97a id_table entry); OPR ships libfprint-git
|
||||
# which carries both. Once upstream catches up, this branch is a
|
||||
# no-op and `libfprint-git` provides=libfprint anyway. Detect via
|
||||
# /sys to avoid depending on usbutils being installed first.
|
||||
for v in /sys/bus/usb/devices/*/idVendor; do
|
||||
[[ "$(cat "$v" 2>/dev/null)" == "2808" ]] || continue
|
||||
[[ "$(cat "${v%idVendor}idProduct" 2>/dev/null)" == "a97a" ]] || continue
|
||||
print_info "FocalTech FT9349 detected (B9406CAA) — using libfprint-git from OPR..."
|
||||
omarchy-pkg-add libfprint-git
|
||||
break
|
||||
done
|
||||
|
||||
omarchy-pkg-add fprintd usbutils
|
||||
|
||||
if ! check_fingerprint_hardware; then
|
||||
|
||||
Reference in New Issue
Block a user