linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* audio: Connect doesn't return when audio device is off.
@ 2013-05-16  4:38 Alex Deymo
  2013-05-22  0:59 ` Alex Deymo
  0 siblings, 1 reply; 5+ messages in thread
From: Alex Deymo @ 2013-05-16  4:38 UTC (permalink / raw)
  To: linux-bluetooth, keybuk

Hello,
I was debugging this issue when I found that may be related with this
new concept of "service", anyway this issue is present in bluez 5.4
and 5.5 (did not try with previous versions).

The problem is easy to reproduce. Again I'm using the Bose SoundLink
model 404600 but it should work with any audio device. The steps are
as follow:
1. power on the adapter, scan and pair to the device.
2. trust the device.
3. turn off the device (short-press once the power button)
4. attempt to connect to the device from the bluetoothctl.
The D-Bus Connect call doesn't return. I think that in general the
Connect call doesn't return on failure, it only returns when it
succeeds.
I can also run into this same issue attempting to connect from the
device (short-press the bluetooth button on this device) and running
the "connect" command from bluetoothctl immediately after. In this
case the device successfully connects to the host, but the attempt to
connect from the host fails and Connect doesn't return. The funny
thing is that the device works and you can play music to it.

I would appreciate if you can help me to debug this issue. I tracked
down the connection failure to connect_lost() being called.... but I'm
sure should the audio profile notify the device or the service about
the profile connection failure.

Thanks!
Alex.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-05-23  9:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-16  4:38 audio: Connect doesn't return when audio device is off Alex Deymo
2013-05-22  0:59 ` Alex Deymo
2013-05-22  9:19   ` Mikel Astiz
2013-05-22 23:52     ` Alex Deymo
2013-05-23  9:06       ` Mikel Astiz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).