USB devices stop working after a while

Hello, I’m new here but not new with Manjaro. I already use it on my old laptop.
Last year I bought a MinisForum mini-PC, the Elitemini HM60 with Amd Ryzen 5 4600H. After a couple of months I installed a second SDD with Kubuntu 22.04 LTS. I noticed that the mouse and the keyboard, when connected to the rear USB ports, stop working after a couple of seconds. I found a solution over internet: add the “usb.autosuspend=-1” param to Grub config file, and it solved.
A couple of days ago I wanted to install Manjaro. I formatted the seconds SSD and replaced Kubuntu with Manjaro KDE. I got the same issue with USB devices: they stop working after a couple of seconds: in the login panel, I can move the mouse for a couple of seconds, than it stop and doesn’t move anymore. I tried the same fix, adding the usb.autosuspend to the Grub config file and upgrade-grub but nothing changed.

I investigated a little, and found that only the rear ports are affected by this problem: I have 2 more USB ports in the front and they work correctly. I read on the manual of my computer that the rear ports should be USB 3.0 Gen 1 ports while the front ones should be USB 3.1 Gen 2 ports. This is what I get with lsusb:

Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 004: ID 0e8d:0608 MediaTek Inc. Wireless_Device
Bus 005 Device 003: ID 0d8c:0014 C-Media Electronics, Inc. Audio Adapter (Unitek Y-247A)
Bus 005 Device 002: ID 046d:c032 Logitech, Inc. MouseMan iFeel
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 002: ID 04f2:0400 Chicony Electronics Co., Ltd USB Keyboard
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 1ea7:0064 SHARKOON Technologies GmbH 2.4GHz Wireless rechargeable vertical mouse [More&Better]
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

This is what I get with lspci:

00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne Root Complex
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne IOMMU
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:01.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
00:01.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:02.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
00:02.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
00:02.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus
00:08.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 51)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 5
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 6
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 7
01:00.0 Non-Volatile memory controller: Kingston Technology Company, Inc. OM3PDP3 NVMe SSD (rev 01)
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0c)
03:00.0 Network controller: MEDIATEK Corp. MT7921K (RZ608) Wi-Fi 6E 80MHz
04:00.0 Ethernet controller: Intel Corporation Ethernet Controller I225-V (rev 01)
05:00.0 USB controller: VIA Technologies, Inc. VL805/806 xHCI USB 3.0 Controller (rev 01)
06:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Renoir (rev c7)
06:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Renoir Radeon High Definition Audio Controller
06:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor
06:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1
06:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1
06:00.5 Multimedia controller: Advanced Micro Devices, Inc. [AMD] ACP/ACP3X/ACP6x Audio Coprocessor (rev 01)
06:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h/19h HD Audio Controller
06:00.7 Signal processing controller: Advanced Micro Devices, Inc. [AMD] Sensor Fusion Hub
07:00.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 81)
07:00.1 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 81)

If I try “sudo udevadm monitor”, the system doesn’t see any connection/disconnection over the rear USB ports. Any suggestion is welcome.

Assuming tlp is installed, take a look in tlp.conf, maybe. /etc/tlp.conf

can you add on boot kernels
“iommu=pt amd_pstate=passive processor.max_cstate=5”

also you have to check with others kernels

sudo mhwd-kernel i linux515
sudo mhwd-kernel i linux61
sudo mhwd-kernel i linux62
sudo mhwd-kernel i linux63
1 Like

You need to provide the inxi listout (https://forum.manjaro.org/t/howto-provide-system-information/), i.e. you need to see if your drivers are loaded and which. You can also check the lsmod | grep -i "logi" (similar for Chico…, if you can’t find any list it all and check manually, it’s not long). Once you find the driver you can use sudo modprobe to remove and load the driver (man modprobe) and debug it (watch journalctl while doing that). If udevadm monitor (try w/o sudo but I doubt it’s that) doesn’t report anything that points to drivers, low-level issue of some sort (or h/w) I’d say.

Tlp isn’t installed

This solved the problem (apparently)!! Thank you so much!
Hope that the ports will continue to work, I did some reboots and they are still up and running! :grinning:

you can also test new kernels :wink:

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.