If the bluetooth connection does not drop when pavucontrol is kept open
the only thing a user should need to do to resolve this is remove module-suspend-on-idle
pacmd unload-module module-suspend-on-idle
and disable loading of module-suspend-on-idle for future desktop sessions
sudo sed -i '/load-module module-suspend-on-idle/s/^/#/' ~/.config/pulse/default.pa
If PulseAudio restart is needed, Manjaro users should use this command
systemctl --user restart pulseaudio
Using pulseaudio
command with -k
or --kill
and --start
options is only suitable for some old-school Arch users running PulseAudio without systemd socket and service
.ifexists
and .endif
form an important failsafe for loading Bluetooth modules
if they are commented out as suggested, nothing will happen immediately
But at some future time PulseAudio may fail to load one of the Bluetooth modules and the whole sound server will fail to start,
and user may not recall this reconfiguration change when the failure occurs
PulseAudio module module-switch-on-connect is not necessary for preventing suspension of Bluetooth sink
Users should consider the warning about use of this module:
PulseAudio/Documentation/module-switch-on-connect
This module is not loaded by default, beacuse it’s a bit too aggressive. If the user sets the default sink or source manually, that choice gets forgotten when plugging in a new sound card, which can be undesirable
If a user wants to try this module to see if suits their needs, the extra module can be added as a custom configuration in home folder
cat <<EOT > ~/.config/pulse/default.pa
.include /etc/pulse/default.pa
load-module module-switch-on-connect ignore_virtual=no
EOT
and restart PulseAudio (see systemctl command above) or reboot system
If the module is found to be undesirable, delete the custom configuration and unload the module from current session
rm ~/.config/pulse/default.pa; pacmd unload-module module-switch-on-connect