From b741400a0bad80c00c946cc7f98a672f5d516a5a Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Mon, 23 Nov 2026 01:05:25 +0100 Subject: Don't force a configuration on the iBridge/T2 (05ac:8600) The internal T1 of a MacBook Pro is driven by a kernel driver that selects its own configuration (e.g. 2 with the Linux T1 stack). The udev rule forced configuration 1, and usbmuxd itself switched the configuration and detached kernel drivers when it found the device. Remove the bConfigurationValue assignment from the 8600 udev rule, and in set_valid_configuration() only accept the currently active configuration for an already configured 8600 device. --- src/usb.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/usb.c b/src/usb.c index c238b22..1907d45 100644 --- a/src/usb.c +++ b/src/usb.c @@ -532,6 +532,12 @@ static int set_valid_configuration(struct libusb_device* dev, struct usb_device usbmuxd_log(LL_NOTICE, "Could not get configuration %i descriptor for device %i-%i: %s", j, bus, address, libusb_error_name(res)); continue; } + // iBridge/T2 may be owned by a kernel driver (e.g. the internal T1 of + // a MacBook Pro); never switch an already configured one + if(devdesc.idProduct == PID_APPLE_T2_COPROCESSOR && current_config != 0 && j != current_config) { + libusb_free_config_descriptor(config); + continue; + } for(k = 0 ; k < config->bNumInterfaces ; k++) { intf = &config->interface[k].altsetting[0]; if(intf->bInterfaceClass == INTERFACE_CLASS || -- cgit v1.1-32-gdbae