[Kernel-packages] [Bug 2006517] Re: Bluetooth works on desktop but not on ubuntu core

2023-03-30 Thread AceLan Kao
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 amd64Bluetooth tools and daemons Linux u-Precision-5570 5.15.0-69-generic #76-Ub

[Kernel-packages] [Bug 2006517] Re: Bluetooth works on desktop but not on ubuntu core

2023-03-30 Thread AceLan Kao
1. Fresh installed ubuntu-22.04.2-desktop 2. Installed 5.15 kernel ii bluez 5.64-0ubuntu1 amd64Bluetooth 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

[Kernel-packages] [Bug 2006517] Re: Bluetooth works on desktop but not on ubuntu core

2023-03-27 Thread AceLan Kao
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 feat

[Kernel-packages] [Bug 2006517] Re: Bluetooth works on desktop but not on ubuntu core

2023-03-24 Thread Alex Kaluzhny
@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 blu

[Kernel-packages] [Bug 2006517] Re: Bluetooth works on desktop but not on ubuntu core

2023-03-23 Thread Wendell Duncan
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 inst

[Kernel-packages] [Bug 2006517] Re: Bluetooth works on desktop but not on ubuntu core

2023-03-23 Thread Dilyn
Is it possible that we can get a release of the OEM kernel this laptop is certified for as a snap? -- 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/2006517 Title: Bluetooth works on deskto

[Kernel-packages] [Bug 2006517] Re: Bluetooth works on desktop but not on ubuntu core

2023-03-23 Thread Dilyn
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

[Kernel-packages] [Bug 2006517] Re: Bluetooth works on desktop but not on ubuntu core

2023-03-22 Thread AceLan Kao
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

[Kernel-packages] [Bug 2006517] Re: Bluetooth works on desktop but not on ubuntu core

2023-03-22 Thread AceLan Kao
-- 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/2006517 Title: Bluetooth works on desktop but not on ubuntu core Status in bluez package in Ubuntu: Confirmed Bug description: We have

[Kernel-packages] [Bug 2006517] Re: Bluetooth works on desktop but not on ubuntu core

2023-03-22 Thread AceLan Kao
-- 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/2006517 Title: Bluetooth works on desktop but not on ubuntu core Status in bluez package in Ubuntu: Confirmed Bug description: We have

[Kernel-packages] [Bug 2006517] Re: Bluetooth works on desktop but not on ubuntu core

2023-03-22 Thread AceLan Kao
Tried many different ways to recover the status(advinfo should work), but in vain, so I removed customer's snaps, removed the beta bluez, installed the stable bluez and then power cycle the machine. The advinfo works again. acelankao@ubuntu:~$ snap list NameVersion RevTracking

[Kernel-packages] [Bug 2006517] Re: Bluetooth works on desktop but not on ubuntu core

2023-03-22 Thread AceLan Kao
** Attachment added: "lsusb_vvv.log" https://bugs.launchpad.net/ubuntu/+source/bluez/+bug/2006517/+attachment/5656717/+files/lsusb_vvv.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

[Kernel-packages] [Bug 2006517] Re: Bluetooth works on desktop but not on ubuntu core

2023-03-22 Thread AceLan Kao
acelankao@ubuntu:~/bci-snaps$ snap connections bluez Interface PlugSlot Notes bluetooth-control bluez:bluetooth-control - - bluez blackrock-bci-moveagain:bluez bluez:service manual bluez

[Kernel-packages] [Bug 2006517] Re: Bluetooth works on desktop but not on ubuntu core

2023-03-22 Thread AceLan Kao
I followed the steps Dilyn provides, and the bt adv feature is gone, even if I connected the bluez:bluetooth-control manually. acelankao@ubuntu:~/bci-snaps$ 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:~/bci-sna

[Kernel-packages] [Bug 2006517] Re: Bluetooth works on desktop but not on ubuntu core

2023-03-21 Thread Dilyn
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

[Kernel-packages] [Bug 2006517] Re: Bluetooth works on desktop but not on ubuntu core

2023-03-20 Thread Rex Tsai
- 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

[Kernel-packages] [Bug 2006517] Re: Bluetooth works on desktop but not on ubuntu core

2023-03-20 Thread Dilyn
Attached is a tarball of the output of several commands: lspci -vvv -k lsusb -v curl https://raw.githubusercontent.com/snapcore/snapd/master/debug-tools/snap-debug-info.sh | sudo sh I've included an additional test, one with bluez installed in devmode; the apparmor denials still appear, but in

[Kernel-packages] [Bug 2006517] Re: Bluetooth works on desktop but not on ubuntu core

2023-03-20 Thread Dilyn
Attached is a tarball of the output of several commands: lspci -vvv -k lsusb -v curl https://raw.githubusercontent.com/snapcore/snapd/master/debug-tools/snap-debug-info.sh | sudo sh bluez.btmgmt advinfo ** Attachment added: "tests.tar" https://bugs.launchpad.net/ubuntu/+source/bluez/+bug/2

[Kernel-packages] [Bug 2006517] Re: Bluetooth works on desktop but not on ubuntu core

2023-03-20 Thread Dilyn
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-5.19.

[Kernel-packages] [Bug 2006517] Re: Bluetooth works on desktop but not on ubuntu core

2023-03-20 Thread Dilyn
Info run on Desktop ** Attachment added: "devices-info-desktop" https://bugs.launchpad.net/ubuntu/+source/bluez/+bug/2006517/+attachment/5655980/+files/devices-info-desktop -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to bluez in Ubun

[Kernel-packages] [Bug 2006517] Re: Bluetooth works on desktop but not on ubuntu core

2023-03-20 Thread Dilyn
Info run on Core ** Attachment added: "devices-info-core" https://bugs.launchpad.net/ubuntu/+source/bluez/+bug/2006517/+attachment/5655979/+files/devices-info-core -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to bluez in Ubuntu. https

[Kernel-packages] [Bug 2006517] Re: Bluetooth works on desktop but not on ubuntu core

2023-03-20 Thread Dilyn
dilyn-corner@ubuntu:~$ sudo bluez.btmgmt [mgmt]# info Index list with 1 item hci0:Primary controller addr A0:80:69:60:CB:E6 version 12 manufacturer 2 class 0x00 supported settings: powered connectable fast-connectable discoverable bondable link-security ssp br/edr hs le secure-conn

[Kernel-packages] [Bug 2006517] Re: Bluetooth works on desktop but not on ubuntu core

2023-03-15 Thread AceLan Kao
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 ss

[Kernel-packages] [Bug 2006517] Re: Bluetooth works on desktop but not on ubuntu core

2023-03-15 Thread AceLan Kao
>From Jesse, the interface is not connected, could you try below connect command and try your app again? $ sudo snap connect bluez:bluetooth-control acelankao@ubuntu:~$ sudo btmgmt version Version 5.53 acelankao@ubuntu:~$ sudo btmgmt revision Invalid command in menu main: revision Use "help" for

[Kernel-packages] [Bug 2006517] Re: Bluetooth works on desktop but not on ubuntu core

2023-03-09 Thread Rex Tsai
The title of the bug seems incorrect, the Bluetooth AdvertisementMonitor 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

[Kernel-packages] [Bug 2006517] Re: Bluetooth works on desktop but not on ubuntu core

2023-02-17 Thread AceLan Kao
>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 ide

[Kernel-packages] [Bug 2006517] Re: Bluetooth works on desktop but not on ubuntu core

2023-02-16 Thread Wendell Duncan
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

[Kernel-packages] [Bug 2006517] Re: Bluetooth works on desktop but not on ubuntu core

2023-02-14 Thread AceLan Kao
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.c:read_adv_features_callback() Failed to read advertising features: Not Supported (0x0c) Feb 07 23:50:34 ubuntu b

[Kernel-packages] [Bug 2006517] Re: Bluetooth works on desktop but not on ubuntu core

2023-02-14 Thread Dilyn
@Daniel, Those denials should be resolved by this PR (https://github.com/snapcore/snapd/pull/12496). The problem is if we run this snap in devmode, skipping over apparmor entirely, the root problem still exists. Namely, bluetooth does not function on the device. With the relevant interface changes

[Kernel-packages] [Bug 2006517] Re: Bluetooth works on desktop but not on ubuntu core

2023-02-10 Thread Alex Kaluzhny
@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? -- You received this bug notification because you are a member of Kernel Packages, which is subsc

[Kernel-packages] [Bug 2006517] Re: Bluetooth works on desktop but not on ubuntu core

2023-02-08 Thread Daniel van Vugt
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="snap.bluez.bluez" pid=1562 comm="bluetoothd" family="alg" sock_type="seqpacket" protocol

[Kernel-packages] [Bug 2006517] Re: Bluetooth works on desktop but not on ubuntu core

2023-02-07 Thread Daniel van Vugt
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 a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs

[Kernel-packages] [Bug 2006517] Re: Bluetooth works on desktop but not on ubuntu core

2023-02-07 Thread Wendell Duncan
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.c:read_adv_features_callback() Failed to read advertising features: Not Supported (0x0c) Our code does tr