Bug 1135754 - [bluetooth]Paired Bluetooth keyboard cannot work after disconnecting
Summary: [bluetooth]Paired Bluetooth keyboard cannot work after disconnecting
Status: RESOLVED DUPLICATE of bug 1135556
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Kernel (show other bugs)
Version: Current
Hardware: x86-64 Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: E-mail List
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-21 10:20 UTC by Dawei Pang
Modified: 2019-05-28 03:21 UTC (History)
2 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dawei Pang 2019-05-21 10:20:59 UTC
openSUSE Tumbleweed 20190517

FILCO Majestouch Convertible 2 (bluetooth) keyboard can work after paired.
After disconnect or OS reboot, the keyboard cannot be connected.
Found some "Connection refused - security block" and "Error: Remote User Terminated Connection" in hcidump.

This keyboard can work (connect and disconnect) with early Tumbleweed version, before May 13th.

The following is output of "bluetoothctl" command:
[bluetooth]# version 
Version 5.50

[bluetooth]# paired-devices 
Device 00:18:00:3C:10:3D Majestouch Convertible 2


[bluetooth]# connect 00:18:00:3C:10:3D 
Attempting to connect to 00:18:00:3C:10:3D
Failed to connect: org.bluez.Error.Failed
[CHG] Device 00:18:00:3C:10:3D Connected: yes
[CHG] Device 00:18:00:3C:10:3D Connected: no
[CHG] Device 00:18:00:3C:10:3D Connected: yes
[CHG] Device 00:18:00:3C:10:3D Connected: no
[CHG] Device 00:18:00:3C:10:3D Connected: yes
[CHG] Device 00:18:00:3C:10:3D Connected: no
[CHG] Device 00:18:00:3C:10:3D Connected: yes
[CHG] Device 00:18:00:3C:10:3D Connected: no
[CHG] Device 00:18:00:3C:10:3D Connected: yes
[CHG] Device 00:18:00:3C:10:3D Connected: no
[CHG] Device 00:18:00:3C:10:3D Connected: yes
[CHG] Device 00:18:00:3C:10:3D Connected: no
[CHG] Device 00:18:00:3C:10:3D Connected: yes
[CHG] Device 00:18:00:3C:10:3D Connected: no
[CHG] Device 00:18:00:3C:10:3D Connected: yes
[CHG] Device 00:18:00:3C:10:3D Connected: no


Dawei-laptop:~ # hcidump

HCI sniffer - Bluetooth packet analyzer ver 5.50
device: hci0 snap_len: 1500 filter: 0xffffffffffffffff
> HCI Event: Connect Request (0x04) plen 10
    bdaddr 00:18:00:3C:10:3D class 0x000540 type ACL
< HCI Command: Accept Connection Request (0x01|0x0009) plen 7
    bdaddr 00:18:00:3C:10:3D role 0x00
    Role: Master
> HCI Event: Command Status (0x0f) plen 4
    Accept Connection Request (0x01|0x0009) status 0x00 ncmd 1
> HCI Event: Role Change (0x12) plen 8
    status 0x00 bdaddr 00:18:00:3C:10:3D role 0x00
    Role: Master
> HCI Event: Connect Complete (0x03) plen 11
    status 0x00 handle 9 bdaddr 00:18:00:3C:10:3D type ACL encrypt 0x00
< HCI Command: Read Remote Supported Features (0x01|0x001b) plen 2
    handle 9
> HCI Event: Command Status (0x0f) plen 4
    Read Remote Supported Features (0x01|0x001b) status 0x00 ncmd 1
< HCI Command: Write Scan Enable (0x03|0x001a) plen 1
    enable 0
> HCI Event: Max Slots Change (0x1b) plen 3
    handle 9 slots 5
> HCI Event: Read Remote Supported Features (0x0b) plen 11
    status 0x00 handle 9
    Features: 0xbf 0x06 0x86 0x78 0x18 0x1c 0x59 0x87
> HCI Event: Command Complete (0x0e) plen 4
    Write Scan Enable (0x03|0x001a) ncmd 1
    status 0x00
< HCI Command: Read Remote Extended Features (0x01|0x001c) plen 3
    handle 9 page 1
> HCI Event: Command Status (0x0f) plen 4
    Read Remote Extended Features (0x01|0x001c) status 0x00 ncmd 1
> ACL data: handle 9 flags 0x02 dlen 12
    L2CAP(s): Connect req: psm 17 scid 0x0043
> HCI Event: Read Remote Extended Features (0x23) plen 13
    status 0x00 handle 9 page 1 max 1
    Features: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
< HCI Command: Remote Name Request (0x01|0x0019) plen 10
    bdaddr 00:18:00:3C:10:3D mode 2 clkoffset 0x0000
< ACL data: handle 9 flags 0x00 dlen 10
    L2CAP(s): Info req: type 2
< ACL data: handle 9 flags 0x00 dlen 16
    L2CAP(s): Connect rsp: dcid 0x0000 scid 0x0043 result 3 status 0
      Connection refused - security block       <------------------------------------
> HCI Event: Command Status (0x0f) plen 4
    Remote Name Request (0x01|0x0019) status 0x00 ncmd 1
> HCI Event: Number of Completed Packets (0x13) plen 5
    handle 9 packets 1
> ACL data: handle 9 flags 0x02 dlen 16
    L2CAP(s): Info rsp: type 2 result 0
      Extended feature mask 0x0280
       Fixed Channels
        Unicast Connectless Data Reception
< ACL data: handle 9 flags 0x00 dlen 10
    L2CAP(s): Info req: type 3
> HCI Event: Number of Completed Packets (0x13) plen 5
    handle 9 packets 1
> HCI Event: Number of Completed Packets (0x13) plen 5
    handle 9 packets 1
> HCI Event: Remote Name Req Complete (0x07) plen 255 
    status 0x13 bdaddr 00:18:00:3C:10:3D name 'Majestouch Con'
    Error: Remote User Terminated Connection    <------------------------------------
> HCI Event: Disconn Complete (0x05) plen 4
    status 0x00 handle 9 reason 0x13
    Reason: Remote User Terminated Connection
< HCI Command: Write Scan Enable (0x03|0x001a) plen 1
    enable 2
> HCI Event: Command Complete (0x0e) plen 4
    Write Scan Enable (0x03|0x001a) ncmd 1
    status 0x00
> HCI Event: Connect Request (0x04) plen 10
    bdaddr 00:18:00:3C:10:3D class 0x000540 type ACL 
< HCI Command: Accept Connection Request (0x01|0x0009) plen 7
    bdaddr 00:18:00:3C:10:3D role 0x00
    Role: Master
> HCI Event: Command Status (0x0f) plen 4
    Accept Connection Request (0x01|0x0009) status 0x00 ncmd 1
> HCI Event: Role Change (0x12) plen 8
    status 0x00 bdaddr 00:18:00:3C:10:3D role 0x00
    Role: Master
> HCI Event: Connect Complete (0x03) plen 11
    status 0x00 handle 10 bdaddr 00:18:00:3C:10:3D type ACL encrypt 0x00
< HCI Command: Read Remote Supported Features (0x01|0x001b) plen 2
    handle 10
> HCI Event: Command Status (0x0f) plen 4
    Read Remote Supported Features (0x01|0x001b) status 0x00 ncmd 1
< HCI Command: Write Scan Enable (0x03|0x001a) plen 1
    enable 0
> HCI Event: Max Slots Change (0x1b) plen 3
    handle 10 slots 5
> HCI Event: Read Remote Supported Features (0x0b) plen 11
    status 0x00 handle 10
    Features: 0xbf 0x06 0x86 0x78 0x18 0x1c 0x59 0x87
> HCI Event: Command Complete (0x0e) plen 4
    Write Scan Enable (0x03|0x001a) ncmd 1
    status 0x00
< HCI Command: Read Remote Extended Features (0x01|0x001c) plen 3
    handle 10 page 1
> HCI Event: Command Status (0x0f) plen 4
    Read Remote Extended Features (0x01|0x001c) status 0x00 ncmd 1
> ACL data: handle 10 flags 0x02 dlen 12
   L2CAP(s): Connect req: psm 17 scid 0x0042
> HCI Event: Read Remote Extended Features (0x23) plen 13
    status 0x00 handle 10 page 1 max 1
    Features: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
< HCI Command: Remote Name Request (0x01|0x0019) plen 10
    bdaddr 00:18:00:3C:10:3D mode 2 clkoffset 0x0000
< ACL data: handle 10 flags 0x00 dlen 10
    L2CAP(s): Info req: type 2
< ACL data: handle 10 flags 0x00 dlen 16
    L2CAP(s): Connect rsp: dcid 0x0000 scid 0x0042 result 3 status 0
      Connection refused - security block  <-------------------------------------------
> HCI Event: Command Status (0x0f) plen 4
    Remote Name Request (0x01|0x0019) status 0x00 ncmd 1
> HCI Event: Number of Completed Packets (0x13) plen 5
    handle 10 packets 1
> ACL data: handle 10 flags 0x02 dlen 16
    L2CAP(s): Info rsp: type 2 result 0
      Extended feature mask 0x0280
        Fixed Channels
        Unicast Connectless Data Reception
< ACL data: handle 10 flags 0x00 dlen 10
    L2CAP(s): Info req: type 3
> HCI Event: Number of Completed Packets (0x13) plen 5
    handle 10 packets 1
> HCI Event: Number of Completed Packets (0x13) plen 5
    handle 10 packets 1
> HCI Event: Remote Name Req Complete (0x07) plen 255
    status 0x13 bdaddr 00:18:00:3C:10:3D name 'Majestouch Con'
    Error: Remote User Terminated Connection  <---------------------------------------
> HCI Event: Disconn Complete (0x05) plen 4
    status 0x00 handle 10 reason 0x13
    Reason: Remote User Terminated Connection
< HCI Command: Write Scan Enable (0x03|0x001a) plen 1
    enable 2
> HCI Event: Command Complete (0x0e) plen 4
    Write Scan Enable (0x03|0x001a) ncmd 1
    status 0x00
> HCI Event: Connect Request (0x04) plen 10
    bdaddr 00:18:00:3C:10:3D class 0x000540 type ACL
< HCI Command: Accept Connection Request (0x01|0x0009) plen 7
    bdaddr 00:18:00:3C:10:3D role 0x00
    Role: Master
> HCI Event: Command Status (0x0f) plen 4
    Accept Connection Request (0x01|0x0009) status 0x00 ncmd 1
> HCI Event: Role Change (0x12) plen 8
    status 0x00 bdaddr 00:18:00:3C:10:3D role 0x00
Comment 1 Dawei Pang 2019-05-27 09:47:30 UTC
Move to kernel, because I replace bluez to Leap15.1, this issue is not fixed, replace kernel to Leap15.1, this issue is fixed.

Thanks,
Dawei
Comment 2 Takashi Iwai 2019-05-27 09:59:59 UTC
Please check the kernel in OBS home:tiwai:bsc1135556-2-15.1 repo,
  http://download.opensuse.org/repositories/home:/tiwai:/bsc1135556-2-15.1/standard/

That contains some recent fixes that might be relevant.
Comment 3 Dawei Pang 2019-05-27 10:36:09 UTC
(In reply to Takashi Iwai from comment #2)
> Please check the kernel in OBS home:tiwai:bsc1135556-2-15.1 repo,
>  
> http://download.opensuse.org/repositories/home:/tiwai:/bsc1135556-2-15.1/
> standard/
> 
> That contains some recent fixes that might be relevant.

Thanks Takashi!

The following is my recent result:

kernel-default-5.1.4-1.1.x86_64  -> Hit this issue

kernel-vanilla-5.1.4-1.1.x86_64  -> Hit this issue

kernel-default-4.12.14-lp151.1.1.g5b96dc0.x86_64 -> NOT hit this issue (Fail to start X, try to connect bluetooth device in text mode)

kernel-default-4.12.14-lp151.27.3.x86_64 -> NOT hit this issue (Leap 15.1)

So I think the bluetooth connection issue is caused by upstream, will try to compile the recent upstream kernel to identify the version imported this issue.

Thanks,
Dawei
Comment 4 Takashi Iwai 2019-05-27 11:58:50 UTC
Ah, sorry, you're using TW, not Leap 15.1.
Then please test the kernel in OBS Kernel:stable repo.  The recent fix I mentioned is already included.
  http://download.opensuse.org/repositories/Kernel:/stable/standard/
Comment 5 Dawei Pang 2019-05-28 03:21:11 UTC
(In reply to Takashi Iwai from comment #4)
> Ah, sorry, you're using TW, not Leap 15.1.
> Then please test the kernel in OBS Kernel:stable repo.  The recent fix I
> mentioned is already included.
>   http://download.opensuse.org/repositories/Kernel:/stable/standard/

Thank you, yes, this issue is fixed on kernel: 5.1.5-2.g6ad4f79-default, is dup of bsc#1135556.

Feel free to correct me if anything is wrong.

-Dawei

*** This bug has been marked as a duplicate of bug 1135556 ***