Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to setup udev properly to try out this PoC #6

Open
Opposite34 opened this issue Oct 4, 2024 · 0 comments
Open

How to setup udev properly to try out this PoC #6

Opposite34 opened this issue Oct 4, 2024 · 0 comments

Comments

@Opposite34
Copy link

Opposite34 commented Oct 4, 2024

I want to try get a PoC working for 04f3:0c80. For now, I am trying to do it the naive way by just adding said device id to the lua and python files in this repo, as I'm hoping that the protocol for said fingerprint sensor is the same with that of "elanmoc2". However, I am struggling to get LIBUSB access working properly:

python3.10/site-packages/usb1/__init__.py", line 119, in raiseUSBError
    raise __STATUS_TO_EXCEPTION_DICT.get(value, __USBError)(value)
usb1.USBErrorAccess: LIBUSB_ERROR_ACCESS [-3]

I have no idea how to do udev rules, so I copied one from a source I found (but it was for printers if I recall correctly) to be as such:

❯ cat 60-elan-fingerprint.rules

ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="04f3", ATTR{idProduct}=="0c80", TAG+="uaccess"

This works for doing ./elanfp.py info. However, when I try to do something like ./elanfp.py enroll -u 0 a similar LIBUSB error come up (maybe I only have read and not write access with the above udev)? Moreover, the fingerprint scanner got so hot so I have to disable it, so I reckon I did something wrong with this udev. If you have any idea how to give properly device access I'd be appreciated, as I really want to test out if this is working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant