I’m using GNOME with the following WirePlumber and PipeWire customisations:
{
# apple compat
services = {
usbmuxd.enable = true;
avahi.enable = true;
pipewire = {
raopOpenFirewall = true;
extraConfig.pipewire = {
"10-airplay" = {
"context.modules" = [
{
name = "libpipewire-module-raop-discover";
# increase the buffer size against dropouts/glitches:
# args."raop.latency.ms" = 500;
}
];
};
"10-higher-quantum"."context.properties"."default.clock.min-quantum" = 4096;
};
};
};
}
{
# audio
services = {
pulseaudio.enable = false;
pipewire = {
enable = true;
audio.enable = true;
pulse.enable = true;
alsa = {
enable = true;
support32Bit = true;
};
wireplumber = {
enable = true;
extraConfig = {
"10-bluez"."monitor.bluez.properties" = {
"bluez5.roles" = [
"hsp_hs"
"hsp_ag"
"hfp_hf"
"hfp_ag"
"a2dp_sink"
"a2dp_source"
"bap_sink"
"bap_source"
]; # enable all supported roles
};
"20-bluetooth-policy"."bluetooth.autoswitch-to-headset-profile" = false;
};
};
};
};
security.rtkit.enable = true;
environment.systemPackages = with pkgs; [ qpwgraph ];
}
{
# rtkit fix
# suggested by Discord user [REDACTED]
security = {
rtkit.args = [
"--no-canary"
"--rttime-usec-max=2000000"
];
};
}
(these attrsets are mkMerged together)
Now, I’m having the issue that my Bluetooth headphones (Sony WH-1000XM4) very often think that my computer is playing audio when it isn’t, which blocks other devices from playing audio at the same time (the device supports two connected devices at once).
Does anyone know why this could be?