Random BSD Notes

Playing Bluetooth Audio with OpenBSD

OpenBSD removed Bluetooth support in 2014, so officially there is no way to connect a Bluetooth to your OpenBSD system. However, jcs@ posted on Twitter that he found a simple way to play audio via Bluetooth. He recommended the Creative BT-W2 USB dongle.

Creative BT dongle

Just plug it in and you should be good to go and see messages similar to the following in your system’s log and the stick should show a flashing blue light.

uaudio0 at uhub0 port 2 configuration 1 interface 1 "Creative Labs Creative Bluetooth Audio W2" 
    rev 2.00/1.00 addr 2
uaudio0: class v1, full-speed, sync, channels: 2 play, 1 rec, 0 ctls
audio1 at uaudio0
uhidev0 at uhub0 port 2 configuration 1 interface 3 "Creative Labs Creative Bluetooth Audio W2"
    rev 2.00/1.00 addr 2
uhidev0: iclass 3/0, 3 report ids
uhid0 at uhidev0 reportid 1: input=2, output=0, feature=0
uhid1 at uhidev0 reportid 2: input=18, output=18, feature=0
uhid2 at uhidev0 reportid 3: input=64, output=64, feature=0

If you see nothing at all, check your BIOS settings. The USB 3.0 mode setting in mine was set to Auto. Once I switched it to Enabled the dongle was attached. I use a Thinkpad T series so the name of your option might be different.

Pairing and Volume Control

To pair with an audio device set the device to pairing mode and long press the button on the stick. The blue light should flash rapidly. Once the stick is connected add it to sndiod:

# sndiod -f rsnd/1

Changing volume does not work with the regular utilities, you have to install the aucatctl package. Set the volume as follows (a lower value leads to a lower volume):

$ aucatctl master=20

$Id: bluetooth.md,v 1.4 2019/06/09 12:11:18 cvs Exp $