Switch bluetooth headphones to headset mode (HSP) for Zoom meeting

I am running KDE desktop, and have Bose QC35 II bluetooth headphones.
To use the built-in mic for Zoom meetings I need to manually switch the profile to HSP. I do this from sound settings.
The question is whether I can configure pipewire to detect video meetings and switch the profile automatically, or maybe there is an easy script/command that I can run to switch it manually. In that case, I would ideally want something that I can pin to the panel for easy one-click access.

inxi -F
System:
  Host: shmuel-manjaro Kernel: 5.15.7-1-MANJARO x86_64
    bits: 64 Desktop: KDE Plasma 5.23.4 Distro: Manjaro Linux
Machine:
  Type: Desktop Mobo: ASUSTeK model: PRIME B365M-A
    v: Rev X.0x serial: <superuser required>
    UEFI: American Megatrends v: 1203 date: 10/10/2019
CPU:
  Info: 8-core model: Intel Core i7-9700 bits: 64 type: MCP
    cache: L2: 2 MiB
  Speed (MHz): avg: 1100 min/max: 800/4700 cores: 1: 1200
    2: 1200 3: 1200 4: 1201 5: 1200 6: 1187 7: 817 8: 800
Graphics:
  Device-1: Intel CoffeeLake-S GT2 [UHD Graphics 630]
    driver: i915 v: kernel
  Device-2: Microdia USB Live camera type: USB
    driver: snd-usb-audio,uvcvideo
  Display: x11 server: X.org 1.21.1.2 driver:
    loaded: modesetting resolution: <missing: xdpyinfo>
  Message: Unable to show advanced data. Required tool
    glxinfo missing.
Audio:
  Device-1: Intel 200 Series PCH HD Audio
    driver: snd_hda_intel
  Device-2: Microdia USB Live camera type: USB
    driver: snd-usb-audio,uvcvideo
  Sound Server-1: ALSA v: k5.15.7-1-MANJARO running: yes
  Sound Server-2: PipeWire v: 0.3.40 running: yes
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit
  Ethernet
    driver: r8169
  IF: enp3s0 state: up speed: 1000 Mbps duplex: full
    mac: a8:5e:45:e2:87:3c
Bluetooth:
  Device-1: Cambridge Silicon Radio Bluetooth Dongle (HCI
  mode)
    type: USB driver: btusb
  Report: rfkill ID: hci0 state: up
    address: see --recommends
Drives:
  Local Storage: total: 2.26 TiB used: 848.3 GiB (36.7%)
  ID-1: /dev/sda vendor: Kingston model: SA400S37480G
    size: 447.13 GiB
  ID-2: /dev/sdb vendor: Toshiba model: HDWD120
    size: 1.82 TiB
Partition:
  ID-1: / size: 53.42 GiB used: 17.26 GiB (32.3%) fs: btrfs
    dev: /dev/sda5
  ID-2: /boot/efi size: 299.6 MiB used: 572 KiB (0.2%)
    fs: vfat dev: /dev/sda6
  ID-3: /home size: 53.42 GiB used: 17.26 GiB (32.3%)
    fs: btrfs dev: /dev/sda5
  ID-4: /var/log size: 53.42 GiB used: 17.26 GiB (32.3%)
    fs: btrfs dev: /dev/sda5
Swap:
  Alert: No swap data was found.
Sensors:
  System Temperatures: cpu: 29.8 C mobo: 27.8 C
  Fan Speeds (RPM): N/A
Info:
  Processes: 302 Uptime: 36m Memory: 15.49 GiB
  used: 7.74 GiB (50.0%) Shell: Bash inxi: 3.3.11

No replies, so I guess the answer is no and no.
Is it feasible to switch to pulseaudio on Manjaro?
If I remember right from Ubuntu, pulseaudio is now able to detect a Zoom meeting and switch the audio profile accordingly.

remove manjaro-pipewire and install manjaro-pulse. use this script to get the desired result. you might want to remove the 2nd last line there. this one sudo dpkg-divert --rename --add /opt/zoom/zoom

1 Like

remove manjaro-pipewire and install manjaro-pulse . use this script to get the desired result. you might want to remove the 2nd last line there. this one sudo dpkg-divert --rename --add /opt/zoom/zoom

I am trying out this solution. When running that script without dpkg-divert I get
ln: failed to create symbolic link '/opt/zoom/zoom': File exists
However, it seems that dpkg-divert is not Arch compatible.

yes dpkg-divert is a debian thing so won’t work on arch.

# Move real zoom binary out if the way
sudo dpkg-divert --rename --add /opt/zoom/zoom

but what it actually is doing is removing the original zoom binary out of the way so it doesn’t conflict with the zoom binary (which it will create later) which is just a symbolic link to zoom.wrapper script.

solution is to remove the original zoom binary out of the /opt/zoom directory. make a backup folder in your home directory and move it there. sudo mv /opt/zoom/zoom ~/backup.

then try running the script again (without the second last line ofc) sh ./script-name.sh.

1 Like

@ishaanbhimwal Thanks for the help. I had issues with that script on Ubuntu, and still having issues with it on Manjaro, even after your last suggestion, so I think I will just put the whole subject of this thread on the back burner. It’s no big deal to switch profiles manually as I have been doing until now.

If you can doe it VIA command-line, you can always edit the zoom shortcut’s executable to change the mode, and if successful, then launch zoom.

similar issue here - https://askubuntu.com/questions/1248886/how-to-set-default-profile-for-bluetooth-headset