I have created a script that automatically connects me to a bluetooth sound tower when Kodi has started and the add-on is ready to put the correct output audio.
However, I would like to be able to modify the volume of the sound tower as well, which as I have read by the bluetooth specifications should be possible.
I tried:
dbus-send --system --print-reply --dest = org.bluez / org / bluez / hci0 / dev_XX_XX_XX_XX_XX_XX / fd0 org.bluez.Control.VolumeUp
dbus-send --system --print-reply --dest = org.bluez / org / bluez / hci0 / dev_XX_XX_XX_XX_XX_XX org.bluez.Control.VolumeUp
dbus-send --system --print-reply --dest = org.bluez / org / bluez / hci0 / dev_XX_XX_XX_XX_XX_XX org.bluez.MediaControl1.VolumeUp
And a lot of other unsuccessful combinations.
I have checked with this command:
dbus-send --system --print-reply --dest = org.bluez / org.freedesktop.DBus.ObjectManager.GetManagedObjects
That the "Volume" tag does not appear where it should appear.
This is the output:
dict entry(
object path "/org/bluez/hci0/dev_XX_XX_XX_XX_XX_XX/fd0"
array[
dict entry(
string "org.freedesktop.DBus.Introspectable"
array[
])
dict entry(
string "org.bluez.MediaTransport1"
array[
dict entry(
string "Device"
variant object path "/org/bluez/hci0/dev_XX_XX_XX_XX_XX_XX")
dict entry(
string "UUID"
variant string "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")
dict entry(
string "Codec"
variant byte 0)
dict entry(
string "Configuration"
variant array of bytes[
21 15 02 30
])
dict entry(
string "State"
variant string "active")
])
dict entry(
string "org.freedesktop.DBus.Properties"
array[
])
])
Display More
I tried changing the volume in the tower (which causally had the value 15) to see if the Configuration array worked, but no, that value always contained 15, it was not the volume in principle.
And I have investigated and it looks like a pulseaudio bug that has recently been fixed:
bluetooth: Unify A2DP sink/source volumes with AVRCP Absolute Volume
And after all this, two questions:
- Do you know an alternative to change the volume of the connected bluetooth device and compatible with pulseaudio 12.2?
- Can I upgrade the pulseaudio version in Librelec 9.2.6 without recompiling and building everything? And if not, if it is updated, do you know if something will break ?
Thank you.