libimobiledevice / usbmuxd

A socket daemon to multiplex connections from and to iOS devices
https://libimobiledevice.org
GNU General Public License v2.0
1.46k stars 351 forks source link

Unable to connect device after every kernel update #163

Open cooperbang opened 3 years ago

cooperbang commented 3 years ago

After every Kernel Update my iPhone 7 is not recognized by usbmuxd.

Mär 19 08:11:50 localhost.localdomain usbmuxd[4297]: [08:11:50.120][3] Using libusb 1.0.24
Mär 19 08:11:50 localhost.localdomain usbmuxd[4297]: libusb: warning [op_get_configuration] device unconfigured
Mär 19 08:11:50 localhost.localdomain usbmuxd[4297]: libusb: error [op_get_active_config_descriptor] device unconfigured
Mär 19 08:11:50 localhost.localdomain usbmuxd[4297]: [08:11:50.126][3] Could not get old configuration descriptor for device 1-4: LIBUSB_ERROR_NOT_FOUND
Mär 19 08:11:50 localhost.localdomain usbmuxd[4297]: [08:11:50.128][3] Initialization complete
Mär 19 08:11:50 localhost.localdomain usbmuxd[4297]: [08:11:50.128][3] Enabled exit on SIGUSR1 if no devices are attached. Start a new instance with "--exit" to trigger.
Mär 19 08:11:50 localhost.localdomain usbmuxd[4297]: [08:11:50.128][3] Connecting to new device on location 0x10004 as ID 1
Mär 19 08:11:50 localhost.localdomain usbmuxd[4297]: [08:11:50.214][3] Removed device 1 on location 0x10004
Mär 19 08:11:50 localhost.localdomain usbmuxd[4297]: [08:11:50.214][2] Cannot find device entry while removing USB device 0x55dxxxxxxxxx on location 0x10004
Mär 19 08:11:50 localhost.localdomain usbmuxd[4297]: libusb: error [udev_hotplug_event] ignoring udev action unbind

After replugging the device I get:

Mär 19 08:17:39 localhost.localdomain usbmuxd[4297]: libusb: warning [op_get_configuration] device unconfigured
Mär 19 08:17:39 localhost.localdomain usbmuxd[4297]: libusb: error [op_get_active_config_descriptor] device unconfigured
Mär 19 08:17:39 localhost.localdomain usbmuxd[4297]: [08:17:39.342][3] Could not get old configuration descriptor for device 1-5: LIBUSB_ERROR_NOT_FOUND
Mär 19 08:17:39 localhost.localdomain usbmuxd[4297]: [08:17:39.358][3] Connecting to new device on location 0x10005 as ID 2
Mär 19 08:17:39 localhost.localdomain usbmuxd[4297]: [08:17:39.394][3] Connected to v2.0 device 2 on location 0x10005 with serial number 5c000xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Mär 19 08:17:39 localhost.localdomain usbmuxd[4297]: [08:17:39.395][1] preflight_worker_handle_device_add: ERROR: Could not connect to lockdownd on device 5c000xxxxxxxxx>

Workaround: sudo killall -9 usbmuxd and then systemctl start usbmuxd - after some time it will connect...

Connect successfull after stop/start usbmuxd:

Mär 19 08:24:30 localhost.localdomain systemd[1]: Started Socket daemon for the usbmux protocol used by Apple devices.
Mär 19 08:24:30 localhost.localdomain usbmuxd[4656]: [08:24:30.415][3] usbmuxd v1.1.1 starting up
Mär 19 08:24:30 localhost.localdomain usbmuxd[4656]: [08:24:30.432][3] Successfully dropped privileges to 'usbmuxd'
Mär 19 08:24:30 localhost.localdomain usbmuxd[4656]: [08:24:30.432][3] Using libusb 1.0.24
Mär 19 08:24:30 localhost.localdomain usbmuxd[4656]: [08:24:30.439][3] Initialization complete
Mär 19 08:24:30 localhost.localdomain usbmuxd[4656]: [08:24:30.439][3] Enabled exit on SIGUSR1 if no devices are attached. Start a new instance with "--exit" to trigger.
Mär 19 08:24:30 localhost.localdomain usbmuxd[4656]: [08:24:30.440][3] Connecting to new device on location 0x10005 as ID 1
Mär 19 08:24:30 localhost.localdomain usbmuxd[4656]: [08:24:30.441][3] Connected to v2.0 device 1 on location 0x10005 with serial number 5c000xxxxxxxxxxxxxxxxxxxxxxxxxxx>
maravtdm commented 2 years ago

FYI I have the same issue, whatever the kernel I have to kill usbmuxd and restart it

To solve this, I compile my own kernel with : CONFIG_APPLE_MFI_FASTCHARGE=y

in : Device Drivers / USB Support / Fast charge control for iOS devices

In case: We discussed about this issue on LQ forum https://www.linuxquestions.org/questions/slackware-14/tethering-iphone-kernel-modules-4175699876/