Am Mittwoch, dem 11.05.2022 um 18:55 +0200 schrieb Lukáš Krejza:
Dne středa 11. května 2022 18:38:13 CEST, Andrei Borzenkov napsal(a):
On 11.05.2022 17:31, Lukáš Krejza wrote:
Hi Geekos!
Recently, i have been trying to implement Broadcom fingerprint reader driver mentioned in subject. For this i have tried following approach: https:// github.com/dsd/fprintd/issues/3#issuecomment-962422370
It contains binary firmware, udev rules, fprint library and firmware install script written in python.
Result of my tries can be found here: https://paste.opensuse.org/view/raw/ 72229198 (except of the 70-libfprint-2.rules, which is the openSUSE one and listed just for comparison. FYI i am trying with 0a5c:5843 device. My tries were however unsuccessful (fprint does not recognize the device and so KDE does).
My question is, is there anything different between (open)SUSE and Debian or Arch regarding UDEV and/or firmware installation?
Dynamic driver loading requires fork of libfprint - libfprint-tod. As far as I can tell it is not available for openSUSE while Ubuntu is using this version.
I am using this one: https://build.opensuse.org/package/show/home:sp1rit/ libfprint-tod which has been fixed few hours ago for Tumbleweed by Sp1rit (only tests failed, which was fixed in latest git as i informed Sp1rit already)
Even if this version were available, it most certainly would not use /usr/lib/x86_64-linux-gnu path.
Cool! This has lead me to fiddling with fprint more and i got this message in logs: (fprintd:13711): libfprint-tod-DEBUG: 18:53:39.091: Impossible to load the shared drivers dir Error opening directory ?/usr/lib64/libfprint- 2/tod-1?: No such file or directory
I will fix the paths and keep you informed.
I cannot comment on possibility to replace libfprint with libfprint-tod in openSUSE, but as long as it works for other distributions may be it is an option ... someone needs to package it first :)
I can provide any debug information required, but i am stucked here it seems. I would be glad for any hints! It would be nice to get this reader working, since it is present in many Dell laptops and it is reported to be working in Debian derivates and Arch.
Best regards! Gryffus
I think biggest problem problem with including will be closed source library for the libfprint-2-tod1-broadcom driver. But the firmware itself is a binary blob too, so what do i know? Maybe it can be workaround with a pullin or packaged on packman? But testing first...
Hi, sp1rit here, since you've asked me about packaging udev/firmware rules for SUSE privately, but have since created this thread, I'll reply here for prosperities sake. I (luckily) don't run any broadcom devices, but use Goodix Fingerprint sensor (that does on HW verify). It sadly needs a propriatory shared library which is available in Cannonical/Dells XPS 9500 PPA [0]. I just dumped the library into `/usr/lib64/libfprint-2/tod-1/`, copied the udev rules into the same dir as Ubuntu (`/lib/udev/rules.d/`) and added myself to plugdev (If I wasn't already, don't remember). The general layout of that tod-broadcom driver [1] seems awfully similar. So I presume you should be able to put that shared lib into the same dir as me, same with that udev file (which seems to not need you to be part of any specific group). The difference seems to be these additional broadcom binary blobs in `/var/lib/fprint/fw`, I assume you also should just copy the into the same dir as Ubuntu does.
Thanks! Gryffus
Hope it helps, Florian "sp1rit" [0]:https://git.launchpad.net/~oem-solutions-engineers/libfprint-2-tod1-goodix/+... [1]:https://git.launchpad.net/libfprint-2-tod1-broadcom/tree/ -- $\int_\text{now}^{+\infty}\text{Keep trying}$ Matrix: @sp1rit:tchncs.de <sp1rit@disroot.org> D248BF2F4C6A82A1E0569D897D8C1CD573166D09 <sp1rit@national.shitposting.agency> BBDE032EAAFBFC627FB7E635B1F4055D8460CE34