Iphone not charging after reconnect

  • Issue occours both in Tubleweed and Leap 42.3
  • Tested on iPhone 5s and 6s

When I plug these iphones on any USB port for the first time, its charging all right.

If i disconect phone from cable (or remove the cable from usb port) and reconnect on the same port, phone will not charge!

It only charges when i change to another usb port.

its annoying because if there nno more “clean” usb port available for phone charge, i need to restart the computer.

#1 - Plug phone for first time (Charging OK):

2019-07-16T15:41:49.455701-03:00 linux-n7z7 kernel:  1107.107510] usb 1-1.3.1: new high-speed USB device number 13 using xhci_hcd
2019-07-16T15:41:49.555632-03:00 linux-n7z7 kernel:  1107.208554] usb 1-1.3.1: New USB device found, idVendor=05ac, idProduct=12a8, bcdDevice= 8.01
2019-07-16T15:41:49.555687-03:00 linux-n7z7 kernel:  1107.208559] usb 1-1.3.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
2019-07-16T15:41:49.555693-03:00 linux-n7z7 kernel:  1107.208563] usb 1-1.3.1: Product: iPhone
2019-07-16T15:41:49.555697-03:00 linux-n7z7 kernel:  1107.208565] usb 1-1.3.1: Manufacturer: Apple Inc.
2019-07-16T15:41:49.555700-03:00 linux-n7z7 kernel:  1107.208568] usb 1-1.3.1: SerialNumber: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
2019-07-16T15:41:49.574576-03:00 linux-n7z7 mtp-probe: checking bus 1, device 13: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.3/1-1.3.1"
2019-07-16T15:41:49.574909-03:00 linux-n7z7 mtp-probe: bus: 1, device: 13 was not an MTP device
2019-07-16T15:41:50.178432-03:00 linux-n7z7 mtp-probe: checking bus 1, device 13: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.3/1-1.3.1"
2019-07-16T15:41:50.179229-03:00 linux-n7z7 mtp-probe: bus: 1, device: 13 was not an MTP device
2019-07-16T15:41:50.183139-03:00 linux-n7z7 systemd[1]: Started Socket daemon for the usbmux protocol used by Apple devices.
2019-07-16T15:41:50.188538-03:00 linux-n7z7 usbmuxd[8528]: [15:41:50.187][3] usbmuxd v1.1.0 starting up
2019-07-16T15:41:50.191354-03:00 linux-n7z7 org_kde_powerdevil[6453]: powerdevil: Battery with UDI "/org/freedesktop/UPower/devices/phone_1_1x3x1" was detected
2019-07-16T15:41:50.193718-03:00 linux-n7z7 usbmuxd[8528]: [15:41:50.192][3] Successfully dropped privileges to 'usbmux'
2019-07-16T15:41:50.193835-03:00 linux-n7z7 org_kde_powerdevil[6453]: UdevQt: unhandled device action "bind"
2019-07-16T15:41:50.198230-03:00 linux-n7z7 baloo_file[6362]: UdevQt: unhandled device action "bind"
2019-07-16T15:41:50.198799-03:00 linux-n7z7 usbmuxd[8528]: [15:41:50.198][3] Could not get old configuration descriptor for device 1-13: -5
2019-07-16T15:41:50.212077-03:00 linux-n7z7 kernel:  1107.865276] ipheth 1-1.3.1:4.2: Apple iPhone USB Ethernet device attached
2019-07-16T15:41:50.217354-03:00 linux-n7z7 usbmuxd[8528]: [15:41:50.217][3] Connecting to new device on location 0x1000d as ID 1
2019-07-16T15:41:50.217460-03:00 linux-n7z7 usbmuxd[8528]: [15:41:50.217][3] Initialization complete
2019-07-16T15:41:50.217513-03:00 linux-n7z7 usbmuxd[8528]: [15:41:50.217][3] Enabled exit on SIGUSR1 if no devices are attached. Start a new instance with "--exit" to trigger.
2019-07-16T15:41:50.217567-03:00 linux-n7z7 usbmuxd[8528]: [15:41:50.217][3] Connected to v2.0 device 1 on location 0x1000d with serial number XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
2019-07-16T15:41:50.243122-03:00 linux-n7z7 systemd-udevd[8532]: Using default interface naming scheme 'v240'.
2019-07-16T15:41:50.244083-03:00 linux-n7z7 systemd-udevd[8532]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
2019-07-16T15:41:50.266592-03:00 linux-n7z7 plasmashell[6366]: UdevQt: unhandled device action "bind"
2019-07-16T15:41:50.283260-03:00 linux-n7z7 systemd[1]: Starting Generate issue file for login session...
2019-07-16T15:41:50.324135-03:00 linux-n7z7 plasmashell[6366]: UdevQt: unhandled device action "bind"
2019-07-16T15:41:50.329652-03:00 linux-n7z7 baloo_file[6362]: UdevQt: unhandled device action "bind"
2019-07-16T15:41:50.363378-03:00 linux-n7z7 dbus-daemon[1430]: [system] Activating via systemd: service name='org.freedesktop.resolve1' unit='dbus-org.freedesktop.resolve1.service' requested by ':1.7' (uid=0 pid=1612 comm="/usr/sbin/NetworkManager --no-daemon ")
2019-07-16T15:41:50.363832-03:00 linux-n7z7 dbus-daemon[1430]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.resolve1.service': Unit dbus-org.freedesktop.resolve1.service not found.
2019-07-16T15:41:50.363930-03:00 linux-n7z7 plasmashell[6366]: UdevQt: unhandled device action "bind"
2019-07-16T15:41:50.364022-03:00 linux-n7z7 org_kde_powerdevil[6453]: UdevQt: unhandled device action "bind"
2019-07-16T15:41:50.364090-03:00 linux-n7z7 baloo_file[6362]: UdevQt: unhandled device action "bind"
2019-07-16T15:41:50.384825-03:00 linux-n7z7 systemd[1]: issue-generator.service: Succeeded.
2019-07-16T15:41:50.385355-03:00 linux-n7z7 systemd[1]: Started Generate issue file for login session.
2019-07-16T15:41:51.190295-03:00 linux-n7z7 gvfs-afc-volume-monitor[5043]: creating volume for device uuid 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
2019-07-16T15:41:51.364477-03:00 linux-n7z7 dbus-daemon[1430]: [system] Activating via systemd: service name='org.freedesktop.resolve1' unit='dbus-org.freedesktop.resolve1.service' requested by ':1.7' (uid=0 pid=1612 comm="/usr/sbin/NetworkManager --no-daemon ")
2019-07-16T15:41:51.364840-03:00 linux-n7z7 dbus-daemon[1430]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.resolve1.service': Unit dbus-org.freedesktop.resolve1.service not found.
2019-07-16T15:41:52.362792-03:00 linux-n7z7 dbus-daemon[1430]: [system] Activating via systemd: service name='org.freedesktop.resolve1' unit='dbus-org.freedesktop.resolve1.service' requested by ':1.7' (uid=0 pid=1612 comm="/usr/sbin/NetworkManager --no-daemon ")
2019-07-16T15:41:52.363712-03:00 linux-n7z7 dbus-daemon[1430]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.resolve1.service': Unit dbus-org.freedesktop.resolve1.service not found.
2019-07-16T15:41:52.856296-03:00 linux-n7z7 ModemManager[1403]: <info>  Couldn't check support for device '/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.3/1-1.3.1': not supported by any plugin
2019-07-16T15:41:53.363352-03:00 linux-n7z7 dbus-daemon[1430]: [system] Activating via systemd: service name='org.freedesktop.resolve1' unit='dbus-org.freedesktop.resolve1.service' requested by ':1.7' (uid=0 pid=1612 comm="/usr/sbin/NetworkManager --no-daemon ")
2019-07-16T15:41:53.363737-03:00 linux-n7z7 dbus-daemon[1430]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.resolve1.service': Unit dbus-org.freedesktop.resolve1.service not found.
2019-07-16T15:41:54.936803-03:00 linux-n7z7 usbmuxd[8528]: [15:41:54.935][1] config_get_device_record: failed to read '/var/lib/lockdown/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.plist': No such file or directory
2019-07-16T15:41:56.363501-03:00 linux-n7z7 dbus-daemon[1430]: [system] Activating via systemd: service name='org.freedesktop.resolve1' unit='dbus-org.freedesktop.resolve1.service' requested by ':1.7' (uid=0 pid=1612 comm="/usr/sbin/NetworkManager --no-daemon ")
2019-07-16T15:41:56.364022-03:00 linux-n7z7 dbus-daemon[1430]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.resolve1.service': Unit dbus-org.freedesktop.resolve1.service not found.

#2 Disconecting phone

2019-07-16T15:42:56.444807-03:00 linux-n7z7 usbmuxd[8528]: [15:42:56.443][3] Removed device 1 on location 0x1000d
2019-07-16T15:42:56.446233-03:00 linux-n7z7 gvfs-afc-volume-monitor[5043]: removing volume for device uuid 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
2019-07-16T15:42:56.449978-03:00 linux-n7z7 org_kde_powerdevil[6453]: UdevQt: unhandled device action "unbind"
2019-07-16T15:42:56.450445-03:00 linux-n7z7 baloo_file[6362]: UdevQt: unhandled device action "unbind"
2019-07-16T15:42:56.576069-03:00 linux-n7z7 kernel:  1174.226266] usb 1-1.3.1: USB disconnect, device number 13
2019-07-16T15:42:56.586504-03:00 linux-n7z7 usbmuxd[8528]: [15:42:56.586][3] usbmuxd shutting down
2019-07-16T15:42:56.627639-03:00 linux-n7z7 kernel:  1174.279301] ipheth 1-1.3.1:4.2: Apple iPhone USB Ethernet now disconnected
2019-07-16T15:42:56.643954-03:00 linux-n7z7 plasmashell[6366]: file:///usr/share/plasma/plasmoids/org.kde.plasma.devicenotifier/contents/ui/FullRepresentation.qml:173: TypeError: Value is undefined and could not be converted to an object
2019-07-16T15:42:56.645687-03:00 linux-n7z7 plasmashell[6366]: UdevQt: unhandled device action "unbind"
2019-07-16T15:42:56.645888-03:00 linux-n7z7 baloo_file[6362]: UdevQt: unhandled device action "unbind"
2019-07-16T15:42:56.657936-03:00 linux-n7z7 systemd[1]: Starting Generate issue file for login session...
2019-07-16T15:42:56.661895-03:00 linux-n7z7 org_kde_powerdevil[6453]: UdevQt: unhandled device action "unbind"
2019-07-16T15:42:56.662025-03:00 linux-n7z7 plasmashell[6366]: UdevQt: unhandled device action "unbind"
2019-07-16T15:42:56.662289-03:00 linux-n7z7 baloo_file[6362]: UdevQt: unhandled device action "unbind"
2019-07-16T15:42:56.682371-03:00 linux-n7z7 plasmashell[6366]: file:///usr/share/plasma/plasmoids/org.kde.plasma.devicenotifier/contents/ui/FullRepresentation.qml:173: TypeError: Value is undefined and could not be converted to an object
2019-07-16T15:42:56.682704-03:00 linux-n7z7 org_kde_powerdevil[6453]: QObject::disconnect: Unexpected null parameter
2019-07-16T15:42:56.682757-03:00 linux-n7z7 org_kde_powerdevil[6453]: QObject::disconnect: Unexpected null parameter
2019-07-16T15:42:56.682810-03:00 linux-n7z7 org_kde_powerdevil[6453]: powerdevil: Battery with UDI "/org/freedesktop/UPower/devices/phone_1_1x3x1" has been removed
2019-07-16T15:42:56.687339-03:00 linux-n7z7 usbmuxd[8528]: [15:42:56.687][3] Shutdown complete
2019-07-16T15:42:56.689532-03:00 linux-n7z7 systemd[1]: usbmuxd.service: Succeeded.
2019-07-16T15:42:56.711144-03:00 linux-n7z7 systemd[1]: issue-generator.service: Succeeded.
2019-07-16T15:42:56.712027-03:00 linux-n7z7 systemd[1]: Started Generate issue file for login session.
2019-07-16T15:42:56.950240-03:00 linux-n7z7 org_kde_powerdevil[6453]: powerdevil: Scheduling inhibition from ":1.144" "/usr/bin/google-chrome-stable" with cookie 5 and reason "Playing audio"
2019-07-16T15:42:57.299615-03:00 linux-n7z7 kernel:  1174.951158] usb 1-1.3.1: new high-speed USB device number 14 using xhci_hcd
2019-07-16T15:42:57.399645-03:00 linux-n7z7 kernel:  1175.052665] usb 1-1.3.1: New USB device found, idVendor=05ac, idProduct=12a8, bcdDevice= 8.01
2019-07-16T15:42:57.399673-03:00 linux-n7z7 kernel:  1175.052670] usb 1-1.3.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
2019-07-16T15:42:57.399687-03:00 linux-n7z7 kernel:  1175.052673] usb 1-1.3.1: Product: iPhone
2019-07-16T15:42:57.399691-03:00 linux-n7z7 kernel:  1175.052676] usb 1-1.3.1: Manufacturer: Apple Inc.
2019-07-16T15:42:57.399695-03:00 linux-n7z7 kernel:  1175.052678] usb 1-1.3.1: SerialNumber: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
2019-07-16T15:42:57.413613-03:00 linux-n7z7 mtp-probe: checking bus 1, device 14: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.3/1-1.3.1"
2019-07-16T15:42:57.413925-03:00 linux-n7z7 mtp-probe: bus: 1, device: 14 was not an MTP device
2019-07-16T15:42:57.595635-03:00 linux-n7z7 kernel:  1175.250258] usb 1-1.3.1: USB disconnect, device number 14
2019-07-16T15:42:58.021151-03:00 linux-n7z7 org_kde_powerdevil[6453]: powerdevil: Battery with UDI "/org/freedesktop/UPower/devices/phone_1_1x3x1" was detected
2019-07-16T15:42:58.021791-03:00 linux-n7z7 baloo_file[6362]: UdevQt: unhandled device action "bind"
2019-07-16T15:42:58.021924-03:00 linux-n7z7 baloo_file[6362]: UdevQt: unhandled device action "unbind"
2019-07-16T15:42:58.024199-03:00 linux-n7z7 org_kde_powerdevil[6453]: UdevQt: unhandled device action "bind"
2019-07-16T15:42:58.024351-03:00 linux-n7z7 org_kde_powerdevil[6453]: UdevQt: unhandled device action "unbind"
2019-07-16T15:42:58.032875-03:00 linux-n7z7 plasmashell[6366]: UdevQt: unhandled device action "bind"
2019-07-16T15:42:58.033019-03:00 linux-n7z7 plasmashell[6366]: UdevQt: unhandled device action "unbind"
2019-07-16T15:42:58.035901-03:00 linux-n7z7 org_kde_powerdevil[6453]: QObject::disconnect: Unexpected null parameter
2019-07-16T15:42:58.036089-03:00 linux-n7z7 org_kde_powerdevil[6453]: powerdevil: Battery with UDI "/org/freedesktop/UPower/devices/phone_1_1x3x1" has been removed
2019-07-16T15:42:59.285604-03:00 linux-n7z7 org_kde_powerdevil[6453]: powerdevil: Releasing inhibition with cookie  5
2019-07-16T15:42:59.285983-03:00 linux-n7z7 org_kde_powerdevil[6453]: powerdevil: It was only scheduled for inhibition but not enforced yet, just discarding it
2019-07-16T15:43:01.927411-03:00 linux-n7z7 org_kde_powerdevil[6453]: powerdevil: Enforcing inhibition from ":1.144" "/usr/bin/google-chrome-stable" with cookie 5 and reason "Playing audio"
2019-07-16T15:43:01.927779-03:00 linux-n7z7 org_kde_powerdevil[6453]: powerdevil: By the time we wanted to enforce the inhibition it was already gone; discarding it

#3 - Reconnect on same usb port (charging not working)

2019-07-16T15:43:29.291713-03:00 linux-n7z7 kernel:  1206.944557] usb 1-1.3.1: new high-speed USB device number 15 using xhci_hcd
2019-07-16T15:43:29.391616-03:00 linux-n7z7 kernel:  1207.046363] usb 1-1.3.1: New USB device found, idVendor=05ac, idProduct=12a8, bcdDevice= 8.01
2019-07-16T15:43:29.391644-03:00 linux-n7z7 kernel:  1207.046370] usb 1-1.3.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
2019-07-16T15:43:29.391648-03:00 linux-n7z7 kernel:  1207.046373] usb 1-1.3.1: Product: iPhone
2019-07-16T15:43:29.391650-03:00 linux-n7z7 kernel:  1207.046376] usb 1-1.3.1: Manufacturer: Apple Inc.
2019-07-16T15:43:29.391653-03:00 linux-n7z7 kernel:  1207.046377] usb 1-1.3.1: SerialNumber: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
2019-07-16T15:43:29.406262-03:00 linux-n7z7 mtp-probe: checking bus 1, device 15: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.3/1-1.3.1"
2019-07-16T15:43:29.406547-03:00 linux-n7z7 mtp-probe: bus: 1, device: 15 was not an MTP device
2019-07-16T15:43:30.029655-03:00 linux-n7z7 mtp-probe: checking bus 1, device 15: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.3/1-1.3.1"
2019-07-16T15:43:30.029807-03:00 linux-n7z7 mtp-probe: bus: 1, device: 15 was not an MTP device
2019-07-16T15:43:30.044650-03:00 linux-n7z7 org_kde_powerdevil[6453]: powerdevil: Battery with UDI "/org/freedesktop/UPower/devices/phone_1_1x3x1" was detected
2019-07-16T15:43:30.054366-03:00 linux-n7z7 baloo_file[6362]: UdevQt: unhandled device action "bind"
2019-07-16T15:43:30.055290-03:00 linux-n7z7 org_kde_powerdevil[6453]: UdevQt: unhandled device action "bind"
2019-07-16T15:43:30.094395-03:00 linux-n7z7 plasmashell[6366]: UdevQt: unhandled device action "bind"

Thanks in advance for any help! =)

Hi and welcome to the Forum :slight_smile:
With the phone unplugged, if you open a terminal and switch to root user and run;


usbmuxd

Now plug the phone back in, does it start charging again? Umount the device via the GUI (dolphin?), plug in again. all working?

wow, thank you very much! it works like a charm!

service usbmuxd was dead btw

#systemctl status usbmuxd.service  
● usbmuxd.service - Socket daemon for the usbmux protocol used by Apple devices 
  Loaded: loaded (/usr/lib/systemd/system/usbmuxd.service; static; vendor preset: disabled) 
  Active: inactive (dead) since Tue 2019-07-16 20:54:51 -03; 43min ago 
 Process: 10712 ExecStart=/usr/sbin/usbmuxd --user usbmux --systemd (code=exited, status=0/SUCCESS) 
Main PID: 10712 (code=exited, status=0/SUCCESS) 

Jul 16 20:54:27 linux-n7z7 usbmuxd[10712]: [20:54:27.934][1] config_get_device_record: failed to read '/var/lib/lockdown/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.plist': No such file or direc> 
Jul 16 20:54:32 linux-n7z7 usbmuxd[10712]: [20:54:32.934][1] config_get_device_record: failed to read '/var/lib/lockdown/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.plist': No such file or direc> 
Jul 16 20:54:37 linux-n7z7 usbmuxd[10712]: [20:54:37.935][1] config_get_device_record: failed to read '/var/lib/lockdown/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.plist': No such file or direc> 
Jul 16 20:54:42 linux-n7z7 usbmuxd[10712]: [20:54:42.939][1] config_get_device_record: failed to read '/var/lib/lockdown/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.plist': No such file or direc> 
Jul 16 20:54:47 linux-n7z7 usbmuxd[10712]: [20:54:47.932][1] config_get_device_record: failed to read '/var/lib/lockdown/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.plist': No such file or direc> 
Jul 16 20:54:50 linux-n7z7 usbmuxd[10712]: [20:54:50.882][3] Removed device 1 on location 0x10011 
Jul 16 20:54:50 linux-n7z7 usbmuxd[10712]: [20:54:50.956][2] Could not get serial number for device 1-17: -1 
Jul 16 20:54:51 linux-n7z7 usbmuxd[10712]: [20:54:51.020][3] usbmuxd shutting down 
Jul 16 20:54:51 linux-n7z7 usbmuxd[10712]: [20:54:51.122][3] Shutdown complete 
Jul 16 20:54:51 linux-n7z7 systemd[1]: usbmuxd.service: Succeeded.

it seems default service for usbmuxd is broken!

#systemctl enable usbmuxd 
The unit files have no installation config (WantedBy=, RequiredBy=, Also=, 
Alias= settings in the [Install] section, and DefaultInstance= for template 
units). This means they are not meant to be enabled using systemctl. 
 
Possible reasons for having this kind of units are: 
• A unit may be statically enabled by being symlinked from another unit's 
 .wants/ or .requires/ directory. 
• A unit's purpose may be to act as a helper for some other unit which has 
 a requirement dependency on it. 
• A unit may be started when needed via activation (socket, path, timer, 
 D-Bus, udev, scripted systemctl call, ...). 
• In case of template units, the unit is meant to be enabled with some 
 instance name specified.

Hi
There is something up with the service it would seem… AFAIK it’s meant to be triggered by a udev rule, it’s worth a bug report;

openSUSE:Submitting bug reports - openSUSE

If you start the service, once the phone is unplugged it dies and doesn’t trigger when plugged in again…

Thanks again!

Bug Report submited:
https://bugzilla.opensuse.org/show_bug.cgi?id=1141879

I will workarround it with supervisord. (In Brazil, we call it “Extreme Go Horse”)
https://translate.google.com.br/translate?hl=pt-BR&sl=auto&tl=en&u=http%3A%2F%2Fsou.gohorseprocess.com.br%2Fextreme-go-horse-xgh%2F

i know Its not the best solution, but its working like a charm hahaha

# crontab -l
PATH="/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/bin"

*/5 * * * * ps aux |grep -v grep |grep -q usbmuxd || usbmuxd