Bluetooth not working and is very unreliable

Bluetooth is very unreliable and will randomly go offline. It’s offline 80% of the time. I have ordered a raspberry pi4 8gb to replace my VM. Here are the logs.


Logger: homeassistant.components.bluetooth.scanner
Source: components/bluetooth/scanner.py:301 
Integration: Bluetooth (documentation, issues) 
First occurred: 8:42:21 AM (265 occurrences) 
Last logged: 10:54:27 AM

hci0 (00:E0:4C:2B:19:F9): Failed to restart Bluetooth scanner: hci0 (00:E0:4C:2B:19:F9): Failed to start Bluetooth: [org.freedesktop.DBus.Error.UnknownObject] Method "SetDiscoveryFilter" with signature "a{sv}" on interface "org.bluez.Adapter1" doesn't exist
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/bluetooth/scanner.py", line 219, in _async_start
    await self.scanner.start()  # type: ignore[no-untyped-call]
  File "/usr/local/lib/python3.10/site-packages/bleak/__init__.py", line 156, in start
    await self._backend.start()
  File "/usr/local/lib/python3.10/site-packages/bleak/backends/bluezdbus/scanner.py", line 191, in start
    self._stop = await manager.active_scan(
  File "/usr/local/lib/python3.10/site-packages/bleak/backends/bluezdbus/manager.py", line 357, in active_scan
    assert_reply(reply)
  File "/usr/local/lib/python3.10/site-packages/bleak/backends/bluezdbus/utils.py", line 20, in assert_reply
    raise BleakDBusError(reply.error_name, reply.body)
bleak.exc.BleakDBusError: [org.freedesktop.DBus.Error.UnknownObject] Method "SetDiscoveryFilter" with signature "a{sv}" on interface "org.bluez.Adapter1" doesn't exist


The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/bluetooth/scanner.py", line 346, in _async_restart_scanner
    await self._async_start()
  File "/usr/src/homeassistant/homeassistant/components/bluetooth/scanner.py", line 301, in _async_start
    raise ScannerStartError(
homeassistant.components.bluetooth.scanner.ScannerStartError: hci0 (00:E0:4C:2B:19:F9): Failed to start Bluetooth: [org.freedesktop.DBus.Error.UnknownObject] Method "SetDiscoveryFilter" with signature "a{sv}" on interface "org.bluez.Adapter1" doesn't exist


Here are the logs from the host:


Feb 09 22:18:53 joeyshass kernel: Bluetooth: hci0: Received unexpected HCI Event 00000000
Feb 09 22:18:53 joeyshass kernel: Bluetooth: hci0: Received unexpected HCI Event 00000000
Feb 09 22:18:53 joeyshass kernel: Bluetooth: hci0: Received unexpected HCI Event 00000000
Feb 09 22:18:53 joeyshass kernel: Bluetooth: hci0: Received unexpected HCI Event 00000000
Feb 09 22:18:53 joeyshass kernel: Bluetooth: hci0: Received unexpected HCI Event 00000000
Feb 09 22:18:53 joeyshass kernel: Bluetooth: hci0: Received unexpected HCI Event 00000000
Feb 09 22:18:53 joeyshass kernel: Bluetooth: hci0: Received unexpected HCI Event 00000000
Feb 09 22:18:53 joeyshass kernel: Bluetooth: hci0: Received unexpected HCI Event 00000000
Feb 09 22:18:53 joeyshass kernel: Bluetooth: hci0: Received unexpected HCI Event 00000000
Feb 09 22:18:53 joeyshass kernel: Bluetooth: hci0: Received unexpected HCI Event 00000000
Feb 09 22:18:53 joeyshass kernel: Bluetooth: hci0: Received unexpected HCI Event 00000000
Feb 09 22:18:53 joeyshass kernel: Bluetooth: hci0: Received unexpected HCI Event 00000000
Feb 09 22:18:53 joeyshass kernel: Bluetooth: hci0: Received unexpected HCI Event 00000000
Feb 09 22:18:53 joeyshass kernel: Bluetooth: hci0: Received unexpected HCI Event 00000000
Feb 09 22:18:53 joeyshass kernel: Bluetooth: hci0: Received unexpected HCI Event 00000000
Feb 09 22:18:53 joeyshass kernel: Bluetooth: hci0: Received unexpected HCI Event 00000000
Feb 09 22:18:53 joeyshass kernel: Bluetooth: hci0: Received unexpected HCI Event 00000000
Feb 09 22:18:53 joeyshass kernel: Bluetooth: hci0: Received unexpected HCI Event 00000000
Feb 09 22:18:53 joeyshass kernel: Bluetooth: hci0: Received unexpected HCI Event 00000000
Feb 09 22:18:53 joeyshass kernel: Bluetooth: hci0: Received unexpected HCI Event 00000000
Feb 09 22:18:53 joeyshass kernel: Bluetooth: hci0: Received unexpected HCI Event 00000000
Feb 09 22:18:53 joeyshass kernel: Bluetooth: hci0: Received unexpected HCI Event 00000000
Feb 09 22:18:53 joeyshass kernel: Bluetooth: hci0: Received unexpected HCI Event 00000000
Feb 09 22:18:53 joeyshass kernel: Bluetooth: hci0: Received unexpected HCI Event 00000000
Feb 09 22:18:53 joeyshass kernel: Bluetooth: hci0: Received unexpected HCI Event 00000000
Feb 09 22:18:53 joeyshass kernel: Bluetooth: hci0: Received unexpected HCI Event 00000000
Feb 09 22:18:53 joeyshass kernel: Bluetooth: hci0: Received unexpected HCI Event 00000000
Feb 09 22:18:53 joeyshass kernel: Bluetooth: hci0: Received unexpected HCI Event 00000000
Feb 09 22:18:53 joeyshass kernel: Bluetooth: hci0: Received unexpected HCI Event 00000000
Feb 09 22:18:53 joeyshass kernel: Bluetooth: hci0: Received unexpected HCI Event 00000000
Feb 09 22:18:53 joeyshass kernel: Bluetooth: hci0: Received unexpected HCI Event 00000000
Feb 09 22:18:53 joeyshass kernel: Bluetooth: hci0: Received unexpected HCI Event 00000000
Feb 09 22:18:53 joeyshass kernel: Bluetooth: hci0: Received unexpected HCI Event 00000000
Feb 09 22:18:53 joeyshass kernel: Bluetooth: hci0: Received unexpected HCI Event 00000000
Feb 09 22:18:53 joeyshass kernel: Bluetooth: hci0: Received unexpected HCI Event 00000000
Feb 09 22:18:53 joeyshass kernel: Bluetooth: hci0: Received unexpected HCI Event 00000000
Feb 09 22:18:53 joeyshass kernel: Bluetooth: hci0: Received unexpected HCI Event 00000000
Feb 09 22:18:53 joeyshass kernel: Bluetooth: hci0: Received unexpected HCI Event 00000000
Feb 09 22:18:53 joeyshass kernel: Bluetooth: hci0: Received unexpected HCI Event 00000000
Feb 09 22:18:53 joeyshass kernel: Bluetooth: hci0: RTL: examining hci_ver=09 hci_rev=d899 lmp_ver=09 lmp_subver=64cd
Feb 09 22:18:53 joeyshass kernel: Bluetooth: hci0: RTL: unknown IC info, lmp subver 64cd, hci rev d899, hci ver 0009
Feb 09 22:18:53 joeyshass kernel: Bluetooth: hci0: RTL: assuming no firmware upload needed
Feb 09 22:18:53 joeyshass bluetoothd[2368]: Battery Provider Manager created
Feb 09 22:18:53 joeyshass bluetoothd[2368]: src/advertising.c:read_adv_features_callback() Failed to read advertising features: Not Supported (0x0c)
Feb 09 22:18:53 joeyshass bluetoothd[2368]: Adv Monitor Manager created with supported features:0x00000000, enabled features:0x00000000, max number of supported monitors:32, max number of supported patterns:16
Feb 09 22:18:53 joeyshass bluetoothd[2368]: Endpoint registered: sender=:1.35 path=/MediaEndpoint/A2DPSink/sbc
Feb 09 22:18:53 joeyshass bluetoothd[2368]: Endpoint registered: sender=:1.35 path=/MediaEndpoint/A2DPSource/sbc
Feb 09 22:18:53 joeyshass bluetoothd[2368]: Failed to set local name: Not Powered (0x0f)
Feb 09 22:18:54 joeyshass bluetoothd[2368]: Endpoint unregistered: sender=:1.35 path=/MediaEndpoint/A2DPSink/sbc
Feb 09 22:18:54 joeyshass bluetoothd[2368]: Endpoint unregistered: sender=:1.35 path=/MediaEndpoint/A2DPSource/sbc
Feb 09 22:18:54 joeyshass bluetoothd[2368]: Destroy Adv Monitor Manager
Feb 09 22:18:54 joeyshass bluetoothd[2368]: Battery Provider Manager destroyed
Feb 09 22:19:22 joeyshass kernel: Bluetooth: hci0: urb 0000000037300c86 failed to resubmit (2)
Feb 09 22:19:22 joeyshass bluetoothd[2368]: src/adapter.c:index_removed() Ignoring index removal for a non-existent adapter
Feb 09 22:19:22 joeyshass bluetoothd[2368]: src/adapter.c:reset_adv_monitors_complete() Failed to reset Adv Monitors: Invalid Index (0x11)
Feb 09 22:19:22 joeyshass bluetoothd[2368]: Failed to read exp features info: Invalid Index (0x11)
Feb 09 22:19:22 joeyshass bluetoothd[2368]: Failed to read info for index 0: Invalid Index (0x11)
Feb 09 22:19:22 joeyshass systemd[1]: Stopped target Bluetooth Support.
Feb 09 22:19:22 joeyshass kernel: usb 1-1: reset full-speed USB device number 2 using ohci-pci
Feb 09 22:19:23 joeyshass systemd[1]: Reached target Bluetooth Support.
Feb 09 22:19:23 joeyshass kernel: Bluetooth: hci0: RTL: examining hci_ver=09 hci_rev=d899 lmp_ver=09 lmp_subver=64cd
Feb 09 22:19:23 joeyshass kernel: Bluetooth: hci0: RTL: unknown IC info, lmp subver 64cd, hci rev d899, hci ver 0009
Feb 09 22:19:23 joeyshass kernel: Bluetooth: hci0: RTL: assuming no firmware upload needed
Feb 09 22:19:52 joeyshass systemd[1]: Stopped target Bluetooth Support.
Feb 09 22:19:52 joeyshass kernel: usb 1-1: reset full-speed USB device number 2 using ohci-pci
Feb 09 22:19:53 joeyshass kernel: Bluetooth: hci0: RTL: examining hci_ver=09 hci_rev=d899 lmp_ver=09 lmp_subver=64cd
Feb 09 22:19:53 joeyshass kernel: Bluetooth: hci0: RTL: unknown IC info, lmp subver 64cd, hci rev d899, hci ver 0009
Feb 09 22:19:53 joeyshass kernel: Bluetooth: hci0: RTL: assuming no firmware upload needed
Feb 09 22:19:53 joeyshass systemd[1]: Reached target Bluetooth Support.
Feb 09 22:20:22 joeyshass systemd[1]: Stopped target Bluetooth Support.
Feb 09 22:20:22 joeyshass kernel: usb 1-1: reset full-speed USB device number 2 using ohci-pci
Feb 09 22:20:23 joeyshass kernel: Bluetooth: hci0: RTL: examining hci_ver=09 hci_rev=d899 lmp_ver=09 lmp_subver=64cd
Feb 09 22:20:23 joeyshass kernel: Bluetooth: hci0: RTL: unknown IC info, lmp subver 64cd, hci rev d899, hci ver 0009
Feb 09 22:20:23 joeyshass kernel: Bluetooth: hci0: RTL: assuming no firmware upload needed
Feb 09 22:20:23 joeyshass systemd[1]: Reached target Bluetooth Support.
Feb 09 22:20:23 joeyshass bluetoothd[2368]: Battery Provider Manager created
Feb 09 22:20:23 joeyshass bluetoothd[2368]: src/advertising.c:read_adv_features_callback() Failed to read advertising features: Not Supported (0x0c)
Feb 09 22:20:23 joeyshass bluetoothd[2368]: Adv Monitor Manager created with supported features:0x00000000, enabled features:0x00000000, max number of supported monitors:32, max number of supported patterns:16
Feb 09 22:20:23 joeyshass bluetoothd[2368]: Endpoint registered: sender=:1.35 path=/MediaEndpoint/A2DPSink/sbc
Feb 09 22:20:23 joeyshass bluetoothd[2368]: Endpoint registered: sender=:1.35 path=/MediaEndpoint/A2DPSource/sbc
Feb 09 22:20:24 joeyshass bluetoothd[2368]: Endpoint unregistered: sender=:1.35 path=/MediaEndpoint/A2DPSink/sbc
Feb 09 22:20:24 joeyshass bluetoothd[2368]: Endpoint unregistered: sender=:1.35 path=/MediaEndpoint/A2DPSource/sbc
Feb 09 22:20:24 joeyshass bluetoothd[2368]: Destroy Adv Monitor Manager
Feb 09 22:20:24 joeyshass bluetoothd[2368]: Battery Provider Manager destroyed
Feb 09 22:20:47 joeyshass kernel: Bluetooth: hci0: command 0x1002 tx timeout
Feb 09 22:20:49 joeyshass kernel: Bluetooth: hci0: command 0x2003 tx timeout
Feb 09 22:20:52 joeyshass kernel: Bluetooth: hci0: command 0x2041 tx timeout
Feb 09 22:20:52 joeyshass kernel: Bluetooth: hci0: urb 00000000ec023858 failed to resubmit (2)
Feb 09 22:20:52 joeyshass bluetoothd[2368]: src/adapter.c:index_removed() Ignoring index removal for a non-existent adapter
Feb 09 22:20:52 joeyshass bluetoothd[2368]: src/adapter.c:reset_adv_monitors_complete() Failed to reset Adv Monitors: Invalid Index (0x11)
Feb 09 22:20:52 joeyshass bluetoothd[2368]: Failed to read exp features info: Invalid Index (0x11)
Feb 09 22:20:52 joeyshass bluetoothd[2368]: Failed to read info for index 0: Invalid Index (0x11)
Feb 09 22:20:52 joeyshass systemd[1]: Stopped target Bluetooth Support.
Feb 09 22:20:52 joeyshass kernel: usb 1-1: reset full-speed USB device number 2 using ohci-pci
Feb 09 22:20:53 joeyshass kernel: Bluetooth: hci0: RTL: examining hci_ver=09 hci_rev=d899 lmp_ver=09 lmp_subver=64cd
Feb 09 22:20:53 joeyshass kernel: Bluetooth: hci0: RTL: unknown IC info, lmp subver 64cd, hci rev d899, hci ver 0009
Feb 09 22:20:53 joeyshass kernel: Bluetooth: hci0: RTL: assuming no firmware upload needed
Feb 09 22:20:53 joeyshass systemd[1]: Reached target Bluetooth Support.
Feb 09 22:21:06 joeyshass kernel: audit: type=1334 audit(1675981266.847:608): prog-id=253 op=LOAD
Feb 09 22:21:06 joeyshass systemd[1]: Started Journal Gateway Service.
Feb 09 22:21:07 joeyshass systemd-journal-gatewayd[22281]: microhttpd: MHD_OPTION_EXTERNAL_LOGGER is not the first option specified for the daemon. Some messages may be printed by the standard MHD logger.

1 Like

There are a lot of bad bluetooth adapters out there.
The Home Assistant team have tested several and added information about some of the adapters on the HA BlueTooth page.

1 Like