Fingerprint reader in ThinkPad Z60m
Various IBM/Lenovo ThinkPad notebooks contain interesting feature – fingerprint reader. It is possible to use it under Linux for authentication. Thanks to PAM module we can easily use fingerprint reader to biometrically authenticate various apps.
Installation
To get fingerprint reader working under Linux (PLD/Linux in this case) we need:
- BioAPI (reference implementation of BioAPI framework for unix systems). For PLD/Linux see bioapi.spec.
- TouchChip TFM/ESS driver from Upek, Inc. tfm-fingerprint.spec for PLD/Linux.
- PAM BioAPI module. pam-pam_bioapi.spec for PLD/Linux.
Usage
Sample programs from BioAPI implementation will allow you to verify if fingerprint reader works correctly and will allow to dump your fingerprints data into *.bin files. *.bin files are later used to verify if fingerprint is correct one.
Example PAM configuration for sudo with authentication done through BioAPI:
[root@tarm ~]# cat /etc/pam.d/sudo
#%PAM-1.0
auth sufficient pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/
auth required pam_unix.so
account required pam_unix.so
password required pam_cracklib.so difok=2 minlen=8 dcredit=2 ocredit=2 retry=3
password sufficient pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/
password required pam_unix.so md5 shadow use_authtok
password required pam_make.so /var/db
session required pam_unix.so
session required pam_env.so
session required pam_limits.so change_uid
(/etc/bioapi/… contains *.bin files with scanned fingerprints)
How it works?
[arekm@tarm ~]$ sudo zsh
Verification start
Put fingerWhen the finger was moved too fast:
Swipe too fast
Put fingerWhen the scan had bad quality (I just moved my finger quite fast and not in correct way):
Bad quality
Put fingerThe finger was passed over right side of sensor only:
Finger is too right
Put fingerCorrect scan, finger passed properly:
Image processing
Scanned good image
Operation succeeded
[root@tarm ~]#
Example of unlocking KDE lock screen:
![]()
Interesting links:
ThinWiki article about ThinkPad FingerPrint reader.
2007-01-18 UPDATE:
There is open source implementation that is able to use fingerprint device in thinkpads:
ThinkFinger
on January 18th, 2007 at 15:33
Thanks for the short howto. Do you have the packages from http://www.qrivy.net/~michael/ ? The website is not reachable anymore.
on January 20th, 2007 at 06:40
@Denny and all that are interested. Under any circumstances try the Thinkfinger !
It’s so much easier to set up! For the lazy ones the rpm package ‘thinkfinger’ should be available for the major distributions as well. Just pay attention you grab the most current one, which is now the v0.2. This includes the respective PAM module to integrate the finger swipe in the applications.
Great work!