The Issue:
Hi guys! This is my first post here, I’m currently trying to figure out where to start with my issue? I have a USB switch that loads instantly when connecting to Windows, but can take upwards of 10 seconds to load when switching back to Garuda. I’ve found if I remove my keyboard, a Corsair K70, that time drops down to almost instant. From what I can see in DMesg compared to switching with and without the keyboard, it seems like it takes longer for the keyboard to reload? I’m not really sure how to dig down and diagnose the problem more. All my Google-fu has led me to sad dead ends and a still laggy USB Switch. Any help would be appreciated!
garuda-inxi output:
System:
Kernel: 6.0.12-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=6c924c47-0bf5-48a5-b097-1c7b9a0f0cc4 rw rootflags=subvol=@
quiet quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
resume=UUID=57a5a452-716f-41e3-a2f3-6bdf5fd9f6b7 loglevel=3 ibt=off
Desktop: i3 v: 4.21.1 info: i3bar vt: 7 dm: LightDM v: 1.32.0
Distro: Garuda Linux base: Arch Linux
Machine:
Type: Laptop System: LENOVO product: 82K2 v: IdeaPad Gaming 3 15ACH6
serial: Chassis: type: 10 v: IdeaPad Gaming 3 15ACH6
serial:
Mobo: LENOVO model: LNVNB161216 v: SDK0T76465 WIN
serial: UEFI: LENOVO v: H3CN30WW(V2.00)
date: 06/28/2021
Battery:
ID-1: BAT1 charge: 40.5 Wh (94.6%) condition: 42.8/45.0 Wh (95.1%)
volts: 12.8 min: 11.5 model: 0x43 0x65 0x6C 0x78 0x70 0x 0x4C 0x32 0x30
0x43 0x33 0x50 0x4500 type: Li-ion serial: status: not charging
cycles: 38
CPU:
Info: model: AMD Ryzen 5 5600H with Radeon Graphics bits: 64 type: MT MCP
arch: Zen 3 gen: 4 level: v3 note: check built: 2021-22
process: TSMC n7 (7nm) family: 0x19 (25) model-id: 0x50 (80) stepping: 0
microcode: 0xA50000C
Topology: cpus: 1x cores: 6 tpc: 2 threads: 12 smt: enabled cache:
L1: 384 KiB desc: d-6x32 KiB; i-6x32 KiB L2: 3 MiB desc: 6x512 KiB
L3: 16 MiB desc: 1x16 MiB
Speed (MHz): avg: 3968 high: 4280 min/max: 400/4280 boost: enabled
scaling: driver: amd-pstate governor: performance cores: 1: 4280 2: 3352
3: 3393 4: 4280 5: 3392 6: 4280 7: 4280 8: 4280 9: 4242 10: 3281 11: 4280
12: 4280 bogomips: 79051
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Vulnerabilities:
Type: itlb_multihit status: Not affected
Type: l1tf status: Not affected
Type: mds status: Not affected
Type: meltdown status: Not affected
Type: mmio_stale_data status: Not affected
Type: retbleed status: Not affected
Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
prctl
Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
sanitization
Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, IBRS_FW,
STIBP: always-on, RSB filling, PBRSB-eIBRS: Not affected
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: NVIDIA GA107M [GeForce RTX 3050 Ti Mobile] vendor: Lenovo
driver: nvidia v: 525.60.11 alternate: nouveau,nvidia_drm non-free: 525.xx+
status: current (as of 2022-12) arch: Ampere code: GAxxx
process: TSMC n7 (7nm) built: 2020-22 pcie: gen: 3 speed: 8 GT/s lanes: 8
link-max: gen: 4 speed: 16 GT/s lanes: 16 bus-ID: 01:00.0
chip-ID: 10de:25a0 class-ID: 0302
Device-2: AMD Cezanne [Radeon Vega Series / Radeon Mobile Series]
vendor: Lenovo driver: amdgpu v: kernel arch: GCN-5.1 code: Vega-2
process: TSMC n7 (7nm) built: 2018-21 pcie: gen: 3 speed: 8 GT/s lanes: 16
link-max: gen: 4 speed: 16 GT/s ports: active: HDMI-A-1,eDP-1 empty: none
bus-ID: 05:00.0 chip-ID: 1002:1638 class-ID: 0300 temp: 44.0 C
Device-3: IMC Networks Integrated Camera type: USB driver: uvcvideo
bus-ID: 1-3:3 chip-ID: 13d3:56ff class-ID: 0e02
Display: x11 server: X.Org v: 21.1.5 compositor: Picom v: git-98a5c
driver: X: loaded: amdgpu,nvidia unloaded: modesetting,nouveau
alternate: fbdev,nv,vesa dri: radeonsi gpu: amdgpu display-ID: :0
screens: 1
Screen-1: 0 s-res: 3840x1080 s-dpi: 96 s-size: 1016x285mm (40.00x11.22")
s-diag: 1055mm (41.54")
Monitor-1: HDMI-A-1 mapped: HDMI-A-0 pos: right model: Asus VS228
serial: built: 2016 res: 1920x1080 hz: 60 dpi: 102 gamma: 1.2
size: 476x268mm (18.74x10.55") diag: 546mm (21.5") ratio: 16:9 modes:
max: 1920x1080 min: 720x400
Monitor-2: eDP-1 mapped: eDP pos: primary,left model: AU Optronics 0xd1ed
built: 2019 res: 1920x1080 hz: 120 dpi: 142 gamma: 1.2
size: 344x193mm (13.54x7.6") diag: 394mm (15.5") ratio: 16:9 modes:
max: 1920x1080 min: 640x480
API: OpenGL Message: Unable to show GL data. Required tool glxinfo
missing.
Audio:
Device-1: AMD Renoir Radeon High Definition Audio vendor: Lenovo
driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
link-max: gen: 4 speed: 16 GT/s bus-ID: 05:00.1 chip-ID: 1002:1637
class-ID: 0403
Device-2: AMD ACP/ACP3X/ACP6x Audio Coprocessor vendor: Lenovo driver: N/A
alternate: snd_pci_acp3x, snd_rn_pci_acp3x, snd_pci_acp5x, snd_pci_acp6x,
snd_acp_pci, snd_rpl_pci_acp6x, snd_sof_amd_renoir pcie: gen: 3
speed: 8 GT/s lanes: 16 link-max: gen: 4 speed: 16 GT/s bus-ID: 05:00.5
chip-ID: 1022:15e2 class-ID: 0480
Device-3: AMD Family 17h/19h HD Audio vendor: Lenovo driver: snd_hda_intel
v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16 link-max: gen: 4
speed: 16 GT/s bus-ID: 05:00.6 chip-ID: 1022:15e3 class-ID: 0403
Sound API: ALSA v: k6.0.12-zen1-1-zen running: yes
Sound Server-1: PulseAudio v: 16.1 running: no
Sound Server-2: PipeWire v: 0.3.61 running: yes
Network:
Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: Lenovo driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1
port: 3000 bus-ID: 02:00.0 chip-ID: 10ec:8168 class-ID: 0200
IF: enp2s0 state: up speed: 1000 Mbps duplex: full mac:
Device-2: Realtek RTL8852AE 802.11ax PCIe Wireless Network Adapter
vendor: Lenovo driver: rtw89_8852ae v: kernel pcie: gen: 1 speed: 2.5 GT/s
lanes: 1 port: 2000 bus-ID: 03:00.0 chip-ID: 10ec:8852 class-ID: 0280
IF: wlo1 state: up mac:
IF-ID-1: anbox0 state: down mac:
Bluetooth:
Device-1: Realtek Bluetooth Radio type: USB driver: btusb v: 0.8
bus-ID: 1-4:5 chip-ID: 0bda:4852 class-ID: e001 serial:
Report: bt-adapter ID: hci0 rfk-id: 2 state: up address:
Drives:
Local Storage: total: 1.38 TiB used: 221.47 GiB (15.7%)
SMART Message: Required tool smartctl not installed. Check --recommends
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung
model: MZALQ512HBLU-00BL2 size: 476.94 GiB block-size: physical: 512 B
logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial:
rev: 5L2QFXM7 temp: 47.9 C scheme: GPT
ID-2: /dev/sda maj-min: 8:0 vendor: Western Digital
model: WD10SPZX-60Z10T1 size: 931.51 GiB block-size: physical: 4096 B
logical: 512 B speed: 6.0 Gb/s type: HDD rpm: 5400 serial:
rev: 1A05 scheme: GPT
Partition:
ID-1: / raw-size: 446.65 GiB size: 446.65 GiB (100.00%)
used: 221.47 GiB (49.6%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
used: 608 KiB (0.2%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
ID-3: /home raw-size: 446.65 GiB size: 446.65 GiB (100.00%)
used: 221.47 GiB (49.6%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
ID-4: /var/log raw-size: 446.65 GiB size: 446.65 GiB (100.00%)
used: 221.47 GiB (49.6%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
ID-5: /var/tmp raw-size: 446.65 GiB size: 446.65 GiB (100.00%)
used: 221.47 GiB (49.6%) 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: 27.26 GiB used: 0 KiB (0.0%) priority: 100
dev: /dev/zram0
ID-2: swap-2 type: partition size: 29.99 GiB used: 0 KiB (0.0%)
priority: -2 dev: /dev/nvme0n1p3 maj-min: 259:3
Sensors:
System Temperatures: cpu: 48.2 C mobo: N/A gpu: amdgpu temp: 44.0 C
Fan Speeds (RPM): N/A
Info:
Processes: 347 Uptime: 1h 1m wakeups: 1 Memory: 27.26 GiB
used: 3.84 GiB (14.1%) Init: systemd v: 252 default: graphical
tool: systemctl Compilers: gcc: 12.2.0 clang: 14.0.6 Packages: pm: pacman
pkgs: 1834 libs: 529 tools: gnome-software,pamac,paru pm: rpm pkgs: 0
Shell: fish v: 3.5.1 running-in: xfce4-terminal inxi: 3.3.24
Garuda (2.6.10-1):
System install date: 2022-10-08
Last full system update: 2022-12-14
Is partially upgraded: No
Relevant software: NetworkManager
Windows dual boot: No/Undetected
Snapshots: Snapper
Failed units: systemd-networkd-wait-online.service
Dmesg -w with a switch event with Corsair k70 Connected pre-switch:
[ 3998.791207] usb 1-2: new high-speed USB device number 27 using xhci_hcd
[ 3998.918910] usb 1-2: New USB device found, idVendor=214b, idProduct=7250, bcdDevice= 1.00
[ 3998.918914] usb 1-2: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[ 3998.918915] usb 1-2: Product: USB2.0 HUB
[ 3998.976343] hub 1-2:1.0: USB hub found
[ 3998.976659] hub 1-2:1.0: 4 ports detected
[ 3999.249218] usb 1-2.3: new full-speed USB device number 28 using xhci_hcd
[ 4003.417213] usb 1-2.3: New USB device found, idVendor=1b1c, idProduct=1b38, bcdDevice= 3.08
[ 4003.417219] usb 1-2.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 4003.417220] usb 1-2.3: Product: Corsair Gaming K70 RGB RAPIDFIRE Keyboard
[ 4003.417221] usb 1-2.3: Manufacturer: Corsair
[ 4003.417222] usb 1-2.3: SerialNumber: 06009019AF0D20295929625AF5001944
[ 4004.353564] input: Corsair Corsair Gaming K70 RGB RAPIDFIRE Keyboard Keyboard as /devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-2/1-2.3/1-2.3:1.0/0003:1B1C:1B38.0024/input/input92
[ 4004.354205] input: Corsair Corsair Gaming K70 RGB RAPIDFIRE Keyboard as /devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-2/1-2.3/1-2.3:1.0/0003:1B1C:1B38.0024/input/input93
[ 4004.354283] input: Corsair Corsair Gaming K70 RGB RAPIDFIRE Keyboard as /devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-2/1-2.3/1-2.3:1.0/0003:1B1C:1B38.0024/input/input94
[ 4004.354431] hid-generic 0003:1B1C:1B38.0024: input,hiddev98,hidraw3: USB HID v1.11 Keyboard [Corsair Corsair Gaming K70 RGB RAPIDFIRE Keyboard ] on usb-0000:05:00.3-2.3/input0
[ 4004.977686] hid-generic 0003:1B1C:1B38.0025: hiddev99,hidraw4: USB HID v1.11 Device [Corsair Corsair Gaming K70 RGB RAPIDFIRE Keyboard ] on usb-0000:05:00.3-2.3/input1
[ 4005.042203] usb 1-2.4: new full-speed USB device number 29 using xhci_hcd
[ 4005.143247] usb 1-2.4: New USB device found, idVendor=046d, idProduct=c332, bcdDevice= 3.02
[ 4005.143251] usb 1-2.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 4005.143253] usb 1-2.4: Product: Gaming Mouse G502
[ 4005.143254] usb 1-2.4: Manufacturer: Logitech
[ 4005.143255] usb 1-2.4: SerialNumber: 0C7A37473635
[ 4005.227371] input: Logitech Gaming Mouse G502 as /devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-2/1-2.4/1-2.4:1.0/0003:046D:C332.0026/input/input95
[ 4005.227628] hid-generic 0003:046D:C332.0026: input,hidraw5: USB HID v1.11 Mouse [Logitech Gaming Mouse G502] on usb-0000:05:00.3-2.4/input0
[ 4005.234403] input: Logitech Gaming Mouse G502 Keyboard as /devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-2/1-2.4/1-2.4:1.1/0003:046D:C332.0027/input/input96
[ 4005.286486] hid-generic 0003:046D:C332.0027: input,hiddev100,hidraw7: USB HID v1.11 Keyboard [Logitech Gaming Mouse G502] on usb-0000:05:00.3-2.4/input1
[ 4005.511011] input: ckb1: Corsair Gaming K70 RGB RAPIDFIRE Keyboard vKB as /devices/virtual/input/input99
[ 4005.511468] input: ckb1: Corsair Gaming K70 RGB RAPIDFIRE Keyboard vM as /devices/virtual/input/input100
With the Corsair k70 disconnected pre-switch:
[ 4013.409332] usb 1-2.3: USB disconnect, device number 28
[ 4016.589899] usb 1-2: USB disconnect, device number 27
[ 4016.589903] usb 1-2.4: USB disconnect, device number 29
[ 4019.067207] usb 1-2: new high-speed USB device number 30 using xhci_hcd
[ 4019.195903] usb 1-2: New USB device found, idVendor=214b, idProduct=7250, bcdDevice= 1.00
[ 4019.195907] usb 1-2: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[ 4019.195909] usb 1-2: Product: USB2.0 HUB
[ 4019.232579] hub 1-2:1.0: USB hub found
[ 4019.232896] hub 1-2:1.0: 4 ports detected
[ 4019.505196] usb 1-2.4: new full-speed USB device number 31 using xhci_hcd
[ 4019.604435] usb 1-2.4: New USB device found, idVendor=046d, idProduct=c332, bcdDevice= 3.02
[ 4019.604438] usb 1-2.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 4019.604440] usb 1-2.4: Product: Gaming Mouse G502
[ 4019.604441] usb 1-2.4: Manufacturer: Logitech
[ 4019.604442] usb 1-2.4: SerialNumber: 0C7A37473635
[ 4019.691566] input: Logitech Gaming Mouse G502 as /devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-2/1-2.4/1-2.4:1.0/0003:046D:C332.0028/input/input101
[ 4019.691934] hid-generic 0003:046D:C332.0028: input,hidraw3: USB HID v1.11 Mouse [Logitech Gaming Mouse G502] on usb-0000:05:00.3-2.4/input0
[ 4019.698576] input: Logitech Gaming Mouse G502 Keyboard as /devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-2/1-2.4/1-2.4:1.1/0003:046D:C332.0029/input/input102
[ 4019.750462] hid-generic 0003:046D:C332.0029: input,hiddev98,hidraw4: USB HID v1.11 Keyboard [Logitech Gaming Mouse G502] on usb-0000:05:00.3-2.4/input1
[ 4029.453198] usb 1-2.3: new full-speed USB device number 32 using xhci_hcd
[ 4033.625209] usb 1-2.3: New USB device found, idVendor=1b1c, idProduct=1b38, bcdDevice= 3.08
[ 4033.625213] usb 1-2.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 4033.625215] usb 1-2.3: Product: Corsair Gaming K70 RGB RAPIDFIRE Keyboard
[ 4033.625217] usb 1-2.3: Manufacturer: Corsair
[ 4033.625217] usb 1-2.3: SerialNumber: 06009019AF0D20295929625AF5001944
[ 4034.562481] input: Corsair Corsair Gaming K70 RGB RAPIDFIRE Keyboard Keyboard as /devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-2/1-2.3/1-2.3:1.0/0003:1B1C:1B38.002A/input/input105
[ 4034.562579] input: Corsair Corsair Gaming K70 RGB RAPIDFIRE Keyboard as /devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-2/1-2.3/1-2.3:1.0/0003:1B1C:1B38.002A/input/input106
[ 4034.562616] input: Corsair Corsair Gaming K70 RGB RAPIDFIRE Keyboard as /devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-2/1-2.3/1-2.3:1.0/0003:1B1C:1B38.002A/input/input107
[ 4034.562797] hid-generic 0003:1B1C:1B38.002A: input,hiddev99,hidraw5: USB HID v1.11 Keyboard [Corsair Corsair Gaming K70 RGB RAPIDFIRE Keyboard ] on usb-0000:05:00.3-2.3/input0
[ 4035.185566] hid-generic 0003:1B1C:1B38.002B: hiddev100,hidraw7: USB HID v1.11 Device [Corsair Corsair Gaming K70 RGB RAPIDFIRE Keyboard ] on usb-0000:05:00.3-2.3/input1
[ 4035.382762] input: ckb1: Corsair Gaming K70 RGB RAPIDFIRE Keyboard vKB as /devices/virtual/input/input108
[ 4035.382998] input: ckb1: Corsair Gaming K70 RGB RAPIDFIRE Keyboard vM as /devices/virtual/input/input109
lsusb because I felt it would be useful:
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 003: ID 048d:c966 Integrated Technology Express, Inc. ITE Device(8176)
Bus 003 Device 002: ID 28bd:0075 XP-Pen G430S
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 005: ID 0bda:4852 Realtek Semiconductor Corp. Bluetooth Radio
Bus 001 Device 003: ID 13d3:56ff IMC Networks Integrated CameraBus 001 Device 025: ID 046d:c332 Logitech, Inc. G502 Proteus Spectrum Optical Mouse
My mouse, plugged into my switchBus 001 Device 026: ID 1b1c:1b38 Corsair Corsair Gaming K70 RGB RAPIDFIRE Keyboard
My keyboard, plugged into my switchBus 001 Device 024: ID 214b:7250 Huasheng Electronics USB2.0 HUB
My USB SwitchBus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub