Bluetooth earphones working on FreeBSD

I'm thinking of buying some bluetooth earphones, but would prefer some which worked on FreeBSD,

Any recommendations?

I would like to use them with a ThinkPad W520 running FreeBSD 15.1.
 
Everything supports A2DP nowadays, so that's not an issue. The bigger question is, does bluetooth itself work on the laptop?
 
Everything supports A2DP nowadays, so that's not an issue. The bigger question is, does bluetooth itself work on the laptop?
How do I tell?

I have a Lenovo bluetooth keyboard. How do I figure out if I can use it with my ThinkPad W520?

# hccontrol -n ubt0hci read_local_name

Local name: W520 (ubt0)

Not sure what else I can use too investigate the capabilities.
 
balanga Try this. Run bluetooth-config scan as root. Follow the prompts. This assumes bluetooth, hcsecd and bthidd are enabled in rc.conf (and maybe loader.conf).

Edit: when it prompts for a "pin", try either "0000" or nopin.
 
balanga Try this. Run bluetooth-config scan as root. Follow the prompts. This assumes bluetooth, hcsecd and bthidd are enabled in rc.conf (and maybe loader.conf).

Edit: when it prompts for a "pin", try either "0000" or nopin.
I don't have anything related to bluetooth in rc.conf
 
I got bluetooth working on my X220 a good few months ago, I was driving a pair of little battery powered bt speakers. I switched over to headphones and dacs and haven't bothered with bt for quite a long time now, but I did have it working.
 
Looks like I made some notes here.

And a photo here

It was actually september last year. Since then I've been playing a lot more with dacs and headphones and the bt stuff has got left aside. I seem to remember it worked pretty well, I remember those speakers supported true stereo over bluetooth with freebsd on the X220, which was nice. I probably didn't get the whole setup fully completed though.
 
Just a reminder, Bluetooth is actually on the same card as Wi-Fi. Sometimes, it's really a matter of having proper wifi firmware, rather than a kitchen-sink catch-all generic variant of the firmware for the card.
 
My card in the X220 is a Centrino Advanced-N 6205, which is an old one. From the notes I made I installed 'iwmbt-firmware' package to get it to work, but I don't remember the details now, I think I found someone else's howto and started off with that, then wrote up those notes at the end when I got it working. The steps might be a bit different on 15.x. Anyway, it definitely worked, and in full stereo too. The pair of speakers get paired with each other first, and then it looks like a single device to bt on freebsd. I think the part I didn't get fully completed was figuring out what to put in rc.conf so that it got auto-configured at boot time.
 
hi,

in freebsd 15.1 virtual oss became part of the base system, it is necessary to install only virtual_oss_bluetooth.

by default devd will trigger the necessary rc script to create netgraph bluetooth interface and turn on the hcsecd - that means no need in rc.conf to declare bluetooth, hcsecd, sdpd and etc.

first run
bluetooth-config scan
- that is part of pairing procedure, the script will update hcsecd config

when the device is paired then define oss audio character device, $BT_DEVICE - is the name in hcsecd config:
Code:
virtual_oss_configs="btdsp"
virtual_oss_btdsp="-S -a o,-1 -C 2 -c 2 -r 44100 -b 16 -s 1024 -R /dev/null -P /dev/bluetooth/$BT_DEVICE -d btdsp -t btdsp.ctl"

start/restart virtual oss service and check whether the character device is under /dev/btdsp.

PS: 1. you might need to load in advance the cuse kernel module. 2. When playing audio make sure mixer or audio player is pointed to oss device or outputs to oss device. 3. The microphone that is part of the headset doesnt work - hands free feature is not supported

This is the preliminary work.
 
Back
Top