Optimize Bluetooth volume control latency and fix WirePlumber startup race

This commit is contained in:
Luxferre committed 2026-11-04 16:39:05 +02:00
1 parent 85bf18ec32
commit c7cdde6734
30 files changed
+514 -185

No files matched your search

@@ -37,8 +37,15 @@ if [ -z "$SXMO_NO_AUDIO" ]; then
if [ "$(command -v pulseaudio)" ]; then
superctl start pulseaudio
elif [ "$(command -v pipewire)" ]; then
# pipewire-pulse will start pipewire
pidof -s pipewire >/dev/null 2>&1 || superctl start pipewire-pulse
if ! pidof -s pipewire >/dev/null 2>&1; then
superctl start pipewire
pw_wait=0
while [ ! -S "${XDG_RUNTIME_DIR:-/run/user/10000}/pipewire-0" ] && [ "$pw_wait" -lt 30 ]; do
sleep 0.1
pw_wait=$((pw_wait + 1))
done
fi
superctl start pipewire-pulse
pidof -s wireplumber >/dev/null 2>&1 || superctl start wireplumber
fi
fi
@@ -1,8 +1,27 @@
wireplumber.profiles = {
main = {
hardware.video-capture = disabled
monitor.bluez-midi = disabled
support.logind = disabled
monitor.bluez.seat-monitoring = disabled
support.reserve-device = disabled
monitor.alsa.reserve-device = disabled
support.portal-permissionstore = disabled
script.client.access-portal = disabled
}
}
wireplumber.settings = {
bluetooth.autoswitch-to-headset-profile = false
bluetooth.use-persistent-storage = false
device.routes.default-sink-volume = 0.512
}
monitor.bluez.properties = {
bluez5.roles = [ a2dp_sink a2dp_source bap_sink bap_source hsp_hs hsp_ag hfp_hf hfp_ag ]
bluez5.codecs = [ sbc sbc_xq aac ldac aptx aptx_hd aptx_ll aptx_ll_duplex faststream faststream_duplex opus_05 opus_05_51 opus_05_71 opus_05_dup opus_05_pro lc3 ]
bluez5.enable-sbc-xq = true
bluez5.enable-msbc = true
bluez5.enable-msbc = false
bluez5.enable-hw-volume = true
bluez5.hfphsp-backend = "native"
bluez5.hfphsp-backend-native-modem = "any"
@@ -1,6 +1,20 @@
wireplumber.profiles = {
main = {
hardware.video-capture = disabled
monitor.bluez-midi = disabled
support.logind = disabled
monitor.bluez.seat-monitoring = disabled
support.reserve-device = disabled
monitor.alsa.reserve-device = disabled
support.portal-permissionstore = disabled
script.client.access-portal = disabled
}
}
wireplumber.settings = {
bluetooth.autoswitch-to-headset-profile = false
bluetooth.use-persistent-storage = false
device.routes.default-sink-volume = 0.512
}
monitor.bluez.properties = {