Full journal
· 6 min read

Goodix 538d fingerprint reader on Linux: a driver with a matcher built for tiny sensors

A libfprint driver for the Goodix 27c6:538d fingerprint reader (Dell Inspiron 7501), with a matcher built for a 3.4 × 4.2 mm sensor: correlation, elastic check, learning.

Also available in Français

My Dell Inspiron 7501 has a fingerprint reader. lsusb does show a 27c6:538d, but with Debian’s libfprint, fprintd answers “No devices available”. This post covers what I did to make it work day to day (lock screen, sudo, polkit, SDDM), and above all what makes recognition usable on a tiny sensor.

The code:

huntervcx/Dell-Inspiron-7501-fingerprint-driver-debiangithub.com

Where support for this sensor stands

The 538d is supported neither by upstream libfprint nor by Dell’s proprietary driver. The goodix-fp-linux-dev community offers an experimental route: flash the firmware with goodix-fp-dump, then build a libfprint branch. Its own authors flag it as unstable. My project starts from that base and tackles what kept me from using it daily: recognition quality.

It’s not the size that matters…

The GF5298 is a capacitive sensor of 3.4 × 4.2 mm, for 64 x 80 pixels. Each touch only sees a small patch of the finger. Classic approaches (minutiae, keypoints) lack material on such a small area.

… It’s how you use it!

  1. Contrast: band-pass filter, local normalisation, Gabor filter oriented along the ridges. A quality score makes the driver ask again for poor touches.
  2. Masked normalised cross-correlation, each shift normalised over its own overlap.
  3. Rotations of ±18° in 3° steps.
  4. Elastic verification: the highest correlation peak is often a chance alignment. I keep the 8 best alignments, then 20 px blocks re-align locally and must fit an affine model (at least 8 coherent blocks). Impostors almost always score 0.
  5. Decision by chain of templates: accept if the best template reaches 970, or if three templates exceed 900. A genuine finger resembles a chain of overlapping enrollment touches; a collision only hits one or two.

What I changed

Community baseMy project
USB / TLS communicationYesYes (reused)
Fingerprint acquisitionYesYes
fprintd integrationYesYes
RecognitionOriginal matcherCustom matcher
Correlation matching—Yes
Rotation handling—Yes
Elastic comparison—Yes
Adaptive learning—Yes
Contrast enhancementBasicMore elaborate
Official libfprint supportNoNo

The USB/TLS layer comes from goodix-fp-linux-dev’s work and I credit it as such. The goodix53xd driver (acquisition) and the matcher are my work.

Acquisition

  • Configuration derived from the OTP: each sensor stores its own calibration (DAC values, tcodes, finger-detection delta and offset). I decode them and patch them into the configuration. Another unit’s values give worse images.
  • Background frame refreshed after every finger lift and checked against a “TX off” frame, so a finger still touching never becomes the reference.
  • Finger detection done by the sensor itself: no USB traffic until something touches.
  • Suspend/resume handled: the lock screen keeps its fingerprint option after sleep.

Learning without drifting (said no BMW driver ever)

A touch matched with high confidence by the enrolled templates alone is stored as a new pose (20 at most, oldest dropped first). Learned poses help decisions but can never trigger further learning: the model cannot drift towards someone else’s finger.

My laptop burnt my finger (lol)

Everything worked, until the screen stayed locked for more than 3 minutes: the KDE lock screen lost its fingerprint option and only the password was left. I saw it after a reboot with the screen locked and turned off.

The fprintd log said: Device disabled to prevent overheating. (Spoiler: nothing was hot, and my finger is fine. libfprint just thought it should be.)

The cause is not the sensor but libfprint. By default the library assumes a sensor heats up while it stays active, and it cancels any wait longer than 3 minutes. My PAM file for the lock screen uses timeout=-1: the sensor has to keep listening as long as the screen is locked. The two collide.

Here the thermal model is simply wrong. This sensor waits in hardware finger detection with no image traffic at all, so it does not heat up. The fix is one line in the driver’s class initialisation:

dev_class->temp_hot_seconds = -1;   /* no thermal throttling */

libfprint’s synaptics, fpcmoc and elanmoc drivers do the same. I tested it with a wait of more than 3 minutes, then in real use.

To update an existing installation (the enrolled fingerprint and learned poses are kept, no need to re-enroll):

git pull
rm -rf build
./install.sh build && ./install.sh install

Results, without sugar-coating

Measured in real use on a single machine:

  • about 98 % of unlocks accepted on the very first touch, over roughly a hundred attempts;
  • about 0.9 s from touch to decision;
  • another finger of the same person: 0 accepted out of 10 tries (worst score 902, against an acceptance threshold of 970);
  • suspend and resume with a locked screen: works.

A hundred attempts is still small: 98 out of 100 is consistent with a true rate anywhere from about 93 % to 99.5 %. And 10 tries with another finger do not support any false-accept-rate claim. I also have no numbers comparing it to the community base on the same machine. That is the next step.

On the left, the lock screen saying “or read your fingerprint on the reader”; on the right, the power button that doubles as the fingerprint sensor

Limits

  • One-time firmware reflash required. Small but real risk. If Windows takes the sensor back you have to reflash, so dual-booters must pick one OS for the reader.
  • Convenience, not high security: the key written by the flashing tool is public and recognition runs on the computer. Keep a strong password.
  • Experimental: tested on a single unit (Debian 13, KDE Plasma 6.3, Wayland). OTP calibration is per sensor, so other units may behave differently.
  • It is a fork of a frozen libfprint branch, installed in /usr/local; ./install.sh uninstall reverts it.

Install

lsusb -d 27c6:        # you need a 27c6:538d
# 1. flash the firmware once with goodix-fp-dump
git clone https://github.com/huntervcx/Dell-Inspiron-7501-fingerprint-driver-debian.git
cd Dell-Inspiron-7501-fingerprint-driver-debian
./install.sh && ./install.sh status
fprintd-enroll        # 15 touches
fprintd-verify

PAM examples (sudo, polkit, KDE lock screen, SDDM) are in docs/PAM.md. install.sh never edits your authentication configuration.

If you have a 27c6:538d, I’d like your feedback: model, distribution, lsusb -d 27c6:, ./install.sh status and the fprintd debug log. No fingerprint images, obviously.

Thanks to goodix-fp-linux-dev and the libfprint project. LGPL 2.1+, not affiliated with Goodix or Dell.

DRAWN BY A. PERROTRSS · © 2026 — RÉV. 11/2026