How to get the fingerprint reader on a ThinkPad T61
working with Ubuntu Intrepid

andy@stanford-clark.com

http://www.thinkwiki.org/wiki/How_to_enable_the_fingerprint_reader_with_ThinkFinger

http://www.thinkwiki.org/wiki/Install_Ubuntu_Intrepid_Ibex_on_a_T61p#Fingerprint_Reader

Add the PPA repositories to your source.list (/etc/apt/source.list):

deb http://ppa.launchpad.net/jon-oberheide/ubuntu intrepid main
deb-src http://ppa.launchpad.net/jon-oberheide/ubuntu intrepid main
Update installer:
sudo apt-get update
And install:
sudo apt-get install thinkfinger-tools 
Now the driver is installed and should be working. You can try it (as root) with

(I admit I did sudo su for this bit, as it seemed to suggest you should)

sudo tf-tool --acquire
and
sudo tf-tool --verify
This will ask you to swipe your finger three times, save the fingerprint to /tmp/test.bir and then verify your fingerprint with the bir-file.

On Ubuntu 8.10 - Intrepid Ibex you should just add the following line the the /etc/pam.d/common-auth file so it looks like this:

....
# here are the per-package modules (the "Primary" block)
auth	sufficient	pam_thinkfinger.so
auth	[success=1 default=ignore]	pam_unix.so try_first_pass nullok_secure
# here's the fallback if no module succeeds
....
fingerprint on sudo now works - but have to press enter after.

So add these repositories....

Add the PPA repositories to your source.list (/etc/apt/source.list):

deb http://ppa.launchpad.net/jon-oberheide/ubuntu intrepid main
deb-src http://ppa.launchpad.net/jon-oberheide/ubuntu intrepid main
Then run a check for updates - should apply two updates to the thinkfinger / PAM stuff

Now works without enter

To get the gnome screensaver working with fingerprint

Make the 'fingerprint' group:

sudo groupadd fingerprint
Save the following as /etc/udev/rules.d/60-thinkfinger.rules
#
# udev rules file for the thinkfinger fingerprint scanner
# 
# gives access to the fingerprint reader to those in the "fingerprint" group
#
# Taken from:
#  http://www.thinkwiki.org/wiki/How_to_enable_the_fingerprint_reader_with_ThinkFinger
# which was taken and modified from:
#  http://article.gmane.org/gmane.linux.drivers.thinkfinger/329
#

# SGS Thomson Microelectronics Fingerprint Reader
SYSFS{idVendor}=="0483", SYSFS{idProduct}=="2016", SYMLINK+="input/thinkfinger-%k", MODE="0660", GROUP="fingerprint"

# the also-needed uinput device
KERNEL=="uinput", MODE="0660", GROUP="fingerprint"
Then do
sudo /sbin/udevadm trigger
Edit /etc/pam.d/gnome-screensaver so that it looks like this:
auth    sufficient      pam_thinkfinger.so
auth    required        pam_unix.so try_first_pass nullok_secure
add yourself to the fingerprint group
sudo gpasswd -a username fingerprint
and fix the permissions on the fingerprint data file so the screensaver can read it as "you"
chown andysc:root ~/.thinkfinger.bir
now it works :)