Solved Sony WH-1000XM2 Headphones on FreeBSD via Bluetooth

good morning, nice comminity.

the context: I am learning how to setup these Sony headphones on FreeBSD using Blued.

the problem: these headphones notify me with a nice female voice whenever they connect or disconnect. At this moment, the headphones connect/disconnect continuously.

Please come with any help/ideas/etc, I am lost.

Bash:
# /boot/loader.conf

...

vkbd_load="yes"

ng_ubt_load="yes"

ng_l2cap_load="yes"

snd_dha_load="no"

snd_driver_load="yes"

cuse_load="yes"

Bash:
# /etc/rc.conf

kld_list="nvidia-modeset /boot/modules/ng_hci.ko"
linux_enable="yes"
hcsecd_enable="no"
bthidd_enable="no"
devd_enable="yes"
bluetooth_enable="yes"
blued_enable="yes"
virtual_oss_enable="yes"
virtual_oss_config="blued"
virtual_oss_blued="-T /dev/sndstat -S -a o, -4 -C 2 -c 2 -r 44100 -b 16 -s 1024 -R /dev/dsp -P /dev/bluetooth/70:26:05:89:6c:ce -d dsp -t vdsp.ctl"
sndiod_enable="yes"
snd_uaudio_enable="yes"

PS: do not hesitate to ask questions :)

best regards,
Dmitry
 
Have you also tried the guide from the handbook?

In my experience anyhow Bluetooth on FreeBSD is always a hit and miss.
 
Have you also tried the guide from the handbook?

In my experience anyhow Bluetooth on FreeBSD is always a hit and miss.

hi elgrande, yes I did. I can see my headphones, "connect" to them / "disconnect" from them. At this moment, the headphones do no longer report connection/disconnection.
 
FIXED.


Bash:
# /boot/loader.conf

kern.geom.label.disk_ident.enable="0"
kern.geom.label.gptid.enable="0"
cryptodev_load="YES"
zfs_load="YES"
coretemp_load="YES"
vkbd_load="YES"
snd_driver_load="YES"
cuse_load="yes"

Bash:
# /etc/rc.conf

# ...

kld_list="nvidia-modeset /boot/modules/ng_hci.ko"
linux_enable="YES"
dbus_enable="YES"
blued_enable="YES"
hcsecd_enable="NO"
sdpd_enable="YES"
bthidd_enable="NO"
bthidd_config="/etc/bluetooth/bthidd.conf"
bthidd_hids="/var/db/bthidd.hids"
devd_enable="YES"
moused_enable="YES"
bluetooth_enable="YES"
virtual_oss_enable="YES"
virtual_oss_configs="dsp"
virtual_oss_dsp="-T /dev/sndstat -C 2 -c 2 -r 44100 -b 16 -s 1024 -R /dev/null -P /dev/bluetooth/WH-1000XM2 -d dsp -t vdsp.ctl"
sndiod_enable="YES"

please note the /dev/bluetooth/WH-1000XM2 string. I tried using /dev/bluetooth/70:26:05:89:6c:ce instead, and it did not work. At all.

Bash:
# /etc/bluetooth/hosts

70:26:05:89:6c:ce    WH-1000XM2
 
If this is fixed, can you change the subject to solved? It will make it appear green and also helps others googling to determine which ones may be helpful for them.

Thanks for sharing. Also, what kind of range do you get with your headphones?
 
If this is fixed, can you change the subject to solved? It will make it appear green and also helps others googling to determine which ones may be helpful for them.

it is fixed. I am not sure how to change the subject ( cannot see a "change" button ). I have added the solved tag.
 
Thanks for sharing. Also, what kind of range do you get with your headphones?

well, I would say if I am within 3 meters of direct sight the sound quality is good. 5 meters or thick walls - the quality goes down rapidly. I searched for a device that talks bluetooth but with more power output, found nothing.
 
Ok, that is good to know. I have a room that wifi doesn't penetrate, so I have a separate wifi router just for that room. I would suspect that I too would have trouble unless in the room directly. And. consequently, I wouldn't be able to use it outside that room.

If you go to the very top of the thread, there should be 3 dots with a down arrow. Click that and select "Edit thread", then change the title from "(No prefix)" to "Solved".
 
Back
Top