Solved Bluetooth Headphone works but only one issue!

solved

---------------------------------------------------------------------------


I have WH-1000XM5 and I did connect it by following this procedure

1) run # bluetooth-config scan

add add the headphone and make sure to name it 'headphone' .. now 3 files would be created in /etc/bluetooth

Code:
bthidd.conf
hcsecd.conf
hosts

now add those lines to /etc/rc.conf

Code:
#bt audio
sndiod_enable="YES"
bluetooth_enable="YES"
sdpd_enable="YES"
hcsecd_enable="YES"
bthidd_enable="YES"
bthidd_config="/etc/bluetooth/bthidd.conf"
bthidd_hids="/var/db/bthidd.hids"
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/headphone -d dsp -t vdsp.ctl"

now reboot and audio will work from headphone when you boot up

the problem is I cannot control the output device every time I disconnect the headphone I need to disable those lines and reboot to restore audio from speakers
any idea how to change the output device without reboot.!
I use XFCE by the way
Thanks
 
I never try on boot before.
Whenever I wanted to connect my BT Headset I usually use the command line.
Then later I developed an GUI to manage my devices but at some point it stopped working but basically the tool call the same script I used in the command line.
But never used on boot.
When on user session, using scripts, you can just kill the process and the sound goes back to speakers.
 
Yes I know sometimes it's really hard to make it work, it's an headache.
I had trouble on that too and was able to resolve it, here's my post:

It's no longer working again running the same exact procedures.
But sometimes it does connect.
Do you feel lucky?
 
Back
Top