USB ID
04f3:0c77
Reported in
ASUS ExpertBook B9403CVAR, ASUS ExpertBook B5 Flip, ASUS ExpertBook B7 Flip
Source
devices/04f3:0c77/README.md

ELAN ARM-M4 (USB 04f3:0c77)

Status: Partial - enroll and verify work through fprintd with a patched elanmoc2 driver; a finger resting on the sensor while it is opened can make it stop answering for about a minute.

ELAN "ARM-M4" match-on-chip fingerprint reader, found in ASUS ExpertBook models. Requested upstream in libfprint #447, #510 and #692.

What was broken

The USB ID is in no libfprint driver, so fprintd-enroll fails with NoSuchDevice. Adding the ID to an existing upstream driver does not help:

What the fix does

Ports Davide Depau's elanmoc2 driver to current upstream libfprint, adds 04f3:0c77, and changes what this sensor needed:

It also fixes bugs that are not specific to this sensor: wrong reporting of retries and "no match" in verify (with a double free), a receive timeout while waiting for a finger, and a crash when closing right after a cancellation.

The protocol findings are written up in the source repository, see CREDITS.

Known limitation

In 2 of 11 cases where the six zero bytes appeared, the sensor did not answer the repeated query either. The operation failed after a 10 second timeout, and the USB reset of the next open left the sensor dead on the bus for 60-75 seconds. It recovered by itself every time. This only happened with a finger resting on the sensor while the device was opened; normal touches matched in 38 of 38 runs.

The sensor also rejects touches that cover too little of it, about 1 in 6 after some practice; fprintd asks for another touch.

Listing stored prints and deleting a single print from fprintd are not implemented. Clearing the sensor and re-enrolling a finger both work.

Build and install

The patch applies to upstream libfprint at commit 6f9479c3d55f847c1b3769f28ceb99227f9858cf (v1.94.100 + 10). See patches/README.md for the base and docs/BUILD.md for the shared build, install and PAM steps. The deltas for this sensor:

git clone https://gitlab.freedesktop.org/libfprint/libfprint.git
cd libfprint
git checkout 6f9479c3d55f847c1b3769f28ceb99227f9858cf
patch -Np1 -i /path/to/patches/0001-elanmoc2-driver-with-04f3-0c77.patch

On Arch and Omarchy the source repository has a PKGBUILD that does this and builds a package. It is named libfprint-git with epoch 2, so that Omarchy's omarchy-setup-security-fingerprint accepts it and a system update does not replace it.

Enrolling takes 15 good touches. Lift the finger between touches, and do not rest it on the sensor while fprintd starts.

Tested on