Repository navigation
Detect Elan match-on-chip fingerprint readers again - #6578
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
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
force-pushed
the
detect-elan-moc-fingerprint-readers
branch
from
August 6, 2026 15:45
78ec87c to
81e940c
Compare
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
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]>
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
omarchy-hw-fingerprintdoes not detect Elan match-on-chip readers. On those machines:omarchy-setup-security-fingerprintexits with "No fingerprint sensor detected"Stock libfprint drives these readers fine, and
fprintd-listfinds them. Example:04f3:0ca8on an HP EliteBook X G2i.Why both checks miss it
ELAN:ARM-M4, so*fingerprint*and*biometric*do not match.04f3is left out offingerprint_vendorson purpose, because Elan also makes touchscreens.The fix
Add
elan:arm-m4to 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_driverguard are unchanged, so touchscreens still cannot cause a false positive.ELAN:ARM-M4is a family name, not one device. libfprint uses it for04f3:0c9cand04f3:0ca7as well as04f3:0ca8, so one pattern covers all of them.This is a regression
Elan readers used to be detected:
elanto the oldlsusbkeyword checkfprintd-list, which still found Elanhas_kernel_driverguard and gated the menu row on the same check, so the row disappears tooTesting
On the affected laptop the new pattern matches one device, and it is the reader:
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.