Skip to content

armoredvortex/focaltech_2808-9e65

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Driver for FocalTech 2808:9e65 fingerprint reader

Setup with libfprint

  1. Clone libfprint repository:

    git clone --depth 1 https://gitlab.freedesktop.org/libfprint/libfprint.git
    cd libfprint
  2. Copy the driver files to libfprint:

    cp ../driver/focaltech.c libfprint/drivers/
    cp ../driver/focaltech.h libfprint/drivers/
  3. Update libfprint/meson.build to include the new driver in the default_drivers list:

    default_drivers = [
        ...
        'focaltech_moc',
        'focaltech',
    ]
  4. Add focaltech to the endian_independent_drivers list in libfprint/meson.build:

    endian_independent_drivers = virtual_drivers + [
        ...
        'focaltech_moc',
        'focaltech',
        'nb1010',
        ...
    ]
  5. Update libfprint/libfprint/meson.build to add the driver source:

    driver_sources = {
        ...
        'focaltech_moc' :
            [ 'drivers/focaltech_moc/focaltech_moc.c' ],
        'focaltech' :
            [ 'drivers/focaltech.c' ],
    }
  6. Build and install libfprint (important: use --prefix=/usr to install to /usr instead of /usr/local):

    meson setup build --prefix=/usr
    meson compile -C build
    sudo meson install -C build
  7. Restart fprintd service to use the new library:

    sudo systemctl restart fprintd
  8. Verify the device is detected:

    fprintd-list $USER

    You should see output like:

    found 1 devices
    Device at /net/reactivated/Fprint/Device/0
    Using device /net/reactivated/Fprint/Device/0
    Fingerprints for user YOUR_USERNAME on Focaltech Fingerprint Sensor (press):
    

Usage

After setup, you can use these commands:

  • fprintd-enroll - Enroll new fingerprints
  • fprintd-list $USER - List enrolled fingerprints
  • fprintd-verify - Test fingerprint verification
  • fprintd-delete $USER - Remove enrolled fingerprints

Notes

  • Libfprint uses meson for building. See the Meson wiki for more details.
  • The --prefix=/usr flag is crucial for fprintd to find the library. Without it, libfprint installs to /usr/local by default, which fprintd doesn't search.

About

Driver for fingerprint device focaltech 2808:9e65

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages