D2s : adb connection issue

Hi, I try to connect to the phone using ADB,

I have several strange behavior :thinking: :

  • using one long usb-c - usb-c cable (2m) that works fine using a M.2 usb-c flash storage, connecting it to a usb-c or usb-A 3.0 port on dmesg:

[477552.908397] usb 1-2: new high-speed USB device number 106 using xhci_hcd
[477552.929903] usb 1-2: New USB device found, idVendor=04e8, idProduct=685d, bcdDevice= 4.00
[477552.929913] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[477552.929916] usb 1-2: Product: SM-N975F
[477552.929919] usb 1-2: Manufacturer: samsung
[477552.929921] usb 1-2: SerialNumber: RF8M73LKC5E
[477553.260362] usb 1-2: USB disconnect, device number 106
[477554.608406] usb usb1-port2: Cannot enable. Maybe the USB cable is bad?
[477555.571768] usb usb1-port2: Cannot enable. Maybe the USB cable is bad?
[477555.571824] usb usb1-port2: attempt power cycle
[477556.258415] usb 1-2: new high-speed USB device number 109 using xhci_hcd
[477556.275528] usb 1-2: device descriptor read/8, error -71
[477556.398805] usb 1-2: device descriptor read/8, error -71
[477557.468547] usb usb1-port2: Cannot enable. Maybe the USB cable is bad?
[477557.468775] usb usb1-port2: unable to enumerate USB device
[477558.611764] usb usb1-port2: Cannot enable. Maybe the USB cable is bad?
[477559.011734] usb 1-2: new high-speed USB device number 112 using xhci_hcd
[477559.156700] usb 1-2: New USB device found, idVendor=04e8, idProduct=685d, bcdDevice= 4.00
[477559.156706] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[477559.156708] usb 1-2: Product: SM-N975F
[477559.156709] usb 1-2: Manufacturer: samsung
[477559.156711] usb 1-2: SerialNumber: RF8M73LKC5E
[477559.469720] usb 1-2: USB disconnect, device number 112
[477560.878436] usb 1-2: new high-speed USB device number 113 using xhci_hcd
[477561.020044] usb 1-2: New USB device found, idVendor=04e8, idProduct=685d, bcdDevice= 4.00
[477561.020052] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[477561.020056] usb 1-2: Product: SM-N975F
[477561.020059] usb 1-2: Manufacturer: samsung
[477561.020061] usb 1-2: SerialNumber: RF8M73LKC5E
[477561.575872] usb 1-2: USB disconnect, device number 113
[477562.571740] usb 1-2: new high-speed USB device number 114 using xhci_hcd
[477562.713211] usb 1-2: New USB device found, idVendor=04e8, idProduct=685d, bcdDevice= 4.00
[477562.713218] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[477562.713221] usb 1-2: Product: SM-N975F
[477562.713224] usb 1-2: Manufacturer: samsung
[477562.713225] usb 1-2: SerialNumber: RF8M73LKC5E
[477564.934883] usb 1-2: USB disconnect, device number 114
[477566.288420] usb usb1-port2: Cannot enable. Maybe the USB cable is bad?
[477567.248606] usb usb1-port2: Cannot enable. Maybe the USB cable is bad?
[477567.248702] usb usb1-port2: attempt power cycle
[477567.665061] usb 1-2: new high-speed USB device number 117 using xhci_hcd
[477567.683590] usb 1-2: New USB device found, idVendor=04e8, idProduct=685d, bcdDevice= 4.00
[477567.683598] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[477567.683600] usb 1-2: Product: SM-N975F
[477567.683601] usb 1-2: Manufacturer: samsung
[477567.683603] usb 1-2: SerialNumber: RF8M73LKC5E
[477568.134891] usb 1-2: USB disconnect, device number 117
[477569.491751] usb usb1-port2: Cannot enable. Maybe the USB cable is bad?
[477570.451793] usb usb1-port2: Cannot enable. Maybe the USB cable is bad?
[477570.451846] usb usb1-port2: attempt power cycle
[477571.135097] usb 1-2: new high-speed USB device number 120 using xhci_hcd
[477571.135122] usb 1-2: Device not responding to setup address.
[477571.341766] usb 1-2: Device not responding to setup address.
[477571.548433] usb 1-2: device not accepting address 120, error -71
[477572.151719] usb 1-2: new high-speed USB device number 121 using xhci_hcd
[477572.169744] usb 1-2: New USB device found, idVendor=04e8, idProduct=685d, bcdDevice= 4.00
[477572.169753] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[477572.169756] usb 1-2: Product: SM-N975F
[477572.169758] usb 1-2: Manufacturer: samsung
[477572.169760] usb 1-2: SerialNumber: RF8M73LKC5E
[477572.830889] usb 1-2: USB disconnect, device number 121
[477574.181754] usb usb1-port2: Cannot enable. Maybe the USB cable is bad?
[477575.141875] usb usb1-port2: Cannot enable. Maybe the USB cable is bad?
[477575.141945] usb usb1-port2: attempt power cycle
[477576.178451] usb usb1-port2: Cannot enable. Maybe the USB cable is bad?
[477576.301732] usb 1-2: new high-speed USB device number 125 using xhci_hcd
[477576.320370] usb 1-2: New USB device found, idVendor=04e8, idProduct=685d, bcdDevice= 4.00
[477576.320381] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[477576.320384] usb 1-2: Product: SM-N975F
[477576.320386] usb 1-2: Manufacturer: samsung
[477576.320388] usb 1-2: SerialNumber: RF8M73LKC5E
[477576.348909] usb 1-2: USB disconnect, device number 125
[477577.705108] usb usb1-port2: Cannot enable. Maybe the USB cable is bad?
[477578.668495] usb usb1-port2: Cannot enable. Maybe the USB cable is bad?
[477578.668565] usb usb1-port2: attempt power cycle
[477579.705086] usb usb1-port2: Cannot enable. Maybe the USB cable is bad?
[477580.668409] usb usb1-port2: Cannot enable. Maybe the USB cable is bad?
[477580.668472] usb usb1-port2: unable to enumerate USB device
[477581.798465] usb usb1-port2: Cannot enable. Maybe the USB cable is bad?
[477582.195081] usb 1-2: new high-speed USB device number 7 using xhci_hcd
[477582.339838] usb 1-2: New USB device found, idVendor=04e8, idProduct=685d, bcdDevice= 4.00
[477582.339843] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[477582.339845] usb 1-2: Product: SM-N975F
[477582.339847] usb 1-2: Manufacturer: samsung
[477582.339848] usb 1-2: SerialNumber: RF8M73LKC5E
[477582.347578] usb 1-2: USB disconnect, device number 7
[477583.128383] usb 1-2: new high-speed USB device number 8 using xhci_hcd
[477583.272935] usb 1-2: New USB device found, idVendor=04e8, idProduct=685d, bcdDevice= 4.00
[477583.272942] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[477583.272945] usb 1-2: Product: SM-N975F
[477583.272948] usb 1-2: Manufacturer: samsung
[477583.272950] usb 1-2: SerialNumber: RF8M73LKC5E
[477583.358035] usb 1-2: USB disconnect, device number 8
[477583.661714] usb 1-2: new high-speed USB device number 9 using xhci_hcd
[477584.835085] usb usb1-port2: Cannot enable. Maybe the USB cable is bad?

on the phone, I see in notifications a dialog saying adb debugging is on appears and diseppears.

using a short usb-c (10cm) usb-c(plus adaptater) provided with the usb-c M.2 flash storage

  • connecting on the USB-A port, nothing on dmesg
  • connectign on usb-c port :

^[[A^[[B[478241.021668] usb usb1-port8: Cannot enable. Maybe the USB cable is bad?
[478241.984973] usb usb1-port8: Cannot enable. Maybe the USB cable is bad?
[478241.985033] usb usb1-port8: attempt power cycle
[478243.018314] usb usb1-port8: Cannot enable. Maybe the USB cable is bad?
[478243.984995] usb usb1-port8: Cannot enable. Maybe the USB cable is bad?
[478243.985081] usb usb1-port8: unable to enumerate USB device
[478245.118357] usb usb1-port8: Cannot enable. Maybe the USB cable is bad?

but not in loop like the other cable. but no popup on the phone, when I disconnected the cable, 2 popup appeared asking for acknowledge the PC fingerprint.
once the finger print acknowledged, I could run my adb command

tried to connect again with the long cable, no more success, but with the usb flash M.2 storage, both cable works perfectly whatever the port it is connected on (usb-A, usb-c)

best regards

Regain your privacy! Adopt /e/ the unGoogled mobile OS and online servicesphone

  • We are advised to run USB cables off a USB port soldered to the motherboard and avoid USB hubs.
  • A PC capable of output to USB C may often have an internal hub.
  • I associate xhci_hcd with USB3. Irregularities reported with USB3.
  • USB is touchy to “under voltage”; long cables risk power loss.

Are you able to eliminate the possibility of involvement of an internal hub and use a port soldered to the motherboard ?

ok… seems that once I managed to register the pc with the phone, the problem is no more even with the long cable…

the long cable is a 60W capable PD one, so I don’t think the power loss was the issue
tried both port today and done a lsusb -t to check were the phone is attached, this isn’t predictible… strangely

I have 2 root hubs, one 5000/6p and one 480/12p
on usb-c port :thinking: :

  • long cable : the device is on the 480/12p
  • short cable : the device is on the 5000/6p

on usb-A port :thinking: :

  • short cable : the device is on the 5000/6p
  • long cable : the device is on the 480/12p

on dmesg the “retry loop” are no more, when the connection fails there is only

[489008.180617] usb 2-2: new SuperSpeed USB device number 26 using xhci_hcd
[489008.198341] usb 2-2: New USB device found, idVendor=04e8, idProduct=685d, bcdDevice= 4.14
[489008.198350] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[489008.198353] usb 2-2: Product: SM-N975F
[489008.198355] usb 2-2: Manufacturer: samsung
[489008.198357] usb 2-2: SerialNumber: RF8M73LKC5E
[489010.205830] usb 2-2: USB disconnect, device number 26

the device is then immediatly disconnected, don’t know why… this occurs in “unusual setup” eg when i use the short usb-c-usb-c short cable not with it’s provided usb-a-usb-c adapter but another usb-a-usb-c adapter (that works with the long cable)…

I’ve no clue what happend yesterday, appart the fact the “adb usb debugging” procedure was not complete (I could only register the fingerprint when I disconnected the cable)

looks like if the adb server was causing the trouble, reseting the usb while it hasn’t the fingerprint not registered, but doing it so fast that the registration process never succeed…

This topic was automatically closed after 180 days. New replies are no longer allowed.