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
I tried using this app on macOS and it didn't work - the app simply doesn't detect the device.
After looking around, it turned out that libusb requires quite exclusive access to the USB device, which macOS only grants to kernel extensions or USB devices not claimed by other extensions, so libusb_open_device_with_vid_pid fails 1. Since libusb couldn't get access, apparently something was already "claiming it". After long tries of unloading every USB-related kext I could, I came to conclusion that it's probably system's HID driver, (which obviously can't be unloaded). Even the original SkyRC app seems not to require special drivers, which hints that it's using HID APIs as well.
I've checked the code of libb6 that this app is using and it seemed that a swap of libusb to libhid is quite straightforward. I've tried doing that and the app seems to work. Also, with hidlib it's not necessary to give root access or create udev access rules.
Here are the the changes to make it work with hidlib: libb6 charge-guru
The text was updated successfully, but these errors were encountered:
I tried using this app on macOS and it didn't work - the app simply doesn't detect the device.
After looking around, it turned out that libusb requires quite exclusive access to the USB device, which macOS only grants to kernel extensions or USB devices not claimed by other extensions, so libusb_open_device_with_vid_pid fails 1. Since libusb couldn't get access, apparently something was already "claiming it". After long tries of unloading every USB-related kext I could, I came to conclusion that it's probably system's HID driver, (which obviously can't be unloaded). Even the original SkyRC app seems not to require special drivers, which hints that it's using HID APIs as well.
I've checked the code of libb6 that this app is using and it seemed that a swap of libusb to libhid is quite straightforward. I've tried doing that and the app seems to work. Also, with hidlib it's not necessary to give root access or create udev access rules.
Here are the the changes to make it work with hidlib:
libb6
charge-guru
The text was updated successfully, but these errors were encountered: