iafilatov / libfprint

libfrpint driver for a family of Elantech fingerprint sensors
https://cgit.freedesktop.org/libfprint/libfprint/
GNU Lesser General Public License v2.1
146 stars 20 forks source link

Not device found #17

Closed miroslav-lee closed 5 years ago

miroslav-lee commented 6 years ago

I run command LD_LIBRARY_PATH=./libfprint/.libs/ fprint_demo and see message "Device not found" (( default

Help me please((

iafilatov commented 6 years ago

LD_LIBRARY_PATH=./libfprint/.libs/ looks like what you had to set when building with autotools. If you build with meson in builddir, you need to run LD_LIBRARY_PATH=libfprint fprint_demo (note to self: update readme).

miroslav-lee commented 6 years ago

Thanks, it works!)) But i don`t now, how setting login from fprint_demo or fingerprint gui?

iafilatov commented 6 years ago

fprint_demo is basically just that - for demo purposes. Not for login etc. Not sure about fingerprint gui, never used it. I think earlier these progs used to share print data with system fprintd daemon but that has changed. You need fprintd and libpam-fprint for login. Once you have them, run fprintd-enroll. But first, make sure you can verify comfortably using i.e. fprint_demo. Otherwise logging in and/or running sudo will be pain.

miroslav-lee commented 6 years ago

default

Not working((

miroslav-lee commented 6 years ago

default

It`s ok?

iafilatov commented 6 years ago

fprintd-enroll is a tool that communicates with fprintd daemon, which in turn needs to be linked to the correct version of libfprint. So you shouldn't need LD_LIBRARY_PATH for fprintd-enroll. Instead, you need to install libfrint from this repo system-wide (sudo ninja install) and restart fprintd (depends on your distro, try sudo service fprintd restart). If it still doesn't work try sudo ldconfig, then restart.

The image looks quite good. Your reader should be usable, esp. once you get the hang of swiping consistently (took me some time, ymmv).