USB problems only in second user account (connection crashes or fails)

Hello,

I am facing a problem with an USB Conference Speaker connected to a Display and USB Switch (to switch devices between two PCs).
Also connecting external drives (like USB drives or hard disks) somtimes fails on the second account. So it might be a more general USB problem but I focus on the sound issue here.

This is the setup:
Two PCs share

  • two monitors,
  • mouse,
  • keyboard,
  • a USB webcam and
  • the USB conference speaker

being connected to a KVM202DH switch (Amazon-Link)
With this switch I can use all the peripherals with two computers. Pressing a button I switch over to the other computer.

The issue is with the Anker conference speaker (Amazon-Link).

The problem:
Eveything works fine with manjaro Linux on the first account that has been generated during installation.
I added a second user account later which I also made member of the sudoers. For this second user the sound crashes after less then a second when e. g. playing something on youtube or when starting a call on Teams, Discord aso. After that, only two of the four device buttons are light, no sound is active any more. Looking intro the sound setting shows that sound output is mapped to “Dummy device” while the USB device is not available. Reconecting brings back the device but it crashes again immediatly after being accessed.
Again, this only happens for the second user. Everything works fine for the first one (as well as on the second PC - a Windows 10 machine).

Here are my system info (from the first user account):

System:
  Kernel: 6.1.31-2-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 13.1.1
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.1-x86_64
    root=UUID=ebf35e94-6a30-4d8f-af4e-f6d01c380f71 rw quiet apparmor=1
    security=apparmor resume=UUID=64bdb3e4-c962-4715-abad-b3763baf0ded
    udev.log_priority=3
  Desktop: Cinnamon v: 5.6.8 tk: GTK v: 3.24.37 vt: 7 dm: LightDM v: 1.32.0
    Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Desktop Mobo: ASRock model: B550M Pro4 serial: <superuser required>
    UEFI: American Megatrends LLC. v: P2.50 date: 10/19/2022
Battery:
  Message: No system battery data found. Is one present?
Memory:
  System RAM: available: 15 GiB used: 3.55 GiB (23.7%)
  RAM Report: permissions: Unable to run dmidecode. Root privileges required.
CPU:
  Info: model: AMD Ryzen 5 5600G 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: 0xA50000D
  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: 1816 high: 3900 min/max: 1400/4464 boost: enabled
    scaling: driver: acpi-cpufreq governor: schedutil cores: 1: 1400 2: 3900
    3: 1400 4: 1400 5: 1400 6: 1400 7: 1400 8: 3900 9: 1400 10: 1400 11: 1400
    12: 1400 bogomips: 93467
  Flags: 3dnowprefetch abm adx aes aperfmperf apic arat avic avx avx2 bmi1
    bmi2 bpext cat_l3 cdp_l3 clflush clflushopt clwb clzero cmov cmp_legacy
    constant_tsc cpb cppc cpuid cqm cqm_llc cqm_mbm_local cqm_mbm_total
    cqm_occup_llc cr8_legacy cx16 cx8 de decodeassists erms extapic
    extd_apicid f16c flushbyasid fma fpu fsgsbase fsrm fxsr fxsr_opt ht
    hw_pstate ibpb ibrs ibs invpcid irperf lahf_lm lbrv lm mba mca mce
    misalignsse mmx mmxext monitor movbe msr mtrr mwaitx nonstop_tsc nopl npt
    nrip_save nx ospke osvw overflow_recov pae pat pausefilter pclmulqdq
    pdpe1gb perfctr_core perfctr_llc perfctr_nb pfthreshold pge pku pni popcnt
    pse pse36 rapl rdpid rdpru rdrand rdseed rdt_a rdtscp rep_good sep sha_ni
    skinit smap smca smep ssbd sse sse2 sse4_1 sse4_2 sse4a ssse3 stibp succor
    svm svm_lock syscall tce topoext tsc tsc_scale umip v_spec_ctrl
    v_vmsave_vmload vaes vgif vmcb_clean vme vmmcall vpclmulqdq wbnoinvd wdt
    x2apic xgetbv1 xsave xsavec xsaveerptr xsaveopt xsaves
  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: AMD Cezanne [Radeon Vega Series / Radeon Mobile Series]
    driver: amdgpu v: kernel arch: GCN-5 code: Vega process: GF 14nm
    built: 2017-20 pcie: gen: 3 speed: 8 GT/s lanes: 16 link-max: gen: 4
    speed: 16 GT/s ports: active: DP-1,HDMI-A-1 empty: DP-2 bus-ID: 06:00.0
    chip-ID: 1002:1638 class-ID: 0300 temp: 28.0 C
  Device-2: webcam driver: snd-usb-audio,uvcvideo type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-6.1:4 chip-ID: 1d6c:0103
    class-ID: 0102 serial: <filter>
  Display: x11 server: X.Org v: 21.1.8 driver: X: loaded: amdgpu
    unloaded: modesetting alternate: fbdev,vesa dri: radeonsi gpu: amdgpu
    display-ID: :0 screens: 1
  Screen-1: 0 s-res: 2960x1050 s-dpi: 96 s-size: 783x277mm (30.83x10.91")
    s-diag: 831mm (32.7")
  Monitor-1: DP-1 mapped: DisplayPort-0 pos: left model: AOC LM765
    serial: <filter> built: 2005 res: 1280x1024 hz: 75 dpi: 96 gamma: 1.2
    size: 340x270mm (13.39x10.63") diag: 434mm (17.1") ratio: 5:4 modes:
    max: 1280x1024 min: 720x400
  Monitor-2: HDMI-A-1 mapped: HDMI-A-0 pos: primary,right model: AOC 2219
    serial: <filter> built: 2010 res: 1680x1050 hz: 60 dpi: 90 gamma: 1.2
    size: 474x296mm (18.66x11.65") diag: 559mm (22") ratio: 16:10 modes:
    max: 1680x1050 min: 720x400
  API: OpenGL v: 4.6 Mesa 23.0.4 renderer: AMD Radeon Graphics (renoir LLVM
    15.0.7 DRM 3.49 6.1.31-2-MANJARO) direct-render: Yes
Audio:
  Device-1: AMD Renoir Radeon High Definition Audio 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: 06:00.1 chip-ID: 1002:1637 class-ID: 0403
  Device-2: AMD Family 17h/19h HD Audio vendor: ASRock 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: 06:00.6 chip-ID: 1022:15e3 class-ID: 0403
  Device-3: webcam driver: snd-usb-audio,uvcvideo type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-6.1:4 chip-ID: 1d6c:0103
    class-ID: 0102 serial: <filter>
  Device-4: ANKER PowerConf S330 driver: hid-generic,snd-usb-audio,usbhid
    type: USB rev: 2.0 speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-6.4:9
    chip-ID: 291a:3308 class-ID: 0300 serial: <filter>
  API: ALSA v: k6.1.31-2-MANJARO status: kernel-api with: aoss
    type: oss-emulator tools: alsactl,alsamixer,amixer
  Server-1: JACK v: 1.9.22 status: off tools: N/A
  Server-2: PipeWire v: 0.3.70 status: off tools: pw-cli
  Server-3: PulseAudio v: 16.1 status: active with: pulseaudio-alsa
    type: plugin tools: pacat,pactl,pavucontrol
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: ASRock driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1
    port: f000 bus-ID: 03:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp3s0 state: down mac: <filter>
  Device-2: Intel Wireless 3165 driver: iwlwifi v: kernel pcie: gen: 1
    speed: 2.5 GT/s lanes: 1 bus-ID: 04:00.0 chip-ID: 8086:3165 class-ID: 0280
  IF: wlp4s0 state: up mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: dynamic noprefixroute scope: global
  IP v6: <filter> type: noprefixroute scope: link
  WAN IP: <filter>
Bluetooth:
  Device-1: Intel Bluetooth wireless interface driver: btusb v: 0.8 type: USB
    rev: 2.0 speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-9:7 chip-ID: 8087:0a2a
    class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 1 state: up address: see --recommends
Logical:
  Message: No logical block device data found.
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 2.27 TiB used: 145.85 GiB (6.3%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Western Digital
    model: WD Blue SN570 500GB size: 465.76 GiB block-size: physical: 512 B
    logical: 512 B speed: 31.6 Gb/s lanes: 4 tech: SSD serial: <filter>
    fw-rev: 234110WD temp: 31.9 C scheme: GPT
  ID-2: /dev/sda maj-min: 8:0 vendor: Hitachi model: HUA723020ALA641
    size: 1.82 TiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    tech: HDD rpm: 7200 serial: <filter> fw-rev: A840 scheme: MBR
  Optical-1: /dev/sr0 vendor: HL-DT-ST model: DVDRAM GH24NSD6 rev: LU00
    dev-links: cdrom
  Features: speed: 12 multisession: yes audio: yes dvd: yes
    rw: cd-r,cd-rw,dvd-r,dvd-ram state: running
Partition:
  ID-1: / raw-size: 48.83 GiB size: 47.76 GiB (97.81%) used: 22.41 GiB (46.9%)
    fs: ext4 dev: /dev/nvme0n1p2 maj-min: 259:2 label: N/A
    uuid: ebf35e94-6a30-4d8f-af4e-f6d01c380f71
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 312 KiB (0.1%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1 label: N/A
    uuid: C823-B964
  ID-3: /home raw-size: 351.79 GiB size: 345.2 GiB (98.13%)
    used: 123.44 GiB (35.8%) fs: ext4 dev: /dev/nvme0n1p5 maj-min: 259:5
    label: N/A uuid: a8cb0171-846f-4c15-b551-737b7369c45b
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 16.02 GiB used: 0 KiB (0.0%)
    priority: -2 dev: /dev/nvme0n1p3 maj-min: 259:3 label: N/A
    uuid: 64bdb3e4-c962-4715-abad-b3763baf0ded
Unmounted:
  ID-1: /dev/nvme0n1p4 maj-min: 259:4 size: 48.83 GiB fs: ext4 label: N/A
    uuid: aeb3e618-3e72-4cfe-9378-5cc206c719a8
  ID-2: /dev/sda1 maj-min: 8:1 size: 1.82 TiB fs: ext4 label: Lager
    uuid: d1372eab-dd0f-4891-b737-f32a88bd6c40
USB:
  Hub-1: 1-0:1 info: hi-speed hub with single TT ports: 10 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 1d6b:0002
    class-ID: 0900
  Hub-2: 1-6:2 info: Terminus Hub ports: 4 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 power: 100mA
    chip-ID: 1a40:0101 class-ID: 0900
  Device-1: 1-6.1:4 info: webcam type: video,audio
    driver: snd-usb-audio,uvcvideo interfaces: 4 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 power: 500mA
    chip-ID: 1d6c:0103 class-ID: 0102 serial: <filter>
  Device-2: 1-6.2:6 info: Cherry GmbH Corded Device type: keyboard,HID
    driver: hid-generic,usbhid interfaces: 2 rev: 2.0 speed: 1.5 Mb/s (183 KiB/s)
    lanes: 1 mode: 1.0 power: 100mA chip-ID: 046a:c098 class-ID: 0300
  Device-3: 1-6.3:8 info: Primax HP Optical Mouse type: mouse
    driver: hid-generic,usbhid interfaces: 1 rev: 2.0 speed: 1.5 Mb/s (183 KiB/s)
    lanes: 1 mode: 1.0 power: 100mA chip-ID: 0461:4d20 class-ID: 0301
  Device-4: 1-6.4:9 info: ANKER PowerConf S330 type: audio,HID
    driver: hid-generic,snd-usb-audio,usbhid interfaces: 5 rev: 2.0
    speed: 12 Mb/s (1.4 MiB/s) lanes: 1 mode: 1.1 power: 500mA
    chip-ID: 291a:3308 class-ID: 0300 serial: <filter>
  Hub-3: 1-7:3 info: Genesys Logic Hub ports: 4 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 power: 100mA
    chip-ID: 05e3:0608 class-ID: 0900
  Device-1: 1-8:5 info: ASRock LED Controller type: HID
    driver: hid-generic,usbhid interfaces: 1 rev: 1.1 speed: 12 Mb/s (1.4 MiB/s)
    lanes: 1 mode: 1.1 power: 100mA chip-ID: 26ce:01a2 class-ID: 0300
    serial: <filter>
  Device-2: 1-9:7 info: Intel Bluetooth wireless interface type: bluetooth
    driver: btusb interfaces: 2 rev: 2.0 speed: 12 Mb/s (1.4 MiB/s) lanes: 1
    mode: 1.1 power: 100mA chip-ID: 8087:0a2a class-ID: e001
  Hub-4: 2-0:1 info: super-speed hub ports: 4 rev: 3.1
    speed: 10 Gb/s (1.16 GiB/s) lanes: 1 mode: 3.2 gen-2x1 chip-ID: 1d6b:0003
    class-ID: 0900
  Hub-5: 3-0:1 info: hi-speed hub with single TT ports: 4 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 1d6b:0002
    class-ID: 0900
  Hub-6: 3-2:2 info: ASMedia ASM1074 High-Speed hub ports: 4 rev: 2.1
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 power: 100mA
    chip-ID: 174c:2074 class-ID: 0900
  Hub-7: 4-0:1 info: super-speed hub ports: 2 rev: 3.1
    speed: 10 Gb/s (1.16 GiB/s) lanes: 1 mode: 3.2 gen-2x1 chip-ID: 1d6b:0003
    class-ID: 0900
  Hub-8: 4-2:2 info: ASMedia ASM1074 SuperSpeed hub ports: 4 rev: 3.0
    speed: 5 Gb/s (596.0 MiB/s) lanes: 1 mode: 3.2 gen-1x1 power: 8mA
    chip-ID: 174c:3074 class-ID: 0900
  Hub-9: 5-0:1 info: hi-speed hub with single TT ports: 4 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 1d6b:0002
    class-ID: 0900
  Hub-10: 6-0:1 info: super-speed hub ports: 2 rev: 3.1
    speed: 10 Gb/s (1.16 GiB/s) lanes: 1 mode: 3.2 gen-2x1 chip-ID: 1d6b:0003
    class-ID: 0900
Sensors:
  System Temperatures: cpu: 31.4 C mobo: N/A gpu: amdgpu temp: 29.0 C
  Fan Speeds (RPM): N/A
Info:
  Processes: 323 Uptime: 49m wakeups: 0 Init: systemd v: 253 default: graphical
  tool: systemctl Compilers: gcc: 13.1.1 clang: 15.0.7 Packages: 1498
  pm: pacman pkgs: 1490 libs: 479 tools: gnome-software,pamac,yay pm: flatpak
  pkgs: 8 Shell: Bash v: 5.1.16 running-in: gnome-terminal inxi: 3.3.27

Can anyone help to solve this wired problem?

login as the user where everything works well. open a terminal and check the command

groups

it will display all groups that are assigned to this user. then log out and login as the second user with the problems. run the groups command again and check if there is a difference of the assigned groups between this 2 users.

I already tried to allign the groups to have it exactly the same for both users (axel ist the first user).

axel@BueroPC ~]$ groups
sys network power users lp wheel axel

ewy@BueroPC ~]$ groups
sys network power users lp wheel ewy

So the only difference is the group named with the user’s name

I just remembered, that the other user (my wife :wink: ) mentioned issues with USB drives as well. I added this into my initial post.
(BTW: Just added Links to the products in my first post)

Are you using hot user switching - essentially understood as - is the devices in use on one pc when you switch to the other?

I think such setup is likely to generate issues especially if the device in question is in use and therefore locked to the system using it.

You can test this by logging of the computer currently using the device(s) before switching to the other.

If the issue is eliminated you know why :slight_smile:

Well, all of a suddon it works. I have no clue why, I did not change anything. Maybe some package was updated. Anyway - solved

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