Skip to content

Detect Elan match-on-chip fingerprint readers again - #6578

Merged
dhh merged 3 commits into
omacom:quattrofrom
meirdick:detect-elan-moc-fingerprint-readers
Aug 9, 2026
Merged

dhh merged 3 commits into
omacom:quattrofrom
meirdick:detect-elan-moc-fingerprint-readers

Conversation

@meirdick

@meirdick meirdick commented Aug 6, 2026 •

Copy link
Copy Markdown
Contributor

omarchy-hw-fingerprint does not detect Elan match-on-chip readers. On those machines:

  • Setup > Security > Fingerprint is hidden
  • omarchy-setup-security-fingerprint exits with "No fingerprint sensor detected"
  • The first-run invitation never appears

Stock libfprint drives these readers fine, and fprintd-list finds them. Example: 04f3:0ca8 on an HP EliteBook X G2i.

Why both checks miss it

  1. Product string: the reader reports ELAN:ARM-M4, so *fingerprint* and *biometric* do not match.
  2. Vendor ID: Elan's 04f3 is left out of fingerprint_vendors on purpose, because Elan also makes touchscreens.

The fix

Add elan:arm-m4 to the product string check.

The comment above the vendor list already says the excluded vendors "still match on the product string below when present". This makes that true for Elan. The vendor list and its has_kernel_driver guard are unchanged, so touchscreens still cannot cause a false positive.

ELAN:ARM-M4 is a family name, not one device. libfprint uses it for 04f3:0c9c and 04f3:0ca7 as well as 04f3:0ca8, so one pattern covers all of them.

This is a regression

Elan readers used to be detected:

Testing

On the affected laptop the new pattern matches one device, and it is the reader:

$ ./bin/omarchy-hw-fingerprint; echo $?
0

With the check passing, the setup script gets past its hardware gate and the menu row appears. Fingerprint auth for polkit and the lock screen works on stock libfprint and fprintd, using the PAM config that script writes.

Copilot AI balanced review requested due to automatic review settings August 6, 2026 15:21

Copilot AI left a comment

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.

Copilot wasn't able to review any files in this pull request.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Elan readers report "ELAN:ARM-M4" as their product string, so the
*fingerprint* and *biometric* checks miss them. Elan's 04f3 is also left
out of the vendor list on purpose, because Elan makes touchscreens too.
Both checks fail, so the machine looks like it has no reader.

Add "elan:arm-m4" to the product string check. The comment above the
vendor list already says the excluded vendors should still match there,
so this makes that true. The vendor list and its has_kernel_driver guard
are unchanged, and touchscreens still cannot cause a false positive.

The string is a family name, not one device. libfprint uses it for
04f3:0c9c and 04f3:0ca7 as well as 04f3:0ca8.

Tested on an HP EliteBook X G2i with 04f3:0ca8.
@meirdick
meirdick force-pushed the detect-elan-moc-fingerprint-readers branch from 78ec87c to 81e940c Compare August 6, 2026 15:45
Copilot AI review requested due to automatic review settings August 6, 2026 15:45

Copilot AI left a comment

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.

Copilot wasn't able to review any files in this pull request.

dhh and others added 2 commits August 9, 2026 12:40
Detection proves a reader is present, not that libfprint can drive it.
Elan MOC sensors outside the elanmoc table pass the gate and then fail
to enroll, which left pam_fprintd in the sudo and polkit stacks with no
print to match.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings August 9, 2026 19:40

Copilot AI left a comment

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.

Copilot wasn't able to review any files in this pull request.

@dhh
dhh merged commit 9b03f15 into omacom:quattro Aug 9, 2026
nick1udwig pushed a commit to nick1udwig/omarchy that referenced this pull request Sep 9, 2026
* Detect Elan match-on-chip fingerprint readers again

Elan readers report "ELAN:ARM-M4" as their product string, so the
*fingerprint* and *biometric* checks miss them. Elan's 04f3 is also left
out of the vendor list on purpose, because Elan makes touchscreens too.
Both checks fail, so the machine looks like it has no reader.

Add "elan:arm-m4" to the product string check. The comment above the
vendor list already says the excluded vendors should still match there,
so this makes that true. The vendor list and its has_kernel_driver guard
are unchanged, and touchscreens still cannot cause a false positive.

The string is a family name, not one device. libfprint uses it for
04f3:0c9c and 04f3:0ca7 as well as 04f3:0ca8.

Tested on an HP EliteBook X G2i with 04f3:0ca8.

* Point the Elan comment at the vendor list above it

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

* Configure PAM only after a fingerprint enrolls and verifies

Detection proves a reader is present, not that libfprint can drive it.
Elan MOC sensors outside the elanmoc table pass the gate and then fail
to enroll, which left pam_fprintd in the sudo and polkit stacks with no
print to match.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

---------

Co-authored-by: David Heinemeier Hansson <[email protected]>
Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
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.

3 participants