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

Linux Native target does not find any devices #157

Open
danielhstahl opened this issue Jun 29, 2024 · 1 comment
Open

Linux Native target does not find any devices #157

danielhstahl opened this issue Jun 29, 2024 · 1 comment

Comments

@danielhstahl
Copy link

On the minimal example from the README on a Raspberry Pi 3+ (64 bit):

[dependencies.hidapi]
default-features = false
features = ["linux-native"]
version = "2.6.1"

The output is:

Printing all available hid devices:

When using the linux-static-libusb:

[dependencies.hidapi]
default-features = false
features = ["linux-static-libusb"]
version = "2.6.1"

The output is:
Printing all available hid devices: 2752:004b

@YgorSouza
Copy link
Contributor

The linux-native backend is equivalent to linux-static-hidraw, so you should probably compare the result to that to see where the problem really is. Did you set the udev rules correctly (as explained in the C library's repo)? I know the hidraw backend doesn't find the devices without it, but I don't know about libusb.

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

2 participants