Closed patte closed 5 years ago
I have exactly the same problem on Fedora 28
Here is the fix for now, i will open a PR
if (openCode == 0)
{
libusb_set_auto_detach_kernel_driver(handle, 1);
- r = libusb_claim_interface(handle, 0);
+ r = libusb_claim_interface(handle, 1);
if (r != LIBUSB_SUCCESS) {
printw("Failed to clain interface 0. Error: %d\n", r);
}
adjust_brighness(handle);
- libusb_release_interface(handle, 0);
+ libusb_release_interface(handle, 1);
libusb_close(handle);
}
else
Hi all! Thank you Patte for reporting the problem, and thank you Periklis for finding a fix. I haven't touched that code in a while and when I re-opened my IDE to try the proposed fix, I realized that I already had a lot of uncommitted new code, and that that code also had a fix for this problem. It finds the proper interface using the vendor ID and the product ID. Please give it a try and let me know if it is working with 18.10. Sorry to have forgotten to commit that code.
@velum Master works as expected. Thanks for pushing the missing pieces. I will close my PR
Thank you very much for doing the linux porting work! Sadly it's not working for me. System: Ubuntu 18.10 - 4.18.0-10-generic The LG is connected via TB3.
dmesg: