-
Notifications
You must be signed in to change notification settings - Fork 71
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
Call to open() fails on Mint Linux #106
Comments
BTW, running as root works:
Wayne |
Hi @wholder, I did some brief digging around and it could be a permissions issue with Let me know how you get on. |
First, thinks for trying to help. I'm not sure what you mean by "assuming lsusb indicates /dev/hidrawX as where your device is showing up". When I run
Does this help narrow things down? Wayne
|
Yes, I have accidentally misled you with the mapping between the I still think it's a permissions problem, possibly in |
Ok, after a few hours of trial and error and reading through more web posts than I can remember, I stumbled upon the fix. It's as simple as adding a single ':' (colon) character so that
where this is entered as a single line followed by pressing enter. Then, to be sure, I recommend a restart for the new rule to take effect. Wayne |
Thanks for coming back with an answer. It's interesting that the solution involves I would counsel against using a wildcard in the Anyway, I'll close this issue now and I've updated the wiki to reflect your findings. |
I have a Java program using
Hid4Java
that runs successfully on macOs and Windows 10, but fails on Mint Linux 19 when it tries to open() the device. Here is printout from test code when run on these three operating systems:The troubleshooting section does not seem to cover Mint Linux, but I tried the advice given for Ubuntu and created a rules file in
/etc/udev/rules.d/
that contains:KERNEL=="hidraw*", ATTRS{idVendor}=="03EB", ATTRS{idProduct}=="2141", MODE="0666", GROUP="plugdev", TAG+="uaccess", TAG+="udev-acl"
Then, used the following commands to verify the "plugdev" group:
What am I missing?
Wayne
p.s. these test code I used is, as follows:
The text was updated successfully, but these errors were encountered: