olli@
Developer
Here’s just a small recommendation if you want to connect Bluetooth audio devices to a FreeBSD machine, such as wireless speakers or headphones.
Unfortunately, FreeBSD’s support for Bluetooth audio devices is rather weak. Some devices work via the virtual_oss port, but many don’t work. It also requires a lot of manual work.
Therefore I’ve been looking for an alternative, and I found this little USB Bluetooth dongle (the link points to Amazon Germany – if you use Amazon somewhere else, please use the search function to locate this or something similar; also see my reply #3 below for alternative products that work the same).
The special thing about this dongle is that it is not an actual USB Bluetooth adapter. Instead, the operating system recognizes it as a standard USB sound card. When you plug it in, FreeBSD automatically attaches it with the snd_uaudio(4) driver and creates a pcm(4) device that appears in /dev/sndstat. Bluetooth drivers are not required.
Here’s the dmesg output from the attachment:
Output from
As you can see, the new device got the number 5 (“pcm5”), so the command
According to the above output, the device also supports a “record” channel for the built-in microphone of head-sets and some speakers, so you should be able to use this for phone calls, video conferences and similar. I haven’t tried this, though, because I only need the playback function.
Unfortunately, FreeBSD’s support for Bluetooth audio devices is rather weak. Some devices work via the virtual_oss port, but many don’t work. It also requires a lot of manual work.
Therefore I’ve been looking for an alternative, and I found this little USB Bluetooth dongle (the link points to Amazon Germany – if you use Amazon somewhere else, please use the search function to locate this or something similar; also see my reply #3 below for alternative products that work the same).
The special thing about this dongle is that it is not an actual USB Bluetooth adapter. Instead, the operating system recognizes it as a standard USB sound card. When you plug it in, FreeBSD automatically attaches it with the snd_uaudio(4) driver and creates a pcm(4) device that appears in /dev/sndstat. Bluetooth drivers are not required.
Here’s the dmesg output from the attachment:
Code:
ugen0.9: <vendor 0x0a12 B10> at usbus0
uaudio0 on uhub1
uaudio0: <vendor 0x0a12 B10, class 0/0, rev 2.00/25.19, addr 12> on usbus0
uaudio0: Play[0]: 48000 Hz, 2 ch, 16-bit S-LE PCM format, 2x8ms buffer.
uaudio0: Record[0]: 48000 Hz, 1 ch, 16-bit S-LE PCM format, 2x8ms buffer.
uaudio0: No MIDI sequencer.
pcm5: <USB audio> on uaudio0
uaudio0: HID volume keys found.
cat /dev/sndstat
Code:
pcm0: <NVIDIA (0x0081) (HDMI/DP 8ch)> (play)
pcm1: <NVIDIA (0x0081) (HDMI/DP 8ch)> (play)
pcm2: <Realtek ALC1220 (Analog 5.1+HP/2.0)> (play/rec) default
pcm3: <Realtek ALC1220 (Rear Digital)> (play)
pcm4: <Realtek ALC1220 (Front Analog Mic)> (rec)
pcm5: <USB audio> (play/rec)
sysctl hw.snd.default_unit=5
can be used to use it by default. Now the audio output from my favorite media player goes to my “Melomania 1” true-wireless headphones. Even the little volume buttons on the earbuds work – when I press them, the playback volume is adjusted, and I can see the value change in the output of the mixer(8) command.According to the above output, the device also supports a “record” channel for the built-in microphone of head-sets and some speakers, so you should be able to use this for phone calls, video conferences and similar. I haven’t tried this, though, because I only need the playback function.
Last edited: