Once working bluetooth now dead on pi 400

My once functioning bluetooth seems to be dead on my pi 400. bluetoothctl show & bluetoothctl power on both report “no default controller available”. I tried reinstalling brcm-patchram-plus, sudo systemctl restart attach-bluetooth.service and sudo systemctl restart bluetooth.service, but no luck. I found this post from the archlinux forum that might be related and below I have provided output for some of the commands suggested in that thread.

I’m a layperson when it comes to this so unfortunately the best I can do is provide some information potentially useful for troubleshooting. Some output that may be of interest: bluetoothctl saying “No default controller available”, btmgmt info reporting “Index list with 0 items” (not detecting a bluetooth device?) and the “Key file does not have key” from bluetoothd as reported by systemctl and journalctl. Appreciate any assistance on this. Thanks.

uname output:

> uname -srvo
Linux 5.11.0-rc6-1-MANJARO-ARM #1 SMP PREEMPT Thu Feb 4 11:43:47 CST 2021 GNU/Linux

rfkill output:

> rfkill list all
0: phy0: Wireless LAN
        Soft blocked: no
        Hard blocked: no

bluetoothctl output:

> bluetoothctl show
No default controller available
> bluetoothctl power on
No default controller available

btmgmt output:

> btmgmt info
Index list with 0 items
> btmgmt config
Unconfigured index list with 0 items

systemctl status bluetooth.service output:

> systemctl status bluetooth.service
● bluetooth.service - Bluetooth service
     Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; enabled; vendor preset: disabled)
     Active: active (running) since Sun 2021-02-21 20:57:58 PST; 1h 25min ago
       Docs: man:bluetoothd(8)
   Main PID: 570 (bluetoothd)
     Status: "Running"
      Tasks: 1 (limit: 4246)
     CGroup: /system.slice/bluetooth.service
             └─570 /usr/lib/bluetooth/bluetoothd

Feb 21 20:57:58 cpim bluetoothd[570]: src/main.c:parse_controller_config() Key file does not have key “LEScanIntervalConnect” in group “Controller”
Feb 21 20:57:58 cpim bluetoothd[570]: src/main.c:parse_controller_config() Key file does not have key “LEScanWindowConnect” in group “Controller”
Feb 21 20:57:58 cpim bluetoothd[570]: src/main.c:parse_controller_config() Key file does not have key “LEMinConnectionInterval” in group “Controller”
Feb 21 20:57:58 cpim bluetoothd[570]: src/main.c:parse_controller_config() Key file does not have key “LEMaxConnectionInterval” in group “Controller”
Feb 21 20:57:58 cpim bluetoothd[570]: src/main.c:parse_controller_config() Key file does not have key “LEConnectionLatency” in group “Controller”
Feb 21 20:57:58 cpim bluetoothd[570]: src/main.c:parse_controller_config() Key file does not have key “LEConnectionSupervisionTimeout” in group “Controller”
Feb 21 20:57:58 cpim bluetoothd[570]: src/main.c:parse_controller_config() Key file does not have key “LEAutoconnecttimeout” in group “Controller”
Feb 21 20:57:58 cpim systemd[1]: Started Bluetooth service.
Feb 21 20:57:58 cpim bluetoothd[570]: Starting SDP server
Feb 21 20:57:58 cpim bluetoothd[570]: Bluetooth management interface 1.19 initialized

systemctl list-unit-files | grep -i blue output:

> systemctl list-unit-files | grep -i blue
attach-bluetooth.service                   enabled         disabled
blueman-mechanism.service                  disabled        disabled
bluetooth-mesh.service                     disabled        disabled
bluetooth.service                          enabled         disabled
dbus-org.bluez.service                     alias           -
bluetooth.target                           static          -

journalctl -xe | grep -i blue output:

> journalctl -xe | grep -i blue
Feb 21 20:57:46 cpim kernel: Bluetooth: Core ver 2.22
Feb 21 20:57:46 cpim kernel: Bluetooth: HCI device and connection manager initialized
Feb 21 20:57:46 cpim kernel: Bluetooth: HCI socket layer initialized
Feb 21 20:57:46 cpim kernel: Bluetooth: L2CAP socket layer initialized
Feb 21 20:57:46 cpim kernel: Bluetooth: SCO socket layer initialized
Feb 21 20:57:46 cpim dbus-daemon[403]: [system] Activating via systemd: service name='org.bluez' unit='dbus-org.bluez.service' requested by ':1.20' (uid=1000 pid=556 comm="/usr/bin/pipewire-media-session ")
Feb 21 20:57:46 cpim systemd[1]: Starting Bluetooth service...
░░ Subject: A start job for unit bluetooth.service has begun execution
░░ A start job for unit bluetooth.service has begun execution.
Feb 21 20:57:46 cpim bluetoothd[572]: Bluetooth daemon 5.55
Feb 21 20:57:46 cpim bluetoothd[572]: src/main.c:parse_controller_config() Key file does not have key “BRPageScanType” in group “Controller”
Feb 21 20:57:46 cpim bluetoothd[572]: src/main.c:parse_controller_config() Key file does not have key “BRPageScanInterval” in group “Controller”
Feb 21 20:57:46 cpim bluetoothd[572]: src/main.c:parse_controller_config() Key file does not have key “BRPageScanWindow” in group “Controller”
Feb 21 20:57:46 cpim bluetoothd[572]: src/main.c:parse_controller_config() Key file does not have key “BRInquiryScanType” in group “Controller”
Feb 21 20:57:46 cpim bluetoothd[572]: src/main.c:parse_controller_config() Key file does not have key “BRInquiryScanInterval” in group “Controller”
Feb 21 20:57:46 cpim bluetoothd[572]: src/main.c:parse_controller_config() Key file does not have key “BRInquiryScanWindow” in group “Controller”
Feb 21 20:57:46 cpim bluetoothd[572]: src/main.c:parse_controller_config() Key file does not have key “BRLinkSupervisionTimeout” in group “Controller”
Feb 21 20:57:46 cpim bluetoothd[572]: src/main.c:parse_controller_config() Key file does not have key “BRPageTimeout” in group “Controller”
Feb 21 20:57:46 cpim bluetoothd[572]: src/main.c:parse_controller_config() Key file does not have key “BRMinSniffInterval” in group “Controller”
Feb 21 20:57:46 cpim bluetoothd[572]: src/main.c:parse_controller_config() Key file does not have key “BRMaxSniffInterval” in group “Controller”
Feb 21 20:57:46 cpim bluetoothd[572]: src/main.c:parse_controller_config() Key file does not have key “LEMinAdvertisementInterval” in group “Controller”
Feb 21 20:57:46 cpim bluetoothd[572]: src/main.c:parse_controller_config() Key file does not have key “LEMaxAdvertisementInterval” in group “Controller”
Feb 21 20:57:46 cpim bluetoothd[572]: src/main.c:parse_controller_config() Key file does not have key “LEMultiAdvertisementRotationInterval” in group “Controller”
Feb 21 20:57:46 cpim bluetoothd[572]: src/main.c:parse_controller_config() Key file does not have key “LEScanIntervalAutoConnect” in group “Controller”
Feb 21 20:57:46 cpim bluetoothd[572]: src/main.c:parse_controller_config() Key file does not have key “LEScanWindowAutoConnect” in group “Controller”
Feb 21 20:57:46 cpim bluetoothd[572]: src/main.c:parse_controller_config() Key file does not have key “LEScanIntervalSuspend” in group “Controller”
Feb 21 20:57:46 cpim bluetoothd[572]: src/main.c:parse_controller_config() Key file does not have key “LEScanWindowSuspend” in group “Controller”
Feb 21 20:57:46 cpim bluetoothd[572]: src/main.c:parse_controller_config() Key file does not have key “LEScanIntervalDiscovery” in group “Controller”
Feb 21 20:57:46 cpim bluetoothd[572]: src/main.c:parse_controller_config() Key file does not have key “LEScanWindowDiscovery” in group “Controller”
Feb 21 20:57:46 cpim bluetoothd[572]: src/main.c:parse_controller_config() Key file does not have key “LEScanIntervalAdvMonitor” in group “Controller”
Feb 21 20:57:46 cpim bluetoothd[572]: src/main.c:parse_controller_config() Key file does not have key “LEScanWindowAdvMonitor” in group “Controller”
Feb 21 20:57:46 cpim bluetoothd[572]: src/main.c:parse_controller_config() Key file does not have key “LEScanIntervalConnect” in group “Controller”
Feb 21 20:57:46 cpim bluetoothd[572]: src/main.c:parse_controller_config() Key file does not have key “LEScanWindowConnect” in group “Controller”
Feb 21 20:57:46 cpim bluetoothd[572]: src/main.c:parse_controller_config() Key file does not have key “LEMinConnectionInterval” in group “Controller”
Feb 21 20:57:46 cpim bluetoothd[572]: src/main.c:parse_controller_config() Key file does not have key “LEMaxConnectionInterval” in group “Controller”
Feb 21 20:57:46 cpim bluetoothd[572]: src/main.c:parse_controller_config() Key file does not have key “LEConnectionLatency” in group “Controller”
Feb 21 20:57:46 cpim bluetoothd[572]: src/main.c:parse_controller_config() Key file does not have key “LEConnectionSupervisionTimeout” in group “Controller”
Feb 21 20:57:46 cpim bluetoothd[572]: src/main.c:parse_controller_config() Key file does not have key “LEAutoconnecttimeout” in group “Controller”
Feb 21 20:57:46 cpim dbus-daemon[403]: [system] Successfully activated service 'org.bluez'
Feb 21 20:57:46 cpim systemd[1]: Started Bluetooth service.
░░ Subject: A start job for unit bluetooth.service has finished successfully
░░ A start job for unit bluetooth.service has finished successfully.
Feb 21 20:57:46 cpim bluetoothd[572]: Starting SDP server
Feb 21 20:57:46 cpim kernel: Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Feb 21 20:57:46 cpim kernel: Bluetooth: BNEP filters: protocol multicast
Feb 21 20:57:46 cpim kernel: Bluetooth: BNEP socket layer initialized
Feb 21 20:57:46 cpim bluetoothd[572]: Bluetooth management interface 1.19 initialized
Feb 21 20:57:46 cpim dbus-daemon[403]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.21' (uid=0 pid=572 comm="/usr/lib/bluetooth/bluetoothd ")
Feb 21 20:57:46 cpim pipewire-media-session[556]: native: RegisterProfile() failed: org.bluez.Error.AlreadyExists
Feb 21 20:57:46 cpim pipewire-media-session[556]: native: RegisterProfile() failed: org.bluez.Error.AlreadyExists
Feb 21 20:57:58 cpim dbus-daemon[396]: [system] Activating via systemd: service name='org.bluez' unit='dbus-org.bluez.service' requested by ':1.20' (uid=1000 pid=547 comm="/usr/bin/pipewire-media-session ")
Feb 21 20:57:58 cpim kernel: Bluetooth: Core ver 2.22
Feb 21 20:57:58 cpim kernel: Bluetooth: HCI device and connection manager initialized
Feb 21 20:57:58 cpim kernel: Bluetooth: HCI socket layer initialized
Feb 21 20:57:58 cpim kernel: Bluetooth: L2CAP socket layer initialized
Feb 21 20:57:58 cpim kernel: Bluetooth: SCO socket layer initialized
Feb 21 20:57:58 cpim systemd[1]: Starting Bluetooth service...
░░ Subject: A start job for unit bluetooth.service has begun execution
░░ A start job for unit bluetooth.service has begun execution.
Feb 21 20:57:58 cpim bluetoothd[570]: Bluetooth daemon 5.55
Feb 21 20:57:58 cpim bluetoothd[570]: src/main.c:parse_controller_config() Key file does not have key “BRPageScanType” in group “Controller”
Feb 21 20:57:58 cpim bluetoothd[570]: src/main.c:parse_controller_config() Key file does not have key “BRPageScanInterval” in group “Controller”
Feb 21 20:57:58 cpim bluetoothd[570]: src/main.c:parse_controller_config() Key file does not have key “BRPageScanWindow” in group “Controller”
Feb 21 20:57:58 cpim bluetoothd[570]: src/main.c:parse_controller_config() Key file does not have key “BRInquiryScanType” in group “Controller”
Feb 21 20:57:58 cpim bluetoothd[570]: src/main.c:parse_controller_config() Key file does not have key “BRInquiryScanInterval” in group “Controller”
Feb 21 20:57:58 cpim bluetoothd[570]: src/main.c:parse_controller_config() Key file does not have key “BRInquiryScanWindow” in group “Controller”
Feb 21 20:57:58 cpim bluetoothd[570]: src/main.c:parse_controller_config() Key file does not have key “BRLinkSupervisionTimeout” in group “Controller”
Feb 21 20:57:58 cpim bluetoothd[570]: src/main.c:parse_controller_config() Key file does not have key “BRPageTimeout” in group “Controller”
Feb 21 20:57:58 cpim bluetoothd[570]: src/main.c:parse_controller_config() Key file does not have key “BRMinSniffInterval” in group “Controller”
Feb 21 20:57:58 cpim bluetoothd[570]: src/main.c:parse_controller_config() Key file does not have key “BRMaxSniffInterval” in group “Controller”
Feb 21 20:57:58 cpim bluetoothd[570]: src/main.c:parse_controller_config() Key file does not have key “LEMinAdvertisementInterval” in group “Controller”
Feb 21 20:57:58 cpim bluetoothd[570]: src/main.c:parse_controller_config() Key file does not have key “LEMaxAdvertisementInterval” in group “Controller”
Feb 21 20:57:58 cpim bluetoothd[570]: src/main.c:parse_controller_config() Key file does not have key “LEMultiAdvertisementRotationInterval” in group “Controller”
Feb 21 20:57:58 cpim bluetoothd[570]: src/main.c:parse_controller_config() Key file does not have key “LEScanIntervalAutoConnect” in group “Controller”
Feb 21 20:57:58 cpim bluetoothd[570]: src/main.c:parse_controller_config() Key file does not have key “LEScanWindowAutoConnect” in group “Controller”
Feb 21 20:57:58 cpim bluetoothd[570]: src/main.c:parse_controller_config() Key file does not have key “LEScanIntervalSuspend” in group “Controller”
Feb 21 20:57:58 cpim bluetoothd[570]: src/main.c:parse_controller_config() Key file does not have key “LEScanWindowSuspend” in group “Controller”
Feb 21 20:57:58 cpim bluetoothd[570]: src/main.c:parse_controller_config() Key file does not have key “LEScanIntervalDiscovery” in group “Controller”
Feb 21 20:57:58 cpim bluetoothd[570]: src/main.c:parse_controller_config() Key file does not have key “LEScanWindowDiscovery” in group “Controller”
Feb 21 20:57:58 cpim bluetoothd[570]: src/main.c:parse_controller_config() Key file does not have key “LEScanIntervalAdvMonitor” in group “Controller”
Feb 21 20:57:58 cpim bluetoothd[570]: src/main.c:parse_controller_config() Key file does not have key “LEScanWindowAdvMonitor” in group “Controller”
Feb 21 20:57:58 cpim bluetoothd[570]: src/main.c:parse_controller_config() Key file does not have key “LEScanIntervalConnect” in group “Controller”
Feb 21 20:57:58 cpim bluetoothd[570]: src/main.c:parse_controller_config() Key file does not have key “LEScanWindowConnect” in group “Controller”
Feb 21 20:57:58 cpim bluetoothd[570]: src/main.c:parse_controller_config() Key file does not have key “LEMinConnectionInterval” in group “Controller”
Feb 21 20:57:58 cpim bluetoothd[570]: src/main.c:parse_controller_config() Key file does not have key “LEMaxConnectionInterval” in group “Controller”
Feb 21 20:57:58 cpim bluetoothd[570]: src/main.c:parse_controller_config() Key file does not have key “LEConnectionLatency” in group “Controller”
Feb 21 20:57:58 cpim bluetoothd[570]: src/main.c:parse_controller_config() Key file does not have key “LEConnectionSupervisionTimeout” in group “Controller”
Feb 21 20:57:58 cpim bluetoothd[570]: src/main.c:parse_controller_config() Key file does not have key “LEAutoconnecttimeout” in group “Controller”
Feb 21 20:57:58 cpim dbus-daemon[396]: [system] Successfully activated service 'org.bluez'
Feb 21 20:57:58 cpim systemd[1]: Started Bluetooth service.
░░ Subject: A start job for unit bluetooth.service has finished successfully
░░ A start job for unit bluetooth.service has finished successfully.
Feb 21 20:57:58 cpim bluetoothd[570]: Starting SDP server
Feb 21 20:57:58 cpim kernel: Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Feb 21 20:57:58 cpim kernel: Bluetooth: BNEP filters: protocol multicast
Feb 21 20:57:58 cpim kernel: Bluetooth: BNEP socket layer initialized
Feb 21 20:57:58 cpim bluetoothd[570]: Bluetooth management interface 1.19 initialized
Feb 21 20:57:58 cpim dbus-daemon[396]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.21' (uid=0 pid=570 comm="/usr/lib/bluetooth/bluetoothd ")
Feb 21 20:57:58 cpim pipewire-media-session[547]: native: RegisterProfile() failed: org.bluez.Error.AlreadyExists
Feb 21 20:57:58 cpim pipewire-media-session[547]: native: RegisterProfile() failed: org.bluez.Error.AlreadyExists
Feb 21 21:09:17 cpim bluetoothd[572]: Terminating
Feb 21 21:09:17 cpim systemd[1]: Stopping Bluetooth service...
░░ Subject: A stop job for unit bluetooth.service has begun execution
░░ A stop job for unit bluetooth.service has begun execution.
Feb 21 21:09:17 cpim bluetoothd[572]: Stopping SDP server
Feb 21 21:09:17 cpim bluetoothd[572]: Exit
Feb 21 21:09:17 cpim dbus-daemon[403]: [system] Rejected send message, 0 matched rules; type="error", sender=":1.20" (uid=1000 pid=556 comm="/usr/bin/pipewire-media-session ") interface="(unset)" member="(unset)" error name="org.bluez.Profile1.Error.NotImplemented" requested_reply="0" destination=":1.21" (uid=0 pid=572 comm="/usr/lib/bluetooth/bluetoothd ")
Feb 21 21:09:17 cpim dbus-daemon[403]: [system] Rejected send message, 0 matched rules; type="error", sender=":1.20" (uid=1000 pid=556 comm="/usr/bin/pipewire-media-session ") interface="(unset)" member="(unset)" error name="org.bluez.Profile1.Error.NotImplemented" requested_reply="0" destination=":1.21" (uid=0 pid=572 comm="/usr/lib/bluetooth/bluetoothd ")
Feb 21 21:09:18 cpim systemd[1]: bluetooth.service: Succeeded.
░░ The unit bluetooth.service has successfully entered the 'dead' state.
Feb 21 21:09:18 cpim systemd[1]: Stopped Bluetooth service.
░░ Subject: A stop job for unit bluetooth.service has finished
░░ A stop job for unit bluetooth.service has finished.
Feb 21 21:09:18 cpim systemd[1]: Stopping Attach Bluetooth Adapter Raspberry Pi devices...
░░ Subject: A stop job for unit attach-bluetooth.service has begun execution
░░ A stop job for unit attach-bluetooth.service has begun execution.
Feb 21 21:09:18 cpim systemd[1]: attach-bluetooth.service: Succeeded.
░░ The unit attach-bluetooth.service has successfully entered the 'dead' state.
Feb 21 21:09:18 cpim systemd[1]: Stopped Attach Bluetooth Adapter Raspberry Pi devices.
░░ Subject: A stop job for unit attach-bluetooth.service has finished
░░ A stop job for unit attach-bluetooth.service has finished.
Feb 21 22:15:28 cpim systemd[1]: Configuration file /usr/lib/systemd/system/attach-bluetooth.service is marked executable. Please remove executable permission bits. Proceeding anyway.
Feb 21 22:23:48 cpim systemd[1]: Configuration file /usr/lib/systemd/system/attach-bluetooth.service is marked executable. Please remove executable permission bits. Proceeding anyway.

lsmod | sort output:

> lsmod | sort
Module                  Size  Used by
backlight              20480  1 drm
bcm2835_codec          49152  0
bcm2835_isp            32768  0
bcm2835_mmal_vchiq     32768  3 bcm2835_codec,bcm2835_v4l2,bcm2835_isp
bcm2835_v4l2           45056  0
bluetooth             475136  9 bnep
bnep                   28672  2
brcmfmac              323584  0
brcmutil               24576  1 brcmfmac
cec                    69632  1 vc4
cfg80211              876544  1 brcmfmac
crct10dif_ce           20480  1
crypto_user            16384  0
drm                   561152  7 gpu_sched,drm_kms_helper,v3d,vc4
drm_kms_helper        262144  3 vc4
drm_panel_orientation_quirks    20480  1 drm
ecc                    32768  1 ecdh_generic
ecdh_generic           16384  1 bluetooth
fb_sys_fops            16384  1 drm_kms_helper
fuse                  131072  5
gpu_sched              45056  1 v3d
i2c_brcmstb            16384  0
ip_tables              32768  0
ipv6                  536576  58
mc                     61440  6 videodev,bcm2835_codec,videobuf2_v4l2,videobuf2_common,v4l2_mem2mem,bcm2835_isp
raspberrypi_hwmon      16384  0
rfkill                 36864  5 bluetooth,cfg80211
rpivid_mem             16384  0
sch_fq_codel           20480  6
sha256_arm64           28672  0
sha256_generic         16384  0
snd                    98304  11 snd_seq,snd_seq_device,snd_timer,snd_compress,snd_soc_core,snd_pcm
snd_compress           20480  1 snd_soc_core
snd_hrtimer            16384  1
snd_pcm               126976  5 vc4,snd_compress,snd_soc_core,snd_pcm_dmaengine
snd_pcm_dmaengine      20480  1 snd_soc_core
snd_seq                81920  7 snd_seq_dummy
snd_seq_device         20480  1 snd_seq
snd_seq_dummy          16384  0
snd_soc_core          245760  1 vc4
snd_timer              36864  3 snd_seq,snd_hrtimer,snd_pcm
syscopyarea            16384  1 drm_kms_helper
sysfillrect            16384  1 drm_kms_helper
sysimgblt              16384  1 drm_kms_helper
uio                    24576  1 uio_pdrv_genirq
uio_pdrv_genirq        16384  0
v3d                    81920  1
v4l2_mem2mem           45056  1 bcm2835_codec
vc4                   274432  13
vc_sm_cma              36864  2 bcm2835_mmal_vchiq,bcm2835_isp
videobuf2_common       61440  5 bcm2835_codec,videobuf2_v4l2,bcm2835_v4l2,v4l2_mem2mem,bcm2835_isp
videobuf2_dma_contig    24576  2 bcm2835_codec,bcm2835_isp
videobuf2_memops       20480  2 videobuf2_vmalloc,videobuf2_dma_contig
videobuf2_v4l2         32768  4 bcm2835_codec,bcm2835_v4l2,v4l2_mem2mem,bcm2835_isp
videobuf2_vmalloc      20480  1 bcm2835_v4l2
videodev              286720  6 bcm2835_codec,videobuf2_v4l2,bcm2835_v4l2,videobuf2_common,v4l2_mem2mem,bcm2835_isp
x_tables               40960  1 ip_tables
zram                   28672  2
zsmalloc               36864  1 zram

Did you make the needed changes in /boot/cmdline.txt after the raspberrypi-bootloader update.

https://forum.manjaro.org/t/new-raspberry-pi-kernels-related-packages/4721/344

2 Likes

This was it. Thank you very much!

1 Like