Bluetooth connection regression with 4.1 (XA2, Pebble)

REPRODUCIBILITY: always
BUILD ID = OS VERSION: 4.1.0.24
HARDWARE: XA2
UI LANGUAGE: German
REGRESSION: Yes

DESCRIPTION:

I am able to pair my Pebble Time but it immediately disconnects right after connection. Any help is appreciated.

STEPS TO REPRODUCE:

  1. Pair Pebble Time
  2. Connect to Pebble Time

EXPECTED RESULT:

The connection should stay alive and be usable as before.

ACTUAL RESULT:

The connections immediately drops.

ADDITIONAL INFORMATION:

When connection via bluetoothctl the following error appears:
Failed to connect: org.bluez.Error.NotAvailable

btmon output
Bluetooth monitor ver 5.54
= New Index: 38:78:62:47:D1:38 (Primary,Virtual,hci0)           [hci0] 0.762082
= Open Index: 38:78:62:47:D1:38                                 [hci0] 0.762088
= Index Info: 38:78:62:47:D1:38 (Qualcomm)                      [hci0] 0.762089
< HCI Command: Create Connection (0x01|0x0005) plen 13      #1 [hci0] 34.041155
        Address: B0:B4:48:9B:88:10 (Texas Instruments)
        Packet type: 0xcc18
          DM1 may be used
          DH1 may be used
          DM3 may be used
          DH3 may be used
          DM5 may be used
          DH5 may be used
        Page scan repetition mode: R2 (0x02)
        Page scan mode: Mandatory (0x00)
        Clock offset: 0x0000
        Role switch: Allow slave (0x01)
> HCI Event: Command Status (0x0f) plen 4                   #2 [hci0] 34.063729
      Create Connection (0x01|0x0005) ncmd 1
        Status: Success (0x00)
> HCI Event: Connect Complete (0x03) plen 11                #3 [hci0] 34.467286
        Status: Success (0x00)
        Handle: 4
        Address: B0:B4:48:9B:88:10 (Texas Instruments)
        Link type: ACL (0x01)
        Encryption: Disabled (0x00)
< HCI Command: Read Remote Supporte.. (0x01|0x001b) plen 2  #4 [hci0] 34.468386
        Handle: 4
> HCI Event: Connection Packet Type Changed (0x1d) plen 5   #5 [hci0] 34.473905
        Status: Success (0x00)
        Handle: 4
        Packet type: 0x3318
          DM1 may be used
          DH1 may be used
          2-DH3 may not be used
          3-DH3 may not be used
          2-DH5 may not be used
          3-DH5 may not be used
> HCI Event: Command Status (0x0f) plen 4                   #6 [hci0] 34.476129
      Read Remote Supported Features (0x01|0x001b) ncmd 1
        Status: Success (0x00)
> HCI Event: Read Remote Supported Features (0x0b) plen 11  #7 [hci0] 34.478112
        Status: Success (0x00)
        Handle: 4
        Features: 0xff 0xfe 0x2d 0x7e 0xd8 0x1f 0x7b 0x87
          3 slot packets
          5 slot packets
          Encryption
          Slot offset
          Timing accuracy
          Role switch
          Hold mode
          Sniff mode
          Power control requests
          Channel quality driven data rate (CQDDR)
          SCO link
          HV2 packets
          HV3 packets
          u-law log synchronous data
          A-law log synchronous data
          CVSD synchronous data
          Power control
          Transparent synchronous data
          Flow control lag (middle bit)
          Enhanced Data Rate ACL 2 Mbps mode
          Enhanced Data Rate ACL 3 Mbps mode
          Enhanced inquiry scan
          Interlaced inquiry scan
          Interlaced page scan
          RSSI with inquiry results
          AFH capable slave
          AFH classification slave
          LE Supported (Controller)
          3-slot Enhanced Data Rate ACL packets
          5-slot Enhanced Data Rate ACL packets
          Sniff subrating
          Pause encryption
          AFH capable master
          AFH classification master
          Extended Inquiry Response
          Simultaneous LE and BR/EDR (Controller)
          Secure Simple Pairing
          Encapsulated PDU
          Erroneous Data Reporting
          Non-flushable Packet Boundary Flag
          Link Supervision Timeout Changed Event
          Inquiry TX Power Level
          Enhanced Power Control
          Extended features
< HCI Command: Read Remote Extended.. (0x01|0x001c) plen 3  #8 [hci0] 34.478254
        Handle: 4
        Page: 1
> HCI Event: Connection Packet Type Changed (0x1d) plen 5   #9 [hci0] 34.479212
        Status: Success (0x00)
        Handle: 4
        Packet type: 0x331c
          3-DH1 may not be used
          DM1 may be used
          DH1 may be used
          2-DH3 may not be used
          3-DH3 may not be used
          2-DH5 may not be used
          3-DH5 may not be used
> HCI Event: Connection Packet Type Changed (0x1d) plen 5  #10 [hci0] 34.481483
        Status: Success (0x00)
        Handle: 4
        Packet type: 0x330b
          2-DH1 may not be used
          DM1 may be used
          2-DH3 may not be used
          3-DH3 may not be used
          2-DH5 may not be used
          3-DH5 may not be used
          Unknown packet types (0x0001)
> HCI Event: Connection Packet Type Changed (0x1d) plen 5  #11 [hci0] 34.482289
        Status: Success (0x00)
        Handle: 4
        Packet type: 0x3318
          DM1 may be used
          DH1 may be used
          2-DH3 may not be used
          3-DH3 may not be used
          2-DH5 may not be used
          3-DH5 may not be used
> HCI Event: Max Slots Change (0x1b) plen 3                #12 [hci0] 34.486195
        Handle: 4
        Max slots: 5
> HCI Event: Command Status (0x0f) plen 4                  #13 [hci0] 34.486594
      Read Remote Extended Features (0x01|0x001c) ncmd 1
        Status: Success (0x00)
> HCI Event: Read Remote Extended Features (0x23) plen 13  #14 [hci0] 34.494660
        Status: Success (0x00)
        Handle: 4
        Page: 1/1
        Features: 0x03 0x00 0x00 0x00 0x00 0x00 0x00 0x00
          Secure Simple Pairing (Host Support)
          LE Supported (Host)
< HCI Command: Remote Name Request (0x01|0x0019) plen 10   #15 [hci0] 34.495053
        Address: B0:B4:48:9B:88:10 (Texas Instruments)
        Page scan repetition mode: R2 (0x02)
        Page scan mode: Mandatory (0x00)
        Clock offset: 0x0000
< ACL Data TX: Handle 4 flags 0x00 dlen 10                 #16 [hci0] 34.495108
      L2CAP: Information Request (0x0a) ident 1 len 2
        Type: Extended features supported (0x0002)
> HCI Event: Command Status (0x0f) plen 4                  #17 [hci0] 34.498746
      Remote Name Request (0x01|0x0019) ncmd 1
        Status: Success (0x00)
> HCI Event: Number of Completed Packets (0x13) plen 5     #18 [hci0] 34.502492
        Num handles: 1
        Handle: 4
        Count: 1
> ACL Data RX: Handle 4 flags 0x02 dlen 16                 #19 [hci0] 34.504265
      L2CAP: Information Response (0x0b) ident 1 len 8
        Type: Extended features supported (0x0002)
        Result: Success (0x0000)
        Features: 0x00000280
          Fixed Channels
          Unicast Connectionless Data Reception
< ACL Data TX: Handle 4 flags 0x00 dlen 10                 #20 [hci0] 34.504377
      L2CAP: Information Request (0x0a) ident 2 len 2
        Type: Fixed channels supported (0x0003)
> HCI Event: Remote Name Req Complete (0x07) plen 255      #21 [hci0] 34.506429
        Status: Success (0x00)
        Address: B0:B4:48:9B:88:10 (Texas Instruments)
        Name: Pebble Time 8810
@ Device Connected: B0:B4:48:9B:88:10 (0) flags 0x0000
        11 09 50 65 62 62 6c 65 20 54 69 6d 65 20 38 38  ..Pebble Time 88
        31 30                                            10              
> HCI Event: Number of Completed Packets (0x13) plen 5     #22 [hci0] 34.509299
        Num handles: 1
        Handle: 4
        Count: 1
> ACL Data RX: Handle 4 flags 0x02 dlen 20                 #23 [hci0] 34.512367
      L2CAP: Information Response (0x0b) ident 2 len 12
        Type: Fixed channels supported (0x0003)
        Result: Success (0x0000)
        Channels: 0x0000000000000006
          L2CAP Signaling (BR/EDR)
          Connectionless reception
< ACL Data TX: Handle 4 flags 0x00 dlen 12                 #24 [hci0] 34.512538
      L2CAP: Connection Request (0x02) ident 3 len 4
        PSM: 1 (0x0001)
        Source CID: 64
> HCI Event: Number of Completed Packets (0x13) plen 5     #25 [hci0] 34.516629
        Num handles: 1
        Handle: 4
        Count: 1
> ACL Data RX: Handle 4 flags 0x02 dlen 16                 #26 [hci0] 34.519036
      L2CAP: Connection Response (0x03) ident 3 len 8
        Destination CID: 94
        Source CID: 64
        Result: Connection successful (0x0000)
        Status: No further information available (0x0000)
< ACL Data TX: Handle 4 flags 0x00 dlen 12                 #27 [hci0] 34.519221
      L2CAP: Configure Request (0x04) ident 4 len 4
        Destination CID: 94
        Flags: 0x0000
> ACL Data RX: Handle 4 flags 0x02 dlen 16                 #28 [hci0] 34.520868
      L2CAP: Configure Request (0x04) ident 42 len 8
        Destination CID: 64
        Flags: 0x0000
        Option: Maximum Transmission Unit (0x01) [mandatory]
          MTU: 339
< ACL Data TX: Handle 4 flags 0x00 dlen 18                 #29 [hci0] 34.520970
      L2CAP: Configure Response (0x05) ident 42 len 10
        Source CID: 94
        Flags: 0x0000
        Result: Success (0x0000)
        Option: Maximum Transmission Unit (0x01) [mandatory]
          MTU: 339
> HCI Event: Number of Completed Packets (0x13) plen 5     #30 [hci0] 34.527112
        Num handles: 1
        Handle: 4
        Count: 1
> HCI Event: Number of Completed Packets (0x13) plen 5     #31 [hci0] 34.530337
        Num handles: 1
        Handle: 4
        Count: 1
> ACL Data RX: Handle 4 flags 0x02 dlen 14                 #32 [hci0] 34.531161
      L2CAP: Configure Response (0x05) ident 4 len 6
        Source CID: 64
        Flags: 0x0000
        Result: Success (0x0000)
< ACL Data TX: Handle 4 flags 0x00 dlen 24                 #33 [hci0] 34.531491
      Channel: 94 len 20 [PSM 1 mode Basic (0x00)] {chan 0}
      SDP: Service Search Attribute Request (0x06) tid 0 len 15
        Search pattern: [len 5]
          Sequence (6) with 3 bytes [8 extra bits] len 5
            UUID (3) with 2 bytes [0 extra bits] len 3
              L2CAP (0x0100)
        Max record count: 65535
        Attribute list: [len 7]
          Sequence (6) with 5 bytes [8 extra bits] len 7
            Unsigned Integer (1) with 4 bytes [0 extra bits] len 5
              0x0000ffff
        Continuation state: 0
> HCI Event: Number of Completed Packets (0x13) plen 5     #34 [hci0] 34.538610
        Num handles: 1
        Handle: 4
        Count: 1
> ACL Data RX: Handle 4 flags 0x02 dlen 96                 #35 [hci0] 34.542113
      Channel: 64 len 92 [PSM 1 mode Basic (0x00)] {chan 0}
      SDP: Service Search Attribute Response (0x07) tid 0 len 87
        Attribute bytes: 84
          Attribute list: [len 80] {position 0}
            Attribute: Service Record Handle (0x0000) [len 2]
              0x0001000a
            Attribute: Service Class ID List (0x0001) [len 2]
              UUID (3) with 16 bytes [0 extra bits] len 17
                00000000-deca-fade-deca-deafdecacaff
              UUID (3) with 2 bytes [0 extra bits] len 3
                Serial Port (0x1101)
            Attribute: Protocol Descriptor List (0x0004) [len 2]
              Sequence (6) with 3 bytes [8 extra bits] len 5
                UUID (3) with 2 bytes [0 extra bits] len 3
                  L2CAP (0x0100)
              Sequence (6) with 5 bytes [8 extra bits] len 7
                UUID (3) with 2 bytes [0 extra bits] len 3
                  RFCOMM (0x0003)
                Unsigned Integer (1) with 1 byte [0 extra bits] len 2
                  0x01
            Attribute: Unknown (0x0100) [len 2]
              Serial Port Server Port 6 [len 25]
        Continuation state: 0
< ACL Data TX: Handle 4 flags 0x00 dlen 24                 #36 [hci0] 34.549766
      Channel: 94 len 20 [PSM 1 mode Basic (0x00)] {chan 0}
      SDP: Service Search Attribute Request (0x06) tid 1 len 15
        Search pattern: [len 5]
          Sequence (6) with 3 bytes [8 extra bits] len 5
            UUID (3) with 2 bytes [0 extra bits] len 3
              PnP Information (0x1200)
        Max record count: 65535
        Attribute list: [len 7]
          Sequence (6) with 5 bytes [8 extra bits] len 7
            Unsigned Integer (1) with 4 bytes [0 extra bits] len 5
              0x0000ffff
        Continuation state: 0
> HCI Event: Number of Completed Packets (0x13) plen 5     #37 [hci0] 34.556775
        Num handles: 1
        Handle: 4
        Count: 1
> ACL Data RX: Handle 4 flags 0x02 dlen 67                 #38 [hci0] 34.561962
      Channel: 64 len 63 [PSM 1 mode Basic (0x00)] {chan 0}
      SDP: Service Search Attribute Response (0x07) tid 1 len 58
        Attribute bytes: 55
          Attribute list: [len 51] {position 0}
            Attribute: Service Record Handle (0x0000) [len 2]
              0x0001000b
            Attribute: Service Class ID List (0x0001) [len 2]
              UUID (3) with 2 bytes [0 extra bits] len 3
                PnP Information (0x1200)
            Attribute: Unknown (0x0200) [len 2]
              0x0103
            Attribute: Unknown (0x0201) [len 2]
              0x005e
            Attribute: Unknown (0x0202) [len 2]
              0x0001
            Attribute: Unknown (0x0203) [len 2]
              0x0112
            Attribute: Unknown (0x0204) [len 2]
              true
            Attribute: Unknown (0x0205) [len 2]
              0x0001
        Continuation state: 0
> HCI Event: Connection Packet Type Changed (0x1d) plen 5  #39 [hci0] 36.274681
        Status: Success (0x00)
        Handle: 4
        Packet type: 0x3308
          DM1 may be used
          2-DH3 may not be used
          3-DH3 may not be used
          2-DH5 may not be used
          3-DH5 may not be used
< ACL Data TX: Handle 4 flags 0x00 dlen 12                 #40 [hci0] 36.997001
      L2CAP: Disconnection Request (0x06) ident 5 len 4
        Destination CID: 94
        Source CID: 64
> HCI Event: Number of Completed Packets (0x13) plen 5     #41 [hci0] 37.027596
        Num handles: 1
        Handle: 4
        Count: 1
> ACL Data RX: Handle 4 flags 0x02 dlen 12                 #42 [hci0] 37.049566
      L2CAP: Disconnection Response (0x07) ident 5 len 4
        Destination CID: 94
        Source CID: 64
< HCI Command: Disconnect (0x01|0x0006) plen 3             #43 [hci0] 39.052935
        Handle: 4
        Reason: Remote User Terminated Connection (0x13)
> HCI Event: Command Status (0x0f) plen 4                  #44 [hci0] 39.061528
      Disconnect (0x01|0x0006) ncmd 1
        Status: Success (0x00)
> HCI Event: Disconnect Complete (0x05) plen 4             #45 [hci0] 39.218555
        Status: Success (0x00)
        Handle: 4
        Reason: Connection Terminated By Local Host (0x16)
@ Device Disconnected: B0:B4:48:9B:88:10 (0) reason 2

On which OS release did this work previously?

It did still work with (probably latest?) 4.0 and stopped right after the installation of 4.1.0.23.

I also think there is some kind of regression related to BT in 4.1.0.23, but someone suggested it might be device related as reportedly start/stop BT works on the Jolla C and on the Xperia X here it does not.
See my experience Bluetooth turning on doesn't work - #49 by deloptes

Interestingly BT still works. Pairing is possible and headset and car also get connected and work… For me it’s just this one device that got new errors. Maybe I try to revive my old Jolla C to check for device specific problems if I get the time.

The topic can be closed. As it seems, the Pebble needs to have a working connection to the software to keep connected. And rockpool was somehow broken until the latest release…