Thanks, disabling bluetooth add-on allowed the setting in the UI to persist.
Resolved.
Thanks, disabling bluetooth add-on allowed the setting in the UI to persist.
Resolved.
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...
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:
Kodi:~ # bluetoothctl show
Controller DC:A6:32:29:FA:CD (public)
Name: Kodi
Alias: Kodi
Class: 0x000c0000
Powered: yes
Discoverable: no
Pairable: yes
UUID: Audio Source (0000110a-0000-1000-8000-00805f9b34fb)
UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
UUID: Generic Access Profile (00001800-0000-1000-8000-00805f9b34fb)
UUID: PnP Information (00001200-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control (0000110e-0000-1000-8000-00805f9b34fb)
UUID: Audio Sink (0000110b-0000-1000-8000-00805f9b34fb)
Modalias: usb:v1D6Bp0246d0532
Discovering: yes
Display More
edited to add: hardware is a rasberry pi 4
Bluetooth speakers work; however, each time I reboot, I have to go to Add-ons -> LibElec Configuration -> Bluetooth -> <select my speakers> -> Connect.
Is there a way to have this setting persist? I'd like it to always connect to these speakers.
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:
LibreELEC:~ # pactl info
Server String: /var/run/pulse/native
Library Protocol Version: 30
Server Protocol Version: 30
Is Local: yes
Client Index: 2
Tile Size: 65496
User Name: root
Host Name: LibreELEC
Server Name: pulseaudio
Server Version: 8.0
Default Sample Specification: s16le 2ch 44100Hz
Default Channel Map: front-left,front-right
Default Sink: bluez_sink.00_02_3C_4C_08_06
Default Source: bluez_sink.00_02_3C_4C_08_06.monitor
Cookie: d549:317b
Display More
The bluetooth adapter is the 3rd device listed below:
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.