30th Apr, 2016, 12:12 AM
This works 90% of the time, but not always.
So treat it as in development.
Well after some digging, I finally got Xbian to output the audio stream from a bluetooth dongle to a bluetooth headset (I guess it should be the same for headphones)
(This was done on a RPi2 with the DEVEL sources) - but shouldn't make a difference.
1) Install the necessary packages
NB: bluez-firmware should only be required if your dongle is a based on a BCM203x chipset
Reboot
2) Now connect the bluetooth device (This is similar to a keyboard, but no password is required.
Check the adapter has been found.
Something like this should show up.
Now scan for the adaptor - make sure it is turned on and is in discover mode.
(Note this number, yours will be different)
Now in Xbian System --> System -> Audio Output, select "Playback recording through the PulseAudio sound server"
This will ensure the pulseaudio is running
check with ps -ef|grep -i pulse
Sometimes there are two instances running. If that is the case, try a reboot until there is only one
If all has gone well, you should hear audio through your bluetooth headset, and the girlfriend/wife/dog/goldfish can sleep undisturbed while you watch DeadPool on full volume.
So treat it as in development.
Well after some digging, I finally got Xbian to output the audio stream from a bluetooth dongle to a bluetooth headset (I guess it should be the same for headphones)
(This was done on a RPi2 with the DEVEL sources) - but shouldn't make a difference.
1) Install the necessary packages
Terminal
sudo apt-get install pulseaudio pulseaudio-module-bluetooth bluez-firmware
NB: bluez-firmware should only be required if your dongle is a based on a BCM203x chipset
Reboot
2) Now connect the bluetooth device (This is similar to a keyboard, but no password is required.
Check the adapter has been found.
Something like this should show up.
Terminal
xbian@xbian ~ $ lsusb
Bus 001 Device 005: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Bus 001 Device 004: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 005: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Bus 001 Device 004: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Now scan for the adaptor - make sure it is turned on and is in discover mode.
Terminal
xbian@xbian ~ $ hcitool scan
Scanning ...
94:CE:2C:FA:1A:C7 SBH20
Scanning ...
94:CE:2C:FA:1A:C7 SBH20
Now in Xbian System --> System -> Audio Output, select "Playback recording through the PulseAudio sound server"
This will ensure the pulseaudio is running
check with ps -ef|grep -i pulse
Sometimes there are two instances running. If that is the case, try a reboot until there is only one
Terminal
xbian@xbian ~ $ sudo bluetoothctl
[NEW] Controller 00:1A:7D:DA:71:13 xbian [default]
[bluetooth]# power on
Changing power on succeeded
[bluetooth]# pairable on
Changing pairable on succeeded
[bluetooth]# scan on
Discovery started
[CHG] Controller 00:1A:7D:DA:71:13 Discovering: yes
[NEW] Device 94:CE:2C:FA:1A:C7 SBH20
[CHG] Device 94:CE:2C:FA:1A:C7 RSSI: -96
[CHG] Device 94:CE:2C:FA:1A:C7 RSSI: -54
[bluetooth]# pair 94:CE:2C:FA:1A:C7
Attempting to pair with 94:CE:2C:FA:1A:C7
[CHG] Device 94:CE:2C:FA:1A:C7 Connected: yes
[CHG] Device 94:CE:2C:FA:1A:C7 UUIDs:
00001108-0000-1000-8000-00805f9b34fb
0000110b-0000-1000-8000-00805f9b34fb
0000110c-0000-1000-8000-00805f9b34fb
0000110e-0000-1000-8000-00805f9b34fb
0000111e-0000-1000-8000-00805f9b34fb
[CHG] Device 94:CE:2C:FA:1A:C7 Paired: yes
Pairing successful
[CHG] Device 94:CE:2C:FA:1A:C7 Connected: no
[bluetooth]# trust 94:CE:2C:FA:1A:C7
[CHG] Device 94:CE:2C:FA:1A:C7 Trusted: yes
Changing 94:CE:2C:FA:1A:C7 trust succeeded
[bluetooth]# connect 94:CE:2C:FA:1A:C7
Attempting to connect to 94:CE:2C:FA:1A:C7
[CHG] Device 94:CE:2C:FA:1A:C7 Connected: yes
Connection successful
[bluetooth]# quit
[DEL] Controller 00:1A:7
[NEW] Controller 00:1A:7D:DA:71:13 xbian [default]
[bluetooth]# power on
Changing power on succeeded
[bluetooth]# pairable on
Changing pairable on succeeded
[bluetooth]# scan on
Discovery started
[CHG] Controller 00:1A:7D:DA:71:13 Discovering: yes
[NEW] Device 94:CE:2C:FA:1A:C7 SBH20
[CHG] Device 94:CE:2C:FA:1A:C7 RSSI: -96
[CHG] Device 94:CE:2C:FA:1A:C7 RSSI: -54
[bluetooth]# pair 94:CE:2C:FA:1A:C7
Attempting to pair with 94:CE:2C:FA:1A:C7
[CHG] Device 94:CE:2C:FA:1A:C7 Connected: yes
[CHG] Device 94:CE:2C:FA:1A:C7 UUIDs:
00001108-0000-1000-8000-00805f9b34fb
0000110b-0000-1000-8000-00805f9b34fb
0000110c-0000-1000-8000-00805f9b34fb
0000110e-0000-1000-8000-00805f9b34fb
0000111e-0000-1000-8000-00805f9b34fb
[CHG] Device 94:CE:2C:FA:1A:C7 Paired: yes
Pairing successful
[CHG] Device 94:CE:2C:FA:1A:C7 Connected: no
[bluetooth]# trust 94:CE:2C:FA:1A:C7
[CHG] Device 94:CE:2C:FA:1A:C7 Trusted: yes
Changing 94:CE:2C:FA:1A:C7 trust succeeded
[bluetooth]# connect 94:CE:2C:FA:1A:C7
Attempting to connect to 94:CE:2C:FA:1A:C7
[CHG] Device 94:CE:2C:FA:1A:C7 Connected: yes
Connection successful
[bluetooth]# quit
[DEL] Controller 00:1A:7
If all has gone well, you should hear audio through your bluetooth headset, and the girlfriend/wife/dog/goldfish can sleep undisturbed while you watch DeadPool on full volume.