Bluetooth works on desktop but not on ubuntu core
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bluez (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
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
Wendell Duncan (wduncan) wrote : | #1 |
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs. | #2 |
Changed in linux (Ubuntu): | |
status: | New → Incomplete |
Wendell Duncan (wduncan) wrote : | #3 |
This bug is for Core - so apport-collect is not available.
Adding some more logging output in this comment. I believe our bug is a result of the logging at that says: src/advertising
Our code does try to call the bluetooth adv_features. The same snap package does work when install on different hardware.
Feb 07 23:50:34 ubuntu systemd[1]: Started Service for snap application bluez.bluez.
Feb 07 23:50:34 ubuntu bluetoothd[1562]: Starting SDP server
Feb 07 23:50:34 ubuntu audit[2041]: AVC apparmor="ALLOWED" operation="recvmsg" profile=
Feb 07 23:50:34 ubuntu dbus-daemon[1300]: [system] Activating via systemd: service name='org.
Feb 07 23:50:34 ubuntu bluetoothd[1562]: Bluetooth management interface 1.21 initialized
Feb 07 23:50:34 ubuntu bluetoothd[1562]: Battery Provider Manager created
Feb 07 23:50:34 ubuntu audit[1562]: AVC apparmor="DENIED" operation="create" profile=
Feb 07 23:50:34 ubuntu bluetoothd[1562]: src/advertising
Feb 07 23:50:34 ubuntu bluetoothd[1562]: Adv Monitor Manager created with supported features:
Feb 07 23:50:34 ubuntu kernel: Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Feb 07 23:50:34 ubuntu kernel: Bluetooth: BNEP filters: protocol multicast
Feb 07 23:50:34 ubuntu kernel: Bluetooth: BNEP socket layer initialized
Changed in linux (Ubuntu): | |
status: | Incomplete → Confirmed |
Daniel van Vugt (vanvugt) wrote : | #4 |
When you run desktop on the Dell 5570 (where everything works), what files are open by the bluetoothd process? Anything unusual in /dev/ ?
tags: | added: jammy |
Wendell Duncan (wduncan) wrote : Re: [Bug 2006517] Re: Bluetooth works on desktop but not on ubuntu core | #5 |
I don't see any files opened by bluetoothd.
No output from: "lsof | grep bluetoothd"
I find the bluetooth device is at /dev/bus/
anything unusual in the usb tree in /dev. The bluetooth is enumerating
on the usb bus in the same place or both Jammy and Core.
On Wed, 2023-02-08 at 06:01 +0000, Daniel van Vugt wrote:
> [You don't often get email from <email address hidden>. Learn why
> this is important at https:/
>
> CAUTION: This email originated from outside of the organization. Do
> not click links or open attachments unless you recognize the sender
> and know the content is safe.
>
>
> When you run desktop on the Dell 5570 (where everything works), what
> files are open by the bluetoothd process? Anything unusual in /dev/ ?
>
>
> ** Tags added: jammy
>
> --
> You received this bug notification because you are subscribed to the
> bug
> report.
> https:/
>
> Title:
> Bluetooth works on desktop but not on ubuntu core
>
> Status in linux 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:/
>
Wendell Duncan (wduncan) wrote : | #6 |
- bluetooth-debug.txt Edit (18.1 KiB, text/plain; name="bluetooth-debug.txt")
Doing a bit of research on this.
I found these two bug reports that are similar:
https:/
https:/
The apt version of bluez in Jammy is 5.64.
The snap version of bluez on the Core 22 branch is 5.64.
Is the pc-kernel snap missing some kernel config options for bluetooth?
On Core, the /proc/config.gz configuration file is not available.
I also turned on the bluez debugging logs and have attached the
produced logs. This logging line is related to our issue.
src/advertising
advertising features: Not Supported (0x0c)
On Wed, 2023-02-08 at 06:01 +0000, Daniel van Vugt wrote:
> [You don't often get email from <email address hidden>. Learn why
> this is important at https:/
>
> CAUTION: This email originated from outside of the organization. Do
> not click links or open attachments unless you recognize the sender
> and know the content is safe.
>
>
> When you run desktop on the Dell 5570 (where everything works), what
> files are open by the bluetoothd process? Anything unusual in /dev/ ?
>
>
> ** Tags added: jammy
>
> --
> You received this bug notification because you are subscribed to the
> bug
> report.
> https:/
>
> Title:
> Bluetooth works on desktop but not on ubuntu core
>
> Status in linux 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:/
>
Daniel van Vugt (vanvugt) wrote : | #7 |
The locality to this apparmor denial suggests to me it's just the bluez snap that needs to request some extra privileges.
Feb 07 23:50:34 ubuntu audit[1562]: AVC apparmor="DENIED" operation="create" profile=
Feb 07 23:50:34 ubuntu bluetoothd[1562]: src/advertising
affects: | linux (Ubuntu) → bluez (Ubuntu) |
Alex Kaluzhny (alex-kaluzhny) wrote : | #8 |
@Daniel,
The same Ubuntu Core image works as expected on the Thinkpad E15 and x86 Mac. Why would the lack of "some extra privileges" impact how it runs on the Dell system, but not Thinkpad and Mac?
Dilyn (dilyn-corner) wrote : | #9 |
@Daniel,
Those denials should be resolved by this PR (https:/
AceLan Kao (acelankao) wrote : | #10 |
Are you sure the function is lost? Looks like the Adv Monitor is running even the features callback returns an invalid value.
Feb 07 23:50:34 ubuntu bluetoothd[1562]: src/advertising
Feb 07 23:50:34 ubuntu bluetoothd[1562]: Adv Monitor Manager created with supported features:
Wendell Duncan (wduncan) wrote : | #11 |
I'm not sure what your question means "Are you sure the function is lost?"
The logging messages in this comment thread are from the logging from bluetoothd.
We have our own software that we run at a later point that attempts to use the bluetooth adv_features, but it fails to find any adv_features available. The error messages are reporting the same issue as the bluetoothd logging from the bluez package.
Same version of the bluetoothd software that does not work on Core22 works fine on the same hardware if running Jammy.
AceLan Kao (acelankao) wrote : | #12 |
From the dmesg logs, the kernel you use on desktop(5.15.0-56) and on core(5.15.0-58) are not the same, but I've checked the kernel logs, there is no update on bt driver part between the 2 kernel versions. It'd be good if you can help me to update the kernel to make sure the kernel versions are identical and check the issue again.(I feel the result won't change)
The snap package works on desktop, but not on core, this doesn't look like a kernel/driver issue. Could you provide more info about which function call failed? or provide a simple program that we could try on our side?
BTW, the difference between the dmesg logs is that rfcomm is loaded on the desktop, but not on the core system, could you also try to load it on the core system to see if it makes any difference, thanks.
Wendell Duncan (wduncan) wrote : | #13 |
I refreshed the pc-kernel on Ubuntu Core.
22/candidate: 5.15.0-66.73.1 2023-02-14 (1224)
Output from uname:
uname -a
Linux BRMD-0009.
14:23:37 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Logging from journalctl.
Feb 22 21:08:41 ubuntu bluetoothd[1758]: Bluetooth daemon 5.64
Feb 22 21:08:41 ubuntu systemd[1]: Started Service for snap application
bluez.bluez.
Feb 22 21:08:41 ubuntu bluetoothd[1758]: Starting SDP server
Feb 22 21:08:41 ubuntu dbus-daemon[1520]: [system] Activating via
systemd: service name='org.
org.freedesktop
Feb 22 21:08:41 ubuntu audit[1758]: AVC apparmor="DENIED"
operation="create" profile=
comm="bluetoothd" family="alg" sock_type=
requested_mask="cr>
Feb 22 21:08:41 ubuntu bluetoothd[1758]: Bluetooth management interface
1.21 initialized
Feb 22 21:08:41 ubuntu bluetoothd[1758]: Battery Provider Manager
created
Feb 22 21:08:41 ubuntu bluetoothd[1758]:
src/advertising
advertising features: Not Supported (0x0c)
Feb 22 21:08:41 ubuntu bluetoothd[1758]: Adv Monitor Manager created
with supported features:
number of supported monitors:32, max number of supported >
The software that logs the above error is just the Canonical bluez
snap.
On an ubuntu core22 system: snap install --channel=22/stable bluez
bluez 22/stable: 5.64-2 2022-05-03 (331)
So a vanilla Ubuntu Core22 install -- then install the bluez 22/stable
snap. The bluetoothd system daemon reports the error.
Wendell
On Sat, 2023-02-18 at 01:49 +0000, AceLan Kao wrote:
> CAUTION: This email originated from outside of the organization. Do
> not click links or open attachments unless you recognize the sender
> and know the content is safe.
>
>
> From the dmesg logs, the kernel you use on desktop(5.15.0-56) and on
> core(5.15.0-58) are not the same, but I've checked the kernel logs,
> there is no update on bt driver part between the 2 kernel versions.
> It'd
> be good if you can help me to update the kernel to make sure the
> kernel
> versions are identical and check the issue again.(I feel the result
> won't change)
>
> The snap package works on desktop, but not on core, this doesn't look
> like a kernel/driver issue. Could you provide more info about which
> function call failed? or provide a simple program that we could try
> on
> our side?
>
> BTW, the difference between the dmesg logs is that rfcomm is loaded
> on
> the desktop, but not on the core system, could you also try to load
> it
> on the core system to see if it makes any difference, thanks.
>
> --
Rex Tsai (chihchun) wrote : | #14 |
The title of the bug seems incorrect, the Bluetooth AdvertisementMo
I would assume the rest of bluetooth functions and profile are still working, eg
% bluetoothctl show
If order to isolate the root cause is between kernel hci driver or bluetoothd. Could you please run the following commands on core to see if the hci driver works as expected?
% sudo btmgmt version
% sudo btmgmt revision
% sudo btmgmt monitor.features
% sudo btmon --mgmt
Wendell Duncan (wduncan) wrote : | #15 |
Requested output:
-------
root@ubuntu:
Controller 14:75:5B:5B:3A:91 (public)
Name: BlueZ 5.64
Alias: BlueZ 5.64
Class: 0x00000000
Powered: no
Discoverable: no
DiscoverableTi
Pairable: no
UUID: Generic Attribute Profile (00001801-
00805f9b34fb)
UUID: Generic Access Profile (00001800-
00805f9b34fb)
UUID: PnP Information (00001200-
00805f9b34fb)
UUID: A/V Remote Control Target (0000110c-
00805f9b34fb)
UUID: A/V Remote Control (0000110e-
00805f9b34fb)
UUID: Device Information (0000180a-
00805f9b34fb)
Modalias: usb:v1D6Bp0246d0540
Discovering: no
Roles: central
Roles: peripheral
Roles: central-peripheral
ExperimentalFe
42c0-4696-
ExperimentalFe
c273-11ea-
Advertisement Monitor Features:
SupportedMonit
-------
root@BRMD-
Unable to open mgmt_socket
-------
root@BRMD-
Unable to open mgmt_socket
-------
root@BRMD-
Unable to open mgmt_socket
-------
root@BRMD-
Bluetooth monitor ver 5.64
Failed to open channel: Permission denied-
- bluetoothctl show
On Fri, 2023-03-10 at 05:04 +0000, Rex Tsai wrote:
> CAUTION: This email originated from outside of the organization. Do
> not click links or open attachments unless you recognize the sender
> and know the content is safe.
>
>
> The title of the bug seems incorrect, the Bluetooth
> AdvertisementMo
> does not work with bluetoohd from bluez 22/stable: 5.64-2 2022-05-03
> with Ubuntu Core22 on Dell Precision 5570.
>
> I would assume the rest of bluetooth functions and profile are still
> working, eg
> % bluetoothctl show
>
> If order to isolate the root cause is between kernel hci driver or
> bluetoothd. Could you please run the following commands on core to
> see if the hci driver works as expected?
> % sudo btmgmt version
> % sudo btmgmt revision
> % sudo btmgmt monitor.features
> % sudo btmon --mgmt
>
AceLan Kao (acelankao) wrote : | #16 |
From Jesse, the interface is not connected, could you try below connect command and try your app again?
$ sudo snap connect bluez:bluetooth
acelankao@ubuntu:~$ sudo btmgmt version
Version 5.53
acelankao@ubuntu:~$ sudo btmgmt revision
Invalid command in menu main: revision
Use "help" for a list of available commands in a menu.
Use "menu <submenu>" if you want to enter any submenu.
Use "back" if you want to return to menu main.
acelankao@ubuntu:~$ sudo btmgmt monitor.features
Invalid command in menu main: monitor
Use "help" for a list of available commands in a menu.
Use "menu <submenu>" if you want to enter any submenu.
Use "back" if you want to return to menu main.
acelankao@ubuntu:~$ sudo btmon --mgmt
sudo: btmon: command not found
acelankao@ubuntu:~$ sudo bluez.btmon --mgmt
/snap/bluez/
AceLan Kao (acelankao) wrote : | #17 |
Should work well now
acelankao@ubuntu:~$ sudo bluez.btmgmt
[mgmt]# info
Index list with 1 item
hci0: Primary controller
addr 60:E3:2B:67:3E:CC version 12 manufacturer 2 class 0x10010c
supported settings: powered connectable fast-connectable discoverable bondable link-security ssp br/edr hs le advertising secure-conn debug-keys privacy configuration static-addr
current settings: powered ssp br/edr le advertising secure-conn
name BlueZ 5.53
short name
hci0: Configuration options
supported options: public-address
missing options:
hci0 type 7 discovering off
[mgmt]# advinfo
Supported flags: connectable general-
Max advertising data len: 31
Max scan response data len: 31
Max instances: 8
Instances list with 0 items
[mgmt]# power on
hci0 Set Powered complete, settings: powered ssp br/edr le advertising secure-conn
[mgmt]# find
Discovery started
hci0 type 7 discovering on
hci0 dev_found: 24:5A:4C:13:CF:27 type LE Public rssi -68 flags 0x0004
AD flags 0x00
name U6-LITE
hci0 dev_found: 00:91:9E:32:09:5F type BR/EDR rssi -57 flags 0x0001
eir_len 5
confirm_name succeeded for 00:91:9E:32:09:5F
hci0 dev_found: 60:E3:2B:81:A4:15 type BR/EDR rssi -68 flags 0x0000
name u-HP-EliteBook-
hci0 dev_found: 7A:FC:87:61:33:B9 type LE Random rssi -63 flags 0x0000
AD flags 0x1a
eir_len 19
hci0 dev_found: 00:91:9E:32:09:5F type BR/EDR rssi -59 flags 0x0000
name u-HP-Elite-
hci0 dev_found: FC:F6:E0:56:87:8D type LE Random rssi -62 flags 0x0004
AD flags 0x00
eir_len 8
hci0 dev_found: 34:6F:24:A8:93:EE type LE Public rssi -70 flags 0x0000
AD flags 0x1a
eir_len 21
hci0 dev_found: 94:53:30:A9:DA:A4 type BR/EDR rssi -72 flags 0x0000
name ubuntu-Vostro-5581
hci0 dev_found: 4C:80:93:CC:AC:21 type BR/EDR rssi -67 flags 0x0001
eir_len 5
confirm_name succeeded for 4C:80:93:CC:AC:21
hci0 dev_found: 4C:80:93:CC:AC:21 type BR/EDR rssi -59 flags 0x0000
name u
hci0 dev_found: 01:AA:A3:26:D9:92 type LE Random rssi -61 flags 0x0004
AD flags 0x00
Dilyn (dilyn-corner) wrote (last edit ): | #18 |
dilyn-corner@
[mgmt]# info
Index list with 1 item
hci0: Primary controller
addr A0:80:69:60:CB:E6 version 12 manufacturer 2 class 0x000000
supported settings: powered connectable fast-connectable discoverable bondable link-security ssp br/edr hs le secure-conn debug-keys privacy configuration static-addr phy-configuration wide-band-speech
current settings: ssp br/edr le secure-conn
name BlueZ 5.64
short name
hci0: Configuration options
supported options: public-address
missing options:
[mgmt]# advinfo
Reading adv features failed with status 0x0c (Not Supported)
[mgmt]# power on
hci0 class of device changed: 0x00010c
hci0 Set Powered complete, settings: powered ssp br/edr le secure-conn
[mgmt]# advinfo
Reading adv features failed with status 0x0c (Not Supported)
[mgmt]# power on
hci0 Set Powered complete, settings: powered ssp br/edr le secure-conn
[mgmt]# advinfo
Reading adv features failed with status 0x0c (Not Supported)
[mgmt]# find
Discovery started
hci0 type 7 discovering on
hci0 dev_found: 4F:80:48:7F:FD:5E type LE Random rssi -82 flags 0x0000
AD flags 0x1a
eir_len 19
*** SNIP ***
[mgmt]# advinfo
Reading adv features failed with status 0x0c (Not Supported)
The system has the following snaps:
dilyn-corner@
Name Version Rev Tracking Publisher Notes
core22 20230304 547 latest/stable canonical✓ base
pc 22-0.3 127 22/stable canonical✓ gadget
pc-kernel 5.15.0-66.73.1 1224 22/stable canonical✓ kernel
snapd 2.59 18745 latest/beta canonical✓ snapd
Some relevant other facts:
dilyn-corner@
[ 11.155665] Bluetooth: Core ver 2.22
[ 11.155681] Bluetooth: HCI device and connection manager initialized
[ 11.155683] Bluetooth: HCI socket layer initialized
[ 11.155684] Bluetooth: L2CAP socket layer initialized
[ 11.155686] Bluetooth: SCO socket layer initialized
[ 11.280913] Bluetooth: hci0: Device revision is 0
[ 11.280924] Bluetooth: hci0: Secure boot is enabled
[ 11.280925] Bluetooth: hci0: OTP lock is enabled
[ 11.280925] Bluetooth: hci0: API lock is enabled
[ 11.280926] Bluetooth: hci0: Debug lock is disabled
[ 11.280926] Bluetooth: hci0: Minimum firmware build 1 week 10 2014
[ 11.280927] Bluetooth: hci0: Bootloader timestamp 2019.40 buildtype 1 build 38
[ 12.537783] Bluetooth: hci0: Found device firmware: intel/ibt-
[ 13.740678] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 13.740680] Bluetooth: BNEP filters: protocol multicast
[ 13.740683] Bluetooth: BNEP socket layer initialized
[ 14.100880] Bluetooth: hci0: Waiting for firmware download to complete
[ 14.101807] Bluetooth: hci0: Firmware loaded in 1527362 usecs
[ 14.101940] Bluetooth: hci0: Waiting for device to boot
[ 14.119926] Bluetooth: hci0: Device booted in 17676 usecs
[ 14.120575] Bluetooth: hci0: Found Intel DDC parameters: intel/ibt-
[ 14.123999] Bluetooth: hci0: Applying Intel DDC parameters completed
[ 14.128005] Bluetooth: hci0: Firmware timestamp 2022.5 buildtype 1 build 38020
dilyn-c...
Dilyn (dilyn-corner) wrote : | #19 |
Dilyn (dilyn-corner) wrote : | #20 |
Dilyn (dilyn-corner) wrote : | #21 |
Notably:
If you fetch the 5.19 package on Jammy using apt and do some magic to repack the relevant kernel EFI binary, modules, and firmware for THIS version of the kernel (instead of the 5.15 release which comes with UC22), you can successfully query advanced bluetooth features:
linux-image-
dilyn-corner@
[mgmt]# info
Index list with 1 item
hci0: Primary controller
addr A0:80:69:60:CB:E6 version 12 manufacturer 2 class 0x000000
supported settings: powered connectable fast-connectable discoverable bondable link-security ssp br/edr hs le advertising secure-conn debug-keys privacy configuration static-addr phy-configuration wide-band-speech
current settings: ssp br/edr le secure-conn
name BlueZ 5.64
short name
hci0: Configuration options
supported options: public-address
missing options:
[mgmt]# advinfo
Supported flags: connectable general-
Max advertising data len: 31
Max scan response data len: 31
Max instances: 8
Instances list with 0 items
Dilyn (dilyn-corner) wrote (last edit ): | #22 |
Dilyn (dilyn-corner) wrote (last edit ): | #23 |
Attached is a tarball of the output of several commands:
lspci -vvv -k
lsusb -v
curl https:/
I've included an additional test, one with bluez installed in devmode; the apparmor denials still appear, but in either case I still receive the same message from btmgmt:
dilyn-corner@
Reading adv features failed with status 0x0c (Not Supported)
If you enter the btmgmt shell first, you receive the AppArmor messages. You do not receive these messages when entering the advinfo command in the btmgmt prompt.
Rex Tsai (chihchun) wrote : | #24 |
- Dell Precision 5570[1] has the CNVi wireless module on an Alder Lake-S platform. The wireless module needs the correct firmware[2] for bluetooth to work. Based on Dilyn's comment #18[3], it's unclear if the firmware has been loaded on Core. Please check dmesg and see if it loads the intel/ibt-
- Plase include the following information in the following tests, which will help the team identify the root cause quicker
$ sudo grep '' /sys/class/
$ sudo cat /etc/cpuinfo
$ snap info bluez && snap connections bluez # version of bluez (even
it's not been updated for a while, but we may not remember what it is
after a while)
$ snap info pc-kernel
$ sudo lspci -nn -vvv -k
$ sudo lsusb -vvv
[1] Dell Precision 5570 (RTX A2000 ) certified on Ubuntu 20.04 LTS -
https:/
[2] [Bug #1933938 “Missing CNVi firmware for Intel
AX211/AX201/
https:/
[3] https:/
Dilyn (dilyn-corner) wrote : | #25 |
- new-tests.tar Edit (130.0 KiB, application/x-tar)
Find new requested info in the attachment.
Note that
$ snap info bluez && snap connections bluez # version of bluez (even
it's not been updated for a while, but we may not remember what it is
after a while)
$ snap info pc-kernel
$ sudo lspci -nn -vvv -k
$ sudo lsusb -vvv
Are all provided in the previous attachment.
AceLan Kao (acelankao) wrote : | #26 |
AceLan Kao (acelankao) wrote : | #27 |
AceLan Kao (acelankao) wrote : | #28 |
AceLan Kao (acelankao) wrote : | #32 |
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
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
acelankao@ubuntu:~$ sudo bluez.btmgmt advinfo
Supported flags: connectable general-
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-
[ 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-
[ 16.965744] Bluetooth: hci0: Waiting f...
Dilyn (dilyn-corner) wrote (last edit ): | #33 |
I assume that because you're using an x1 revision of the pc-kernel snap you're using the 5.15 image I produced?
Note that I tested both 22/stable and 22/beta of the bluez snap and saw identical results for both revisions after multiple reboot cycles on both of them. In every case, it appears that all of the relevant firmware files are loaded.
Can you post the logs the bluez daemon produces on your system?
Mine:
dilyn-corner@
2023-03-
2023-03-
2023-03-
2023-03-
2023-03-
2023-03-
2023-03-
2023-03-
I believe we have several of these laptops in the lab for testing; is it possible for you to also test the other three to see if you get equivalent results?
Dilyn (dilyn-corner) wrote (last edit ): | #34 |
Is it possible that we can get a release of the OEM kernel this laptop is certified for as a snap?
Wendell Duncan (wduncan) wrote : | #35 |
I tested on my Dell 5570 using the 5.19 kernel that Dilyn hacked into place on a Dell 5570.
I also tested using the normal ubuntu Core 5.15 kernel.
With the 5.15 kernel the bluetooth advanced features did not work.
With the 5.19 kernel from Dilyn, the bluetooth advanced features do work.
I installed our bluetooth gatt server software stack, and was running
successfully!
Ubuntu Core system with the following:
bluez 22/beta rev 341
core22 latest/stable rev 547
snapd latest/beta rev 18745
pc-kernel snap was the custom one built by Dilyn including kernel 5.19
Alex Kaluzhny (alex-kaluzhny) wrote : | #36 |
@AceLan,
In the comment #32 you were saying: "removed the beta bluez, and install stable bluez"
It looks like you removed bluez that was from 22/beta track (bluez (22/beta) 5.64-3),
and then installed one from 20/stable track (bluez 5.53-7 334 20/stable).
You wrote that with that revision of bluez snap "power cycle the machine, and then advinfo works".
Can you please confirm that?
AceLan Kao (acelankao) wrote : | #37 |
The BT adv feature
1. works with 5.15 + bluez (20/stable) 5.53-7
2. doesn't work with 5.15 + bluez (22/beta) 5.64-3
3. (from Dilyn and Wendell) works with 5.19 + bluez (22/beta)
It's still unclear why bluez requires specific version of kernel.
Do we have a bluez expert to consult what kind of features the 5.15 kernel are missing?
Or could our customer stick with bluez (20/stable)?
AceLan Kao (acelankao) wrote : | #38 |
1. Fresh installed ubuntu-
2. Installed 5.15 kernel
ii bluez 5.64-0ubuntu1 amd64 Bluetooth tools and daemons
Linux u-Precision-5570 5.15.0-69-generic #76-Ubuntu SMP Fri Mar 17 17:19:29 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
3. Installed customer's 2 snaps and run the setup and connect the bt device from my phone
4. The move command works, I can see cursor on my phone.
AceLan Kao (acelankao) wrote : | #39 |
1. Downgraded bluez from 5.64-0ubuntu1 to 5.53-0ubuntu3.6
2. forgot the bt device on my phone and power cycle the machine
ii bluez 5.53-0ubuntu3.6 amd64 Bluetooth tools and daemons
Linux u-Precision-5570 5.15.0-69-generic #76-Ubuntu SMP Fri Mar 17 17:19:29 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
3. Ran setup again, and then ran demo, the move command still works, I can see cursor move.
BTW, the commit Dilyn found shoule not be relavent, I see the same warning message with 5.15 kernel + 5.64 bluez
09572fca7223 Bluetooth: hci_sock: Add support for BT_{SND,RCV}BUF
2023-03-
This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:
apport-collect 2006517
and then change the status of the bug to 'Confirmed'.
If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.
This change has been made by an automated script, maintained by the Ubuntu Kernel Team.