2024-04-23, 13:29
If you wanna switch from your kodi 20 PPA installation to the kodi 21 Flatpak version just move everything from ~/.kodi to .var/app/tv.kodi.Kodi/data/ thats it....
<setting id="audiooutput.audiodevice">PIPEWIRE:alsa_output.pci-0000_00_14.2.iec958-stereo.2|Audio interne Stéréo numérique (IEC958)</setting>
<setting id="audiooutput.channels">8</setting>
<setting id="audiooutput.config">3</setting>
<setting id="audiooutput.passthrough">true</setting>
<setting id="audiooutput.passthroughdevice">PIPEWIRE:alsa_output.pci-0000_00_14.2.iec958-stereo.2|Audio interne Stéréo numérique (IEC958)</setting>
<setting id="audiooutput.audiodevice">PULSE:alsa_output.pci-0000_00_14.2.iec958-stereo|Audio interne Stéréo numérique (IEC958)</setting>
<setting id="audiooutput.channels">8</setting>
<setting id="audiooutput.config">3</setting>
<setting id="audiooutput.passthrough">true</setting>
<setting id="audiooutput.passthroughdevice">PULSE:alsa_output.pci-0000_00_14.2.iec958-stereo|Audio interne Stéréo numérique (IEC958)</setting>
sudo dnf --best --allowerasing install pipewire-pulseaudio
systemctl --user status pulseaudio.socket
systemctl --user status pipewire-pulse.socket
systemctl --user restart pipewire-pulse.socket
systemctl --user status pipewire-pulse.socket
systemctl --user restart pipewire
systemctl --user restart pulseaudio || systemctl --user restart pipewire-pulse
systemctl --user restart wireplumber
pactl info
flatpak run tv.kodi.Kodi --audio-backend=pipewire &
--audio-backend=pipewire
it uses the native interface, with --audio-backend=pulseaudio
it uses pipewire-pulse. Both times the audio goes through PipeWire, the original PulseAudio isn't involved anymore.--audio-backend=pipewire
you technically don't have to have pipewire-pulse running or even installed. But most other software doesn't know how to speak to PipeWire the native way so having pipewire-pulse running is definitely recommended for a general purpose system.
(2024-04-28, 02:05)Neo1973 Wrote: Happy to here that it works for you . Though I want to clear up a misunderstanding regarding pipewire-pulse: There are different ways to send audio data to PipeWire, the two you are confronted with are the native interface and the PulseAudio compatibility layer (pipewire-pulse). Both are available at the same time. When you launch Kodi with--audio-backend=pipewire
it uses the native interface, with--audio-backend=pulseaudio
it uses pipewire-pulse. Both times the audio goes through PipeWire, the original PulseAudio isn't involved anymore.
So when you use Kodi with--audio-backend=pipewire
you technically don't have to have pipewire-pulse running or even installed. But most other software doesn't know how to speak to PipeWire the native way so having pipewire-pulse running is definitely recommended for a general purpose system.
--audio-backend=pulseaudio
ony when pulseaudio was installed and pipewire-pulse wasn't.--audio-backend=pulseaudio
doesn't work anymore as far as SPDIF passthrough is concerned and I don't want to live without it. Misconfiguration issue possibly, but that's the way my system actualy is. Got a startup script to that effect. #!/bin/bash
systemctl --user restart pipewire
sleep 2s
systemctl --user restart pulseaudio
if [ $? -eq 5 ]; then
audio_backend="pipewire"
systemctl --user restart pipewire-pulse
else
audio_backend="pulseaudio"
fi
sleep 2s
systemctl --user restart wireplumber
sleep 2s
# Copy the backup configuration
cp ~/Kodi\ Backups/${audio_backend}/guisettings.xml ~/.var/app/tv.kodi.Kodi/data/userdata/
# Run Kodi with the determined audio backend
flatpak run tv.kodi.Kodi --audio-backend=$audio_backend &