New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iOS 10.3.1 Mounts But Won't Pair, Reboots iPhone on Disconnect #497
Comments
I built it from source on Ubuntu 16.04 and the master branch and iOS 10.3.1 works for me. The maintainers still need to release it though so it can be packaged by distributions. |
I'm having having the same issue on iOS 10.3.2, master branch on Ubuntu 16.04. iOS hard reboots. |
same problem here. are you on vmware? |
I got the same problem with iOS 11.2.6 and Ubuntu (on Parallels VM). I got the feeling this has something to do with the virtual machine. But why the reboot on disconnect? Some log: |
it seems for me the problem is it gets a timeout here https://github.com/libimobiledevice/usbmuxd/blob/master/src/usb.c#L327 |
(you are on a previous version so it manifests itself in a different place, but it may be the same underlying problem) |
so, apparently the problem is that for some reason when running in a virtual machine iOS 11 exposes one more USB configuration (5 configurations instead of 4) and usbmuxd is assuming the last configuration is the right one to set here: https://github.com/libimobiledevice/usbmuxd/blob/9dfc1eb993a886532c38553a4eeefcfa79180417/src/usb.c#L415 instead in this case the right one is still Apparently apple's implementation successfully uses the 5th if available, but linux kernel fails for some reason (i see a lot of |
also: the same problem can be triggered by |
Thanks for tracking this down! |
I am playing with
And these errors continue. And after I disconnect my iPhone it reboots, the log is:
So it seems like what @mrmacete said holds true in my case too. I am new into this stuff but it really intrigues me why this problem appears. |
i think the iphone exposes that interface because it detects the macos host, but then the linux guest's kernel is failing on it for some reason. |
Thanx @mrmacete Just my case is that host is linux and guest is macos (you wrote it other way around) - not sure if it means the same problem. |
@mieszko4 see the pull request from @mrmacete: libimobiledevice/usbmuxd#91 I guess I should merge it... |
oh nice, thanks @nikias! I will will try to build it from that pr and see if I get any luck with this |
yes but @mieszko4, your scenario is actually the opposite if mine. did you try to just disable the usbmuxd service in the host? |
yes, you are right @mrmacete. |
I still did not have too much time to figure it out. So my idea is to build and run libimobiledevice/usbmuxd#91 on macOS x to see if the same problem happens. But I need to investigate how. |
Yes please |
I merged PR libimobiledevice/usbmuxd#91 which should solve the reboot on disconnect issue. |
Hey guys, I've finally took some time to play round with this and I've managed to resolve my problem. The solutionUse open source Some details: vmware - .vmx file
guest macOS - Catalina
host linux Mint
It was fun to play around - from my side we can close this ticket :) |
I have a Host Ubuntu 20.04 and MacOS Bigsur as Guest. The dialog: The specified device is in use by process:35552 /usr/sbin/usbmuxd on the host operating system. Continuing will detach the device from the Host operating system always popup. In Guest MacOS I got: What should I do? Any advices? |
Perhaps you have not disabled sip on the guest? |
I did disable SIP on Guest Big Sur already. |
The same for me on Fedora 33 |
May be related to libimobiledevice/usbmuxd#172 (i.e. we need new version of |
I've build HEAD of
So yeah, it shows less errors but still no success... |
Unfortunately libimobiledevice doesn't appear to be working with 10.3.1. Everything installed correctly and no obvious errors, and lsusb sees the device (although after first connect my system hangs for a few seconds), but idevicepair returns a "no device found" error (details below). More problematic, though, is that every time I unplug the iphone from my system, the iphone immediately reboots. Happens every time. I assume this is something very new (and very bad) with 10.3.1.
user@linux:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.2 LTS
Release: 16.04
Codename: xenial
user@linux:~$ lsusb
Bus 001 Device 004: ID 05ac:12a8 Apple, Inc. iPhone5/5C/5S/6
user@linux:~$ sudo systemctl status usbmuxd
● usbmuxd.service - Socket daemon for the usbmux protocol used by Apple devices
Loaded: loaded (/lib/systemd/system/usbmuxd.service; static; vendor preset: enabled)
Active: active (running) since Sat 2017-04-29 15:44:29 PDT; 2min 2s ago
Docs: man:usbmuxd(8)
Main PID: 1658 (usbmuxd)
Tasks: 2
Memory: 844.0K
CPU: 13ms
CGroup: /system.slice/usbmuxd.service
└─1658 /usr/local/sbin/usbmuxd --user usbmux --systemd
Apr 29 15:44:29 vmngplus systemd[1]: Started Socket daemon for the usbmux protocol used by Apple devices.
Apr 29 15:44:29 vmngplus usbmuxd[1658]: [16:13:29.643][3] usbmuxd v1.1.1 starting up
Apr 29 15:44:29 vmngplus usbmuxd[1658]: [16:13:29.647][3] Successfully dropped privileges to 'usbmux'
Apr 29 15:44:29 vmngplus usbmuxd[1658]: [16:13:29.657][3] Could not get old configuration descriptor for device 1-4: -5
Apr 29 15:44:51 vmngplus usbmuxd[1658]: [16:13:51.120][2] Could not get serial number for device 1-4: -7
Apr 29 15:44:51 vmngplus usbmuxd[1658]: [16:13:51.120][3] Initialization complete
Apr 29 15:44:51 vmngplus usbmuxd[1658]: [16:13:51.120][3] Enabled exit on SIGUSR1 if no devices are attached. Start a new instance with "--exit" to trigger.
user@linux:~$ idevicepair pair
No device found, is it plugged in?
Output from /var/log/syslog:
Sep 26 17:02:22 linux kernel: [ 208.325808] usb 1-2: new high-speed USB device number 3 using ehci-pci
Sep 26 17:02:22 linux kernel: [ 208.472043] usb 1-2: New USB device found, idVendor=05ac, idProduct=12a8
Sep 26 17:02:22 linux kernel: [ 208.472047] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Sep 26 17:02:22 linux kernel: [ 208.472049] usb 1-2: Product: iPhone
Sep 26 17:02:22 linux kernel: [ 208.472051] usb 1-2: Manufacturer: Apple Inc.
Sep 26 17:02:22 linux kernel: [ 208.472060] usb 1-2: SerialNumber: f0ddxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Sep 26 17:02:23 linux systemd[1]: Started Socket daemon for the usbmux protocol used by Apple devices.
Sep 26 17:02:23 linux usbmuxd[2143]: [17:02:23.440][3] usbmuxd v1.1.0 starting up
Sep 26 17:02:23 linux usbmuxd[2143]: [17:02:23.441][3] Successfully dropped privileges to 'usbmux'
Sep 26 17:02:23 linux usbmuxd[2143]: [17:02:23.445][3] Could not get old configuration descriptor for device 1-3: -5
Sep 26 17:02:23 linux usbmuxd[2143]: [17:02:23.471][3] Connecting to new device on location 0x10003 as ID 1
Sep 26 17:02:23 linux usbmuxd[2143]: [17:02:23.471][3] Initialization complete
Sep 26 17:02:23 linux usbmuxd[2143]: [17:02:23.471][3] Enabled exit on SIGUSR1 if no devices are attached. Start a new instance with "--exit" to trigger.
Sep 26 17:02:23 linux usbmuxd[2143]: [17:02:23.472][3] Connected to v2.0 device 1 on location 0x10003 with serial number f0ddxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Sep 26 17:02:23 linux kernel: [ 209.584713] ipheth 1-2:4.2: Apple iPhone USB Ethernet device attached
...and when I disconnect the device, output from syslog (and then iPhone hard reboots):
Apr 29 15:57:46 linux kernel: [ 1606.551241] usb 1-2: USB disconnect, device number 4
Apr 29 15:57:46 linux usbmuxd[1658]: [16:26:46.536][3] usbmuxd shutting down
Apr 29 15:57:46 linux usbmuxd[1658]: [16:26:46.637][3] Shutdown complete
The text was updated successfully, but these errors were encountered: