Skip to contentSkip to conversation

New: [REGRESSION][BISECTED] Sixaxis gamepad no longer connects via Bluetooth

Bug 203643 [email protected] 1 participant 23 messages May 18, 2019 – Jul 1, 2019 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

https://bugzilla.kernel.org/show_bug.cgi?id=203643

            Bug ID: 203643
           Summary: [REGRESSION][BISECTED] Sixaxis gamepad no longer
                    connects via Bluetooth
           Product: Drivers
           Version: 2.5
    Kernel Version: 4.14.119, 4.19.42, 5.0.16, 5.1.3
          Hardware: All
                OS: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Bluetooth
          Assignee: [email protected]
          Reporter: [email protected]
        Regression: No

Hi,

Since commit d5bb334a8e171b262e48f378bd2096c0ea458265 some devices doesn't connect via bluetooth (like Sixaxis gamepad). 'bluetoothctl' shows that device is connected, and soon after disconnected.

Link for commit which causes the issue:
https://github.com/torvalds/linux/commit/d5bb334a8e171b262e48f378bd2096c0ea458265

I checked the "conn->enc_key_size", it reports the value of 0 for Sixaxis gamepad (not the value of 7, which is the minimum encryption key size).

I noticed that other people also having issue after kernel upgrade, but I'm not sure if it exactly the same bug:
https://forum.manjaro.org/t/solved-bluetooth-fail-after-2019-05-17-stable-update/87892

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.
#1 lore raw

[Bug 203643] [REGRESSION][BISECTED] Sixaxis gamepad no longer connects via Bluetooth

https://bugzilla.kernel.org/show_bug.cgi?id=203643

JockeTF ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #1 from JockeTF ([email protected]) --- I can confirm this bug for DualShock 3 as well.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.
#2 lore raw

[Bug 203643] [REGRESSION][BISECTED] Sixaxis gamepad no longer connects via Bluetooth

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=203643

--- Comment #2 from JockeTF ([email protected]) --- Some more possibly-related links:

- https://dev.getsol.us/T7970
- https://www.spinics.net/lists/linux-bluetooth/msg80104.html
- https://gitlab.freedesktop.org/pulseaudio/pulseaudio/issues/674

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.
#4 lore raw

[Bug 203643] [REGRESSION][BISECTED] Sixaxis gamepad no longer connects via Bluetooth

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=203643

Fabrice Bellet ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #4 from Fabrice Bellet ([email protected]) ---
I confirm the bug related to this commit, and to its backported version in 5.0.15. My device is a Sony DR-BT21G headset.

With this commit, the hcidump reports this error message:

Quoted 1 line

ACL data: handle 256 flags 0x02 dlen 12

     L2CAP(s): Connect req: psm 3 scid 0x0041

< ACL data: handle 256 flags 0x00 dlen 16
L2CAP(s): Connect rsp: dcid 0x0000 scid 0x0041 result 3 status 0
Connection refused - security block

Without it, the hcidump reports a successful connection:

Quoted 1 line

ACL data: handle 256 flags 0x02 dlen 12

     L2CAP(s): Connect req: psm 3 scid 0x0041
 < ACL data: handle 256 flags 0x00 dlen 16
    L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0041 result 0 status 0
      Connection successful
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.
#5 lore raw

[Bug 203643] [REGRESSION][BISECTED] Sixaxis gamepad no longer connects via Bluetooth

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=203643

--- Comment #5 from Fabrice Bellet ([email protected]) --- Created attachment 282895
--> https://bugzilla.kernel.org/attachment.cgi?id=282895&action=edit
hcidump of a failed connection

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.
#6 lore raw

[Bug 203643] [REGRESSION][BISECTED] Sixaxis gamepad no longer connects via Bluetooth

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=203643

--- Comment #6 from Fabrice Bellet ([email protected]) --- Created attachment 282897
--> https://bugzilla.kernel.org/attachment.cgi?id=282897&action=edit
hcidump of a succesful connection

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.
#7 lore raw

[Bug 203643] [REGRESSION][BISECTED] Sixaxis gamepad no longer connects via Bluetooth

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=203643

didierg ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #7 from didierg ([email protected]) --- I cannot connect Logitech BT mouse using kernel 5.0.15 or higher.

Works fine with 5.0.14 or lower.

See: https://bugzilla.redhat.com/show_bug.cgi?id=1711468

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.
#10 lore raw

[Bug 203643] [REGRESSION][BISECTED] Sixaxis gamepad no longer connects via Bluetooth

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=203643

Andriy Perevortkin ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #10 from Andriy Perevortkin ([email protected]) --- Sadly the RFC patch above does not fix it for me, the revert does The device is edifier w330nb headset.

hcidump fragment of failed connection:

Quoted 1 line

HCI Event: Link Key Request (0x17) plen 6

    bdaddr 5C:C6:E9:11:B1:20
< HCI Command: Link Key Request Reply (0x01|0x000b) plen 22
    bdaddr 5C:C6:E9:11:B1:20 key 9290EB1424E3A352C43F17C8499A3670
Quoted 1 line

HCI Event: Command Complete (0x0e) plen 10

    Link Key Request Reply (0x01|0x000b) ncmd 1
    status 0x00 bdaddr 5C:C6:E9:11:B1:20
Quoted 1 line

HCI Event: Encrypt Change (0x08) plen 4

    status 0x00 handle 256 encrypt 0x01

< HCI Command: Read Encryption Key Size (0x05|0x0008) plen 2

Quoted 1 line

ACL data: handle 256 flags 0x02 dlen 12

    L2CAP(s): Connect req: psm 25 scid 0x0580

< ACL data: handle 256 flags 0x00 dlen 16
L2CAP(s): Connect rsp: dcid 0x0000 scid 0x0580 result 3 status 0
Connection refused - security block

Quoted 1 line

HCI Event: Command Complete (0x0e) plen 7

    Read Encryption Key Size (0x05|0x0008) ncmd 1
Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 256 packets 1

Quoted 1 line

HCI Event: Disconn Complete (0x05) plen 4

status 0x00 handle 256 reason 0x13
Reason: Remote User Terminated Connection

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.
#11 lore raw

[Bug 203643] [REGRESSION][BISECTED] Sixaxis gamepad no longer connects via Bluetooth

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=203643

Ura Slacker ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #11 from Ura Slacker ([email protected]) ---
Just chiming in to report that this bug also affects HHKB-BT Pro (Happy Hacking BT Keyboard).

It happens regardless of which BT controllor/adaptor that I use. I haven't yet had the chance to attempt backing out the change conditional that could be causing the issue in 5.0.16, but will try to find time in the next week or so.

With the breadth of devices that are affected, I imagine this should be fixed quickly.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.
#13 lore raw

[Bug 203643] [REGRESSION][BISECTED] Sixaxis gamepad no longer connects via Bluetooth

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=203643

--- Comment #13 from Peter Robinson ([email protected]) --- (In reply to didierg from comment #12)

Quoted 1 line

For my Logitech BT 2.0 mouse, this bug is fixed by Fedora kernel 5.1.4.

For reference to others Fedora pulled in the RFC patch to the Fedora 5.1.4 build.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.
#15 lore raw

[Bug 203643] [REGRESSION][BISECTED] Sixaxis gamepad no longer connects via Bluetooth

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=203643

Lutz Vieweg ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #15 from Lutz Vieweg ([email protected]) ---
Just came here to say that "Kensington SlimBlade Trackball Mouse" are also affected by this regression. Bisected this before I found this bug report via the commit id :-)

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.
#16 lore raw

[Bug 203643] [REGRESSION][BISECTED] Sixaxis gamepad no longer connects via Bluetooth

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=203643

Angus ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #16 from Angus ([email protected]) ---
One more that the RFC patch fixes: "Goldtouch Bluetooth Keyboard" on kernel 5.1.6.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.
#17 lore raw

[Bug 203643] [REGRESSION][BISECTED] Sixaxis gamepad no longer connects via Bluetooth

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=203643

Alexandre Pereira Nunes ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #17 from Alexandre Pereira Nunes ([email protected]) --- I have several brandless (Made in china) mice affected by this regression. Up to 5.1.7 at least, the fix wasn't merged (just saying for whomever comes with that doubt in mind).

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.
#20 lore raw

[Bug 203643] [REGRESSION][BISECTED] Sixaxis gamepad no longer connects via Bluetooth

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=203643

Scall ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #20 from Scall ([email protected]) --- (In reply to Andriy Perevortkin from comment #10)

Quoted 2 lines

Sadly the RFC patch above does not fix it for me, the revert does The device is edifier w330nb headset.

It also did not fix it for my two Sony DualShock 4 Wave Blue CUH-ZCT1 (the issue was reproducible with both), although it did for the following devices:
* Sony DualShock 4 Glacier White CUH-ZCT1 (same generation as the Wave Blue ones);
* Microsoft Bluetooth Mobile Keyboard 6000;
* Memteq Bluetooth Optical Mouse.

The only way to solve the issue for my two DualShock 4 Wave Blue was to revert the culprit commit, just like it has been done recently ->
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.1.10&id=b528880e8b0167c34cb36c1b4e6165192f76267c

Just to confirm that patch does not work for all devices.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.
#21 lore raw

[Bug 203643] [REGRESSION][BISECTED] Sixaxis gamepad no longer connects via Bluetooth

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=203643

--- Comment #21 from [email protected] ---
This also affects the PS3 Blu-Ray Remote control, which I use for my media server. After many hours of debugging I came across this regression.

Any news on when the fix (revert commit d5bb334a8e171b262e48f378bd2096c0ea458265) will reach upstream?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.
#22 lore raw

[Bug 203643] [REGRESSION][BISECTED] Sixaxis gamepad no longer connects via Bluetooth

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=203643

Matias Karhumaa ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #22 from Matias Karhumaa ([email protected]) --- Hi Martin,

There is another regression: https://bugzilla.kernel.org/show_bug.cgi?id=203997

If the remote control has minimum enc key size of 7, then this is most likely same problem. Could you check with btmon?

Feel free to try the patch posted on mailing list.

Br,
Matias

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.