Pulseaudio does not find Bluez

Hi All,

I'm trying to build a Bluetooth Streamer on the base of an Onion Omega2+. I want it to behave like a bluetooth speaker but the audio instead gets streamed via RTP to the network. I was already able to play an audiofile via pulseaudio to the network so that part is working. What I can't get to run for 3 weeks now is to get Bluez and Pulseaudio to work together. There are two major Problems:

  1. Bluetooth does not appear in Pulseaudio as a Source.
  2. When connecting a device (PC,Android Phone) to the device it will connect and then immediately disconnect again. Using Btmon I see that the Audio Sink Profile never gets advertised so there is no common service which is most likely the reason why they disconnect.
    I'm running the most current OpenWRT Build. I installed following packages:
    kmod-bluetooth
    bluez-daemon
    bluez-tools
    bluez-utils
    bluez-utils-extra
    pulseaudio-daemon-avahi
    pulseaudio-profiles
    pulseaudio-tools

If anybody has an idea what are typical pitfalls i would be grateful!

I figured it finally out. A few things were necessary:

Since Pulseaudio runs in system mode it runs as user "pulse".
This user needed access to the audio group as well as root.
Here my group config.

root:x:0:
daemon:x:1:
adm:x:4:
mail:x:8:
dialout:x:20:
audio:x:29:root,pulse
www-data:x:33:
ftp:x:55:
users:x:100:
network:x:101:network
nogroup:x:65534:
ntp:x:123:ntp
dnsmasq:x:453:dnsmasq
logd:x:514:logd
pulse:x:51:pulse,root
ubus:x:81:ubus
pulse-access:x:53:root,pulse

The next step was to add following modules to /etc/pulse/system.pa:

load-module module-bluetooth-discover
load-module module-bluetooth-policy a2dp_source=true
load-module module-switch-on-port-available
load-module module-rescue-streams
load-module module-native-protocol-unix auth-group=pulse-access

Last but not least I added some entries to dbus as explained in this link:

Now I can finally start writing the actual application. Hope it helps the next person.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.