newest rpi-kodi-update breaks other audio applications

This forum is for topics dealing with problems with software specifically in the AArch64 repo.

newest rpi-kodi-update breaks other audio applications

Postby hp4 » Wed Feb 24, 2021 12:16 pm

Hi,
yesterday I've performed a system update on my RPI4 and eventually pacman recommended a change in /boot/config.txt by including a kodi-include-file with several configuration statements.

My RPI4 is running as music-player-client in a snapcast-environment (partly headless: no display, but with a HDMI-extractor for audio signals). The update yesterday completely broke the audio functionality due to the overlay change: before the update I used "vc4-fkms-v3d", but now the kodi-update includes

dtoverlay=vc4-kms-v3d,cma-512
dtoverlay=rpivid-v4l2

Now I am not able to get sound out of my RPI4:

- all the audio-device names changed -> so all applications are misconfigured now: annoying, but I'm able to fix that
- /opt/vc/bin/tvservice cannot find devices although "hdmi_force_hotplug=1" is set.

$this->bbcode_second_pass_code('', '/opt/vc/bin/tvservice -l
0 attached device(s), display ID's are :')

The previous overlay vc4-fkms-v3d was able to find a display

$this->bbcode_second_pass_code('', '/opt/vc/bin/tvservice -l
1 attached device(s), display ID's are :
Display Number 2, type HDMI 0')

So HDMI seems to be dead or in some power-off-mode and can't be powered on:

$this->bbcode_second_pass_code('', '/opt/vc/bin/tvservice -p
Powering on HDMI with preferred settings
[E] Failed to power on HDMI with preferred settings')


Any help to configure this overlay and HDMI correctly would be appreciated. Or is the only solution to uninstall kodi and return to the fkms-overlay??
hp4
 
Posts: 45
Joined: Thu May 30, 2013 12:09 pm

Re: newest rpi-kodi-update breaks other audio applications

Postby graysky » Wed Feb 24, 2021 12:51 pm

You might want to ask on the kodi forums. There are differences in fkms/kms with respect to CEC for example. kms is not a hard requirement, go ahead and edit /boot/kodi-config.txt as you like to use fkms but CEC will break.
graysky
Developer
 
Posts: 1728
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: newest rpi-kodi-update breaks other audio applications

Postby foobar » Wed Feb 24, 2021 5:04 pm

I don't use CEC but with the latest kodi-rpi update (kodi-rpi-19.0-3, including the kodi.config and commenting out all customizations in my config.txt) when I go to System > Audio using my remote it takes a couple of seconds for the GUI to react and the Audio output device is dimmed and has no value. I expected to see hdmi here. I cannot select any audio output. I also used vc4-fkms-v3d before the update. I have video but no sound. I'm on armv7h.
foobar
 
Posts: 37
Joined: Wed Oct 21, 2020 12:33 pm

Re: newest rpi-kodi-update breaks other audio applications

Postby graysky » Wed Feb 24, 2021 5:55 pm

What if you switch the kms line to fkms and reboot?
graysky
Developer
 
Posts: 1728
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: newest rpi-kodi-update breaks other audio applications

Postby foobar » Wed Feb 24, 2021 6:06 pm

$this->bbcode_second_pass_code('', 'dtoverlay=vc4-kms-v3d,cma-512
dtoverlay=rpivid-v4l2
disable_overscan=1
disable_fw_kms_setup=1
')

both 1st and 4th line?
foobar
 
Posts: 37
Joined: Wed Oct 21, 2020 12:33 pm

Re: newest rpi-kodi-update breaks other audio applications

Postby graysky » Wed Feb 24, 2021 7:28 pm

I can find no reference for the 4th line in /boot/overlays/README so just the first. The 4th line is taken from LibreLE's config: https://github.com/LibreELEC/LibreELEC. ... b07c13704e
graysky
Developer
 
Posts: 1728
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: newest rpi-kodi-update breaks other audio applications

Postby foobar » Thu Feb 25, 2021 7:33 am

Ok now I'm really puzzled, are you saying that this last line from kodi.config.txt comes from LibreElec? I is supposed to be in kodi.config.txt or not? Anyway I changed as you asked but also saw other effects so here's my result:


$this->bbcode_second_pass_code('', '
dtoverlay=vc4-kms-v3d,cma-512
dtoverlay=rpivid-v4l2
disable_overscan=1
disable_fw_kms_setup=1
')
spawning of lines before kodi starts up as described in previous "Kodi-rpi-19.0-3 update" post of which you say is normal,
no device in System > Audio.


$this->bbcode_second_pass_code('', '
dtoverlay=vc4-fkms-v3d,cma-512
dtoverlay=rpivid-v4l2
disable_overscan=1
disable_fw_kms_setup=1
')
no more spawning of lines,
no device in System > Audio.


$this->bbcode_second_pass_code('', '
dtoverlay=vc4-kms-v3d,cma-512
dtoverlay=rpivid-v4l2
disable_overscan=1
disable_fw_fkms_setup=1
')
spawning of lines,
no device in System > Audio.


$this->bbcode_second_pass_code('', '
dtoverlay=vc4-fkms-v3d,cma-512
dtoverlay=rpivid-v4l2
disable_overscan=1
disable_fw_fkms_setup=1
')
no more spawning of lines,
no device in System > Audio.
foobar
 
Posts: 37
Joined: Wed Oct 21, 2020 12:33 pm

Re: newest rpi-kodi-update breaks other audio applications

Postby foobar » Thu Feb 25, 2021 10:30 am

I can now also confirm that with both kms or fkms used as described above that there is another problem with playing movies. If I start a movie and press "ok" I get the info overlay which is good. But then when I press "esc" the overlay dissappears but then the movie starts continuing very slowly, almost frame by frame!
foobar
 
Posts: 37
Joined: Wed Oct 21, 2020 12:33 pm

Re: newest rpi-kodi-update breaks other audio applications

Postby graysky » Thu Feb 25, 2021 10:31 am

Post /boot/config.txt
graysky
Developer
 
Posts: 1728
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: newest rpi-kodi-update breaks other audio applications

Postby foobar » Thu Feb 25, 2021 11:15 am

$this->bbcode_second_pass_code('', '
# See /boot/overlays/README for all available options

[all]
include kodi.config.txt

#gpu_mem=320
#initramfs initramfs-linux.img followkernel
#temp_limit=70

#hdmi_enable_4kp60=1
#hdmi_edid_file=1
#hdmi_group=2
#hdmi_mode=87
#hdmi_cvt 1920 1080 60 3 0 0 1
#max_framebuffer_width=1920
#max_framebuffer_height=1080

#dtoverlay=vc4-fkms-v3d
#dtparam=audio=on
#audio_pwm_mode=2
#dtparam=spi=on
#dtoverlay=disable-wifi
#dtoverlay=disable-bt

')
foobar
 
Posts: 37
Joined: Wed Oct 21, 2020 12:33 pm

Next

Return to ARMv8

Who is online

Users browsing this forum: No registered users and 2 guests

cron