Enroll Failed With Error 22
Contents |
on my laptop. Somehow my fingerprints disappeared and I probe of failed with error 22 could not enroll them back with pam_fprint_enroll. I had this
Failure To Enroll
error message: Enroll failed with error -22 To fix this I switched from pam_fprint to fprintd which uses D-Bus. I also had to change /etc/pam.d/system: -auth sufficient pam_fprint.so +auth sufficient pam_fprintd.so Then I could enroll my fingerprints with fprint-enroll. This entry was posted in Uncategorized and tagged dbus, enroll, fingerprints, fprint, fprint-enroll, fprintd, freebsd, pam, pam_fprint, pam_fprint_enroll, pam_fprintd by gawen. Bookmark the permalink. 2 thoughts on “Enroll failed with error -22” sera on October 3, 2014 at 17:57 said: Did run into this on a ThinkPad W530 as well. The reason for EINVAL was a driver bug in libfprint. The following patch fixes the issue for me. diff -git a/libfprint/drivers/upeke2.c b/libfprint/drivers/upeke2.c index f685205..45192e8 100644 -- a/libfprint/drivers/upeke2.c +++ b/libfprint/drivers/upeke2.c @@ -870,7 +870,7 @@ static int dev_init(struct fp_dev *dev, unsigned long driver_data) upekdev = g_malloc(sizeof(*upekdev)); upekdev->seq = 0xf0; /* incremented to 0x00 before first cmd */ dev->priv = upekdev; - dev->nr_enroll_stages = 5; + dev->nr_enroll_stages = 6; fpi_drvcb_open_complete(dev, 0); return 0; Reply ↓ gawen on October 4, 2014 at 04:35 said: I agree but I don't understand why it worked before with pam_fprint_enroll? It's like the number of enroll stages needed by the device jumped from 5 to 6. The reason it doesn't work with pam_fprint_enroll is that it uses the sync call fp_enroll_finger_img() that returns EINVAL when stage >= dev->nr_enroll_stages. Instead fprintd uses the async calls that do not check that. Reply ↓ Leave a Reply Cancel reply Proudly powered by WordPress
by: [ date ] [ thread ] [ subject ] [ author ] On 27/01/2011 23:44, Kyle Gordon wrote: > On 27/01/11 22:12, Hugo "Bonstra" Grostabussiat wrote: >> On 26/01/2011 23:36, miguel Gómez gonzalez wrote: >>> Im working over rhel6 Kernel 2.6.32-71.7.1, http://www.hauweele.net/~gawen/blog/?p=388 and this is the packages >>> installed: >>> libfprint-devel-0.1.0-19.pre2.el6.x86_64 >>> libfprint-0.1.0-19.pre2.el6.x86_64 >> 0.1.0-pre2 is an old release. Uninstall it and get the latest one from >> http://cgit.freedesktop.org/libfprint/libfprint > I get the same error, using the git sources on Ubuntu http://www.reactivated.net/fprint_list_archives/2011-January/001663.html 10.10. Something > is very wrong. > > Kyle Could you recompile libfprint with './configure --enable-debug-log' and run (as root) 'examples/enroll 2> enroll.log' ? Then open a new bug in the bugtracker (https://bugs.freedesktop.org/enter_bug.cgi?product=libfprint (ignore the SSL warning)) and attach the generated enroll.log file and the output of 'lsusb -v' (run as root). I don't have the same device as you so it's unlikely that I will be able to fix this bug myself. Regards. -- Hugo Grostabussiat Previous message: [fprint] Enroll failed with error -22 Next message: [fprint] Enroll failed with error -22 Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] More information about the fprint mailing list
src:libfprint. Reported by: mazze@the-lions.org Date: Wed, 9 Jun 2010 20:54:01 UTC Severity: important Tags: sid, squeeze, upstream Merged with 584563 Fixed in version libfprint/20100819git-1 https://bugs.debian.org/585179 Done: