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
{{ message }}
This repository was archived by the owner on Mar 23, 2026. It is now read-only.
if ((ret = libusb_set_configuration(dev_handle, 1)) < 0) {
fprintf(stderr, "ipad_charge: unable to set device configuration: error %d\n", ret);
fprintf(stderr, "ipad_charge: %s\n", libusb_strerror(ret));
return ret;
}
ipad_charge needs to set the configuration, as otherwise libusb_claim_interface fails with error -5 (not found), because (AIUI) an unconfigured device has no interfaces.
The 500ma value for libusb_control_transfer didn't work for the charging port on my Sony Vaio SVS15123CXB (it would only show the charging icon for a split-second then revert to "not charging"), but upping it to 1600 worked. 16000 also worked.
This is missing in
set_charging_mode:ipad_chargeneeds to set the configuration, as otherwiselibusb_claim_interfacefails with error -5 (not found), because (AIUI) an unconfigured device has no interfaces.The 500ma value for
libusb_control_transferdidn't work for the charging port on my Sony Vaio SVS15123CXB (it would only show the charging icon for a split-second then revert to "not charging"), but upping it to 1600 worked. 16000 also worked.