Thank you for your donation!


Solved: Cannot enable Bluetooth
#1
Hello,

First of all thank you for this software, which is really great !

Since a Moode update a few months ago (I cannot remember which version I was running at this time), I cannot use Bluetooth anymore. It is set to ON in the System Config, but everytime I try to put it ON in the Audio Settings the system startup fails.

Then I need to install a fresh image, or to run the SQL command below via SSH to deactivate Bluetooth:

Code:
sqlite3 /var/local/www/db/moode-sqlite3.db "update cfg_system set value='0' where param='btsvc'"

I am now running Moode 6.5.2 on a RPI 3b with the x20 HiFi Audio Kit (http://www.suptronics.com/miniPCkits/x20.html).

Am I missing something ? Maybe my integrated Bluetooth adapter stopped working correctly ?

Many thanks in advance for your help.
Reply
#2
@R2ots

This problem sneaked up on us. It was mentioned just the other day and I'm doing some testing for Tim as I write this. Stay tuned.

Regards,
Kent
Reply
#3
I think this a different issue. Prolly the metal case for the Suptronics is killing wireless.
Reply
#4
Thank you for your answers. However the metal case only contains the power supply, so I guess it has no effect on the wireless ?
Reply
#5
You could try reboot then look at syslog for bluetooth errors.

Here's what my Pi-4B reports

Code:
pi@rp2:~ $ cat /var/log/syslog | grep -i blue
May 23 08:58:34 rp2 systemd[1]: Stopping Configure Bluetooth Modems connected by UART...
May 23 08:58:34 rp2 systemd[1]: Stopped target Bluetooth.
May 23 08:58:34 rp2 systemd[1]: Stopping BluezAlsa proxy...
May 23 08:58:34 rp2 bluetoothd[1237]: Endpoint unregistered: sender=:1.11 path=/org/bluez/hci0/A2DP/SBC/Source/1
May 23 08:58:34 rp2 bluetoothd[1237]: Endpoint unregistered: sender=:1.11 path=/org/bluez/hci0/A2DP/SBC/Source/2
May 23 08:58:34 rp2 bluetoothd[1237]: Endpoint unregistered: sender=:1.11 path=/org/bluez/hci0/A2DP/SBC/Sink/1
May 23 08:58:34 rp2 bluetoothd[1237]: Endpoint unregistered: sender=:1.11 path=/org/bluez/hci0/A2DP/SBC/Sink/2
May 23 08:58:58 rp2 systemd[1]: Starting Configure Bluetooth Modems connected by UART...
May 23 08:59:04 rp2 kernel: [   30.838847] Bluetooth: Core ver 2.22
May 23 08:59:04 rp2 kernel: [   30.838921] Bluetooth: HCI device and connection manager initialized
May 23 08:59:04 rp2 kernel: [   30.838939] Bluetooth: HCI socket layer initialized
May 23 08:59:04 rp2 kernel: [   30.838951] Bluetooth: L2CAP socket layer initialized
May 23 08:59:04 rp2 kernel: [   30.838989] Bluetooth: SCO socket layer initialized
May 23 08:59:04 rp2 kernel: [   30.852793] Bluetooth: HCI UART driver ver 2.3
May 23 08:59:04 rp2 kernel: [   30.852804] Bluetooth: HCI UART protocol H4 registered
May 23 08:59:04 rp2 kernel: [   30.852872] Bluetooth: HCI UART protocol Three-wire (H5) registered
May 23 08:59:04 rp2 kernel: [   30.853060] Bluetooth: HCI UART protocol Broadcom registered
May 23 08:59:04 rp2 systemd[1]: Started Configure Bluetooth Modems connected by UART.
May 23 08:59:04 rp2 systemd[1]: Starting Bluetooth service...
May 23 08:59:04 rp2 systemd[1]: Reached target Bluetooth.
May 23 08:59:04 rp2 bluetoothd[1092]: Bluetooth daemon 5.50
May 23 08:59:04 rp2 systemd[1]: Started Bluetooth service.
May 23 08:59:04 rp2 systemd[1]: Started Raspberry Pi bluetooth helper.
May 23 08:59:04 rp2 bluetoothd[1092]: Starting SDP server
May 23 08:59:04 rp2 kernel: [   31.004568] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
May 23 08:59:04 rp2 kernel: [   31.004574] Bluetooth: BNEP filters: protocol multicast
May 23 08:59:04 rp2 kernel: [   31.004589] Bluetooth: BNEP socket layer initialized
May 23 08:59:04 rp2 bluetoothd[1092]: Bluetooth management interface 1.14 initialized
May 23 08:59:04 rp2 dbus-daemon[319]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.10' (uid=0 pid=1092 comm="/usr/sbin/bluetoothd --noplugin=sap ")
May 23 08:59:05 rp2 systemd[1]: Started BluezAlsa proxy.
May 23 08:59:05 rp2 bluetoothd[1092]: Failed to set privacy: Rejected (0x0b)
May 23 08:59:05 rp2 bluetoothd[1092]: Endpoint registered: sender=:1.11 path=/org/bluez/hci0/A2DP/SBC/Source/1
May 23 08:59:05 rp2 bluetoothd[1092]: Endpoint registered: sender=:1.11 path=/org/bluez/hci0/A2DP/SBC/Source/2
May 23 08:59:05 rp2 bluetoothd[1092]: Endpoint registered: sender=:1.11 path=/org/bluez/hci0/A2DP/SBC/Sink/1
May 23 08:59:05 rp2 bluetoothd[1092]: Endpoint registered: sender=:1.11 path=/org/bluez/hci0/A2DP/SBC/Sink/2
Reply
#6
The "cat /var/log/syslog | grep -i blue" command does not return anything on my system.

However I noted power supply issues in the regular syslog. Do you think it can be the root cause of my Bluetooth issues ?


Code:
May 23 17:04:21 moode kernel: [  354.785588] Under-voltage detected! (0x00050005)                                                          
May 23 17:04:25 moode kernel: [  358.817536] Voltage normalised (0x00000000)                                                                

Thank you.
Reply
#7
Open System Config and verify that the Bluetooth adapter is ON.

Also check /boot/config.txt and verify that the Bluetooth adapter is not disabled. It should look like below where the wifi and bt lines are commented out (#).

pi@rp2:~ $ cat /boot/config.txt
disable_splash=1
disable_overscan=1
hdmi_drive=2
hdmi_blanking=1
dtparam=i2c_arm=on
dtparam=i2s=on
dtparam=audio=off
framebuffer_width=800
framebuffer_height=444
framebuffer_aspect=-1
dtoverlay=allo-boss-dac-pcm512x-audio
#dtoverlay=pi3-disable-wifi
#dtoverlay=pi3-disable-bt
Reply
#8
OK I found out what was wrong.

Bluetooth adapter was ON in System Config, but WiFi adapter was OFF. So I switched WiFi adapter back to ON and activated Bluetooth in Audio Config, and then it worked !

So I guess that you cannot deactivate WiFi without deactivating Bluetooth, at least on this Pi model.

Thank you for your help !
Reply


Forum Jump: