Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pipewire: enable for all images, but dont start if alsa or pulse in on #8751

Closed
wants to merge 1 commit into from

Conversation

sky42src
Copy link
Contributor

@sky42src sky42src commented Mar 22, 2024

This makes it possible to use pipewire without compiling a extra image. The pipewire and wireplumber services are disabled it any of alsa or pulseaudio is enabled.
If pipewire is the only enabled kodi audio backend services are enabled.

To use pipewire/wireplumber:

systemctl mask pulseaudio.service
systemctl enable pipewire.socket pipewire.service wireplumber.service
sed -i '/^KODI_AUDIO_ARGS=/d' /storage/.config/kodi.conf
echo "KODI_AUDIO_ARGS=\"--audio-backend=pipewire\"" >>/storage/.config/kodi.conf
reboot

And back to alsa+pulseaudio

systemctl disable pipewire.socket pipewire.service wireplumber.service
systemctl unmask pulseaudio.service
sed -i '/^KODI_AUDIO_ARGS=/d' /storage/.config/kodi.conf
reboot

I build it for Generic / RPI and tested on Generic. For testing without building it you can use my community 12b1 builds, where this PR is already included.

This makes it possible to use pipewire without compiling a extra image.
The pipewire and wireplumber services are disabled it any of alsa
or pulseaudio is enabled.
If pipewire is the only enabled kodi audio backend services are enabled.
To use pipewire/wireplumber:
- systemctl mask pulseaudio.service
- systemctl enable pipewire.socket pipewire.service wireplumber.service
- sed -i '/^KODI_AUDIO_ARGS=/d' /storage/.config/kodi.conf
- echo "KODI_AUDIO_ARGS=\"--audio-backend=pipewire\"" >>/storage/.config/kodi.conf
- reboot
And back to alsa+pulseaudio
- systemctl disable pipewire.socket pipewire.service wireplumber.service
- systemctl unmask pulseaudio.service
- sed -i '/^KODI_AUDIO_ARGS=/d' /storage/.config/kodi.conf
- reboot
@sky42src sky42src closed this Oct 30, 2024
@sky42src sky42src deleted the le12_pw_support branch October 30, 2024 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant