From Dilyn's steps, he install the beta version of the bluez, and here
is what I found.

1. power cycle the machine
2. install beta bluez, the advinfo doesn't work
acelankao@ubuntu:~$ uname -a
Linux ubuntu 5.15.0-58-generic #64-Ubuntu SMP Thu Jan 5 11:43:13 UTC 2023 
x86_64 x86_64 x86_64 GNU/Linux
acelankao@ubuntu:~$ snap list
Name        Version         Rev    Tracking       Publisher            Notes
checkbox20  2.1             1152   latest/stable  ce-certification-qa  -
core        16-2.58.3       14946  latest/stable  canonical✓           core
core20      20230308        1852   latest/stable  canonical✓           base
core22      20230304        547    latest/stable  canonical✓           base
pc          22-0.3          127    22/stable      canonical✓           gadget
pc-kernel   5.15.0-66.73.1  x1     -              -                    kernel
snapd       2.59            18745  latest/beta    canonical✓           snapd
toolbox     0.8.4           2811   20/stable      ondra                -
acelankao@ubuntu:~$ snap install --channel=22/beta bluez
bluez (22/beta) 5.64-3 from Canonical✓ installed
acelankao@ubuntu:~$ sudo snap connect bluez:bluetooth-control
acelankao@ubuntu:~$ sudo bluez.btmgmt advinfo
Reading adv features failed with status 0x0c (Not Supported)

1. removed the beta bluez, and install stable bluez
acelankao@ubuntu:~$ sudo snap remove bluez
bluez removed
acelankao@ubuntu:~$ sudo snap install bluez
bluez (20/stable) 5.53-7 from Canonical✓ installed

2. power cycle the machine, and then advinfo works
acelankao@ubuntu:~$ uname -a
Linux ubuntu 5.15.0-58-generic #64-Ubuntu SMP Thu Jan 5 11:43:13 UTC 2023 
x86_64 x86_64 x86_64 GNU/Linux
acelankao@ubuntu:~$ snap list
Name        Version         Rev    Tracking       Publisher            Notes
bluez       5.53-7          334    20/stable      canonical✓           -
checkbox20  2.1             1152   latest/stable  ce-certification-qa  -
core        16-2.58.3       14946  latest/stable  canonical✓           core
core20      20230308        1852   latest/stable  canonical✓           base
core22      20230304        547    latest/stable  canonical✓           base
pc          22-0.3          127    22/stable      canonical✓           gadget
pc-kernel   5.15.0-66.73.1  x1     -              -                    kernel
snapd       2.59            18745  latest/beta    canonical✓           snapd
toolbox     0.8.4           2811   20/stable      ondra                -
acelankao@ubuntu:~$ sudo snap connect bluez:bluetooth-control
acelankao@ubuntu:~$ sudo bluez.btmgmt advinfo
Supported flags: connectable general-discoverable limited-discoverable 
managed-flags tx-power scan-rsp-appearance scan-rsp-local-name 
Secondary-channel-1M Secondary-channel-2M Secondary-channel-CODED 
Max advertising data len: 31
Max scan response data len: 31
Max instances: 8
Instances list with 0 items

BTW, the BT firmware is intel/ibt-0040-0041.sfi
[   15.452255] Bluetooth: hci0: Minimum firmware build 1 week 10 2014
[   15.452260] Bluetooth: hci0: Bootloader timestamp 2019.40 buildtype 1 build 
38
[   15.453014] Bluetooth: hci0: Found device firmware: intel/ibt-0040-0041.sfi
[   16.965744] Bluetooth: hci0: Waiting for firmware download to complete
[   16.966269] Bluetooth: hci0: Firmware loaded in 1477780 usecs
[   16.966446] Bluetooth: hci0: Waiting for device to boot
[   16.985279] Bluetooth: hci0: Device booted in 18524 usecs
[   16.987502] Bluetooth: hci0: Found Intel DDC parameters: 
intel/ibt-0040-0041.ddc
[   16.990290] Bluetooth: hci0: Applying Intel DDC parameters completed
[   16.994174] Bluetooth: hci0: Firmware timestamp 2022.5 buildtype 1 build 
38020

-- 
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/2006517

Title:
  Bluetooth works on desktop but not on ubuntu core

Status in bluez package in Ubuntu:
  Confirmed

Bug description:
  We have built a snap that uses some bluetooth functionality.

  The snap runs well when using Ubuntu desktop 22.04 (all updates applied end 
of Jan 2022).
  We have tried using this same snap on Ubuntu Core 22 running on X86_64.

  On some hardware platforms (thinkpad E15 and x86 Mac) everything works as 
expected.
  We can install the snap on Jammy 22.04 or Core 22 on these platforms and get 
expected functionality regardless of OS.

  
  On our targeted platform (a Dell 5570) things are not working.  When running 
22.04 Jammy, everything works.  When running Core 22, some advanced bluetooth 
functionality is not available.
  Since the Core 22 image installs and runs on other X86_64 hardware we suspect 
a device driver issue.

  Attached are several files taken from the Dell 5570
  1) dmesg from Core 22.
  2) dmesg from Jammy 22.04
  3) output of lspci from Jammy 22.04
  4) Output of lsusb from Jammy 22.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bluez/+bug/2006517/+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