Goodix 521d (USB 27c6:521d, 27c6:538d)
Status: WIP (27c6:521d via the libfprint-goodix-521d AUR package; 27c6:538d verified working via a community SIGFM fork plus a one-time sensor init, see below)
Goodix fingerprint sensor. The packaged driver also covers 27c6:538d.
What was broken
Upstream libfprint has no driver for this Goodix sensor, so it is unrecognised.
What the fix does
A community Goodix driver (from the goodix-fp-linux-dev project) adds support for
this sensor. For 27c6:521d it is most easily consumed as the Arch AUR package
libfprint-goodix-521d, which builds a patched libfprint (currently based on
1.94.1) with the driver included.
Build and install
Arch / AUR (easiest, 27c6:521d):
# with an AUR helper
yay -S libfprint-goodix-521d
sudo pkill -9 -x fprintd
fprintd-list "$USER"
sudo fprintd-enroll "$USER"
On other distros, build libfprint from the goodix-fp-linux-dev source (see
CREDITS) the same way as any libfprint-from-source build (see the
27c6:55b4 entry for the general meson/ninja + PAM steps).
27c6:538d notes (verified on a Dell Inspiron 5405, 2026-10-29)
On 27c6:538d the sensor speaks Goodix's TLS protocol and the AUR 1.94.1 fork is
not enough on its own: two extra things are needed.
-
A newer community fork. Use lbssousa/libfprint, branch
goodix-538d-sigfm-gtls(v1.94.100-goodix538d.1). It adds thegoodixtls53xddriver on top of libfprint 1.94.100 with a SIGFM matcher, 16 enroll stages and cross-session FPN calibration. Install it side by side (own directory plus an/etc/ld.so.conf.d/00-...confentry that sorts before the distro one) and restartfprintd; the distrolibfprintpackage can stay installed as the fallback.ldd /usr/lib/fprintdmust resolve to the new library, andfprintd-list "$USER"should then show "Goodix TLS Fingerprint Sensor 53XD". -
A one-time MCU initialisation. A sensor that was paired with Windows reports a PSK the community driver cannot know, and the driver then fails with
MCU has no config/Invalid device PSK.goodix-fp-dump'srun_538d.pyrepairs this, but it must run withfprintdstopped and the device USB-reset first (upstream issue #13: otherwise its first command fails withInvalid message protocol). If it stops right after0xa4withFailed to read PSK(the erased application keeps running until the MCU is reset), the remaining steps are: soft MCU reset (0xa2, bit 1) until the device re-enumerates and reportsMILAN_GM168SEC_IAP_10007; then write the white-box PSK (0xe0, flags0xbb010003); flashGF5298_GM168SEC_APP_13016(0xf0, 95 x 256-byte blocks, then the0xf4HMAC check) and reset. Expected final state: firmwareGF5298_GM168SEC_APP_13016andpreset_psk_readreturningsha256(32 zero bytes)=66687aad..., i.e. the public community PSK. This re-flash makes Windows Hello re-pair on the next Windows boot.
Then enroll the same finger twice (16 presses per session, varying the angle): the second session adds a second template plus the cross-session calibration the matcher uses. An occasional badly placed press scores 0; that is placement, not a reason to lower the matcher threshold.
PAM setup
Enable fprintd in your PAM stack: distro helper where there is one, otherwise
auth sufficient pam_fprintd.so. Never required. Full steps per distro are in
docs/BUILD.md.
Tested on
- Arch Linux via the
libfprint-goodix-521dAUR package. - Dell Inspiron 5405 (
27c6:538d, firmwareGF5298_GM168SEC_APP_13016), CachyOS/Arch, kernel 7.1.2, fprintd 1.94.5, 2026-10-29: driver from lbssousa/libfprint branchgoodix-538d-sigfm-gtls(commita1bde74) installed side by side; one-timegoodix-fp-dumpinit as above; 16-stage enrollment completed andfprintd-verifyreportedverify-match(SIGFM score 332 vs threshold 24); a non-enrolled finger was rejected (score 0).