Bluetooth not working ubuntu 22.04 after the update

I am not able to connect any bluetooth devices using my laptop. I tried to couple of methods to resolve the issue but I was unable to do so. When I run sudo dmesg | grep -i bluetooth, I got

[    3.656951] Bluetooth: Core ver 2.22
[    3.656965] NET: Registered PF_BLUETOOTH protocol family
[    3.656966] Bluetooth: HCI device and connection manager initialized
[    3.656969] Bluetooth: HCI socket layer initialized
[    3.656971] Bluetooth: L2CAP socket layer initialized
[    3.656975] Bluetooth: SCO socket layer initialized
[    3.728514] Bluetooth: hci0: Device revision is 2
[    3.728517] Bluetooth: hci0: Secure boot is enabled
[    3.728517] Bluetooth: hci0: OTP lock is enabled
[    3.728518] Bluetooth: hci0: API lock is enabled
[    3.728519] Bluetooth: hci0: Debug lock is disabled
[    3.728520] Bluetooth: hci0: Minimum firmware build 1 week 10 2014
[    3.728521] Bluetooth: hci0: Bootloader timestamp 2019.40 buildtype 1 build 38
[    3.731924] Bluetooth: hci0: Found device firmware: intel/ibt-0040-4150.sfi
[    3.731939] Bluetooth: hci0: Boot Address: 0x100800
[    3.731940] Bluetooth: hci0: Firmware Version: 107-51.22
[    5.216702] Bluetooth: hci0: Waiting for firmware download to complete
[    5.217501] Bluetooth: hci0: Firmware loaded in 1450757 usecs
[    5.217590] Bluetooth: hci0: Waiting for device to boot
[    5.233784] Bluetooth: hci0: Device booted in 15843 usecs
[    5.233818] Bluetooth: hci0: Malformed MSFT vendor event: 0x02
[    5.242632] Bluetooth: hci0: Found Intel DDC parameters: intel/ibt-0040-4150.ddc
[    5.244864] Bluetooth: hci0: Applying Intel DDC parameters completed
[    5.247828] Bluetooth: hci0: Firmware timestamp 2022.51 buildtype 1 build 56683
[    8.299451] audit: type=1400 audit(1707850184.968:83): apparmor="DENIED" operation="create" class="net" profile="snap.bluez.bluez" pid=1233 comm="bluetoothd" family="bluetooth" sock_type="raw" protocol=1 requested_mask="create" denied_mask="create"
[    8.304055] audit: type=1400 audit(1707850184.972:84): apparmor="DENIED" operation="create" class="net" profile="snap.bluez.bluez" pid=1233 comm="bluetoothd" family="bluetooth" sock_type="raw" protocol=1 requested_mask="create" denied_mask="create"
[    8.535810] audit: type=1400 audit(1707850185.204:87): apparmor="DENIED" operation="create" class="net" profile="snap.bluez.bluez" pid=1951 comm="bluetoothd" family="bluetooth" sock_type="raw" protocol=1 requested_mask="create" denied_mask="create"
[    8.536776] audit: type=1400 audit(1707850185.204:89): apparmor="DENIED" operation="create" class="net" profile="snap.bluez.bluez" pid=1951 comm="bluetoothd" family="bluetooth" sock_type="raw" protocol=1 requested_mask="create" denied_mask="create"

I really need the help.

Seems like that the bluetoothd service is unable to reach/create some sockets, probably the HCI layer? Please check that the blueZ snap have everything connected on its plugs/slots?

AppArmor is denying access to some sockets BlueZ is trying to create/connect to.

on a side note, i’m not really sure the bluez snap is actually designed for use on a desktop system … it might clash with the installed debs and you need to really make sure to have the correct version from the right snap channel to have it work