USB need reinsert every boot

Hi guys,
Since two days all my usb devices need to get reinserted into the pc to get properly recognised. Not a clue why that should happen, i tested them also on my work pc running another linux distro.
All my USB devices are cable ones and in an older version of garuda worked well, i performed a recent install.

here is the garuda-inxi output

System:
Kernel: 6.4.7-zen1-3-zen arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=9e8d85e0-82ca-4ebe-9992-f6be305d20c2 rw rootflags=subvol=@
quiet quiet rd.udev.log_priority=3 vt.global_cursor_default=0 loglevel=3
ibt=off
Desktop: KDE Plasma v: 5.27.7 tk: Qt v: 5.15.10 wm: kwin_x11 vt: 2
dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
Type: Desktop Mobo: Gigabyte model: B650 AORUS ELITE AX v: x.x
serial: <superuser required> UEFI: American Megatrends LLC. v: F4
date: 03/22/2023
CPU:
Info: model: AMD Ryzen 7 7800X3D bits: 64 type: MT MCP arch: Zen 4 gen: 5
level: v4 note: check built: 2022+ process: TSMC n5 (5nm) family: 0x19 (25)
model-id: 0x61 (97) stepping: 2 microcode: 0xA601203
Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache:
L1: 512 KiB desc: d-8x32 KiB; i-8x32 KiB L2: 8 MiB desc: 8x1024 KiB
L3: 96 MiB desc: 1x96 MiB
Speed (MHz): avg: 4185 high: 4840 min/max: 3000/5049 boost: enabled
scaling: driver: acpi-cpufreq governor: performance cores: 1: 4200 2: 4025
3: 4200 4: 3290 5: 4200 6: 4200 7: 4200 8: 4417 9: 4840 10: 4200 11: 4200
12: 4200 13: 4200 14: 4200 15: 4200 16: 4200 bogomips: 134147
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Vulnerabilities: <filter>
Graphics:
Device-1: AMD Navi 22 [Radeon RX 6700/6700 XT/6750 XT / 6800M/6850M XT]
vendor: Sapphire driver: amdgpu v: kernel arch: RDNA-2 code: Navi-2x
process: TSMC n7 (7nm) built: 2020-22 pcie: gen: 4 speed: 16 GT/s
lanes: 16 ports: active: DP-2,HDMI-A-1 empty: DP-1,DP-3 bus-ID: 03:00.0
chip-ID: 1002:73df class-ID: 0300
Device-2: AMD Raphael vendor: Gigabyte driver: amdgpu v: kernel
arch: RDNA-2 code: Navi-2x process: TSMC n7 (7nm) built: 2020-22 pcie:
gen: 4 speed: 16 GT/s lanes: 16 ports: active: none empty: DP-4, DP-5,
DP-6, HDMI-A-2 bus-ID: 12:00.0 chip-ID: 1002:164e class-ID: 0300
temp: 35.0 C
Device-3: 2M UVC CAMERA NexiGo N60 FHD Webcam
driver: snd-usb-audio,uvcvideo type: USB rev: 2.0 speed: 480 Mb/s lanes: 1
mode: 2.0 bus-ID: 5-1.1:5 chip-ID: 1d6c:0103 class-ID: 0102
serial: <filter>
Display: x11 server: X.Org v: 21.1.8 with: Xwayland v: 23.1.2
compositor: kwin_x11 driver: X: loaded: amdgpu unloaded: modesetting,radeon
alternate: fbdev,vesa dri: radeonsi gpu: amdgpu display-ID: :0 screens: 1
Screen-1: 0 s-res: 3000x2005 s-dpi: 96 s-size: 791x529mm (31.14x20.83")
s-diag: 952mm (37.46")
Monitor-1: DP-2 mapped: DisplayPort-1 pos: bottom-l model: Huawei SSN-24
built: 2022 res: 1080x1920 hz: 60 dpi: 93 gamma: 1.2
size: 296x527mm (11.65x20.75") diag: 604mm (23.8") ratio: 16:9 modes:
max: 1920x1080 min: 720x400
Monitor-2: HDMI-A-1 mapped: HDMI-A-0 pos: primary,top-right
model: Samsung LC24RG50 serial: <filter> built: 2021 res: 1920x1080 hz: 60
dpi: 92 gamma: 1.2 size: 532x304mm (20.94x11.97") diag: 613mm (24.1")
ratio: 16:9 modes: max: 1920x1080 min: 720x400
API: OpenGL v: 4.6 Mesa 23.1.4 renderer: AMD Radeon RX 6700 XT (navi22
LLVM 15.0.7 DRM 3.52 6.4.7-zen1-3-zen) direct-render: Yes
Audio:
Device-1: AMD Navi 21/23 HDMI/DP Audio driver: snd_hda_intel v: kernel pcie:
gen: 4 speed: 16 GT/s lanes: 16 bus-ID: 03:00.1 chip-ID: 1002:ab28
class-ID: 0403
Device-2: AMD Rembrandt Radeon High Definition Audio driver: snd_hda_intel
v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16 bus-ID: 12:00.1
chip-ID: 1002:1640 class-ID: 0403
Device-3: AMD Family 17h/19h HD Audio vendor: Gigabyte
driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16
bus-ID: 12:00.6 chip-ID: 1022:15e3 class-ID: 0403
Device-4: C-Media TONOR TC30 Audio Device
driver: hid-generic,snd-usb-audio,usbhid type: USB rev: 1.1 speed: 12 Mb/s
lanes: 1 mode: 1.1 bus-ID: 1-3.2:6 chip-ID: 0d8c:0134 class-ID: 0300
serial: <filter>
Device-5: 2M UVC CAMERA NexiGo N60 FHD Webcam
driver: snd-usb-audio,uvcvideo type: USB rev: 2.0 speed: 480 Mb/s lanes: 1
mode: 2.0 bus-ID: 5-1.1:5 chip-ID: 1d6c:0103 class-ID: 0102
serial: <filter>
API: ALSA v: k6.4.7-zen1-3-zen status: kernel-api with: aoss
type: oss-emulator tools: N/A
Server-1: PipeWire v: 0.3.76 status: active with: 1: pipewire-pulse
status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
Device-1: Realtek RTL8125 2.5GbE vendor: Gigabyte driver: r8169 v: kernel
pcie: gen: 2 speed: 5 GT/s lanes: 1 port: e000 bus-ID: 0e:00.0
chip-ID: 10ec:8125 class-ID: 0200
IF: enp14s0 state: down mac: <filter>
Device-2: MEDIATEK MT7922 802.11ax PCI Express Wireless Network Adapter
driver: mt7921e v: kernel pcie: gen: 2 speed: 5 GT/s lanes: 1
bus-ID: 0f:00.0 chip-ID: 14c3:0616 class-ID: 0280
IF: wlp15s0 state: up mac: <filter>
Bluetooth:
Device-1: MediaTek Wireless_Device driver: btusb v: 0.8 type: USB rev: 2.1
speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-9:7 chip-ID: 0e8d:0616
class-ID: e001 serial: <filter>
Report: bt-adapter ID: hci0 rfk-id: 0 state: up address: <filter>
Drives:
Local Storage: total: 931.51 GiB used: 57.27 GiB (6.1%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Smart Modular Tech.
model: SHPP41-1000GM size: 931.51 GiB block-size: physical: 512 B
logical: 512 B speed: 63.2 Gb/s lanes: 4 tech: SSD serial: <filter>
fw-rev: 51060A20 temp: 39.9 C scheme: GPT
Partition:
ID-1: / raw-size: 931.22 GiB size: 931.22 GiB (100.00%)
used: 57.27 GiB (6.2%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
used: 576 KiB (0.2%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
ID-3: /home raw-size: 931.22 GiB size: 931.22 GiB (100.00%)
used: 57.27 GiB (6.2%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
ID-4: /var/log raw-size: 931.22 GiB size: 931.22 GiB (100.00%)
used: 57.27 GiB (6.2%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
ID-5: /var/tmp raw-size: 931.22 GiB size: 931.22 GiB (100.00%)
used: 57.27 GiB (6.2%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: zram size: 30.5 GiB used: 0 KiB (0.0%) priority: 100
dev: /dev/zram0
Sensors:
System Temperatures: cpu: 44.9 C mobo: 29.0 C
Fan Speeds (RPM): N/A
GPU: device: amdgpu temp: 45.0 C mem: 38.0 C fan: 0 watts: 7.00
device: amdgpu temp: 36.0 C
Info:
Processes: 396 Uptime: 23m wakeups: 0 Memory: total: 32 GiB note: est.
available: 30.5 GiB used: 3.61 GiB (11.8%) Init: systemd v: 254
default: graphical tool: systemctl Compilers: gcc: 13.2.1 Packages:
pm: pacman pkgs: 1866 libs: 548 tools: octopi,paru Shell: fish v: 3.6.1
default: Bash v: 5.1.16 running-in: konsole inxi: 3.3.28
Garuda (2.6.16-1):
System install date:     2023-07-26
Last full system update: 2023-08-04
Is partially upgraded:   No
Relevant software:       snapper NetworkManager dracut
Windows dual boot:       No/Undetected
Failed units:

Hoping for some help here i'm not really fond of how to debug it in linux :smile:

So what have you researched? What have you tried? (Don't wanna play 64-Questions Game.)

Have you tried other kernels? If so, which ones?

4 Likes

Not a fix, but this will usually restart all devices on the USB bus:

#!/bin/bash
#reset all of USB1/2/3 ports
for i in /sys/bus/pci/drivers/[uoex]hci_hcd/*:*; do
  [ -e "$i" ] || continue
  echo "${i##*/}" > "${i%/*}/unbind"
  echo "${i##*/}" > "${i%/*}/bind"
done

Make the script executable and it should hopefully restart your USB devices without requiring removing/re-plugging. You can even create a desktop startup file and place it in your dock (etc) for an instant way of refreshing your USB devices.

Chances are, a different kernel will fix this as @Bro already mentioned.

4 Likes

switching to lts did it thanks :slight_smile:

2 Likes

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