[kodi-rpi] Broken audio with pipewire

Problems with packages? Post here, using [tags] of the package name.

[kodi-rpi] Broken audio with pipewire

Postby neo1973 » Sat Feb 04, 2023 3:44 pm

kodi-rpi 20.0-2 pulled in pipewire as a dependency and pipewire is automatically started as a user service. This broke audio in kodi on a Raspberry Pi 3B for me. I could resolve this by replacing /etc/systemd/user/sockets.target.wants/pipewire.socket with a symlink to /dev/null.

I just wanted to document this here in case someone else has the same issue :)
neo1973
 
Posts: 7
Joined: Sun May 09, 2021 3:06 pm

Re: [kodi-rpi] Broken audio with pipewire

Postby graysky » Sat Feb 04, 2023 4:05 pm

There is an open bug, FS#77341 reporting this affecting the Arch Linux package on which our packages are based as well. Would you please try a test?

1. remove your symlink and restore the default socket
2. Add following to /etc/conf.d/kodi-standalone
$this->bbcode_second_pass_code('', '
KODI_AE_SINK=ALSA
')
3. restart kodi.service

Does that recover it?
graysky
Developer
 
Posts: 1728
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: [kodi-rpi] Broken audio with pipewire

Postby neo1973 » Sat Feb 04, 2023 4:17 pm

Yes, that also works!
neo1973
 
Posts: 7
Joined: Sun May 09, 2021 3:06 pm

Re: [kodi-rpi] Broken audio with pipewire

Postby mcarni » Wed Feb 15, 2023 9:30 am

@graysky, @neo1973,

I am trying to upgrade kodi but after 20.0-1 i get broken audio and after few seconds video stops playing (i guess due to high cpu usage)

I modified the /etc/conf.d/kodi-standalone adding KODI_AE_SINK=ALSA as indicated here, but still no luck

is there anything else that needs to be changed or installed to be able to upgrade?

Any help would be highly appreciated

thanks
M

attached my log: https://paste.kodi.tv/avuvuvedoq.kodi



PS. not sure if it makes any difference, I am launching kodi with a systemd user service:
$this->bbcode_second_pass_code('', '[Unit]
Description=Kodi

[Service]
ExecStart=/usr/bin/kodi-standalone
#ExecStopPost=/usr/bin/systemctl --user start steamlink.service

[Install]
WantedBy=default.target')
mcarni
 
Posts: 19
Joined: Fri Jul 23, 2021 9:54 am

Re: [kodi-rpi] Broken audio with pipewire

Postby graysky » Wed Feb 15, 2023 6:36 pm

What is you use the default kodi.service provided by the pkg?
graysky
Developer
 
Posts: 1728
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: [kodi-rpi] Broken audio with pipewire

Postby unformatted » Thu Feb 16, 2023 8:14 am

As described in the bug report you can also disable the pipewire service.
unformatted
 
Posts: 119
Joined: Tue Mar 09, 2021 5:23 pm

Re: [kodi-rpi] Broken audio with pipewire

Postby mcarni » Thu Feb 16, 2023 8:33 am

$this->bbcode_second_pass_quote('graysky', 'W')hat is you use the default kodi.service provided by the pkg?


feeling a bit embarassed here... good question @graysky but the answer is that silly me didn't know it was possible
in hindsight this answers also some of the issues i had with permissions and groups I had to grant to the alarm user..
thanks for bringing this to me and sorry for the useless noise...

anyway, back on topic, i can confirm that latest kodi with KODI_AE_SINK=ALSA in /etc/conf.d/kodi-standalone works

now i have a new task: migrate my library from /home/alarm/ to var/lib/kodi
if you have any recommendation on the smart way to do it... feel free to suggest

thanks
M
mcarni
 
Posts: 19
Joined: Fri Jul 23, 2021 9:54 am

Re: [kodi-rpi] Broken audio with pipewire

Postby graysky » Fri Feb 17, 2023 11:14 am

Stop kodi.service than as root:
$this->bbcode_second_pass_code('', 'mv /var/lib/kodi/ /var/lib/kodi-old
mkdir /var/lib/kodi
cp -a /home/alarm/.kodi /var/lib/kodi
chown kodi:kodi -R /var/lib/kodi
')
graysky
Developer
 
Posts: 1728
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: [kodi-rpi] Broken audio with pipewire

Postby mcarni » Fri Feb 17, 2023 6:44 pm

$this->bbcode_second_pass_quote('graysky', 'S')top kodi.service than as root:
$this->bbcode_second_pass_code('', 'mv /var/lib/kodi/ /var/lib/kodi-old
mkdir /var/lib/kodi
cp -a /home/alarm/.kodi /var/lib/kodi
chown kodi:kodi -R /var/lib/kodi
')


thanks... all working fine... much appreciated

M
mcarni
 
Posts: 19
Joined: Fri Jul 23, 2021 9:54 am


Return to Packages

Who is online

Users browsing this forum: No registered users and 4 guests