diff --git a/hosts/fwbook.nix b/hosts/fwbook.nix index e3e9501..f01a691 100644 --- a/hosts/fwbook.nix +++ b/hosts/fwbook.nix @@ -83,15 +83,20 @@ in hardware.bluetooth.enable = true; hardware.bluetooth.powerOnBoot = true; # Fix robotic/distorted audio with AirPods over Bluetooth. - # WirePlumber 0.5 (nixpkgs 26.05+) enables mSBC for HFP by default, which - # produces robotic sounds with AirPods. Disabling mSBC falls back to CVSD - # for the headset/mic profile while AAC/SBC still handles A2DP audio output. + # WirePlumber 0.5 (nixpkgs 26.05+) auto-switches BT devices from A2DP to + # HFP whenever any app opens a mic stream (Chromium, Slack, etc.), which + # degrades both speaker and mic quality to 8 kHz CVSD/mSBC and causes the + # robotic sound. Disabling auto-switch keeps AirPods in A2DP permanently; + # meeting apps fall back to the laptop's built-in mic for input. services.pipewire.wireplumber.extraConfig = { "51-airpods-bluetooth" = { "monitor.bluez.properties" = { "bluez5.msbc-support" = false; "bluez5.hfphsp-backend" = "native"; }; + "wireplumber.settings" = { + "bluetooth.autoswitch-to-headset-profile" = false; + }; }; }; nixpkgs.config.permittedInsecurePackages = [