Kodi Community Forum
Issues controlling audio from kodi on Fedora 40 - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52)
+---- Thread: Issues controlling audio from kodi on Fedora 40 (/showthread.php?tid=377831)



Issues controlling audio from kodi on Fedora 40 - kylian0087 - 2024-06-05

I'm having several issues with Kodi running on Linux. I'm setting up a media center PC using Fedora 40 as the base (I cannot use LibreELEC for my use case).

Initially, the audio was very quiet in Kodi, although it worked fine on the XFCE desktop. I noticed that I had only two audio output devices to choose from in Kodi, neither of which made any difference. However, on the XFCE desktop, I see a variety of audio profiles ranging from HDMI surround 2.0 to HDMI surround 9.0. Additionally, there is an "Audio Pro" profile I can select on the XFCE desktop. After selecting this profile, I see more options in Kodi for different surround channels from the "Audio Pro" profile. However, selecting any of these profiles in Kodi does not actually change anything. I can see on my Arcam what audio signal it is receiving. For example, if I close Kodi, open Firefox, and play a song on YouTube, I can see the audio channels change and work fine. But when I'm in Kodi, the audio stays at whatever was last used on the XFCE desktop, no matter what audio output is selected under the audio settings in Kodi.

It seems like the Linux desktop still fully controls the audio output, and anything in Kodi is completely ignored.

Does anyone have any suggestions or solutions for this issue?

Thank you.


RE: Issues controlling audio from kodi on Fedora 40 - kylian0087 - 2024-06-06

i managed to get it working with a workaround. I automatically launch kodi with a auto login config for sddm.
i edited this file: /usr/share/wayland-sessions/kodi-gbm.desktop
I added this to the exec row: --audio-backend=pipewire

Now I can controll the audio from within kodi although it is not perfect yet. If i say change the audio to 2 channels I can see that the actually output of the HDMI is still 7.1. if i set it to 2 channels in kodi it does only send over 2 channels of the  7.1 channels it outputs.
Also the option for Audio passtrough is still missing even when I have selected the expert settings.


RE: Issues controlling audio from kodi on Fedora 40 - Neo1973 - 2024-06-06

(2024-06-06, 07:52)kylian0087 Wrote: Also the option for Audio passtrough is still missing even when I have selected the expert settings.

You have to configure PipeWire for passthrough, see https://forum.kodi.tv/showthread.php?tid=374663&pid=3192930#pid3192930 for an example.


RE: Issues controlling audio from kodi on Fedora 40 - kylian0087 - 2024-06-07

(2024-06-06, 21:09)Neo1973 Wrote:
(2024-06-06, 07:52)kylian0087 Wrote: Also the option for Audio passtrough is still missing even when I have selected the expert settings.

You have to configure PipeWire for passthrough, see https://forum.kodi.tv/showthread.php?tid=374663&pid=3192930#pid3192930 for an example.
Thanks for the link but if i got this right this is for alsa and not for pipewire? Or shut I just copy that config place it under  ~/.config/wireplumber/wireplumber.conf.d/51-alsa.conf and expect it to now work even when i have set --audio-backend=pipewire?


RE: Issues controlling audio from kodi on Fedora 40 - Neo1973 - 2024-06-07

It's for PipeWire, WirePlumber is the PipeWire session manager. Because ALSA is the interface to the kernel used by PipeWire (and also PulseAudio) there is some ALSA related configuration as well. See https://pipewire.pages.freedesktop.org/wireplumber/daemon/configuration/alsa.html

Note that you probably can't simply copy the configuration, most likely you have to adjust the node.name to match your hardware. In my specific case it's this:

.config/wireplumber/wireplumber.conf.d/passthrough-hdmi.conf:

monitor.alsa.rules = [
{
  matches = [
    {
      node.name = "alsa_output.pci-0000_05_00.1.hdmi-surround-extra1"
    }
  ]
  actions = {
    update-props = {
      iec958.codecs = [ "PCM", "DTS", "AC3", "EAC3", "TrueHD", "DTS-HD" ]
    }
  }
}
]

Also the filename doesn't matter, I have chosen something different.


RE: Issues controlling audio from kodi on Fedora 40 - kylian0087 - 2024-06-09

Oke i have added the corect node.name. In my case this wold be
Quote:monitor.alsa.rules = [
{
  matches = [
    {
      node.name = "alsa_output.pci-0000_00_1f.3.hdmi-surround"
    }
  ]
  actions = {
    update-props = {
      iec958.codecs = [ "PCM", "DTS", "AC3", "EAC3", "TrueHD", "DTS-HD" ]
    }
  }
}
]
Still the option for audio passtrough does not show up under settings. And setting audio passtrough to enable on the movie it self results on no audio passtrough.


RE: Issues controlling audio from kodi on Fedora 40 - Neo1973 - 2024-06-09

Please create a debug log following these instructions, maybe I can tell what's going wrong: https://kodi.wiki/view/Log_file


RE: Issues controlling audio from kodi on Fedora 40 - kylian0087 - 2024-06-19

Sorry for the late response. live was holding me up. i got it working in the end. I hat 2 config files one which was broken. Removed the broken one and passtrough is now working as it shut.