Incident Description

My earphone suddenly lost connection after running smoothly for a while. New connection could not be made although pulseaudio and bluetooth-related services had been restarted.

Solution

Use pacmd to reload module-bluetooth-discover and module-bluetooth-policy.

pacmd unload-module module-bluetooth-discover  && \
pacmd unload-module module-bluetooth-policy && \
pacmd load-module module-bluetooth-discover && \
pacmd load-module module-bluetooth-policy

Then Restart bluetooth service and pulseaudio.

What's pacmd

pacmd - Reconfigure a PulseAudio sound server during runtime