Re: [RFC BlueZ v0 0/5] ACL disconnect reason

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

 



Hi Luiz,

On Thu, May 17, 2012 at 8:41 AM, Luiz Augusto von Dentz
<luiz.dentz@xxxxxxxxx> wrote:
> Hi Mike,
>
> On Wed, May 16, 2012 at 5:28 PM, Mike <puffy.taco@xxxxxxxxx> wrote:
>>> I do agree that anything that could cause IOP problems should be
>>> handled inside BlueZ. And the immediate reconnection try after a link
>>> loss does sound an example of this kind. So I would be fine if BlueZ
>>> internally handles this, but I still think we need to expose this in
>>> D-Bus somehow.
>>
>> The reason this is per model is that there is no spec on this and
>> hence it will be very implementation specific.  If you are a desktop
>> hooked up to AC, you really don't care, but an embedded device will
>> need to implement something that meets its battery constraints.  As
>> well, the efforts of bluez will be fruitless if the rest of the system
>> goes into suspend.  In my case, my device goes to suspend as soon as
>> possible (and wakes if there is BT UART traffic).  Hence, timers that
>> implement re-connection need to let the system know when the next
>> attempt will occur.
>
> Yes, but that can be implemented in audio.conf, so you can enter the
> number of retries and the interval between them that you want per
> platform, but I think 99% will just pick the default. Btw, you need to
> elaborate a bit more about your requirements, this work is focuses on
> IVI system where I don't expect the system to go into suspend that
> often.

I'll admit that my system, being embedded, is likely to always need
some custom bits that aren't in mainline.  The point I'm trying to
make is that it'd be helpful if the implementation considered the fact
that not all devices want to stay awake all the time.  Hence, it would
be good if there was some D-Bus notification that was explicit about
entering link loss recovery.  When my device is asleep, it only wakes
up if the user presses buttons or there is BT HCI traffic.  The simple
solution is to not enter suspend when link loss recovery is occurring,
but the rest of the system needs to know what bluetoothd is doing then
to prevent that.  I'm not using Android, but I would assume that this
would equally apply there with wakelocks (this is in essence what I'm
doing, just in userspace).

Regardless, it's good that this is being worked on.  It seems like
some complaints I find about BlueZ various places complain about it
not "just working" -- ignoring the fact that the BT spec doesn't call
this stuff out and it actually takes effort!

Mike
--
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