You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since hid4java was updated to the latest snapshot, Linux can no longer claim a device and the redundant device listing is very large. This affects all master builds currently.
#852 fixes device listing, however even with this patch, the device still cannot be claimed.
Edit:#852 has been updated to fix claiming as well.
The text was updated successfully, but these errors were encountered:
So it turns out hid4java 0.7.0 shipped the wrong binary for it's hidraw support on Linux. The binary in its place was the libusb implementation. This means that QZ Tray 2.1.3 unknowingly shipped with libusb implementation.
When we created our own snapshot build, we did not make this mistake so the correct (and thus non-working) library was used instead. I believe this is due to hidraw requiring special udev rules.
The fix is to force the old QZ Tray 2.1.3 behavior by using the libusb version at all times, which hid4java allows through a flag HidApi.useLibUsbVariant at runtime. Since hid4java can be swapped with purejavahidapi, I've chosen to use reflection for this call to avoid any edge-case linking errors.
P.S. @bberenz, reverting to libusb also seems to fix the redundant device listing which you patched into #852 but I'm leaving that logic in in case we decide to add hidraw support in the future.
Since hid4java was updated to the latest snapshot, Linux can no longer claim a device and the redundant device listing is very large. This affects all
master
builds currently.#852 fixes device listing, however even with this patch, the device still cannot be claimed.
Edit: #852 has been updated to fix claiming as well.
The text was updated successfully, but these errors were encountered: