You are not logged in.

#1 2016-05-27 11:14:32

leandroaveiro
Member
From: Rochester, NY, USA
Registered: 2007-04-12
Posts: 45

USB repeatedly connects/disconnects Android on debug mode

Hello,

Recently I have started developing on Android platform with Android Studio. Everything has been working great for a few weeks, then out of the sudden I can't connect my smartphone via USB when debug mode is ON in the Android settings.
When that option is OFF, connection works normally.

The output of dmesg is:

[ 1036.237622] usb 2-1: new high-speed USB device number 43 using xhci_hcd
[ 1036.423038] usb 2-1: usbfs: process 1174 (ThreadWeaver::T) did not claim interface 0 before use
[ 1036.527669] usb 2-1: USB disconnect, device number 43
[ 1040.727849] usb 2-1: new high-speed USB device number 44 using xhci_hcd
[ 1040.913738] usb 2-1: usbfs: process 1181 (ThreadWeaver::T) did not claim interface 0 before use
[ 1041.017921] usb 2-1: USB disconnect, device number 44
[ 1046.214781] usb 2-1: new high-speed USB device number 45 using xhci_hcd
[ 1046.397788] usb 2-1: usbfs: process 1179 (ThreadWeaver::T) did not claim interface 0 before use
[ 1046.501526] usb 2-1: USB disconnect, device number 45
[ 1050.701643] usb 2-1: new high-speed USB device number 46 using xhci_hcd
[ 1050.880597] usb 2-1: usbfs: process 1175 (ThreadWeaver::T) did not claim interface 0 before use
[ 1050.985058] usb 2-1: USB disconnect, device number 46
[ 1056.181836] usb 2-1: new high-speed USB device number 47 using xhci_hcd
[ 1056.365220] usb 2-1: usbfs: process 1172 (ThreadWeaver::T) did not claim interface 0 before use
[ 1056.471964] usb 2-1: USB disconnect, device number 47
[ 1060.668753] usb 2-1: new high-speed USB device number 48 using xhci_hcd
[ 1060.854093] usb 2-1: usbfs: process 1180 (ThreadWeaver::T) did not claim interface 0 before use
[ 1060.958817] usb 2-1: USB disconnect, device number 48
[ 1066.158938] usb 2-1: new high-speed USB device number 49 using xhci_hcd
[ 1066.343874] usb 2-1: usbfs: process 1170 (ThreadWeaver::T) did not claim interface 0 before use
[ 1066.449004] usb 2-1: USB disconnect, device number 49
[ 1070.649184] usb 2-1: new high-speed USB device number 50 using xhci_hcd
[ 1070.838690] usb 2-1: usbfs: process 1171 (ThreadWeaver::T) did not claim interface 0 before use
[ 1070.942542] usb 2-1: USB disconnect, device number 50
[ 1076.146088] usb 2-1: new high-speed USB device number 51 using xhci_hcd
[ 1076.323991] usb 2-1: usbfs: process 1179 (ThreadWeaver::T) did not claim interface 0 before use
[ 1076.429511] usb 2-1: USB disconnect, device number 51
[ 1080.446224] usb 2-1: new high-speed USB device number 52 using xhci_hcd

Eventually, I did get something different, but then went back to normal outputs like above:

[  835.323251] usb 2-1: USB disconnect, device number 35
[  835.662208] usb 2-1: new high-speed USB device number 36 using xhci_hcd
[  835.841473] usb 2-1: usbfs: process 1175 (ThreadWeaver::T) did not claim interface 0 before use
[  835.999039] usb 2-1: reset high-speed USB device number 36 using xhci_hcd
[  836.176982] usb 2-1: usbfs: process 1175 (ThreadWeaver::T) did not claim interface 0 before use
[  836.282246] usb 2-1: USB disconnect, device number 36
[  841.482463] usb 2-1: new high-speed USB device number 37 using xhci_hcd
[  846.642670] usb 2-1: device descriptor read/64, error -110
[  861.906707] usb 2-1: device descriptor read/64, error -110                                                                                                                                     
[  862.170037] usb 2-1: new high-speed USB device number 38 using xhci_hcd
[  862.330059] usb 2-1: device descriptor read/64, error -71
[  862.593345] usb 2-1: device descriptor read/64, error -71                                                                                                                                      
[  862.856748] usb 2-1: new high-speed USB device number 39 using xhci_hcd
[  862.856873] usb 2-1: Device not responding to setup address.
[  863.060205] usb 2-1: Device not responding to setup address.
[  863.263414] usb 2-1: device not accepting address 39, error -71
[  863.423426] usb 2-1: new high-speed USB device number 40 using xhci_hcd
[  863.423539] usb 2-1: Device not responding to setup address.
[  863.626890] usb 2-1: Device not responding to setup address.
[  863.830107] usb 2-1: device not accepting address 40, error -71
[  863.830136] usb usb2-port1: unable to enumerate USB device

Any clues?

Thanks for the help!

Offline

#2 2016-05-27 11:20:41

leandroaveiro
Member
From: Rochester, NY, USA
Registered: 2007-04-12
Posts: 45

Re: USB repeatedly connects/disconnects Android on debug mode

Some extra information... I was able to connect the same phone on the same computer under Windows, in debug mode. And I was also able to connect another tablet on the same computer under Arch, also in debug mode.
So something is off between my phone and Arch.

Offline

#3 2016-05-31 17:29:27

leandroaveiro
Member
From: Rochester, NY, USA
Registered: 2007-04-12
Posts: 45

Re: USB repeatedly connects/disconnects Android on debug mode

OK, for anyone who might be having the same problem.

I noticed that while booting, the debug icon on the Android notification bar was always on. Only after logging into SDM and entering plasma the connection started to go and off again.
If I go off X, with Ctrl+Alt+F2 while keeping X running on F1, the connection is stable again. Even if I switch back to X.

If I pull the USB plug and reconnect again, the problem reappears, but it's solved again by going off X and then back in.

This only happens with my phone. My Android tablet shows no problem at all. I've done a factory reset on the phone without any success.

Is this new information helpful at all?

Thanks!

Offline

#4 2016-05-31 18:45:28

mich41
Member
Registered: 2012-06-22
Posts: 796

Re: USB repeatedly connects/disconnects Android on debug mode

Some part of KDE messes things up. Maybe it's trying to access it with MTP?

Can't say much more, I don't know how KDE works.

Offline

Board footer

Powered by FluxBB