Article 581NW Unstable USB connection to Android device

Unstable USB connection to Android device

by
satur9nine
from LinuxQuestions.org on (#581NW)
I am Android developer so I use my linux machine to program Android devices which means using adb and fastboot commands frequently to connect to Android devices via USB.

I recently got a new machine and I'm encountering errors when using the fastboot command, whereas the adb command works fine.

I'm running Ubuntu 20.04 on a machine with:
PRIME X570-PRO
AMD Ryzen 9 3900X 12-Core Processor

I've got the latest Asus BIOS installed build 2606.
Linux kernel is Linux version 5.4.0-47-generic (buildd@lcy01-amd64-014) (gcc version 9.3.0 (Ubuntu 9.3.0-10ubuntu2)) #51-Ubuntu SMP Fri Sep 4 19:50:52 UTC 2020

The errors are very strange, when I run a fastboot command it appears to work 50% of the time, but eventually it appears to cause Linux to disconnect the device:
Code:17:44:19-jacob:~$ fastboot getvar current-slot
getvar:current-slot FAILED (remote: 'unknown command')
Finished. Total time: 0.000s
17:44:19-jacob:~$ fastboot getvar current-slot
current-slot: a
Finished. Total time: 0.043s
17:44:20-jacob:~$ fastboot getvar current-slot
getvar:current-slot FAILED (remote: 'unknown command')
Finished. Total time: 0.000s
17:44:20-jacob:~$ fastboot getvar current-slot
current-slot: a
Finished. Total time: 0.043s
17:44:20-jacob:~$ fastboot getvar current-slot
getvar:current-slot FAILED (remote: 'unknown command')
Finished. Total time: 0.000s
17:44:20-jacob:~$ fastboot getvar current-slot
getvar:current-slot FAILED (Write to device failed (Cannot send after transport endpoint shutdown))
Finished. Total time: 0.011s
17:44:20-jacob:~$ fastboot getvar current-slot
< waiting for any device >dmesg doesn't show much of anything interesting:
Code:Sep 11 17:43:49 jacob-thinkmate kernel: usb 1-1: new high-speed USB device number 13 using xhci_hcd
Sep 11 17:43:50 jacob-thinkmate kernel: usb 1-1: New USB device found, idVendor=18d1, idProduct=d00d, bcdDevice= 1.00
Sep 11 17:43:50 jacob-thinkmate kernel: usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Sep 11 17:43:50 jacob-thinkmate kernel: usb 1-1: Product: Android
Sep 11 17:43:50 jacob-thinkmate kernel: usb 1-1: Manufacturer: Google
Sep 11 17:43:50 jacob-thinkmate kernel: usb 1-1: SerialNumber: b0abde08
Sep 11 17:44:20 jacob-thinkmate kernel: usb 1-1: USB disconnect, device number 13I haven't seen this behavior before on past machines I've used based on Intel Xeon on i7 processors. Any tips for debugging this issue? I have experience debugging linux kernel issues so I suppose I can start by enabling some usb dynamic debugging features? Anything else obvious I can try or look for?

Thanks,
Jacob Abramslatest?d=yIl2AUoC8zA latest?i=W6IqPVHHWp0:rcQW12L_LXU:F7zBnMy latest?i=W6IqPVHHWp0:rcQW12L_LXU:V_sGLiP latest?d=qj6IDK7rITs latest?i=W6IqPVHHWp0:rcQW12L_LXU:gIN9vFwW6IqPVHHWp0
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments