Can't switch between audio outputs sporadically (headset and speakers)

Hey. Currently I’m facing with sporadic impossibility to switch audio output between my Jabra headset and internal speakers using my laptop with Manjaro.

PS: It works fine if I’ll try to switch my TWS Bluetooth headset to speakers and back.

Here is some technical details about hardware and software. Thanks for your help!

System:
  Kernel: 6.1.1-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.1-x86_64
    root=UUID=6353e529-0af6-46ac-b3e4-580c88d17660 rw quiet
    cryptdevice=UUID=9c7aef54-f4d9-4cdb-9089-64e243b78077:luks-9c7aef54-f4d9-4cdb-9089-64e243b78077
    root=/dev/mapper/luks-9c7aef54-f4d9-4cdb-9089-64e243b78077 splash
    apparmor=1 security=apparmor udev.log_priority=3
  Desktop: GNOME v: 43.2 tk: GTK v: 3.24.36 wm: gnome-shell dm: GDM v: 43.0
    Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Laptop System: HP product: HP EliteBook 855 G8 Notebook PC v: N/A
    serial: <superuser required> Chassis: type: 10 serial: <superuser required>
  Mobo: HP model: 8895 v: KBC Version 43.30.00 serial: <superuser required>
    UEFI: HP v: T82 Ver. 01.11.00 date: 10/14/2022
Battery:
  ID-1: BAT0 charge: 32.6 Wh (100.0%) condition: 32.6/56.3 Wh (58.0%)
    volts: 12.1 min: 11.6 model: Hewlett-Packard Primary type: Li-ion
    serial: <filter> status: full cycles: 132
CPU:
  Info: model: AMD Ryzen 7 PRO 5850U 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: 8 tpc: 2 threads: 16 smt: enabled cache:
    L1: 512 KiB desc: d-8x32 KiB; i-8x32 KiB L2: 4 MiB desc: 8x512 KiB L3: 16 MiB
    desc: 1x16 MiB
  Speed (MHz): avg: 1765 high: 2394 min/max: 1600/4505 boost: enabled
    scaling: driver: acpi-cpufreq governor: schedutil cores: 1: 1900 2: 1978
    3: 1600 4: 1600 5: 1600 6: 1600 7: 1600 8: 2138 9: 1600 10: 1600 11: 1916
    12: 1600 13: 2394 14: 1600 15: 1916 16: 1600 bogomips: 60705
  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: AMD Cezanne [Radeon Vega Series / Radeon Mobile Series]
    vendor: Hewlett-Packard 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: eDP-1
    empty: DP-1,DP-2,HDMI-A-1 bus-ID: 04:00.0 chip-ID: 1002:1638 class-ID: 0300
    temp: 42.0 C
  Device-2: Luxvisions Innotech HP HD Camera type: USB driver: uvcvideo
    bus-ID: 1-1:2 chip-ID: 30c9:000f class-ID: 0e02 serial: <filter>
  Display: wayland server: X.org v: 1.21.1.6 with: Xwayland v: 22.1.7
    compositor: gnome-shell driver: X: loaded: amdgpu
    unloaded: modesetting,radeon alternate: fbdev,vesa dri: radeonsi
    gpu: amdgpu display-ID: 0
  Monitor-1: eDP-1 model: LG Display 0x069b built: 2019 res: 1920x1080
    dpi: 142 gamma: 1.2 size: 344x194mm (13.54x7.64") diag: 395mm (15.5")
    ratio: 16:9 modes: max: 1920x1080 min: 640x480
  API: OpenGL v: 4.6 Mesa 22.3.1 renderer: AMD Radeon Graphics (renoir LLVM
    14.0.6 DRM 3.49 6.1.1-1-MANJARO) direct render: Yes
Audio:
  Device-1: AMD Renoir Radeon High Definition Audio driver: snd_hda_intel
    v: kernel pcie: bus-ID: 3-1:4 chip-ID: 0b0e:0300 gen: 3 class-ID: 0300
    speed: 8 GT/s serial: <filter> lanes: 16 link-max: gen: 4 speed: 16 GT/s
    bus-ID: 04:00.1 chip-ID: 1002:1637 class-ID: 0403
  Device-2: AMD ACP/ACP3X/ACP6x Audio Coprocessor vendor: Hewlett-Packard
    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_pci_ps,
    snd_sof_amd_renoir, snd_sof_amd_rembrandt pcie: gen: 3 speed: 8 GT/s
    lanes: 16 link-max: gen: 4 speed: 16 GT/s bus-ID: 04:00.5
    chip-ID: 1022:15e2 class-ID: 0480
  Device-3: AMD Family 17h/19h HD Audio vendor: Hewlett-Packard
    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: 04:00.6 chip-ID: 1022:15e3
    class-ID: 0403
  Device-4: GN Netcom Jabra EVOLVE 20 MS type: USB
    driver: jabra,snd-usb-audio,usbhid
  Sound API: ALSA v: k6.1.1-1-MANJARO running: yes
  Sound Server-1: JACK v: 1.9.21 running: no
  Sound Server-2: PulseAudio v: 16.1 running: yes
  Sound Server-3: PipeWire v: 0.3.63 running: yes
Network:
  Device-1: Realtek RTL8822CE 802.11ac PCIe Wireless Network Adapter
    vendor: Hewlett-Packard driver: rtw_8822ce v: N/A modules: rtw88_8822ce pcie:
    gen: 1 speed: 2.5 GT/s lanes: 1 port: 2000 bus-ID: 01:00.0
    chip-ID: 10ec:c822 class-ID: 0280
  IF: wlp1s0 state: up mac: <filter>
  IF-ID-1: br-3046ea6eec0e state: up speed: 10000 Mbps duplex: unknown
    mac: <filter>
  IF-ID-2: docker0 state: down mac: <filter>
  IF-ID-3: kvnet state: unknown speed: 10 Mbps duplex: full mac: <filter>
  IF-ID-4: veth0443338 state: up speed: 10000 Mbps duplex: full mac: <filter>
  IF-ID-5: veth3d208d7 state: up speed: 10000 Mbps duplex: full mac: <filter>
Bluetooth:
  Device-1: Realtek 802.11ac WLAN Adapter type: USB driver: btusb v: 0.8
    bus-ID: 3-3:2 chip-ID: 0bda:b00c class-ID: e001 serial: <filter>
  Report: rfkill ID: hci0 rfk-id: 3 state: up address: see --recommends
Drives:
  Local Storage: total: 476.94 GiB used: 372.35 GiB (78.1%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Western Digital model: PC SN530
    SDBPNPZ-512G-1006 size: 476.94 GiB block-size: physical: 512 B
    logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter>
    rev: HPS2 temp: 32.9 C scheme: GPT
Partition:
  ID-1: / raw-size: 476.64 GiB size: 468.09 GiB (98.21%)
    used: 372.35 GiB (79.5%) fs: ext4 dev: /dev/dm-0 maj-min: 254:0
    mapped: luks-9c7aef54-f4d9-4cdb-9089-64e243b78077
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 472 KiB (0.2%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
Swap:
  Alert: No swap data was found.
Sensors:
  System Temperatures: cpu: 48.1 C mobo: N/A gpu: amdgpu temp: 43.0 C
  Fan Speeds (RPM): N/A
Info:
  Processes: 389 Uptime: 4h 2m wakeups: 3083 Memory: 30.67 GiB
  used: 5.57 GiB (18.2%) Init: systemd v: 252 default: graphical
  tool: systemctl Compilers: gcc: 12.2.0 clang: 14.0.6 Packages: 1345
  pm: pacman pkgs: 1331 libs: 330 tools: gnome-software,pamac pm: flatpak
  pkgs: 0 pm: snap pkgs: 14 Shell: Zsh v: 5.9 running-in: gnome-terminal
  inxi: 3.3.24

Hi there.

I’m not very technical but I use the same brand of headset that you use. When I go into my audio settings & look at output devices, I can see options for “Jabra Evolve” & Built-in Audio". I make sure that Jabra is selected & it works fine. Check the “Playback” option as well (or equivalent) to make sure “Jabra” is selected for whatever app you are wanting to get audio out of.

It should be fairly straightforward. Keep us posted & I hope you find a solution soon.

More power to you.

Ruziel :wink:

Please post more information about audio sinks available for audio playback

pactl list sinks

and this to show the name of default-sink

pactl get-default-sink

I would expect 2nd response to show default sink is alsa_output.pci... for speakers/headphones
and not alsa_output.usb... for USB headset

To change default sink to USB headset, check this command to get the sink name for the USB headset matches the name shown in first command

pactl list short sinks | cut -f2 | grep usb

If that works as expected, use this command to set default sink

pactl set-default-sink $(pactl list short sinks | cut -f2 | grep usb)