bluetooth and firefox and oss or the other one

I actually got my bluetooth to earbuds working on 13.1 (not 13.2 RC6 go figure) , but it does not work with firefox (youtube) it still goes through the laptop speakers with bluetooth connected. the only thing I found was edit firefox about:config add oss to a new line for media.x.x that did not work so now I am asking.
Code:
/etc/bluetooth/
# $Id: hcsecd.conf,v 1.1 2003/05/26 22:50:47 max Exp $
# $FreeBSD$
#
# HCI security daemon configuration file
#
# Format:
#
# device {
#    option    value ;
# }
#
# Possible options and values
#
# Options    Values
# ----------------------------------
# bdaddr    xx:xx:xx:xx:xx:xx ;      - remote device BD_ADDR
# name         "any char" ;        - to set user friendly device name
# key        0x11223344 | nokey ;    - to set link key for the device
# pin        "secret" | nopin ;    - to PIN code for the device
#
# Notes:
#
#    Currently there is no way to select keys/PIN code based on which
#    local device received the request. Everything is based on remote
#    device BD_ADDR.
#
#    "nokey"    means that no link key has been defined and we should
#        send Link_Key_Negative_Reply command to the device.
#
#    "nopin"    means that no PIN code has been defined and we should
#        send PIN_Code_Negative_Reply command to the device
#

# Default entry is applied if no better match found
# It MUST have 00:00:00:00:00:00 as bdaddr
device {
    bdaddr    00:00:00:00:00:00;
    name    "Default entry";
    key    nokey;
    pin    nopin;
}

device {
    bdaddr    00:01:02:03:04:05;
    name    "Dummy";
    key    nokey;
    pin    "0000";
}

device {
    bdaddr    00:11:22:33:44:55;
    name    "Dummy";
    key    0x00112233445566778899aabbccddeeff; # 16 bytes key (hex string)
    pin    nopin;
}
device {
    bdaddr  28:fe:65:e0:5d:22;
    name    "Yellow earbuds";
    key     nokey;
    pin    "0000";
}
device {
    bdaddr    fc:58:fa:b3:f0:87;
    name     jlab-ebs;
    key    nokey;
    pin    "0000";
}

hosts
# $Id: hosts,v 1.1 2003/05/21 17:48:40 max Exp $
# $FreeBSD$
#
# Bluetooth Host Database
#
# This file should contain the Bluetooth addresses and aliases for hosts.
#
# BD_ADDR               Name [ alias0 alias1 ... ]

# 00:11:22:33:44:55    phone
28:fe:65:e0:5d:22       yellow-earbuds
fc:58:fa:b3:f0:87    jlab-ebs

rc.conf

sendmail_enable="NONE"
hostname="FreeBeSD.ork"
wlans_iwm0="wlan0"
wlans_ath0=wlan0
ifconfig_wlan0="SYNCDHCP"
sshd_enable="NO"
moused_enable="YES"
#update time on network
#ntpdate_enable="YES"
#ntpd_enable="YES"

powerd_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="NO"
dbus_enable="YES"
kld_list="amdgpu cuse fusefs ext2fs"
hcsecd_enable="YES"
webcamd_enable="YES"
huion_enable="YES"
ntpd_enable="YES"
lightdm_enable="YES"

device.hints

...


#headphones
hint.hdaa.1.nid33.config="as=2 seq=15"
#Speaker
hint.hdaa.1.nid20.config="as=2 seq=0"
connect script for one of my earbuds

Code:
#!/bin/sh

set -x
set -e

sudo service bluetooth start ubt0
sudo hccontrol -n ubt0hci create_connection jlab-ebs
sudo hccontrol -n ubt0hci write_authentication_enable 1
#sudo virtual_oss -T /dev/sndstat -S -a o,-4 -C 2 -c 2 -r 44100 -b 16 -s 1024 -R /dev/dsp1.1 -P /dev/bluetooth/jlab-ebs  -d dsp -t vdsp.ctl &
sudo virtual_oss -T /dev/sndstat  -a o,-4 -C 2 -c 2 -r 44100 -b 16 -s 20ms -R /dev/dsp1.1 -P /dev/bluetooth/jlab-ebs  -d dsp -t vdsp.ctl &
Code:
userx@FreeBeSD:~$ cat /dev/sndstat
Installed devices:
pcm0: <ATI R6xx (HDMI)> (play)
pcm1: <Realtek ALC236 (Analog 2.0+HP/2.0)> (play/rec) default
pcm2: <Realtek ALC236 (Right Analog Mic)> (rec)
Installed devices from userspace:
dsp: <Virtual OSS> (play/rec)

this does not work either.

Code:
userx@FreeBeSD:~$ pacmd list-sources | grep monitor
        name: <oss_output.dsp0.monitor>
        monitor_of: 0
                device.class = "monitor"
        name: <oss_output.dsp1.monitor>
        monitor_of: 1
                device.class = "monitor"

userx@FreeBeSD:~$ pacat --record -d oss_output.dsp0.monitor

it just hangs and the sound come out of the speakers and not the BT EB
from
 
Back
Top