Better fprintd-enroll output
From https://bugs.freedesktop.org/show_bug.cgi?id=77678
I recently acquired a Microsoft fingerprint reader with ID 45e:bd for a desktop
system. fingerprint-gui, fprint_demo, and fprintd-enroll all recognize the
device, and when I attempt to enroll a fingerprint, any of these three programs
will detect a fingerprint on the first scan (fprint-demo displays an image of
that fingerprint), but nothing on subsequent scans. As five scans are necessary
to enroll a fingerprint, it is impossible to enroll any fingerprints and the
device is rendered useless.
fingerprint-gui and fprintd-enroll will not accept further fingerprints until
they are closed and reinvoked, fprint_demo will accept fingerprints once the
current enrollment window is closed and one of the "enroll" buttons in the main
window is clicked again. The two graphical programs both indicate that they
have accepted the first scan and are waiting for another, fprintd-enroll
displays the following:
Using device /net/reactivated/Fprint/Device/0
Enrolling right-index-finger finger.
Enroll result: enroll-stage-passed
The first two lines display on invocation of fprintd-enroll, the third line
displays upon scanning the fingerprint, and no further output appears until the
program catches SIGINT.
The LED on the fingerprint reader lights up when any action requiring
authentication is taken (sudo, gksu, etc), but as no fingerprints are enrolled,
no request to scan a finger is displayed.
The machine in question is running Ubuntu 14.04 with libfprint
1:0.5.1-git20130819-1-0ppa1~trusty1 installed from the fingerprint-gui PPA
repository. The fingerprint reader is plugged into a USB 2.0 port.
I also tested the device with a System76 Pangolin P5 laptop on which
fingerprint detection through an integrated reader (147e:2016) and
fingerprint-gui is known to be working. As on the desktop, fingerprint-gui
makes only one scan when an attempt is made to enroll. Attempts to do further
scans have no result until fingerprint-gui is closed and reopened. The laptop
is running Ubuntu 12.04 with libfprint 1:0.5.1-git20130819-1-0ppa1~precise1
from the same repository.
Steps to reproduce:
1)Acquire a Microsoft fingerprint reader with ID 45e:bd and install libfprint
and at least one program capable of using libfprint to enroll fingerprints.
2)Plug in the device and invoke the program of your choice for enrolling
fingerprints.
3)Attempt to enroll a fingerprint.
Actual results:
Only one scan can be made. There is no response to subsequent attempts to scan
a finger. Enrollment is impossible.
Expected results:
The system should continue scanning prints until it has made enough scans to
enroll a fingerprint. It should be possible to enroll a fingerprint.