Question: How to get the virtual fingerprint reader to work?
Hey, I want to explore the virtual fingerprint reader (virtual_imgdev) but I can't get it working. I'm on Arch Linux and use the up-to-date master of libfprint.
# /etc/systemd/system/fprintd.service.d/override.conf
[Service]
RuntimeDirectory=fprint
Environment=FP_VIRTUAL_IMAGE=/run/virtimg_sock
Environment=G_MESSAGES_DEBUG=all
ReadWritePaths=/run/
kmille@linbox:~ sudo systemctl daemon-reload
[sudo] password for kmille:
kmille@linbox:~ sudo systemctl restart fprintd.service
journalctl
Mar 01 21:02:49 linbox systemd[1]: Starting Fingerprint Authentication Daemon...
Mar 01 21:02:49 linbox fprintd[488300]: About to load configuration file '/etc/fprintd.conf'
Mar 01 21:02:49 linbox fprintd[488300]: Launching FprintObject
Mar 01 21:02:49 linbox fprintd[488300]: No driver found for USB device 17EF:1010
Mar 01 21:02:49 linbox fprintd[488300]: No driver found for USB device 1D6B:0003
Mar 01 21:02:49 linbox fprintd[488300]: No driver found for USB device 138A:0097
Mar 01 21:02:49 linbox fprintd[488300]: No driver found for USB device 04F2:B5AB
Mar 01 21:02:49 linbox fprintd[488300]: No driver found for USB device 8087:0A2B
Mar 01 21:02:49 linbox fprintd[488300]: No driver found for USB device 17EF:100F
Mar 01 21:02:49 linbox fprintd[488300]: No driver found for USB device 046D:C077
Mar 01 21:02:49 linbox fprintd[488300]: No driver found for USB device 0951:16B7
Mar 01 21:02:49 linbox fprintd[488300]: No driver found for USB device 17EF:1010
Mar 01 21:02:49 linbox fprintd[488300]: No driver found for USB device 1D6B:0002
Mar 01 21:02:49 linbox fprintd[488300]: Found virtual environment device: FP_VIRTUAL_IMAGE, /run/virtimg_sock
Mar 01 21:02:49 linbox fprintd[488300]: created
Mar 01 21:02:49 linbox fprintd[488300]: entering main loop
Mar 01 21:02:49 linbox systemd[1]: Started Fingerprint Authentication Daemon.
Mar 01 21:02:49 linbox fprintd[488300]: D-Bus service launched with name: net.reactivated.Fprint
Mar 01 21:03:20 linbox systemd[1]: fprintd.service: Succeeded.
kmille@linbox:examples FP_VIRTUAL_IMAGE=/run/virtimg_sock ./sendvirtimg.py prints/whorl.png
Traceback (most recent call last):
File "/home/kmille/git/arch-packages/libfprint/repos/extra-x86_64/src/libfprint/examples/./sendvirtimg.py", line 108, in <module>
sock.connect(sockaddr)
FileNotFoundError: [Errno 2] No such file or directory
kmille@linbox:examples ls /run/virtimg_sock
ls: cannot access '/run/virtimg_sock': No such file or directory
kmille@linbox:examples
I built it with meson configure -Ddrivers=all build
but no socket is created. What I can see is dev_init
in virtual-device.c and virtual-image.c is not called. Now I'm a litte bit clueless. Thanks for your help!
kmille