PipeWire: Difference between revisions
imported>Fufexan Add advanced configuration |
imported>Fufexan No edit summary |
||
Line 40: | Line 40: | ||
#"default.clock.max-quantum" = 8192; | #"default.clock.max-quantum" = 8192; | ||
}; | }; | ||
}; | |||
</syntaxHighlight> | |||
==Bluetooth Configuration== | |||
PipeWire handles Bluetooth very well, and it can be configured to use specific codecs. The mSBC codec provides slightly better sound quality in calls than regular HFP/HSP. | |||
<syntaxHighlight lang="nix"> | |||
services.pipewire = { | |||
media-session.config.bluez-monitor.rules = [ | |||
{ | |||
# Matches all cards | |||
matches = [ { "device.name" = "~bluez_card.*"; } ]; | |||
actions = { | |||
"update-props" = { | |||
"bluez5.reconnect-profiles" = [ "hfp_hf" "hsp_hs" "a2dp_sink" ]; | |||
# mSBC is not expected to work on all headset + adapter combinations. | |||
"bluez5.msbc-support" = true; | |||
}; | |||
}; | |||
} | |||
{ | |||
matches = [ | |||
# Matches all sources | |||
{ "node.name" = "~bluez_input.*"; } | |||
# Matches all outputs | |||
{ "node.name" = "~bluez_output.*"; } | |||
]; | |||
actions = { | |||
"node.pause-on-idle" = false; | |||
}; | |||
} | |||
]; | |||
}; | }; | ||
</syntaxHighlight> | </syntaxHighlight> |