[SOLVED] USB ports randomly disconnecting until reboot on Linux Mint 20.1

Questions about hardware, drivers and peripherals
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
togamid
Level 1
Level 1
Posts: 22
Joined: Sun Jan 17, 2021 8:19 am

[SOLVED] USB ports randomly disconnecting until reboot on Linux Mint 20.1

Post by togamid »

Hello,
on my Tuxedo Pulse 15 with Linux Mint 20.1, the whole USB2.0 branch randomly disconnects every few hours to a day, including the internal camera and the to USB2.0 ports. The USB3.0 port continues to work fine when that happens.I've already tried disabling autosuspend as suggested in viewtopic.php?f=49&t=287775&p=1593287, which seems to have prolonged the time it takes for the problem to appear, but didn't get rid of it.
The problem has previously occurred under Ubuntu, but seems to happen at a much lower rate if it still happens at all (didn't occur during 3 days under Ubuntu).
The USB ports work fine again after a reboot.

Thanks for your help.
togamid

dmesg:

Code: Select all

[20522.628315] xhci_hcd 0000:04:00.3: Mismatch between completed Set TR Deq Ptr command & xHCI internal state.
[20522.628321] xhci_hcd 0000:04:00.3: ep deq seg = 00000000fb9fab96, deq ptr = 00000000decbc244
[20527.800708] xhci_hcd 0000:04:00.3: xHCI host not responding to stop endpoint command.
[20527.800712] xhci_hcd 0000:04:00.3: USBSTS: HCHalted HCE
[20527.800718] xhci_hcd 0000:04:00.3: xHCI host controller not responding, assume dead
[20527.800737] xhci_hcd 0000:04:00.3: HC died; cleaning up
[20527.800792] usb 1-2: USB disconnect, device number 2
[20527.864817] usb 1-3: USB disconnect, device number 3
[20527.977247] usb 1-4: USB disconnect, device number 4
[20527.977261] usb 1-4.1: USB disconnect, device number 5
[20528.033255] usb 1-4.3: USB disconnect, device number 6
[20528.033854] usb 1-4.4: USB disconnect, device number 7
lsusb -t before the error:

Code: Select all

/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 10000M
    |__ Port 2: Dev 2, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 480M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 10000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 480M
    |__ Port 2: Dev 2, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
    |__ Port 3: Dev 3, If 0, Class=Video, Driver=uvcvideo, 480M
    |__ Port 3: Dev 3, If 1, Class=Video, Driver=uvcvideo, 480M
    |__ Port 3: Dev 3, If 2, Class=Video, Driver=uvcvideo, 480M
    |__ Port 3: Dev 3, If 3, Class=Video, Driver=uvcvideo, 480M
    |__ Port 4: Dev 4, If 0, Class=Hub, Driver=hub/4p, 480M
        |__ Port 3: Dev 6, If 0, Class=Vendor Specific Class, Driver=rtsx_usb, 480M
        |__ Port 1: Dev 5, If 0, Class=Mass Storage, Driver=usb-storage, 480M
        |__ Port 4: Dev 7, If 0, Class=Wireless, Driver=btusb, 12M
        |__ Port 4: Dev 7, If 1, Class=Wireless, Driver=btusb, 12M
lsusb -t after the error has occured:

Code: Select all

lsbusb -t
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 10000M
    |__ Port 2: Dev 2, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 480M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 10000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 480M
inxi -Fxxx:

Code: Select all

System:    Host: tobias-TUXEDO-Pulse-14-Gen1 Kernel: 5.8.0-44-generic x86_64 bits: 64 
           compiler: N/A Desktop: Cinnamon 4.8.6 wm: muffin 4.8.1 dm: LightDM 1.30.0 
           Distro: Linux Mint 20.1 Ulyssa base: Ubuntu 20.04 focal 
Machine:   Type: Laptop System: TUXEDO product: TUXEDO Pulse 14 Gen1 v: Standard 
           serial: <superuser/root required> 
           Mobo: TUXEDO s model: PULSE1401 v: Standard serial: <superuser/root required> 
           UEFI: American Megatrends v: N.1.07.A02 date: 12/08/2020 
Battery:   ID-1: BAT0 charge: 91.6 Wh condition: 91.6/91.6 Wh (100%) volts: 13.0/11.6 
           model: standard type: Li-ion serial: 00001 status: Full 
CPU:       Topology: 8-Core model: AMD Ryzen 7 4800H with Radeon Graphics bits: 64 
           type: MT MCP arch: Zen rev: 1 L2 cache: 4096 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm 
           bogomips: 92623 
           Speed: 1397 MHz min/max: 1400/2900 MHz boost: enabled Core speeds (MHz): 1: 1397 
           2: 1397 3: 1247 4: 1319 5: 1289 6: 1316 7: 1280 8: 1328 9: 1397 10: 1398 11: 1397 
           12: 1396 13: 1399 14: 1396 15: 1321 16: 1442 
Graphics:  Device-1: AMD Renoir vendor: Tongfang Hongkong Limited driver: amdgpu v: kernel 
           bus ID: 04:00.0 chip ID: 1002:1636 
           Display: x11 server: X.Org 1.20.9 driver: amdgpu,ati 
           unloaded: fbdev,modesetting,vesa resolution: 1920x1080~60Hz 
           OpenGL: renderer: AMD RENOIR (DRM 3.38.0 5.8.0-44-generic LLVM 11.0.0) 
           v: 4.6 Mesa 20.2.6 direct render: Yes 
Audio:     Device-1: AMD vendor: Tongfang Hongkong Limited driver: snd_hda_intel v: kernel 
           bus ID: 04:00.1 chip ID: 1002:1637 
           Device-2: AMD Raven/Raven2/FireFlight/Renoir Audio Processor 
           vendor: Tongfang Hongkong Limited driver: N/A bus ID: 04:00.5 chip ID: 1022:15e2 
           Device-3: AMD Family 17h HD Audio vendor: Tongfang Hongkong Limited 
           driver: snd_hda_intel v: kernel bus ID: 04:00.6 chip ID: 1022:15e3 
           Sound Server: ALSA v: k5.8.0-44-generic 
Network:   Device-1: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel bus ID: 01:00.0 
           chip ID: 8086:2723 
           IF: wlp1s0 state: up mac: 78:2b:46:2b:16:7d 
           Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
           vendor: Tongfang Hongkong Limited driver: r8169 v: kernel port: f000 
           bus ID: 02:00.0 chip ID: 10ec:8168 
           IF: eno1 state: up speed: 100 Mbps duplex: full mac: b0:25:aa:3d:f9:b5 
           IF-ID-1: gpd0 state: down mac: N/A 
Drives:    Local Storage: total: 2.27 TiB used: 722.74 GiB (31.0%) 
           ID-1: /dev/nvme0n1 vendor: Samsung model: SSD 970 EVO Plus 500GB size: 465.76 GiB 
           speed: 31.6 Gb/s lanes: 4 serial: S4EVNX0N900119E rev: 2B2QEXM7 scheme: GPT 
           ID-2: /dev/sda type: USB vendor: Western Digital model: WD Elements 2621 
           size: 1.82 TiB serial: 5758553145423941504B5046 rev: 1026 scheme: GPT 
Partition: ID-1: / size: 265.74 GiB used: 83.51 GiB (31.4%) fs: ext4 dev: /dev/nvme0n1p4 
           ID-2: swap-1 size: 8.00 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/nvme0n1p3 
Sensors:   System Temperatures: cpu: 46.4 C mobo: N/A gpu: amdgpu temp: 37 C 
           Fan Speeds (RPM): N/A 
Info:      Processes: 357 Uptime: 1h 47m Memory: 15.13 GiB used: 2.95 GiB (19.5%) 
           Init: systemd v: 245 runlevel: 5 Compilers: gcc: 9.3.0 alt: 9 Shell: bash 
           v: 5.0.17 running in: gnome-terminal inxi: 3.0.38 
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
SMG
Level 25
Level 25
Posts: 31815
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: USB ports randomly disconnecting until reboot on Linux Mint 20.1

Post by SMG »

You are not the only one seeing this issue Bluetooth and Webcam problem. That person is running Pop!OS 20.04 on an ASUS laptop and the messages are almost exactly the same as yours.

Does this seem to happen more often after using the webcam for extended periods? Maybe a heat related issue?
Image
A woman typing on a laptop with LM20.3 Cinnamon.
User avatar
absque fenestris
Level 12
Level 12
Posts: 4110
Joined: Sat Nov 12, 2016 8:42 pm
Location: Confoederatio Helvetica

Re: USB ports randomly disconnecting until reboot on Linux Mint 20.1

Post by absque fenestris »

What does Tuxedo say about it? Guarantee case?
togamid
Level 1
Level 1
Posts: 22
Joined: Sun Jan 17, 2021 8:19 am

Re: USB ports randomly disconnecting until reboot on Linux Mint 20.1

Post by togamid »

SMG wrote: Mon Mar 15, 2021 7:09 pm You are not the only one seeing this issue Bluetooth and Webcam problem. That person is running Pop!OS 20.04 on an ASUS laptop and the messages are almost exactly the same as yours.

Does this seem to happen more often after using the webcam for extended periods? Maybe a heat related issue?
yeah, there are a bunch of reports of this problem I found (viewtopic.php?t=339335 , https://www.reddit.com/r/linuxmint/comm ... connected/ ), but none seem to have a definitive answer or a complete description of the problem which is why I made this post.
It might have something to do with heat or power draw, as I have the feeling that it occured more often when the camera is on (but that isn't necessary for the error to occur) and disabling autosuspend definitely made a difference. But I don't think heat is the only reason, as when I tried to provoke it under Ubuntu I left the camera running for some time and it didn't trigger.
absque fenestris wrote: Mon Mar 15, 2021 10:16 pm What does Tuxedo say about it? Guarantee case?
Unfortunately, they only support Ubuntu, and the time it happened under Ubuntu I had a defect SSD too. That's why I tried provoking it under Ubuntu.
As I found this exact complaint by people with different hardware (ThinkPad L15 Gen1, Asus UM425I, ThinkPad E15 Gen 2 ), I think it's a combination of a software and a hardware problem (maybe some USB hub has an error?).
User avatar
SMG
Level 25
Level 25
Posts: 31815
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: USB ports randomly disconnecting until reboot on Linux Mint 20.1

Post by SMG »

togamid wrote: Tue Mar 16, 2021 5:35 amAs I found this exact complaint by people with different hardware (ThinkPad L15 Gen1, Asus UM425I, ThinkPad E15 Gen 2 ), I think it's a combination of a software and a hardware problem (maybe some USB hub has an error?).
Yours has AMD Ryzen 7 4800H, ThinkPad L15 Gen1 has AMD Ryzen 7 PRO 4750U, Asus UM425I has an AMD Ryzen 4000 series processor, and I'm going to take a wild guess and say the ThinkPad E15 Gen 2 probably also has a Ryzen 4000 series, so I would consider the hardware to be similar rather than different.

Was your test with Ubuntu using the same exact kernel you were using with Mint?

Does your BIOS/UEFI have any settings available for xhci_hcd? I'm guessing it may not, but it's worth a check.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
togamid
Level 1
Level 1
Posts: 22
Joined: Sun Jan 17, 2021 8:19 am

Re: USB ports randomly disconnecting until reboot on Linux Mint 20.1

Post by togamid »

SMG wrote: Tue Mar 16, 2021 9:11 am Was your test with Ubuntu using the same exact kernel you were using with Mint?
Unfortunately not. Ubuntu used/uses the kernel 5.6.0-1048-oem whilst Linux Mint is on the kernel version 5.8.0-44-generic. Should I install the 5.8 kernel in Ubuntu to test it or is it possible to install the 5.6 oem kernel in Linux Mint?
SMG wrote: Tue Mar 16, 2021 9:11 am Does your BIOS/UEFI have any settings available for xhci_hcd? I'm guessing it may not, but it's worth a check.
I could not find anything that seemed to be related.
Thanks for your help.
User avatar
SMG
Level 25
Level 25
Posts: 31815
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: USB ports randomly disconnecting until reboot on Linux Mint 20.1

Post by SMG »

togamid wrote: Tue Mar 16, 2021 12:37 pmUnfortunately not. Ubuntu used/uses the kernel 5.6.0-1048-oem whilst Linux Mint is on the kernel version 5.8.0-44-generic. Should I install the 5.8 kernel in Ubuntu to test it or is it possible to install the 5.6 oem kernel in Linux Mint?
Yes, it is possible to install a 5.6-oem kernel on Linux Mint. I know of at least one person using that kernel because of some hardware issues, but I was not on the thread where he installed it. Here is the portion of that other thread where they discuss how to install the 5.6-oem kernel.

Keep in mind that is a lower number kernel than your current one, so Mint will automatically boot into 5.8. To boot into the 5.6, you will need to boot into grub and then go to Advanced Options to select the 5.6 kernel for booting.

The other thing to keep in mind is that it's my understanding that at least kernel 5.7.1 is needed in order to get the necessary graphics driver for Renoir. I do not know if there is something special about the 5.6-oem kernel that it has the driver. Were you running in software rendering mode when using Ubuntu?
Image
A woman typing on a laptop with LM20.3 Cinnamon.
bodge99

Re: USB ports randomly disconnecting until reboot on Linux Mint 20.1

Post by bodge99 »

Hi,

I'm seeing something similar with multiple systemd distros (including Mint) on the same hardware. Intel i5 CPU and the same 5.11.4 kernel.

USB3 ports disappearing during large file transfers (multiple ~100GB files).

File copies are perfectly fine using Slackware, Devuan and Artix Linux.

Bodge99
User avatar
SMG
Level 25
Level 25
Posts: 31815
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: USB ports randomly disconnecting until reboot on Linux Mint 20.1

Post by SMG »

bodge99 wrote: Tue Mar 16, 2021 1:43 pmI'm seeing something similar with multiple systemd distros (including Mint) on the same hardware. Intel i5 CPU and the same 5.11.4 kernel.
:? The issues seen here are on AMD Ryzen 4000 series and the OP is running the 5.8 kernel. That's not the same hardware or the same kernel as what you posted.

Additionally, the issue is with USB 2.0 ports disappearing. The 3.0 ports are fine.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
User avatar
hglee
Level 6
Level 6
Posts: 1422
Joined: Fri Jun 22, 2018 4:31 pm

Re: USB ports randomly disconnecting until reboot on Linux Mint 20.1

Post by hglee »

togamid wrote:Ubuntu used/uses the kernel 5.6.0-1048-oem whilst Linux Mint is on the kernel version 5.8.0-44-generic. Should I install the 5.8 kernel in Ubuntu to test it or is it possible to install the 5.6 oem kernel in Linux Mint?


There's no need to regress to kernel 5.6 in order to gain the benefits of the OEM kernel. (That OEM kernel 5.6 was needed for special audio firmware.)

Install the Hardware Enablement (HWE) extension. You'll keep kernel 5.8, which is a definite benefit to your Ryzen / Renoir GPU.


Open a Terminal (Ctrl-Alt-T), then copy-and-paste the following command...

Code: Select all

sudo apt install --install-recommends linux-generic-hwe-20.04
Reboot.


The HWE stack pulls in new hardware support that gets added to more recent and future releases of the kernel. It's intended to prevent the LTS (Long Term Support) editions of the kernel from falling too far behind the most recent releases for new hardware platforms.


PS: Confirm that Secure Boot is disabled in your BIOS.



Linux Mint 21 Vanessa, MATE 1.26.0, kernel 5.15.0*, Dell 2-in-1
AMD Ryzen 7 5825U / Barcelo iGPU - 14" WUXGA Touchscreen
MediaTek MT7921 WiFi-6 BT-5.2; 32GB DDR4@3200MHz; XPG 2TB-NVMe
User avatar
SMG
Level 25
Level 25
Posts: 31815
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: USB ports randomly disconnecting until reboot on Linux Mint 20.1

Post by SMG »

hglee wrote: Tue Mar 16, 2021 3:01 pmThere's no need to regress to kernel 5.6 in order to gain the benefits of the OEM kernel. (That OEM kernel 5.6 was needed for special audio firmware.)
The point of using the 5.6-oem kernel was because that was what the OP was using with Ubuntu when not experiencing these issues. The idea was to do an apples-to-apples comparison between Ubuntu and Mint by using the same kernel in both. That would determine if the difference was the kernel or some difference between the two operating systems. Tuxedo supports Ubuntu (and probably with the 5.6-oem kernel) and not Mint.

Having explained the philosophy behind the suggestion, it is possible your suggestion might help with the issue.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
JeffF73
Level 2
Level 2
Posts: 61
Joined: Sun May 27, 2012 2:47 pm

Re: USB ports randomly disconnecting until reboot on Linux Mint 20.1

Post by JeffF73 »

I have had and am now facing this issue with the USB's randomly disonnecting again. I had my system working great for many months without seeing any of this until last week with a possible update and etc. This issue with the USB's has been around since Ryzen and isn't on any specific version CPU and etc of Ryzen.

I am trying out the disabling autosuspend as well as I am now in the process of retracing my steps to prevent the USB disconnects and etc. Here is were I am now. I always follow 'Easy Linux Tips Project' pages and I came across this which is a step I remember following in the past few months (Especially Step 1 'PSU Idle Control'). https://easylinuxtipsproject.blogspot.c ... .html#ID27 Step 1 in their 'Fix system freezing trouble with AMD Ryzen CPU's' doesn't just pertain to CPU's and Freezes as it states. This can also prevent other issue across the system. It's your choice if you wish to do Step II in their guide. but be sure to backup/timeshift prior.

I am now in the waiting stage to see how this pans out as a solution. I will update as soon I see any results.

Update: So far since I posted the above I decided to remove the disable 'autosuspend' and test out the PSU Idle Control on it's own and allow the system to go idle and etc. Since then I haven't seen any usb disconnects after performing the PSU Idle Control changes in the BIOS. My system has been running straight for 9 hours and 21 minutes. I have been working with my system as well as allow it to be idle. I will continue to test this and see if this continues to be true.

Code: Select all

inxi -Fxxx
System:
  Host: J-linux-MS-7C02 Kernel: 5.4.0-67-generic x86_64 bits: 64 
  compiler: gcc v: 9.3.0 Desktop: Cinnamon 4.8.6 wm: muffin 4.8.1 
  dm: LightDM 1.30.0 Distro: Linux Mint 20.1 Ulyssa base: Ubuntu 20.04 focal 
Machine:
  Type: Desktop Mobo: Micro-Star model: B450 TOMAHAWK (MS-7C02) v: 1.0 
  serial: <superuser/root required> UEFI: American Megatrends v: 1.E0 
  date: 06/09/2020 
CPU:
  Topology: 6-Core model: AMD Ryzen 5 1600 bits: 64 type: MT MCP arch: Zen 
  rev: 1 L2 cache: 3072 KiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm 
  bogomips: 76787 
  Speed: 3259 MHz min/max: 1550/3200 MHz boost: enabled Core speeds (MHz): 
  1: 2794 2: 3149 3: 3372 4: 3387 5: 2798 6: 3396 7: 3369 8: 3390 9: 2771 
  10: 3187 11: 2780 12: 3397 
Graphics:
  Device-1: AMD Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] 
  vendor: XFX Pine driver: amdgpu v: kernel bus ID: 26:00.0 
  chip ID: 1002:67df 
  Display: x11 server: X.Org 1.20.9 driver: amdgpu,ati 
  unloaded: fbdev,modesetting,vesa resolution: 2560x1080~60Hz 
  OpenGL: renderer: Radeon RX 580 Series (POLARIS10 DRM 3.35.0 
  5.4.0-67-generic LLVM 10.0.1) 
  v: 4.6 Mesa 20.1.5 direct render: Yes 
Audio:
  Device-1: AMD Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590] 
  vendor: XFX Pine driver: snd_hda_intel v: kernel bus ID: 26:00.1 
  chip ID: 1002:aaf0 
  Device-2: AMD Family 17h HD Audio vendor: Micro-Star MSI 
  driver: snd_hda_intel v: kernel bus ID: 28:00.3 chip ID: 1022:1457 
  Sound Server: ALSA v: k5.4.0-67-generic 
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: Micro-Star MSI driver: r8169 v: kernel port: f000 bus ID: 22:00.0 
  chip ID: 10ec:8168 
  IF: enp34s0 state: up speed: 100 Mbps duplex: full mac: 00:d8:61:2e:54:ea 
Drives:
  Local Storage: total: 4.20 TiB used: 2.06 TiB (49.0%) 
  ID-1: /dev/sda vendor: Seagate model: ST4000VN008-2DR166 size: 3.64 TiB 
  speed: 6.0 Gb/s rotation: 5980 rpm serial: ZDH9AV0T rev: SC60 scheme: GPT 
  ID-2: /dev/sdb vendor: Crucial model: CT120BX500SSD1 size: 111.79 GiB 
  speed: 6.0 Gb/s serial: 2033E40BAE5F rev: R013 scheme: GPT 
  ID-3: /dev/sdc vendor: SanDisk model: SDSSDA120G size: 111.79 GiB 
  speed: 6.0 Gb/s serial: 160873403862 rev: 10RL scheme: GPT 
  ID-4: /dev/sde vendor: SanDisk model: SDSSDH3 250G size: 232.89 GiB 
  speed: 6.0 Gb/s serial: 202947801317 rev: 20RL scheme: GPT 
Partition:
  ID-1: / size: 36.16 GiB used: 15.98 GiB (44.2%) fs: ext4 dev: /dev/sde2 
  ID-2: /home size: 69.17 GiB used: 31.09 GiB (44.9%) fs: ext4 
  dev: /dev/sde3 
  ID-3: swap-1 size: 3.72 GiB used: 4.8 MiB (0.1%) fs: swap dev: /dev/sde4 
Sensors:
  System Temperatures: cpu: 49.8 C mobo: N/A gpu: amdgpu temp: 42 C 
  Fan Speeds (RPM): N/A gpu: amdgpu fan: 767 
Info:
  Processes: 327 Uptime: 9h 21m Memory: 15.65 GiB used: 4.02 GiB (25.7%) 
  Init: systemd v: 245 runlevel: 5 Compilers: gcc: 9.3.0 alt: 8/9 
  Shell: bash v: 5.0.17 running in: gnome-terminal inxi: 3.0.38
Update: @19hours and 32minutes still running strong.

Code: Select all

Info:
Sensors:
  System Temperatures: cpu: 27.0 C mobo: N/A gpu: amdgpu temp: 34 C 
  Fan Speeds (RPM): N/A gpu: amdgpu fan: 756 
Info:
  Processes: 322 Uptime: 19h 32m Memory: 15.65 GiB used: 3.57 GiB (22.8%) 
  Init: systemd v: 245 runlevel: 5 Compilers: gcc: 9.3.0 alt: 8/9 
  Shell: bash v: 5.0.17 running in: gnome-terminal inxi: 3.0.38 


lsusb -t Before USB Disconnects

Code: Select all

lsusb -t
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 480M
    |__ Port 1: Dev 2, If 0, Class=Human Interface Device, Driver=usbhid, 12M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 10000M
    |__ Port 2: Dev 2, If 0, Class=Hub, Driver=hub/4p, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/10p, 480M
    |__ Port 2: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
    |__ Port 9: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 12M
    |__ Port 9: Dev 3, If 1, Class=Human Interface Device, Driver=usbfs, 12M
    |__ Port 9: Dev 3, If 2, Class=Human Interface Device, Driver=usbhid, 12M
    |__ Port 9: Dev 3, If 3, Class=Human Interface Device, Driver=usbfs, 12M
dmesg:

Code: Select all

[    0.418948] VFIO - User Level meta-driver version: 0.3
[    0.419000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.419002] ehci-pci: EHCI PCI platform driver
[    0.419009] ehci-platform: EHCI generic platform driver
[    0.419014] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.419015] ohci-pci: OHCI PCI platform driver
[    0.419022] ohci-platform: OHCI generic platform driver
[    0.419026] uhci_hcd: USB Universal Host Controller Interface driver
[    0.419108] xhci_hcd 0000:03:00.0: xHCI Host Controller
[    0.419112] xhci_hcd 0000:03:00.0: new USB bus registered, assigned bus number 1
[    0.474416] xhci_hcd 0000:03:00.0: hcc params 0x0200ef81 hci version 0x110 quirks 0x0000000000000410
[    0.474574] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[    0.474575] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.474577] usb usb1: Product: xHCI Host Controller
[    0.474578] usb usb1: Manufacturer: Linux 5.4.0-67-generic xhci-hcd
[    0.474579] usb usb1: SerialNumber: 0000:03:00.0
[    0.474676] hub 1-0:1.0: USB hub found
[    0.474688] hub 1-0:1.0: 10 ports detected
[    0.475054] xhci_hcd 0000:03:00.0: xHCI Host Controller
[    0.475056] xhci_hcd 0000:03:00.0: new USB bus registered, assigned bus number 2
[    0.475058] xhci_hcd 0000:03:00.0: Host supports USB 3.1 Enhanced SuperSpeed
[    0.475105] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    0.475119] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.04
[    0.475120] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.475121] usb usb2: Product: xHCI Host Controller
[    0.475122] usb usb2: Manufacturer: Linux 5.4.0-67-generic xhci-hcd
[    0.475122] usb usb2: SerialNumber: 0000:03:00.0
[    0.475181] hub 2-0:1.0: USB hub found
[    0.475187] hub 2-0:1.0: 4 ports detected
[    0.475452] xhci_hcd 0000:27:00.3: xHCI Host Controller
[    0.475455] xhci_hcd 0000:27:00.3: new USB bus registered, assigned bus number 3
[    0.475551] xhci_hcd 0000:27:00.3: hcc params 0x0270f665 hci version 0x100 quirks 0x0000000040000410
[    0.475647] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[    0.475648] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.475649] usb usb3: Product: xHCI Host Controller
[    0.475650] usb usb3: Manufacturer: Linux 5.4.0-67-generic xhci-hcd
[    0.475650] usb usb3: SerialNumber: 0000:27:00.3
[    0.475707] hub 3-0:1.0: USB hub found
[    0.475715] hub 3-0:1.0: 4 ports detected
[    0.475837] xhci_hcd 0000:27:00.3: xHCI Host Controller
[    0.475839] xhci_hcd 0000:27:00.3: new USB bus registered, assigned bus number 4
[    0.475841] xhci_hcd 0000:27:00.3: Host supports USB 3.0 SuperSpeed
[    0.475850] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    0.475864] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.04
[    0.475864] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.475865] usb usb4: Product: xHCI Host Controller
[    0.475866] usb usb4: Manufacturer: Linux 5.4.0-67-generic xhci-hcd
[    0.475867] usb usb4: SerialNumber: 0000:27:00.3
[    0.475919] hub 4-0:1.0: USB hub found
[    0.475925] hub 4-0:1.0: 4 ports detected
I will now be switching the PSU Idle Control back to default to test this and see if I get USB Disconnects to occur again.
dmesg: With PSU Idle Control to Default Before any usb disconnects occur:

Code: Select all

0.420121] VFIO - User Level meta-driver version: 0.3
[    0.420179] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.420182] ehci-pci: EHCI PCI platform driver
[    0.420188] ehci-platform: EHCI generic platform driver
[    0.420193] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.420194] ohci-pci: OHCI PCI platform driver
[    0.420200] ohci-platform: OHCI generic platform driver
[    0.420203] uhci_hcd: USB Universal Host Controller Interface driver
[    0.420291] xhci_hcd 0000:03:00.0: xHCI Host Controller
[    0.420295] xhci_hcd 0000:03:00.0: new USB bus registered, assigned bus number 1
[    0.475601] xhci_hcd 0000:03:00.0: hcc params 0x0200ef81 hci version 0x110 quirks 0x0000000000000410
[    0.475759] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[    0.475760] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.475761] usb usb1: Product: xHCI Host Controller
[    0.475762] usb usb1: Manufacturer: Linux 5.4.0-67-generic xhci-hcd
[    0.475763] usb usb1: SerialNumber: 0000:03:00.0
[    0.475840] hub 1-0:1.0: USB hub found
[    0.475852] hub 1-0:1.0: 10 ports detected
[    0.476211] xhci_hcd 0000:03:00.0: xHCI Host Controller
[    0.476213] xhci_hcd 0000:03:00.0: new USB bus registered, assigned bus number 2
[    0.476215] xhci_hcd 0000:03:00.0: Host supports USB 3.1 Enhanced SuperSpeed
[    0.476258] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    0.476272] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.04
[    0.476273] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.476274] usb usb2: Product: xHCI Host Controller
[    0.476275] usb usb2: Manufacturer: Linux 5.4.0-67-generic xhci-hcd
[    0.476275] usb usb2: SerialNumber: 0000:03:00.0
[    0.476358] hub 2-0:1.0: USB hub found
[    0.476365] hub 2-0:1.0: 4 ports detected
[    0.476632] xhci_hcd 0000:27:00.3: xHCI Host Controller
[    0.476635] xhci_hcd 0000:27:00.3: new USB bus registered, assigned bus number 3
[    0.476727] xhci_hcd 0000:27:00.3: hcc params 0x0270f665 hci version 0x100 quirks 0x0000000040000410
[    0.476820] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[    0.476821] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.476822] usb usb3: Product: xHCI Host Controller
[    0.476822] usb usb3: Manufacturer: Linux 5.4.0-67-generic xhci-hcd
[    0.476823] usb usb3: SerialNumber: 0000:27:00.3
[    0.476878] hub 3-0:1.0: USB hub found
[    0.476883] hub 3-0:1.0: 4 ports detected
[    0.477017] xhci_hcd 0000:27:00.3: xHCI Host Controller
[    0.477019] xhci_hcd 0000:27:00.3: new USB bus registered, assigned bus number 4
[    0.477021] xhci_hcd 0000:27:00.3: Host supports USB 3.0 SuperSpeed
[    0.477035] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    0.477054] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.04
[    0.477055] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.477055] usb usb4: Product: xHCI Host Controller
[    0.477056] usb usb4: Manufacturer: Linux 5.4.0-67-generic xhci-hcd
[    0.477057] usb usb4: SerialNumber: 0000:27:00.3
[    0.477109] hub 4-0:1.0: USB hub found
[    0.477115] hub 4-0:1.0: 4 ports detected
lsusb -t: With PSU Idle Control to Default Before any usb disconnects occur:

Code: Select all

/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 480M
    |__ Port 1: Dev 2, If 0, Class=Human Interface Device, Driver=usbhid, 12M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 10000M
    |__ Port 2: Dev 2, If 0, Class=Hub, Driver=hub/4p, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/10p, 480M
    |__ Port 2: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
    |__ Port 8: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 12M
    |__ Port 8: Dev 3, If 1, Class=Human Interface Device, Driver=usbfs, 12M
    |__ Port 8: Dev 3, If 2, Class=Human Interface Device, Driver=usbhid, 12M
    |__ Port 8: Dev 3, If 3, Class=Human Interface Device, Driver=usbfs, 12M
Update: March 19 @1:00PM
With PSU Idle Control Set to Default I had my first USB Disconnect
I am now testing with PSU Idle Control set to 'Typical Current Idle'. I will have it running for a full 24 hours or until a failure occur's.

Update: March 21 @11:45AM
I haven't had one usb disconnect since I set PSU Idle Control to 'Typical Current Idle'. Although I will still be testing this to make sure. But this is a positive note on my end. Hope it works for others.
JeffF73
Level 2
Level 2
Posts: 61
Joined: Sun May 27, 2012 2:47 pm

Re: USB ports randomly disconnecting until reboot on Linux Mint 20.1

Post by JeffF73 »

Well I just wanted to put an update on here with my progress. I have had great success with the above instructions until today. Some how my Bios reset itself to factory. I didn't know it until my usb ports all stopped working at the same time while I was using my pc and active. I went into my Bios settings and looked at "PSU Idle Control" setting and it was reset to 'Auto'. I set it back to "Typical Current Idle" and everything has been working fine so far. This is huge because this will prove it to be this setting with the usb ports disconnecting on my system any how. I will continue to monitor. Hope this helps others out.

Update: April 14th. Still running strong after setting the PSU Idle Control to Typical Current. I have played games and letting it idle for days. Not one USB disconnect or freeze during use and idle.
togamid
Level 1
Level 1
Posts: 22
Joined: Sun Jan 17, 2021 8:19 am

Re: USB ports randomly disconnecting until reboot on Linux Mint 20.1

Post by togamid »

Just to give an update:
I don't know why, but after using timeshift to roll back to a few hours old backup (because of an unrelated issue), it seems to work. My leading theory currently is that something somewhere had been corrupted by the previous SSD which had failed, and got fixed by Timeshift.
Locked

Return to “Hardware Support”