Thank you for taking the time to report this bug and helping to make
Ubuntu better. Please execute the following command, as it will
automatically gather debugging information, in a terminal:

  apport-collect 1887968

When reporting bugs in the future please use apport by using 'ubuntu-
bug' and the name of the package affected. You can learn more about this
functionality at https://wiki.ubuntu.com/ReportingBugs.

** Changed in: bluez (Ubuntu)
   Importance: Undecided => Low

** Changed in: bluez (Ubuntu)
       Status: New => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to bluez in Ubuntu.
https://bugs.launchpad.net/bugs/1887968

Title:
  Pairing with bluetooth mice fails

Status in bluez package in Ubuntu:
  Incomplete

Bug description:
  I'm using Ubuntu 20.04 on a Huawei Matebook 13 AMD laptop which seems
  to use a Realtek RTL8822CE Wifi/Bluetooth combo adapter.

  I've been unsuccessful to pair with 2 different bluetooth mice.
  However bluetooth seems to work with other devices. I'm under the
  impression that this problem only happens with Bluetooth LE devices.

  Trying to pair using bluetoothctl fails with the
  org.bluez.Error.AuthenticationCanceled error:

  [bluetooth]# pair E5:5B:67:2A:09:76
  Attempting to pair with E5:5B:67:2A:09:76
  [CHG] Device E5:5B:67:2A:09:76 Connected: yes
  [CHG] Device E5:5B:67:2A:09:76 Connected: no
  Failed to pair: org.bluez.Error.AuthenticationCanceled

  A quick google search for org.bluez.Error.AuthenticationCanceled
  reported nothing relevant.

  Running btmon while trying to pair with the device gives me the
  following:

  Bluetooth monitor ver 5.53
  = Note: Linux version 5.4.0-40-generic (x86_64)                               
                                                                        0.998188
  = Note: Bluetooth subsystem version 2.22                                      
                                                                        0.998193
  = New Index: E8:6F:38:9C:2B:3C (Primary,USB,hci0)                             
                                                                 [hci0] 0.998194
  = Open Index: E8:6F:38:9C:2B:3C                                               
                                                                 [hci0] 0.998195
  = Index Info: E8:6F:38:9C:2B:3C (Realtek Semiconductor Corporation)           
                                                                 [hci0] 0.998197
  @ MGMT Open: bluetoothd (privileged) version 1.14                             
                                                               {0x0001} 0.998198
  @ MGMT Open: btmon (privileged) version 1.14                                  
                                                               {0x0002} 0.998310
  @ MGMT Command: Pair Device (0x0019) plen 8                                   
                                                        {0x0001} [hci0] 8.162442
          LE Address: E5:5B:67:2A:09:76 (Static)
          Capability: KeyboardDisplay (0x04)
  < HCI Command: LE Set Extended Scan Parameters (0x08|0x0041) plen 8           
                                                              #1 [hci0] 8.162527
          Own address type: Public (0x00)
          Filter policy: Ignore not in white list (0x01)
          PHYs: 0x01
          Entry 0: LE 1M
            Type: Passive (0x00)
            Interval: 60.000 msec (0x0060)
            Window: 30.000 msec (0x0030)
  > HCI Event: Command Complete (0x0e) plen 4                                   
                                                              #2 [hci0] 8.284618
        LE Set Extended Scan Parameters (0x08|0x0041) ncmd 2
          Status: Success (0x00)
  < HCI Command: LE Set Extended Scan Enable (0x08|0x0042) plen 6               
                                                              #3 [hci0] 8.284654
          Extended scan: Enabled (0x01)
          Filter duplicates: Enabled (0x01)
          Duration: 0 msec (0x0000)
          Period: 0.00 sec (0x0000)
  > HCI Event: Command Complete (0x0e) plen 4                                   
                                                              #4 [hci0] 8.289616
        LE Set Extended Scan Enable (0x08|0x0042) ncmd 2
          Status: Success (0x00)
  > HCI Event: LE Meta Event (0x3e) plen 52                                     
                                                              #5 [hci0] 8.343614
        LE Extended Advertising Report (0x0d)
          Num reports: 1
          Entry 0
            Event type: 0x0013
              Props: 0x0013
                Connectable
                Scannable
                Use legacy advertising PDUs
              Data status: Complete
            Legacy PDU Type: ADV_IND (0x0013)
            Address type: Random (0x01)
            Address: E5:5B:67:2A:09:76 (Static)
            Primary PHY: LE 1M
            Secondary PHY: No packets
            SID: no ADI field (0xff)
            TX power: 127 dBm
            RSSI: -20 dBm (0xec)
            Periodic advertising invteral: 0.00 msec (0x0000)
            Direct address type: Public (0x00)
            Direct address: 00:00:00:00:00:00 (OUI 00-00-00)
            Data length: 0x1a
          03 19 c2 03 02 01 05 03 03 12 18 0e 09 52 61 7a  .............Raz
          65 72 20 41 74 68 65 72 69 73                    er Atheris      
  < HCI Command: LE Set Extended Scan Enable (0x08|0x0042) plen 6               
                                                              #6 [hci0] 8.343656
          Extended scan: Disabled (0x00)
          Filter duplicates: Disabled (0x00)
          Duration: 0 msec (0x0000)
          Period: 0.00 sec (0x0000)
  > HCI Event: Command Complete (0x0e) plen 4                                   
                                                              #7 [hci0] 8.345617
        LE Set Extended Scan Enable (0x08|0x0042) ncmd 2
          Status: Success (0x00)
  < HCI Command: LE Extended Create Connection (0x08|0x0043) plen 26            
                                                              #8 [hci0] 8.345680
          Filter policy: White list is not used (0x00)
          Own address type: Public (0x00)
          Peer address type: Random (0x01)
          Peer address: E5:5B:67:2A:09:76 (Static)
          Initiating PHYs: 0x01
          Entry 0: LE 1M
            Scan interval: 60.000 msec (0x0060)
            Scan window: 60.000 msec (0x0060)
            Min connection interval: 30.00 msec (0x0018)
            Max connection interval: 50.00 msec (0x0028)
            Connection latency: 0 (0x0000)
            Supervision timeout: 420 msec (0x002a)
            Min connection length: 0.000 msec (0x0000)
            Max connection length: 0.000 msec (0x0000)
  > HCI Event: Command Status (0x0f) plen 4                                     
                                                              #9 [hci0] 8.348616
        LE Extended Create Connection (0x08|0x0043) ncmd 2
          Status: Success (0x00)
  > HCI Event: LE Meta Event (0x3e) plen 31                                     
                                                             #10 [hci0] 8.390589
        LE Enhanced Connection Complete (0x0a)
          Status: Success (0x00)
          Handle: 16
          Role: Master (0x00)
          Peer address type: Random (0x01)
          Peer address: E5:5B:67:2A:09:76 (Static)
          Local resolvable private address: 00:00:00:00:00:00 (Non-Resolvable)
          Peer resolvable private address: 00:00:00:00:00:00 (Non-Resolvable)
          Connection interval: 45.00 msec (0x0024)
          Connection latency: 0 (0x0000)
          Supervision timeout: 420 msec (0x002a)
          Master clock accuracy: 0x00
  @ MGMT Event: Device Connected (0x000b) plen 39                               
                                                        {0x0002} [hci0] 8.390620
          LE Address: E5:5B:67:2A:09:76 (Static)
          Flags: 0x00000000
          Data length: 26
          Appearance: Mouse (0x03c2)
          Flags: 0x05
            LE Limited Discoverable Mode
            BR/EDR Not Supported
          16-bit Service UUIDs (complete): 1 entry
            Human Interface Device (0x1812)
          Name (complete): Razer Atheris
  @ MGMT Event: Device Connected (0x000b) plen 39                               
                                                        {0x0001} [hci0] 8.390620
          LE Address: E5:5B:67:2A:09:76 (Static)
          Flags: 0x00000000
          Data length: 26
          Appearance: Mouse (0x03c2)
          Flags: 0x05
            LE Limited Discoverable Mode
            BR/EDR Not Supported
          16-bit Service UUIDs (complete): 1 entry
            Human Interface Device (0x1812)
          Name (complete): Razer Atheris
  < HCI Command: LE Read Remote Used Features (0x08|0x0016) plen 2              
                                                             #11 [hci0] 8.390716
          Handle: 16
  > HCI Event: Command Status (0x0f) plen 4                                     
                                                             #12 [hci0] 8.392604
        LE Read Remote Used Features (0x08|0x0016) ncmd 2
          Status: Success (0x00)
  > HCI Event: LE Meta Event (0x3e) plen 4                                      
                                                             #13 [hci0] 8.413604
        LE Channel Selection Algorithm (0x14)
          Handle: 16
          Algorithm: #1 (0x00)
  > HCI Event: Disconnect Complete (0x05) plen 4                                
                                                             #14 [hci0] 8.638621
          Status: Success (0x00)
          Handle: 16
          Reason: Connection Failed to be Established (0x3e)
  @ MGMT Event: Device Disconnected (0x000c) plen 8                             
                                                        {0x0002} [hci0] 8.638728
          LE Address: E5:5B:67:2A:09:76 (Static)
          Reason: Unspecified (0x00)
  @ MGMT Event: Device Disconnected (0x000c) plen 8                             
                                                        {0x0001} [hci0] 8.638728
          LE Address: E5:5B:67:2A:09:76 (Static)
          Reason: Unspecified (0x00)
  @ MGMT Event: Command Complete (0x0001) plen 10                               
                                                        {0x0001} [hci0] 8.638743
        Pair Device (0x0019) plen 7
          Status: Failed (0x03)
          LE Address: E5:5B:67:2A:09:76 (Static)

  My system is using bluez 5.53-0ubuntu3

  Thanks for your help.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bluez/+bug/1887968/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to