1c7a:0587 Egis Technology Inc. (aka. LighTuning) partial support (egismoc)
Hi, I'm a developer but clueless as to where to begin. I have an Asus Creator Q laptop (Product name: Vivobook_ASUSLaptop K6502VJ_Q540VJ) After some tinkering with libfprint, I got some action-response from the fp sensor with fprintd-enroll
$ lsusb | grep LighTuning
Bus 003 Device 002: ID 1c7a:0587 LighTuning Technology Inc. ETU905A88-E
What I did:
in libfprint/drivers/egismoc/egismoc.c
, after lines 52-53:
static const FpIdEntry egismoc_id_table[] = {
{ .vid = 0x1c7a, .pid = 0x0582, .driver_data = EGISMOC_DRIVER_CHECK_PREFIX_TYPE1 },
I added:
{ .vid = 0x1c7a, .pid = 0x0587, .driver_data = EGISMOC_DRIVER_CHECK_PREFIX_TYPE1 },
and in data/autosuspend.hwdb
, after lines 80-81:
# Supported by libfprint driver egismoc
usb:v1C7Ap0582*
I added:
usb:v1C7Ap0587*
After building and installing, I was able to get the following action-response behavior:
t@creator:~/libfprint-1.94.7+tod1$ sudo fprintd-enroll
Using device /net/reactivated/Fprint/Device/0
Enrolling right-index-finger finger.
Enroll result: enroll-stage-passed
Enroll result: enroll-remove-and-retry
Enroll result: enroll-remove-and-retry
Enroll result: enroll-remove-and-retry
Enroll result: enroll-remove-and-retry
^C
Each line "Enroll result:" was triggered by a index finger touch on the fingerprint sensor.
The same "Enroll result:" sequence (first one "enroll-stage-passed" followed by infinite "enroll-remove-and-retry" to each additional touch) is replicated when setting .driver_data = EGISMOC_DRIVER_CHECK_PREFIX_TYPE2
instead of TYPE1 in libfprint/drivers/egismoc/egismoc.c
.
Is adding support possible? Where to start? I can possibly contribute!
P.S. Is windows driver of any help or even need? (reverse-engineering?) https://dlcdnets.asus.com/pub/ASUS/nb/Image/Driver/BiometricAuthentication/31789/Fingerprint_WBF_USB_DCH_EGIS_F_V1.1.38.0_31789.exe?model=Q540VJ
Cheers