Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mkilijanek/9fa692bbbe78afe3333dd5dc999679db to your computer and use it in GitHub Desktop.
Save mkilijanek/9fa692bbbe78afe3333dd5dc999679db to your computer and use it in GitHub Desktop.

Revisions

  1. @borcean borcean revised this gist Jan 13, 2022. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion t480-fedora-fingerprint.md
    Original file line number Diff line number Diff line change
    @@ -20,7 +20,7 @@ sudo chmod 0755 /usr/share/python-validity/6_07f_lenovo_mis_qm.xpfwext

    ## Enable services
    ```bash
    sudo systemctl enable python-validity open-fprintd-resume open-fprintd-suspend
    sudo systemctl enable python3-validity open-fprintd-resume open-fprintd-suspend
    sudo systemctl start python3-validity
    ```

  2. @borcean borcean revised this gist Jan 12, 2022. 1 changed file with 38 additions and 1 deletion.
    39 changes: 38 additions & 1 deletion t480-fedora-fingerprint.md
    Original file line number Diff line number Diff line change
    @@ -1 +1,38 @@
    .
    # ThinkPad T480 fingerprint reader on Fedora Linux

    ## Background
    The Synaptics fingerprint sensor (06cb:009a) present on my T480 is not supported by `libfprint` and `fprintd` as it requires a [non-free binary blob](https://gitlab.freedesktop.org/libfprint/libfprint/-/issues/276). [uunicorn](https://github.com/uunicorn) created `open-fprintd`, a replacement for `fprintd`, that allows for loading of binary blobs. In conjunction with their `python-validity` driver we are able to make use of the inbuilt fingerprint reader. The following instructions were tested against Fedora Linux 35.

    ## Installing `open-fprintd` and `python-validity`
    ```bash
    sudo dnf copr enable tigro/python-validity
    sudo dnf install open-fprintd fprintd-clients fprintd-clients-pam python3-validity
    ```

    ## Prepare the fingerprint reader
    ```bash
    sudo touch /usr/share/python-validity/backoff
    sudo touch /usr/share/python-validity/calib-data.bin
    sudo validity-sensors-firmware
    sudo python3 /usr/share/python-validity/playground/factory-reset.py
    sudo chmod 0755 /usr/share/python-validity/6_07f_lenovo_mis_qm.xpfwext
    ```

    ## Enable services
    ```bash
    sudo systemctl enable python-validity open-fprintd-resume open-fprintd-suspend
    sudo systemctl start python3-validity
    ```

    ## Enroll and test fingerprint
    ```bash
    fprintd-enroll
    fprintd-verify
    ```

    ## Enable authentication with fingerprint
    ```bash
    sudo authselect current
    sudo authselect enable-feature with-fingerprint
    sudo authselect apply-changes
    ```
  3. @borcean borcean created this gist Jan 12, 2022.
    1 change: 1 addition & 0 deletions t480-fedora-fingerprint.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    .