Change settings of Raspberry pi to send audio only to bluetooth speaker:
# The following line must be commented in the according file. After adjusting the file a reboot is required.
pi@raspberrypi:~/github/jomora/tmp $ grep dtparam=audio /boot/config.txt
# dtparam=audio=on
Connect the speaker:
# Put Bluetooth speaker into pairing mode
bluetoothctl scan on
# Look for the mac address of the speaker
bluetoothctl pair <mac>
bluetoothctl trust <mac>
bluetoothctl connect <mac>
If you turn off the speaker and turn it on again, you have to disconnect via bluetoothctl before reconnecting:
Change settings of Raspberry pi to send audio only to bluetooth speaker:
Connect the speaker:
If you turn off the speaker and turn it on again, you have to disconnect via bluetoothctl before reconnecting: