iPhone doesn't charge when plugged in after disconnect

Bug #1778767 reported by clayg
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
usbmuxd (Debian)
New
Unknown
usbmuxd (Ubuntu)
Fix Released
High
Unassigned
Bionic
Fix Released
High
Unassigned

Bug Description

* Impact
the usbmuxd service is not restarted after disconnecting/reconnecting a device, which means users need to reboot (or use the command line to activate the service) to have their iphone handled a second time in a session

* Test case
- open an Ubuntu/GNOME session and connect an iphone
- disconnect the device
- connect it again

-> it should be handled the second time like it was the first time

* Regression potential
The changes are in the udev rule, just make sure that idevices are correctly detected when connected

----------------------------

Plugging in the iPhone via usb will charge the iPhone after reboot, but after disconnect usbmuxd's systemctl service is inactive and does not start.

Problem and workaround documented here:

https://ubuntuforums.org/showthread.php?t=2376741&p=13779062#post13779062

Revision history for this message
clayg (clay-gerrard) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "add +RUN directive to rule" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
Leo Soares (leojrfs) wrote :

using the "39-usbmuxd.rules" file from cosmic (usbmux-1.1.1~git20180428.b95a0a0-1) solves the problem.

Debian bug:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=891507

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in usbmuxd (Ubuntu):
status: New → Confirmed
clayg (clay-gerrard)
summary: - iPhone doesn't chard when plugged in after disconnect
+ iPhone doesn't charge when plugged in after disconnect
Changed in usbmuxd (Debian):
status: Unknown → New
Revision history for this message
Leo Soares (leojrfs) wrote :

This patch solves the issue by backporting the udev rule from usbmuxd-1.1.1~git20180428.b95a0a0-1 (cosmic)

This is a debdiff for Bionic applicable to 1.1.0-2build1. I built this in pbuilder
and it builds successfully, and I installed it, the patch works as intended.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks Leo for the patch, looking at the upstream git log there were some other follow up fixes to the udev rules, I included those as well and uploaded as a SRU to bionic now

description: updated
Revision history for this message
Sebastien Bacher (seb128) wrote :

The issue was fixed in cosmic

Changed in usbmuxd (Ubuntu):
importance: Undecided → High
status: Confirmed → Fix Released
Changed in usbmuxd (Ubuntu Bionic):
importance: Undecided → High
status: New → Fix Committed
Revision history for this message
Leo Soares (leojrfs) wrote :

where can I track the progress of the fix until it gets released in bionic? i cant seem to find it in sru

Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello clayg, or anyone else affected,

Accepted usbmuxd into bionic-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/usbmuxd/1.1.0-2ubuntu0.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested and change the tag from verification-needed-bionic to verification-done-bionic. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-bionic. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

tags: added: verification-needed verification-needed-bionic
Revision history for this message
clayg (clay-gerrard) wrote :

new package works great

{{{
Nov 28 11:06:04 banana usbmuxd[6612]: [11:06:04.494][3] Removed device 1 on location 0x10006
Nov 28 11:06:04 banana usbmuxd[6612]: [11:06:04.534][3] usbmuxd shutting down
Nov 28 11:06:04 banana usbmuxd[6612]: [11:06:04.635][3] Shutdown complete
Nov 28 11:06:11 banana systemd[1]: Started Socket daemon for the usbmux protocol used by Apple devices.
Nov 28 11:06:11 banana usbmuxd[6899]: [11:06:11.047][3] usbmuxd v1.1.0 starting up
Nov 28 11:06:11 banana usbmuxd[6899]: [11:06:11.050][3] Successfully dropped privileges to 'usbmux'
Nov 28 11:06:11 banana usbmuxd[6899]: [11:06:11.054][3] Could not get old configuration descriptor for device 1-7: -5
Nov 28 11:06:11 banana usbmuxd[6899]: [11:06:11.062][3] Connecting to new device on location 0x10007 as ID 1
Nov 28 11:06:11 banana usbmuxd[6899]: [11:06:11.062][3] Initialization complete
Nov 28 11:06:11 banana usbmuxd[6899]: [11:06:11.062][3] Enabled exit on SIGUSR1 if no devices are attached. Start a new instance with "--exit" to trigger.
Nov 28 11:06:11 banana usbmuxd[6899]: [11:06:11.063][3] Connected to v2.0 device 1 on location 0x10007 with serial number a52283aea517ba99dbffee3bbeaee0cc2a244ee2
Nov 28 11:06:18 banana usbmuxd[6899]: [11:06:18.277][3] Removed device 1 on location 0x10007
Nov 28 11:06:18 banana usbmuxd[6899]: [11:06:18.326][3] usbmuxd shutting down
Nov 28 11:06:18 banana usbmuxd[6899]: [11:06:18.427][3] Shutdown complete
Nov 28 11:06:23 banana systemd[1]: Started Socket daemon for the usbmux protocol used by Apple devices.
Nov 28 11:06:23 banana usbmuxd[7049]: [11:06:23.757][3] usbmuxd v1.1.0 starting up
Nov 28 11:06:23 banana usbmuxd[7049]: [11:06:23.759][3] Successfully dropped privileges to 'usbmux'
Nov 28 11:06:23 banana usbmuxd[7049]: [11:06:23.766][3] Could not get old configuration descriptor for device 1-8: -5
Nov 28 11:06:23 banana usbmuxd[7049]: [11:06:23.774][3] Connecting to new device on location 0x10008 as ID 1
Nov 28 11:06:23 banana usbmuxd[7049]: [11:06:23.774][3] Initialization complete
Nov 28 11:06:23 banana usbmuxd[7049]: [11:06:23.774][3] Enabled exit on SIGUSR1 if no devices are attached. Start a new instance with "--exit" to trigger.
Nov 28 11:06:23 banana usbmuxd[7049]: [11:06:23.774][3] Connected to v2.0 device 1 on location 0x10008 with serial number a52283aea517ba99dbffee3bbeaee0cc2a244ee2
}}}

Revision history for this message
Will Cooke (willcooke) wrote :

Installed the version from proposed:

$ apt-cache policy usbmuxd
usbmuxd:
  Installed: 1.1.0-2ubuntu0.1
  Candidate: 1.1.0-2ubuntu0.1
  Version table:
 *** 1.1.0-2ubuntu0.1 500
        500 http://archive.ubuntu.com/ubuntu bionic-proposed/main amd64 Packages
        100 /var/lib/dpkg/status
     1.1.0-2build1 500
        500 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages

Plugged in my phone, it asked me to unlock which I did, and then it started charging.
Unplugged the phone.
Plugged the phone back in again and it continued charging.
Repeated this process 3 times and it worked.

Marking as verification done.

tags: added: verification-done-bionic
removed: verification-needed-bionic
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package usbmuxd - 1.1.0-2ubuntu0.1

---------------
usbmuxd (1.1.0-2ubuntu0.1) bionic; urgency=medium

  * debian/patches/git_events_tagging.patch,
    debian/patches/git_events_filter.patch,
    debian/patches/git_bind_events.patch:
    - backport some fixes for missing udev events on new kernel which were
      leading to the service not restarting after disconnecting and
      reconnecting a device. Thanks Leo Soares for suggesting a first
      version of the backport (lp: #1778767)

 -- Sebastien Bacher <email address hidden> Thu, 22 Nov 2018 16:37:58 +0100

Changed in usbmuxd (Ubuntu Bionic):
status: Fix Committed → Fix Released
Revision history for this message
Brian Murray (brian-murray) wrote : Update Released

The verification of the Stable Release Update for usbmuxd has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.