Open kloczek opened 3 years ago
I have this exact problem @kloczek, did you manage to fix this?
Nope ..
does the directory exist? does usbmuxd have privileges to read and write files to that folder?
also (althought i don't think, it will be the case), check if there are no connect/disconnect device message in the log with same frequency as those error
The directory does exist but the file is not created or nonexistent @mexmer
that's why i'm asking about permission, there is no problem, if file doesn't exits, usbmuxd will create new one, but only if it can create it.
also i tried to reproduce behavior you have observed, but only way i could do that was calling repeatedly ideviceinfo on unpaired device, can you check, there is no other sofware running, that could try to access device after plugin? might be desktop app or something.
this error shows in log, when ReadPairingRecord command is sent to usbmuxd, and that command is invoked when you want to communicate with connected device. so it looks like some process on your computer is trying to obtain device info from unpaired device.
This is part of my journalctl for usbmuxd:
Dec 04 19:31:37 evilscript-pc systemd[1]: Started Socket daemon for the usbmux protocol used by Apple devices.
Dec 04 19:31:37 evilscript-pc usbmuxd[47367]: [19:31:37.001][3] usbmuxd v1.1.1-35-gbccae83 starting up
Dec 04 19:31:37 evilscript-pc usbmuxd[47367]: [19:31:37.001][3] Successfully dropped privileges to 'usbmux'
Dec 04 19:31:37 evilscript-pc usbmuxd[47367]: [19:31:37.001][3] Using libusb 1.0.25
Dec 04 19:31:37 evilscript-pc usbmuxd[47367]: libusb: warning [op_get_configuration] device unconfigured
Dec 04 19:31:37 evilscript-pc usbmuxd[47367]: [19:31:37.048][3] Initialization complete
Dec 04 19:31:37 evilscript-pc usbmuxd[47367]: [19:31:37.048][3] Enabled exit on SIGUSR1 if no devices are attached. Start a new i>
Dec 04 19:31:37 evilscript-pc usbmuxd[47367]: [19:31:37.057][3] Connecting to new device on location 0x1002e as ID 1
Dec 04 19:31:37 evilscript-pc usbmuxd[47367]: [19:31:37.057][3] Connected to v2.0 device 1 on location 0x1002e with serial number>
Dec 04 19:31:37 evilscript-pc usbmuxd[47367]: [19:31:37.368][1] ERROR: Failed to read '/var/lib/lockdown/00008110-001C20223E29401>
Dec 04 19:31:37 evilscript-pc usbmuxd[47367]: [19:31:37.678][3] Removed device 1 on location 0x1002e
Dec 04 19:31:37 evilscript-pc usbmuxd[47367]: [19:31:37.681][3] usbmuxd shutting down
Dec 04 19:31:37 evilscript-pc usbmuxd[47367]: [19:31:37.782][3] Shutdown complete
Dec 04 19:31:37 evilscript-pc systemd[1]: usbmuxd.service: Deactivated successfully.
Dec 04 19:31:43 evilscript-pc systemd[1]: Started Socket daemon for the usbmux protocol used by Apple devices.
Dec 04 19:31:43 evilscript-pc usbmuxd[47404]: [19:31:43.624][3] usbmuxd v1.1.1-35-gbccae83 starting up
Dec 04 19:31:43 evilscript-pc usbmuxd[47404]: [19:31:43.625][3] Successfully dropped privileges to 'usbmux'
Dec 04 19:31:43 evilscript-pc usbmuxd[47404]: [19:31:43.625][3] Using libusb 1.0.25
Dec 04 19:31:43 evilscript-pc usbmuxd[47404]: [19:31:43.627][3] Initialization complete
Dec 04 19:31:43 evilscript-pc usbmuxd[47404]: [19:31:43.627][3] Enabled exit on SIGUSR1 if no devices are attached. Start a new i>
Dec 04 23:32:45 evilscript-pc systemd[1]: Stopping Socket daemon for the usbmux protocol used by Apple devices...
Dec 04 23:32:45 evilscript-pc usbmuxd[47404]: [23:32:45.568][3] Caught signal 15, exiting
Dec 04 23:32:45 evilscript-pc usbmuxd[47404]: [23:32:45.568][3] usbmuxd shutting down
Dec 04 23:32:45 evilscript-pc usbmuxd[47404]: [23:32:45.669][3] Shutdown complete
Dec 04 23:32:45 evilscript-pc systemd[1]: usbmuxd.service: Deactivated successfully.
I'm running on the latest PoP_OS! My laptop works correctly, my pc is the culprit of the log above. They have the same set of applications.
Here's a video of what happens + journalctl -f when connecting the iPhone 14:
(alternative download link: https://oshi.at/pGkR (open it in VLC))
@mexmer
looks to me, there is issue either with your usb or might be also wrong cable, but as you can see from log, phone is connected, then connection is powered down (look at mfi_charge messages), disconnects, then connects again.
might be also issue with upowerd, try connecting phone again, after you disable it.
while i can't rule out problem with usbmuxd, disconnection of device from usb are not caused by usbmuxd, for some reason connection between phone and your computer is powering up and down, which causes cycling of usbmuxd (i suppose you running usbmuxd in systemd mode)
still first thing i would try to rule out hardware failure, so check if iphone connector is clean, try different cable, try different computer usb port.
I had the same problem, in my case the culprit was upowerd, as @mexmer suggested. After killing that service and reconnecting the phone, everything worked fine.
@smartmic :tada: :tada: I've been trying to get this to work for years. I had some difficulty because I think there is also a physical hardware issue with the phone's connection. But with some care to hold the cable right so that it would charge, and care to kill upowerd first, (and make sure it didn't auto-restart, which it was also doing), I can also confirm stopping upowerd did the trick!
Just aftre restart service: