Forgot bluetoothd output - added below
-----Original Message-----
From: John Frankish
Sent: Friday, 20 July, 2012 21:19
To: [email protected]
Subject: Can no longer connect to audio stream with bluez > 0.96 and pulseaudio-2
Using bluez-0.96 and pulseaudio-1.xx I could use bluetooth headphones without problems using blueman-1.23 to connect to an a2dp sink.
With bluez-0.99/0.101 and pulseaudio-2 I can no longer connect and blueman gives the following error:
Stream setup failed
I see that bluez has moved to the MediaEndpoint format and that I need a /usr/local/etc/bluetooth/audio.conf for the first time, but things still don't work (details below), there are no error messages to speak of, am I doing something wrong?
Regards
John
-----------------------------
audio.conf
[General]
Enable=Source,Sink,Headset,Gateway,Control,Media
$ echo "0000" | simple-agent hci0 00:1B:66:00:31:88
Release
New device (/org/bluez/8112/hci0/dev_00_1B_66_00_31_88)
$ pulseaudio -vv
D: [pulseaudio] dbus-util.c: Successfully connected to D-Bus system bus f0e34796d5401d46e695407a00000013 as :1.53
D: [pulseaudio] bluetooth-util.c: dbus: interface=org.freedesktop.DBus, path=/org/freedesktop/DBus, member=NameAcquired
D: [pulseaudio] bluetooth-util.c: Registering /MediaEndpoint/HFPAG on adapter /org/bluez/8112/hci0.
D: [pulseaudio] bluetooth-util.c: Registering /MediaEndpoint/HFPHS on adapter /org/bluez/8112/hci0.
D: [pulseaudio] bluetooth-util.c: Registering /MediaEndpoint/A2DPSource on adapter /org/bluez/8112/hci0.
D: [pulseaudio] bluetooth-util.c: Registering /MediaEndpoint/A2DPSink on adapter /org/bluez/8112/hci0.
I: [pulseaudio] module.c: Loaded "module-bluetooth-discover" (index: #6; argument: "").
$ dbus-send --print-reply --system --dest=org.bluez /org/bluez/8112/hci0/dev_00_1B_66_00_31_88 org.bluez.AudioSink.Connect Error org.bluez.Error.Failed: Stream setup failed
D: [pulseaudio] bluetooth-util.c: dbus: interface=org.bluez.AudioSink, path=/org/bluez/8112/hci0/dev_00_1B_66_00_31_88, member=PropertyChanged
D: [pulseaudio] bluetooth-util.c: dbus: property 'State' changed to value 'connecting'
D: [pulseaudio] bluetooth-util.c: dbus: interface=org.bluez.Audio, path=/org/bluez/8112/hci0/dev_00_1B_66_00_31_88, member=PropertyChanged
D: [pulseaudio] bluetooth-util.c: dbus: property 'State' changed to value 'connecting'
D: [pulseaudio] bluetooth-util.c: dbus: interface=org.bluez.Device, path=/org/bluez/8112/hci0/dev_00_1B_66_00_31_88, member=PropertyChanged
D: [pulseaudio] bluetooth-util.c: dbus: interface=org.bluez.AudioSink, path=/org/bluez/8112/hci0/dev_00_1B_66_00_31_88, member=PropertyChanged
D: [pulseaudio] bluetooth-util.c: dbus: property 'State' changed to value 'disconnected'
D: [pulseaudio] bluetooth-util.c: dbus: interface=org.bluez.Audio, path=/org/bluez/8112/hci0/dev_00_1B_66_00_31_88, member=PropertyChanged
D: [pulseaudio] bluetooth-util.c: dbus: property 'State' changed to value 'disconnected'
D: [pulseaudio] bluetooth-util.c: dbus: interface=org.bluez.AudioSink, path=/org/bluez/8112/hci0/dev_00_1B_66_00_31_88, member=PropertyChanged
D: [pulseaudio] bluetooth-util.c: dbus: interface=org.bluez.AudioSink, path=/org/bluez/8112/hci0/dev_00_1B_66_00_31_88, member=PropertyChanged
D: [pulseaudio] bluetooth-util.c: dbus: property 'State' changed to value 'disconnected'
D: [pulseaudio] bluetooth-util.c: dbus: interface=org.bluez.Device, path=/org/bluez/8112/hci0/dev_00_1B_66_00_31_88, member=PropertyChanged
$ sudo bluethood -nd
bluetoothd[8112]: audio/sink.c:sink_set_state() State changed /org/bluez/8112/hci0/dev_00_1B_66_00_31_88: SINK_STATE_DISCONNECTED -> SINK_STATE_CONNECTING
bluetoothd[8112]: audio/sink.c:sink_connect() stream creation in progress
bluetoothd[8112]: plugins/hciops.c:conn_complete() status 0x00
bluetoothd[8112]: src/adapter.c:adapter_get_device() 00:1B:66:00:31:88
bluetoothd[8112]: plugins/hciops.c:remote_features_information() hci0 status 0
bluetoothd[8112]: plugins/hciops.c:remote_name_information() hci0 status 0
bluetoothd[8112]: plugins/hciops.c:link_key_request() hci0 dba 00:1B:66:00:31:88
bluetoothd[8112]: plugins/hciops.c:get_auth_info() hci0 dba 00:1B:66:00:31:88
bluetoothd[8112]: plugins/hciops.c:link_key_request() kernel auth requirements = 0x04
bluetoothd[8112]: plugins/hciops.c:link_key_request() Matching key found
bluetoothd[8112]: plugins/hciops.c:link_key_request() link key type 0x04
bluetoothd[8112]: plugins/hciops.c:auth_complete() hci0 status 0
bluetoothd[8112]: plugins/hciops.c:bonding_complete() status 0x00
bluetoothd[8112]: src/adapter.c:adapter_get_device() 00:1B:66:00:31:88
bluetoothd[8112]: src/device.c:device_bonding_complete() bonding (nil) status 0x00
bluetoothd[8112]: Connection timed out (110)
bluetoothd[8112]: audio/avdtp.c:connection_lost() Disconnected from 00:1B:66:00:31:88
bluetoothd[8112]: audio/avdtp.c:avdtp_unref() 0xf79175a8: ref=1
bluetoothd[8112]: audio/sink.c:sink_set_state() State changed /org/bluez/8112/hci0/dev_00_1B_66_00_31_88: SINK_STATE_CONNECTING -> SINK_STATE_DISCONNECTED
bluetoothd[8112]: audio/sink.c:discovery_complete() connect:connect XCASE detected
bluetoothd[8112]: audio/sink.c:sink_set_state() State changed /org/bluez/8112/hci0/dev_00_1B_66_00_31_88: SINK_STATE_DISCONNECTED -> SINK_STATE_DISCONNECTED
bluetoothd[8112]: audio/device.c:device_set_state() state change attempted from disconnected to disconnected
bluetoothd[8112]: audio/avdtp.c:avdtp_unref() 0xf79175a8: ref=0
bluetoothd[8112]: audio/avdtp.c:avdtp_unref() 0xf79175a8: freeing session and removing from list
bluetoothd[8112]: plugins/hciops.c:disconn_complete() handle 12 status 0x00
bluetoothd[8112]: src/event.c:btd_event_disconn_complete()
bluetoothd[8112]: src/adapter.c:adapter_remove_connection()
bluetoothd[8112]: audio/sink.c:stream_setup_retry() Stream setup failed, after XCASE connect:connect
> -----Original Message-----
> From: Mikel Astiz [mailto:[email protected]]
> Sent: Saturday, 21 July, 2012 11:15
> To: John Frankish
> Cc: [email protected]
> Subject: Re: FW: Can no longer connect to audio stream with bluez > 0.96 and
> pulseaudio-2
>
> Hi John,
>
> On Sat, Jul 21, 2012 at 8:57 AM, John Frankish <[email protected]> wrote:
> > Forgot bluetoothd output - added below
> >
> > -----Original Message-----
> > From: John Frankish
> > Sent: Friday, 20 July, 2012 21:19
> > To: [email protected]
> > Subject: Can no longer connect to audio stream with bluez > 0.96 and
> > pulseaudio-2
> >
> > Using bluez-0.96 and pulseaudio-1.xx I could use bluetooth headphones
> without problems using blueman-1.23 to connect to an a2dp sink.
> >
> > With bluez-0.99/0.101 and pulseaudio-2 I can no longer connect and
> blueman gives the following error:
> >
> > Stream setup failed
> >
> > I see that bluez has moved to the MediaEndpoint format and that I need a
> /usr/local/etc/bluetooth/audio.conf for the first time, but things still don't
> work (details below), there are no error messages to speak of, am I doing
> something wrong?
>
> I can't tell for sure but I can reproduce similar problem with a2dp sources. I
> actually fails with some devices only, so chances are that it's due to some
> race condition.
>
> This seems to be a regression introduced recently, which I didn't have time to
> check further.
>
> In any case, could you provide us with the audio.conf you're using?
----------------
Here's the latest attempt at an audio.conf, which BTW, "make install" does not copy to the file system, despite "--enable-datafiles"
[General]
Enable=Source,Sink,Headset,Gateway,Control,Media
Master=true
AutoConnect=true
[Headset]
HFP=true
MaxConnected=1
FastConnectable=false
----
Note that I'm using the latest mac mini server, which seems to have an odd BT setup:
$ lsusb -vv
Bus 001 Device 003: ID 0a5c:4500 Broadcom Corp. BCM2046B1 USB 2.0 Hub (part of BCM2046 Bluetooth)
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 9 Hub
bDeviceSubClass 0 Unused
bDeviceProtocol 0 Full speed (or root) hub
bMaxPacketSize0 8
idVendor 0x0a5c Broadcom Corp.
idProduct 0x4500 BCM2046B1 USB 2.0 Hub (part of BCM2046 Bluetooth)
bcdDevice 1.00
iManufacturer 1 Apple Inc.
iProduct 2 BRCM20702 Hub
Bus 001 Device 008: ID 05ac:8281 Apple, Inc.
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 255 Vendor Specific Class
bDeviceSubClass 1
bDeviceProtocol 1
bMaxPacketSize0 64
idVendor 0x05ac Apple, Inc.
idProduct 0x8281
bcdDevice 0.38
iManufacturer 1 Apple Inc.
iProduct 2 Bluetooth USB Host Controller
Hi John,
On Sat, Jul 21, 2012 at 8:57 AM, John Frankish <[email protected]> wrote:
> Forgot bluetoothd output - added below
>
> -----Original Message-----
> From: John Frankish
> Sent: Friday, 20 July, 2012 21:19
> To: [email protected]
> Subject: Can no longer connect to audio stream with bluez > 0.96 and pulseaudio-2
>
> Using bluez-0.96 and pulseaudio-1.xx I could use bluetooth headphones without problems using blueman-1.23 to connect to an a2dp sink.
>
> With bluez-0.99/0.101 and pulseaudio-2 I can no longer connect and blueman gives the following error:
>
> Stream setup failed
>
> I see that bluez has moved to the MediaEndpoint format and that I need a /usr/local/etc/bluetooth/audio.conf for the first time, but things still don't work (details below), there are no error messages to speak of, am I doing something wrong?
I can't tell for sure but I can reproduce similar problem with a2dp
sources. I actually fails with some devices only, so chances are that
it's due to some race condition.
This seems to be a regression introduced recently, which I didn't have
time to check further.
In any case, could you provide us with the audio.conf you're using?
Cheers,
Mikel