This ended up being more of a pain than I expected so I figured I’d write it down for the next person who tries.
- Set up your package manager sources if you haven’t already. Follow these instructions.
- Add the following packages pulseaudio, pulseaudio-utils, pulseaudio-module-bluetooth
sudo apt install pulseaudio pulseaudio-utils pulseaudio-module-bluetooth
- Put your speaker into pairing mode.
- Run
bluetoothctl
and run the following in the prompt:power on
agent on
scan on
- Wait until you see your speaker show in the scan list and note its hardware address.
- In the
bluetoothctl
prompt run the following:pair <hardware address>
- Hint: type the first few digits and then tab-completion works.
trust <hardware address>
connect <hardware address>
- If everything worked correctly it should say
connected: yes
. After that your PocketChip should remember the speaker. You may need to runconnect
again, to reconnect if you turn the speaker off and on, but you won’t need to re-pair. - In the prompt run:
paired-devices
- You should see the speaker in the list.
quit
- Try playing a sound (you can use PICO-8 or SunVox), you should hear sound from the connected speaker.
- If the sound is crazy loud (probably is) use
alsamixer
to adjust the volume.
Update
I’ve found that if pulse audio isn’t running before attempting to connect to the speaker, the bluetooth connection will fail. I wrote a script that helps make reconnecting easier.
#!/bin/bash
pulseaudio -k # kill existing service
pulseaudio --start
bluetoothctl -- connect <your speaker hardware address>
sleep 8
pacmd set-default-sink 1 # where 1 is the card id
amixer set Master 20%
Good luck and I hope this helped.