From 54c9880c0e6294cc85628ba96c48e239f06dfe5c Mon Sep 17 00:00:00 2001 From: Matthias Urlichs Date: Fri, 27 Dec 2024 15:00:52 +0100 Subject: [PATCH 1/2] We need to clear the config file in /tmp Otherwise old entries will linger when the service is reloaded. --- utils/bluez-tools/files/btagent.init | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/bluez-tools/files/btagent.init b/utils/bluez-tools/files/btagent.init index c6c0f380be0be9..a50ebcdbcd1b18 100644 --- a/utils/bluez-tools/files/btagent.init +++ b/utils/bluez-tools/files/btagent.init @@ -26,6 +26,7 @@ handle_bt_agent() { start_service() { config_load btagent + echo "" > $AGENT_PIN_FILE config_foreach handle_bt_agent btagent procd_open_instance From 3cdac1663d684af58580ff5c025b940d18475b58 Mon Sep 17 00:00:00 2001 From: Matthias Urlichs Date: Fri, 27 Dec 2024 15:02:04 +0100 Subject: [PATCH 2/2] pulseaudio: Do not disable dynamic module loading This option blocks pulseaudio from auto-loading modules, which prevents Bluetooth audio (i.e. using your router as a Bluetooth speaker) from working. --- sound/pulseaudio/files/pulseaudio.init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/pulseaudio/files/pulseaudio.init b/sound/pulseaudio/files/pulseaudio.init index 005d21fcaf7dcd..d6bfe104b7d920 100644 --- a/sound/pulseaudio/files/pulseaudio.init +++ b/sound/pulseaudio/files/pulseaudio.init @@ -23,7 +23,7 @@ start_service() { chmod 664 /dev/snd/* /dev/mixer /dev/dsp procd_open_instance - procd_set_param command $PROG --system --disallow-exit --disallow-module-loading --disable-shm --exit-idle-time=-1 --realtime=false + procd_set_param command $PROG --system --disallow-exit --disable-shm --exit-idle-time=-1 --realtime=false procd_close_instance }