Posts by david_a

    Every time I reboot libreelec, the audio defaults to PA bluetooth. I need it to default to Analog because I am using headphones plugged into the audio jack.

    I can force the setting to change with a curl command:

    curl -d '{"jsonrpc":"2.0","method":"Settings.SetSettingValue", "params":{"setting":"audiooutput.audiodevice","value":"PI:Analogue"},"id":1}' -H "Content-type: application/json" http://localhost:8080/jsonrpc


    I just don't know where to put it. I've put it in autostart.py, but it runs before Kodi starts. I've put it in a script called from autoexec.py, but it doesn't seem to fix the issue (maybe it runs too soon?)

    How can I force the Audio setting to stay on Analog? I'm using it in a vehicle with a PI touchscreen, so it will be rebooted a lot (every time I crank the car).

    eta: i edited /storage/.kodi/userdata/guisettings.xml

    changed the value to the following ("PI:Analogue" is the value I get when I run a curl for getSettings on this value after changing in the GUI.

    <setting id="audiooutput.audiodevice">PI:Analogue</setting>

    After reboot, it still won't stick.

    edit 2 : I had the wrong curl command above.

    The MAC address stays the same...

    Code
    Kodi:~ # bluetoothctl show | grep Controller
    Controller DC:A6:32:29:FA:CD (public)
    
    <reboot through UI>
    
    Kodi:~ # bluetoothctl show | grep Controller
    Controller DC:A6:32:29:FA:CD (public)

    edit to add: here is the full output of bluetoothctl show:

    edited to add: hardware is a rasberry pi 4

    I have a Raspberry PI 2 B and a set of speakers which connect through bluetooth. Video goes through HDMI to a projector.

    I enabled bluetooth service and paired the speakers through the GUI. I get no audio when I play video.

    The wiki says it should just work: Pulseaudio - LibreELEC

    I verified that Audio Output is set to "PULSE Default, Bluetooth Audio (PULSEAUDIO)" in the GUI.

    Debugging output after ssh-ing in:


    The bluetooth adapter is the 3rd device listed below:

    Code
    LibreELEC:~ # lsusb
    Bus 001 Device 007: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter
    Bus 001 Device 006: ID 0930:6544 Toshiba Corp. TransMemory-Mini / Kingston DataTraveler 2.0 Stick (2GB)
    Bus 001 Device 005: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
    Bus 001 Device 004: ID 046d:c245 Logitech, Inc. G400 Optical Mouse
    Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
    Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. SMC9514 Hub
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

    Anything else I can look at?

    eta: the speakers are turned up and I confirmed they are working. I don't think it's a layer 1 issue. ;)