Skip to content

Commit

Permalink
Disable HSP/HFP profile in pipewire
Browse files Browse the repository at this point in the history
  • Loading branch information
Antiz96 committed Jun 17, 2024
1 parent a4c7b02 commit 6bf68ec
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
26 changes: 25 additions & 1 deletion Arch-Linux/Sway.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Sway

## Graphical drivers (optional)
## Graphical drivers

```bash
sudo pacman -S mesa # install nvidia instead of mesa if you have an Nvidia GPU.
Expand Down Expand Up @@ -119,6 +119,30 @@ sudo pacman -S kanshi openresolv wireguard-tools tlp
sudo systemctl mask systemd-rfkill.service systemd-rfkill.socket && sudo systemctl enable --now tlp.service
```

## Disable PipeWire HSP/HFP profile (optional)

Since wireplumber 0.5, some applications are triggering an audio profile switch for bluetooth headsets from A2DP profile to HSP/HFP profile, which results in a bad audio quality.
Most of the time, the audio profile is switched back to A2DP automatically after a few seconds but that's not always the case.

As I don't intend to ever use the built-in microphone of my headset (since I have a separate one), I just disable the HSP/HFP profile altogether as a workaround (be aware that the HSP profile is required to make headsets' built-in microphones working):

```bash
mkdir -p ~/.config/wireplumber/wireplumber.conf.d/
vim ~/.config/wireplumber/wireplumber.conf.d/51-disable-hsp-hfp-profile.conf
```

```text
wireplumber.settings = {
bluetooth.autoswitch-to-headset-profile = false
}
monitor.bluez.properties = {
bluez5.roles = [ a2dp_sink a2dp_source ]
}
```

See <https://gitlab.freedesktop.org/pipewire/wireplumber/-/issues/634> & <https://wiki.archlinux.org/title/Bluetooth_headset#Disable_PipeWire_HSP/HFP_profile> for more details.

## Theme

- Shell: Orchis-dark-compact - <https://www.gnome-look.org/p/1357889/>
Expand Down
2 changes: 1 addition & 1 deletion Arch-Linux/i3.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# i3

## Install Xorg and graphical drivers (optional)
## Install Xorg and graphical drivers

- For regular computers:

Expand Down

0 comments on commit 6bf68ec

Please sign in to comment.