Skip to content

Bluetooth headsets

Randy Northrup edited this page Nov 26, 2026 · 3 revisions

Bluetooth headsets

A Bluetooth headset works in OST like any other audio device: pick it in Settings ▸ Devices (or in a call, More ▸ Settings ▸ Audio settings). Its mute button works with no setup.

Teams on Windows also answers, rejects and ends calls from the headset's call button. Windows' Bluetooth service hands the headset's answer and hang-up commands to the call coordinator Teams reports its calls to. On Linux the Bluetooth audio gateway is PipeWire's, and stock PipeWire passes those commands only to a phone modem service (ModemManager) on the system bus. OST offers its calls as such a modem, so PipeWire can ring your headset for an OST call and hand its buttons to OST. That needs a one-time setup.

Set it up (stock PipeWire and WirePlumber)

The script is in /usr/share/ost-desktop/ with the .deb or .rpm packages, in the tarball's packaging/ folder, or in desktop/packaging/ in a checkout. It isn't available in the Flatpak: the sandbox can't own the system D-Bus name it needs.

sh install-hfp-calls.sh --dry-run                  # only list the changes
sh install-hfp-calls.sh                            # list the changes and ask
sh install-hfp-calls.sh --yes                      # the file changes, without asking
sh install-hfp-calls.sh --disable-modemmanager     # also agree to stopping ModemManager

Before it changes anything, the script lists every change.

  • --dry-run only lists them and changes nothing.
  • A plain run asks before it makes them. Without a terminal to ask at, it changes nothing.
  • --yes makes the file changes without asking. It leaves ModemManager alone.
  • ModemManager is touched only with --disable-modemmanager, or when you answer yes to its own separate question. With a modem present, it is never touched.

The changes:

  1. ~/.config/wireplumber/wireplumber.conf.d/ost-hfp-calls.conf, which tells PipeWire's Bluetooth gateway to look for OST's modem (and only OST's, never a real modem's). WirePlumber is restarted, so audio pauses for a moment.
  2. /etc/dbus-1/system.d/ost-hfp-calls.conf, installed with sudo, which lets your user own ModemManager's name on the system bus. Nobody else gains anything.
  3. Only with your separate yes: if ModemManager runs without a modem, it is stopped and disabled, since it holds that name otherwise. A modem plugged in later isn't detected until ModemManager is enabled again. If you have a real modem, ModemManager is left alone and the call buttons stay unavailable; mute still works. See "Patched PipeWire" below for that case.

A file of yours already in the way is backed up first. The script records what it changed (files it replaced, folders it created, ModemManager's earlier state) in ~/.local/share/ost/hfp-calls/ for --uninstall.

OST holds the name only while it runs and has the headset's buttons (Settings ▸ Devices, Teams' "Transfer controls to this app"). Only your user's PipeWire gateway can see OST's calls or answer and end them; NetworkManager, GeoClue and other services see a ModemManager without modems.

In a call

With the setup done, the headset rings for an incoming OST call. Its call button answers, rejects while ringing (where the headset has that gesture) and ends the call; mute and unmute work from the headset and from OST alike, each following the other. Only your own user's PipeWire can see or end OST's calls; other users and services can't.

Undo it

sh install-hfp-calls.sh --uninstall             # add --dry-run to only list what it undoes

This puts everything back as it was: files it replaced are restored, the files it added are removed, the folders it created are removed if they're empty, ModemManager is enabled and started again if it was before, and WirePlumber is restarted.

Patched PipeWire (the other way)

contrib/pipewire has a small PipeWire patch that lets the gateway look for the modem on the session bus instead. It needs no system bus policy and leaves ModemManager alone (so it also works on machines with a real modem), but you need a rebuilt libspa-bluez5 until the change is in PipeWire. Copy ost-hfp-modem.conf to ~/.config/wireplumber/wireplumber.conf.d/ and restart WirePlumber.

Without either

OST notices that PipeWire's gateway can't see its calls, logs why (no policy, ModemManager holding the name, or WirePlumber not looking) and shows nothing, as Teams shows nothing where the platform has no call control. The headset's call button then does nothing in OST calls. Mute keeps working either way: the headset's microphone gain going to 0 and back mutes and unmutes the call, and OST's own mute sets that gain to 0.

Clone this wiki locally