audio: Connect doesn't return when audio device is off.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux