[pulseaudio-tickets] [PulseAudio] #898: Bluetooth sink isn't created when pulseaudio run as system daemon

PulseAudio trac-noreply at tango.0pointer.de
Sat Apr 9 13:10:20 PDT 2011


#898: Bluetooth sink isn't created when pulseaudio run as system daemon
---------------------+------------------------------------------------------
  Reporter:  murz    |       Owner:  lennart
      Type:  defect  |      Status:  new    
 Milestone:          |   Component:  daemon 
Resolution:          |    Keywords:         
---------------------+------------------------------------------------------

Comment(by murz):

 I partially solve the problem!
 When I restart pulseaudio as system mode, I found the message in auth.log:
 {{{
 Apr 10 00:02:09 kit dbus-daemon: [system] Rejected send message, 1 matched
 rules; type="method_call", sender=":1.47" (uid=109 pid=17588
 comm="/usr/bin/pulseaudio) interface="org.bluez.Adapter"
 member="ListDevices" error name="(unset)" requested_reply=0
 destination="org.bluez" (uid=0 pid=2421 comm="/usr/sbin/bluetoothd))
 }}}

 So, I give those permissions to pulse user, with modifying
 /etc/dbus/system.d/bluetooth.conf, add the strings:

 {{{
   <policy user="pulse">
     <allow own="org.bluez"/>
     <allow send_destination="org.bluez"/>
     <!-- allow root to send to agents -->
     <allow send_interface="org.bluez.Agent"/></policy>
 }}}

 After that bluetooth sink successfully created!

 {{{
 Card #2
         Name: bluez_card.00_22_FC_74_AA_3C
         Driver: module-bluetooth-device.c
         Owner Module: 8
         Properties:
                 device.description = "Nokia BH-504"
                 device.string = "00:22:FC:74:AA:3C"
                 device.api = "bluez"
                 device.class = "sound"
                 device.bus = "bluetooth"
                 device.form_factor = "headset"
                 bluez.path = "/org/bluez/2421/hci0/dev_00_22_FC_74_AA_3C"
                 bluez.class = "0x240404"
                 bluez.name = "Nokia BH-504"
                 device.icon_name = "audio-headset-bluetooth"
                 device.intended_roles = "phone"
         Profiles:
                 a2dp: High Fidelity Playback (A2DP) (sinks: 1, sources: 0,
 priority. 10)
                 hsp: Telephony Duplex (HSP/HFP) (sinks: 1, sources: 1,
 priority. 20)
                 off: Off (sinks: 0, sources: 0, priority. 0)
         Active Profile: off

 }}}

 But when I try to change active profile to A2DP, pulseaudio breaks with
 messages:

 {{{
 Apr 10 00:10:18 kit pulseaudio[843]: sink.c: Assertion
 'pa_frame_aligned(length, &s->sample_spec)' failed at
 pulsecore/sink.c:1090, function pa_sink_render_full(). Aborting.
 }}}

 Can you help me solve this problem?

-- 
Ticket URL: <http://pulseaudio.org/ticket/898#comment:8>
PulseAudio <http://pulseaudio.org/>
The PulseAudio Sound Server


More information about the pulseaudio-bugs mailing list