Bluetooth device not connecting

  • I am new to Libreelec, but the first issue I noticed when using it is the problem with connecting my bluetooth speaker. I have searched many threads, but haven't found an exact procedure how to eliminate problems during connecting. I have been figuring this for a while and I want to provide a guide for people with similar problems.

    I am using Libreelec 8.2.5 on PC Intel-i5 4210 processor.

    What I encountered at first was that the PC was unable to find my bluetooth speakers. I searched a few forums and they suggested using bluetoothctl for connecting the device.

    Using these commands I was able to find the device, pair and mark it as trusted:

    bluetoothctl

    Code
    power on
    agent on
    default-agent
    scan on

    Now wait for your device to show up, and continue with:

    Code
    pair MACAddress
    trust MACAddress

    I tried to use command connect MACAddress, but I always got this error:

    Code
    org.bluez.error.failed

    Various forums suggested using pactl commands, loading modules module-bluetooth-discover or pulseaudio-bluetooth-module, but these are not available on libreelec. Other solution suggested restarting pulseaudio, and this is where i found the solution. I tried to execute pulseaudio -k, but it showed me a message saying that pulseaudio is not running.

    I tried to set pulseaudio as the default audio device in the system setting. Then, I was finally able to connect my device with bluetoothctl command:

    Code
    connect MACAddress

    In my opinion this is not how it should work and the system should be able to figure this itself. Introducing a feature where the default audio device would be automatically changed after connecting bluetooth would also be welcomed :)

    TL;DR:

    If you have trouble connecting bluetooth devices, set pulseaudio as the default audio device in the system settings BEFORE connecting device.

  • Yes, I know, however the problem is that it switches the device after it pairs, which only happens once. Now I have my device paired, and it does not switch the device as I am trying to connect. Unpairing and again pairing the device every time I want to connect would be another complication of the process, as I had troubles with getting the device found by libreelec as well.

  • Hi,

    I am facing exactly the same problem as described by milos7250, and also tried to connect using bluetoothctl with no sucess:

    [bluetooth]# connect C8:84:47:12:27:F7

    Attempting to connect to C8:84:47:12:27:F7

    [CHG] Device C8:84:47:12:27:F7 Connected: yes

    Connection successful

    [CHG] Device C8:84:47:12:27:F7 ServicesResolved: yes

    [CHG] Controller 00:02:72:BF:3E:2F Class: 0x040000

    [CHG] Controller 00:02:72:BF:3E:2F UUIDs: 00001801-0000-1000-8000-00805f9b34fb

    [CHG] Controller 00:02:72:BF:3E:2F UUIDs: 0000110e-0000-1000-8000-00805f9b34fb

    [CHG] Controller 00:02:72:BF:3E:2F UUIDs: 00001200-0000-1000-8000-00805f9b34fb

    [CHG] Controller 00:02:72:BF:3E:2F UUIDs: 00001800-0000-1000-8000-00805f9b34fb

    [CHG] Controller 00:02:72:BF:3E:2F UUIDs: 0000110c-0000-1000-8000-00805f9b34fb

    [CHG] Controller 00:02:72:BF:3E:2F Class: 0x000000

    [CHG] Controller 00:02:72:BF:3E:2F Class: 0x080000

    [CHG] Controller 00:02:72:BF:3E:2F UUIDs: 0000110b-0000-1000-8000-00805f9b34fb

    [CHG] Controller 00:02:72:BF:3E:2F UUIDs: 00001801-0000-1000-8000-00805f9b34fb

    [CHG] Controller 00:02:72:BF:3E:2F UUIDs: 0000110a-0000-1000-8000-00805f9b34fb

    [CHG] Controller 00:02:72:BF:3E:2F UUIDs: 0000110e-0000-1000-8000-00805f9b34fb

    [CHG] Controller 00:02:72:BF:3E:2F UUIDs: 00001200-0000-1000-8000-00805f9b34fb

    [CHG] Controller 00:02:72:BF:3E:2F UUIDs: 00001800-0000-1000-8000-00805f9b34fb

    [CHG] Controller 00:02:72:BF:3E:2F UUIDs: 0000110c-0000-1000-8000-00805f9b34fb

    [CHG] Controller 00:02:72:BF:3E:2F Class: 0x0c0000

    [CHG] Controller 00:02:72:BF:3E:2F UUIDs: 0000110b-0000-1000-8000-00805f9b34fb

    [CHG] Controller 00:02:72:BF:3E:2F UUIDs: 00001801-0000-1000-8000-00805f9b34fb

    [CHG] Controller 00:02:72:BF:3E:2F UUIDs: 0000110a-0000-1000-8000-00805f9b34fb

    [CHG] Controller 00:02:72:BF:3E:2F UUIDs: 0000110e-0000-1000-8000-00805f9b34fb

    [CHG] Controller 00:02:72:BF:3E:2F UUIDs: 00001200-0000-1000-8000-00805f9b34fb

    [CHG] Controller 00:02:72:BF:3E:2F UUIDs: 00001800-0000-1000-8000-00805f9b34fb

    [CHG] Controller 00:02:72:BF:3E:2F UUIDs: 0000110c-0000-1000-8000-00805f9b34fb

    [CHG] Device C8:84:47:12:27:F7 ServicesResolved: no

    [CHG] Device C8:84:47:12:27:F7 Connected: no

    [bluetooth]#


    I am trying to connect to a Logitech Bluetooth Speaker adapter that feeds to a Power Amplifier with RCA connectors (it works with everything else, except LE)

    I tried two bluetooth dongles on RaspberryPI with LE 8.2.5.

    Any sugestion ?

    Thanks.

    CTXA