Hi,
Anthony Bourguignon <[email protected]> writes:
> Le vendredi 19 août 2016 à 15:02 -0300, Vinicius Costa Gomes a écrit :
>> Hi Anthony,
>>
>> Anthony Bourguignon <[email protected]> writes:
>>
>> >
>> > Hi,
>> >
>> > I've recently bought a new xbox one controller as the 2016 version
>> > has
>> > bluetooth connectivity.
>> >
>> > The controller is pairing and connecting well on a windows 10
>> > computer
>> > and an android 4.4 tablet. But I can"t make it connect under linux
>> > (Debian unstable, kernel 4.6 and 4.7-rc7, bluez 5.40 from
>> > experimental). The pairing is ok but when I try to connect to
>> > controller, it stays connected for less than one second, then
>> > disconnects, then connects again and so one until the controller
>> > goes
>> > to sleep, because of the lack of a remote connection.
>>
>> Can you produce the logs with L2CAP ERTM/Streaming mode disabled,
>> doing something like this before connecting this should work:
>>
>> $ echo 1 > /sys/module/bluetooth/parameters/disable_ertm
>
> The connection worked with ertm disabled, the controller is fully
> usable.
>
> Is that normal that we have to disable it ?
No. It could be a bug in the xbox controller. But I need to take a
closer look at the specification to be really sure.
Thinking out loud: this seems too basic a mistake for an end product
(but I wouldn't be too surprised if this is the case), perhaps something
that we are assuming and is incorrect?
But glad that we found a workaround.
Cheers,
--
Vinicius
Hi,
Anthony Bourguignon <[email protected]> writes:
>>
>> No. It could be a bug in the xbox controller. But I need to take a
>> closer look at the specification to be really sure.
>
> Can I be of any help ?
Attached is a patch that disables negotiating Flow Control and
Retransmission parameters for the SDP channel only. This is a shot in
the dark, as I could find nothing in the specification that advises
against the current BlueZ behaviour.
Could you give it a try? (but I don't have high hopes for it)
This is looking more like a bug in the controller.
>
> Thanks a lot again
> --
> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
Cheers,
--
Vinicius
Le vendredi 19 août 2016 à 20:34 -0300, Vinicius Costa Gomes a écrit :
> Hi,
>
> Anthony Bourguignon <[email protected]> writes:
>
> >
> > Le vendredi 19 août 2016 à 15:02 -0300, Vinicius Costa Gomes a
> > écrit :
> > >
> > > Hi Anthony,
> > >
> > > Anthony Bourguignon <[email protected]> writes:
> > >
> > > >
> > > >
> > > > Hi,
> > > >
> > > > I've recently bought a new xbox one controller as the 2016
> > > > version
> > > > has
> > > > bluetooth connectivity.
> > > >
> > > > The controller is pairing and connecting well on a windows 10
> > > > computer
> > > > and an android 4.4 tablet. But I can"t make it connect under
> > > > linux
> > > > (Debian unstable, kernel 4.6 and 4.7-rc7, bluez 5.40 from
> > > > experimental). The pairing is ok but when I try to connect to
> > > > controller, it stays connected for less than one second, then
> > > > disconnects, then connects again and so one until the
> > > > controller
> > > > goes
> > > > to sleep, because of the lack of a remote connection.
> > >
> > > Can you produce the logs with L2CAP ERTM/Streaming mode disabled,
> > > doing something like this before connecting this should work:
> > >
> > > $ echo 1 > /sys/module/bluetooth/parameters/disable_ertm
> >
> > The connection worked with ertm disabled, the controller is fully
> > usable.
> >
> > Is that normal that we have to disable it ?
>
> No. It could be a bug in the xbox controller. But I need to take a
> closer look at the specification to be really sure.
Can I be of any help ?
Thanks a lot again
On Wed, 2016-08-24 at 11:02 -0300, Vinicius Costa Gomes wrote:
> Hi,
>
> Anthony Bourguignon <[email protected]> writes:
> > >
> > > No. It could be a bug in the xbox controller. But I need to take
> > > a
> > > closer look at the specification to be really sure.
> >
> > Can I be of any help ?
>
> Attached is a patch that disables negotiating Flow Control and
> Retransmission parameters for the SDP channel only. This is a shot in
> the dark, as I could find nothing in the specification that advises
> against the current BlueZ behaviour.
>
> Could you give it a try? (but I don't have high hopes for it)
>
> This is looking more like a bug in the controller.
Hi,
It's getting hit during pairing, but this isn't enough to get it
working.
I also combined it with vudentz' patch in the "Continuing the Xbox One
Bluetooth controller debugging" thread (called "Bluetooth: L2CAP:
Ignore Unknown option error for basic mode") and that wasn't enough to
get it working either.
I think that the fix would be to not try and upgrade the connection to
ERTM at all on this device, but I don't know how I could pass this
information down the stack to the l2cap code. Any ideas?
Cheers