Public bug reported:

Laptop: Dell Inspiron 7370
CID: 201704-25503
Ubuntu version: 20.04 daily
Linux kernel: 5.4.0-18-generic
Bluez: 5.53-0ubuntu2

Summary
=======

BT earphones/speaker cannot be connected either using GNOME control
center, either using bluetoothctl. I've tried with previous versions of
the kernel as well (5.4.0-14, 5.4.0-9) and it exhibits the same issue,
so I believe this is a problem with bluez.

However, the same procedure works fine on Ubuntu 19.10 (kernel 5.3.0-18,
bluez 5.50), so I think it's a regression in bluez.

Steps to reproduce
==================

1. Open GNOME control center, go to Bluetooth, make sure it's turned on
2. Put the BT device in pairing mode (usually, long press on the Power button)
  -> in g-c-c, the device appears as "Not Set Up" (OK)
3. Click on the device to pair it
  -> the device is briefly marked as "Connected", then immediately switches to 
"Disconnected" (Not OK)

The attached btmon logs (5.4.0-18-btmon-speaker.log) show what happens
when I follow steps 1-3 above.

I tried the same procedure on a 19.10 live usb (kernel 5.3.0-18, bluez
5.50) and it works fine (see attached logs 5.3.0-18-btmon-speaker.log)

Back to Ubuntu 20.04, if I try to pair and connect the device using
bluetoothctl, it fails:

$ sudo bluetoothctl
Agent registered
[CHG] Controller C8:21:58:B7:2E:82 Pairable: yes
[bluetooth]# power on
Changing power on succeeded
[bluetooth]# pairable on
Changing pairable on succeeded
[bluetooth]# scan on
Discovery started
[CHG] Controller C8:21:58:B7:2E:82 Discovering: yes
[NEW] Device 88:C6:26:1A:9E:AF UE BOOM
[CHG] Device 61:E5:46:38:58:8B RSSI: -86
[CHG] Device 61:E5:46:38:58:8B ManufacturerData Key: 0x004c
[CHG] Device 61:E5:46:38:58:8B ManufacturerData Value:
  0c 0e 08 c5 ea 55 99 d4 da 92 56 98 49 f3 8b 13  .....U....V.I...
[CHG] Device 38:F9:D3:3D:A2:CC RSSI: -87
[CHG] Device 7D:2A:91:B5:44:07 RSSI: -90
[CHG] Device 7D:2A:91:B5:44:07 TxPower: 12
[CHG] Device 56:AE:9C:58:00:BA RSSI: -87
[CHG] Device 56:AE:9C:58:00:BA TxPower: 12
[CHG] Device 28:11:A5:B6:FE:DD RSSI: -86
[CHG] Device 75:79:4D:66:E9:FF RSSI: -81
[CHG] Device 75:79:4D:66:E9:FF TxPower: 12
[CHG] Device 31:DD:66:D7:C9:3D RSSI: -87
[bluetooth]# scan off
Discovery stopped
[CHG] Controller C8:21:58:B7:2E:82 Discovering: no
[CHG] Device 31:DD:66:D7:C9:3D RSSI is nil
[CHG] Device 75:79:4D:66:E9:FF TxPower is nil
[CHG] Device 75:79:4D:66:E9:FF RSSI is nil
[CHG] Device 28:11:A5:B6:FE:DD RSSI is nil
[CHG] Device 56:AE:9C:58:00:BA TxPower is nil
[CHG] Device 56:AE:9C:58:00:BA RSSI is nil
[CHG] Device 7D:2A:91:B5:44:07 TxPower is nil
[CHG] Device 7D:2A:91:B5:44:07 RSSI is nil
[CHG] Device 38:F9:D3:3D:A2:CC RSSI is nil
[CHG] Device 61:E5:46:38:58:8B RSSI is nil
[CHG] Device 88:C6:26:1A:9E:AF TxPower is nil
[CHG] Device 88:C6:26:1A:9E:AF RSSI is nil
[bluetooth]# pair 88:C6:26:1A:9E:AF
Attempting to pair with 88:C6:26:1A:9E:AF
[CHG] Device 88:C6:26:1A:9E:AF Connected: yes
[CHG] Device 88:C6:26:1A:9E:AF UUIDs: 00000000-deca-fade-deca-deafdecacaff
[CHG] Device 88:C6:26:1A:9E:AF UUIDs: 00001101-0000-1000-8000-00805f9b34fb
[CHG] Device 88:C6:26:1A:9E:AF UUIDs: 0000110a-0000-1000-8000-00805f9b34fb
[CHG] Device 88:C6:26:1A:9E:AF UUIDs: 0000110b-0000-1000-8000-00805f9b34fb
[CHG] Device 88:C6:26:1A:9E:AF UUIDs: 0000110c-0000-1000-8000-00805f9b34fb
[CHG] Device 88:C6:26:1A:9E:AF UUIDs: 0000110e-0000-1000-8000-00805f9b34fb
[CHG] Device 88:C6:26:1A:9E:AF UUIDs: 0000111e-0000-1000-8000-00805f9b34fb
[CHG] Device 88:C6:26:1A:9E:AF UUIDs: 00001200-0000-1000-8000-00805f9b34fb
[CHG] Device 88:C6:26:1A:9E:AF ServicesResolved: yes
[CHG] Device 88:C6:26:1A:9E:AF Paired: yes
Pairing successful
[CHG] Device 88:C6:26:1A:9E:AF ServicesResolved: no
[CHG] Device 88:C6:26:1A:9E:AF Connected: no
[bluetooth]# trust 88:C6:26:1A:9E:AF
[CHG] Device 88:C6:26:1A:9E:AF Trusted: yes
Changing 88:C6:26:1A:9E:AF trust succeeded
[bluetooth]# connect 88:C6:26:1A:9E:AF
Attempting to connect to 88:C6:26:1A:9E:AF
Failed to connect: org.bluez.Error.Failed
[bluetooth]# connect 88:C6:26:1A:9E:AF
Attempting to connect to 88:C6:26:1A:9E:AF
Failed to connect: org.bluez.Error.Failed

Additional information
======================

$ lspci -vv -s 01:00.0
01:00.0 Network controller: Intel Corporation Wireless 7265 (rev 59)
 Subsystem: Intel Corporation Dual Band Wireless-AC 7265
 Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- 
SERR- FastB2B- DisINTx+
 Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- 
<MAbort- >SERR- <PERR- INTx-
 Latency: 0
 Interrupt: pin A routed to IRQ 127
 Region 0: Memory at d1000000 (64-bit, non-prefetchable) [size=8K]
 Capabilities: <access denied>
 Kernel driver in use: iwlwifi
 Kernel modules: iwlwifi

$ dmesg | grep -i bluetooth
[   15.748300] Bluetooth: Core ver 2.22
[   15.748312] Bluetooth: HCI device and connection manager initialized
[   15.748315] Bluetooth: HCI socket layer initialized
[   15.748317] Bluetooth: L2CAP socket layer initialized
[   15.748320] Bluetooth: SCO socket layer initialized
[   15.925524] Bluetooth: hci0: read Intel version: 370810011003110e00
[   15.926254] Bluetooth: hci0: Intel Bluetooth firmware file: 
intel/ibt-hw-37.8.10-fw-1.10.3.11.e.bseq
[   16.194441] Bluetooth: hci0: unexpected event for opcode 0xfc2f
[   16.211450] Bluetooth: hci0: Intel firmware patch completed and activated
[   17.946847] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   17.946849] Bluetooth: BNEP filters: protocol multicast
[   17.946852] Bluetooth: BNEP socket layer initialized
[  160.346760] Bluetooth: RFCOMM TTY layer initialized
[  160.346767] Bluetooth: RFCOMM socket layer initialized
[  160.346772] Bluetooth: RFCOMM ver 1.11

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: bluez 5.53-0ubuntu2
ProcVersionSignature: Ubuntu 5.4.0-18.22-generic 5.4.24
Uname: Linux 5.4.0-18-generic x86_64
ApportVersion: 2.20.11-0ubuntu21
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Tue Mar 31 16:49:25 2020
InstallationDate: Installed on 2020-01-17 (74 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Alpha amd64 (20200116)
InterestingModules: rfcomm bnep btusb bluetooth
Lsusb:
 Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
 Bus 001 Device 003: ID 8087:0a2a Intel Corp.
 Bus 001 Device 002: ID 0bda:58f5 Realtek Semiconductor Corp. 
Integrated_Webcam_HD
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
MachineType: Dell Inc. Inspiron 7370
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-5.4.0-18-generic 
root=/dev/mapper/vgubuntu-root ro quiet splash vt.handoff=7
SourcePackage: bluez
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 04/23/2019
dmi.bios.vendor: Dell Inc.
dmi.bios.version: 1.14.0
dmi.board.vendor: Dell Inc.
dmi.chassis.type: 10
dmi.chassis.vendor: Dell Inc.
dmi.modalias: 
dmi:bvnDellInc.:bvr1.14.0:bd04/23/2019:svnDellInc.:pnInspiron7370:pvr:rvnDellInc.:rn:rvr:cvnDellInc.:ct10:cvr:
dmi.product.family: Inspiron
dmi.product.name: Inspiron 7370
dmi.product.sku: 07E9
dmi.sys.vendor: Dell Inc.
hciconfig:
 hci0:  Type: Primary  Bus: USB
  BD Address: C8:21:58:B7:2E:82  ACL MTU: 1021:5  SCO MTU: 96:6
  UP RUNNING PSCAN ISCAN INQUIRY
  RX bytes:40580 acl:40 sco:0 events:2041 errors:0
  TX bytes:46763 acl:41 sco:0 commands:853 errors:0

** Affects: bluez (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug focal

** Attachment added: "5.4.0-18-btmon-speaker.log"
   
https://bugs.launchpad.net/bugs/1869857/+attachment/5343674/+files/5.4.0-18-btmon-speaker.log

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to bluez in Ubuntu.
https://bugs.launchpad.net/bugs/1869857

Title:
  [Intel 7265][Regression] Cannot connect BT earphones or speakers

Status in bluez package in Ubuntu:
  New

Bug description:
  Laptop: Dell Inspiron 7370
  CID: 201704-25503
  Ubuntu version: 20.04 daily
  Linux kernel: 5.4.0-18-generic
  Bluez: 5.53-0ubuntu2

  Summary
  =======

  BT earphones/speaker cannot be connected either using GNOME control
  center, either using bluetoothctl. I've tried with previous versions
  of the kernel as well (5.4.0-14, 5.4.0-9) and it exhibits the same
  issue, so I believe this is a problem with bluez.

  However, the same procedure works fine on Ubuntu 19.10 (kernel
  5.3.0-18, bluez 5.50), so I think it's a regression in bluez.

  Steps to reproduce
  ==================

  1. Open GNOME control center, go to Bluetooth, make sure it's turned on
  2. Put the BT device in pairing mode (usually, long press on the Power button)
    -> in g-c-c, the device appears as "Not Set Up" (OK)
  3. Click on the device to pair it
    -> the device is briefly marked as "Connected", then immediately switches 
to "Disconnected" (Not OK)

  The attached btmon logs (5.4.0-18-btmon-speaker.log) show what happens
  when I follow steps 1-3 above.

  I tried the same procedure on a 19.10 live usb (kernel 5.3.0-18, bluez
  5.50) and it works fine (see attached logs 5.3.0-18-btmon-speaker.log)

  Back to Ubuntu 20.04, if I try to pair and connect the device using
  bluetoothctl, it fails:

  $ sudo bluetoothctl
  Agent registered
  [CHG] Controller C8:21:58:B7:2E:82 Pairable: yes
  [bluetooth]# power on
  Changing power on succeeded
  [bluetooth]# pairable on
  Changing pairable on succeeded
  [bluetooth]# scan on
  Discovery started
  [CHG] Controller C8:21:58:B7:2E:82 Discovering: yes
  [NEW] Device 88:C6:26:1A:9E:AF UE BOOM
  [CHG] Device 61:E5:46:38:58:8B RSSI: -86
  [CHG] Device 61:E5:46:38:58:8B ManufacturerData Key: 0x004c
  [CHG] Device 61:E5:46:38:58:8B ManufacturerData Value:
    0c 0e 08 c5 ea 55 99 d4 da 92 56 98 49 f3 8b 13  .....U....V.I...
  [CHG] Device 38:F9:D3:3D:A2:CC RSSI: -87
  [CHG] Device 7D:2A:91:B5:44:07 RSSI: -90
  [CHG] Device 7D:2A:91:B5:44:07 TxPower: 12
  [CHG] Device 56:AE:9C:58:00:BA RSSI: -87
  [CHG] Device 56:AE:9C:58:00:BA TxPower: 12
  [CHG] Device 28:11:A5:B6:FE:DD RSSI: -86
  [CHG] Device 75:79:4D:66:E9:FF RSSI: -81
  [CHG] Device 75:79:4D:66:E9:FF TxPower: 12
  [CHG] Device 31:DD:66:D7:C9:3D RSSI: -87
  [bluetooth]# scan off
  Discovery stopped
  [CHG] Controller C8:21:58:B7:2E:82 Discovering: no
  [CHG] Device 31:DD:66:D7:C9:3D RSSI is nil
  [CHG] Device 75:79:4D:66:E9:FF TxPower is nil
  [CHG] Device 75:79:4D:66:E9:FF RSSI is nil
  [CHG] Device 28:11:A5:B6:FE:DD RSSI is nil
  [CHG] Device 56:AE:9C:58:00:BA TxPower is nil
  [CHG] Device 56:AE:9C:58:00:BA RSSI is nil
  [CHG] Device 7D:2A:91:B5:44:07 TxPower is nil
  [CHG] Device 7D:2A:91:B5:44:07 RSSI is nil
  [CHG] Device 38:F9:D3:3D:A2:CC RSSI is nil
  [CHG] Device 61:E5:46:38:58:8B RSSI is nil
  [CHG] Device 88:C6:26:1A:9E:AF TxPower is nil
  [CHG] Device 88:C6:26:1A:9E:AF RSSI is nil
  [bluetooth]# pair 88:C6:26:1A:9E:AF
  Attempting to pair with 88:C6:26:1A:9E:AF
  [CHG] Device 88:C6:26:1A:9E:AF Connected: yes
  [CHG] Device 88:C6:26:1A:9E:AF UUIDs: 00000000-deca-fade-deca-deafdecacaff
  [CHG] Device 88:C6:26:1A:9E:AF UUIDs: 00001101-0000-1000-8000-00805f9b34fb
  [CHG] Device 88:C6:26:1A:9E:AF UUIDs: 0000110a-0000-1000-8000-00805f9b34fb
  [CHG] Device 88:C6:26:1A:9E:AF UUIDs: 0000110b-0000-1000-8000-00805f9b34fb
  [CHG] Device 88:C6:26:1A:9E:AF UUIDs: 0000110c-0000-1000-8000-00805f9b34fb
  [CHG] Device 88:C6:26:1A:9E:AF UUIDs: 0000110e-0000-1000-8000-00805f9b34fb
  [CHG] Device 88:C6:26:1A:9E:AF UUIDs: 0000111e-0000-1000-8000-00805f9b34fb
  [CHG] Device 88:C6:26:1A:9E:AF UUIDs: 00001200-0000-1000-8000-00805f9b34fb
  [CHG] Device 88:C6:26:1A:9E:AF ServicesResolved: yes
  [CHG] Device 88:C6:26:1A:9E:AF Paired: yes
  Pairing successful
  [CHG] Device 88:C6:26:1A:9E:AF ServicesResolved: no
  [CHG] Device 88:C6:26:1A:9E:AF Connected: no
  [bluetooth]# trust 88:C6:26:1A:9E:AF
  [CHG] Device 88:C6:26:1A:9E:AF Trusted: yes
  Changing 88:C6:26:1A:9E:AF trust succeeded
  [bluetooth]# connect 88:C6:26:1A:9E:AF
  Attempting to connect to 88:C6:26:1A:9E:AF
  Failed to connect: org.bluez.Error.Failed
  [bluetooth]# connect 88:C6:26:1A:9E:AF
  Attempting to connect to 88:C6:26:1A:9E:AF
  Failed to connect: org.bluez.Error.Failed

  Additional information
  ======================

  $ lspci -vv -s 01:00.0
  01:00.0 Network controller: Intel Corporation Wireless 7265 (rev 59)
   Subsystem: Intel Corporation Dual Band Wireless-AC 7265
   Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B- DisINTx+
   Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- 
<MAbort- >SERR- <PERR- INTx-
   Latency: 0
   Interrupt: pin A routed to IRQ 127
   Region 0: Memory at d1000000 (64-bit, non-prefetchable) [size=8K]
   Capabilities: <access denied>
   Kernel driver in use: iwlwifi
   Kernel modules: iwlwifi

  $ dmesg | grep -i bluetooth
  [   15.748300] Bluetooth: Core ver 2.22
  [   15.748312] Bluetooth: HCI device and connection manager initialized
  [   15.748315] Bluetooth: HCI socket layer initialized
  [   15.748317] Bluetooth: L2CAP socket layer initialized
  [   15.748320] Bluetooth: SCO socket layer initialized
  [   15.925524] Bluetooth: hci0: read Intel version: 370810011003110e00
  [   15.926254] Bluetooth: hci0: Intel Bluetooth firmware file: 
intel/ibt-hw-37.8.10-fw-1.10.3.11.e.bseq
  [   16.194441] Bluetooth: hci0: unexpected event for opcode 0xfc2f
  [   16.211450] Bluetooth: hci0: Intel firmware patch completed and activated
  [   17.946847] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
  [   17.946849] Bluetooth: BNEP filters: protocol multicast
  [   17.946852] Bluetooth: BNEP socket layer initialized
  [  160.346760] Bluetooth: RFCOMM TTY layer initialized
  [  160.346767] Bluetooth: RFCOMM socket layer initialized
  [  160.346772] Bluetooth: RFCOMM ver 1.11

  ProblemType: Bug
  DistroRelease: Ubuntu 20.04
  Package: bluez 5.53-0ubuntu2
  ProcVersionSignature: Ubuntu 5.4.0-18.22-generic 5.4.24
  Uname: Linux 5.4.0-18-generic x86_64
  ApportVersion: 2.20.11-0ubuntu21
  Architecture: amd64
  CurrentDesktop: ubuntu:GNOME
  Date: Tue Mar 31 16:49:25 2020
  InstallationDate: Installed on 2020-01-17 (74 days ago)
  InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Alpha amd64 (20200116)
  InterestingModules: rfcomm bnep btusb bluetooth
  Lsusb:
   Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
   Bus 001 Device 003: ID 8087:0a2a Intel Corp.
   Bus 001 Device 002: ID 0bda:58f5 Realtek Semiconductor Corp. 
Integrated_Webcam_HD
   Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  MachineType: Dell Inc. Inspiron 7370
  ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-5.4.0-18-generic 
root=/dev/mapper/vgubuntu-root ro quiet splash vt.handoff=7
  SourcePackage: bluez
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 04/23/2019
  dmi.bios.vendor: Dell Inc.
  dmi.bios.version: 1.14.0
  dmi.board.vendor: Dell Inc.
  dmi.chassis.type: 10
  dmi.chassis.vendor: Dell Inc.
  dmi.modalias: 
dmi:bvnDellInc.:bvr1.14.0:bd04/23/2019:svnDellInc.:pnInspiron7370:pvr:rvnDellInc.:rn:rvr:cvnDellInc.:ct10:cvr:
  dmi.product.family: Inspiron
  dmi.product.name: Inspiron 7370
  dmi.product.sku: 07E9
  dmi.sys.vendor: Dell Inc.
  hciconfig:
   hci0:        Type: Primary  Bus: USB
    BD Address: C8:21:58:B7:2E:82  ACL MTU: 1021:5  SCO MTU: 96:6
    UP RUNNING PSCAN ISCAN INQUIRY
    RX bytes:40580 acl:40 sco:0 events:2041 errors:0
    TX bytes:46763 acl:41 sco:0 commands:853 errors:0

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

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

Reply via email to