newest rpi-kodi-update breaks other audio applications

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

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

Postby foobar » Sun Feb 28, 2021 10:43 am

I've now modified my config.txt according previous pacman instructions.

$this->bbcode_second_pass_code('', '
/boot/kodi.config.txt :
dtoverlay=vc4-kms-v3d,cma-512
dtoverlay=rpivid-v4l2
disable_overscan=1
disable_fw_kms_setup=1

/boot/config.txt:
initramfs initramfs-linux.img followkernel
[all]
include kodi.config.txt
#gpu_mem=320
#hdmi_enable_4kp60=1
#hdmi_edid_file=1
#hdmi_drive=2
#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
#dtparam=spi=on
')

Before kodi starts it's spewing out the vc4-hdmi lines as described in the https://archlinuxarm.org/forum/viewtopic.php?f=15&t=15162#p65979 thread.
No sound!
Kodi > Settings > System > Audio > Audio input device is greyed out and empty.

So I tried uncommenting dtparam=audio=on.

$this->bbcode_second_pass_code('', '
/boot/config.txt:
initramfs initramfs-linux.img followkernel
[all]
include kodi.config.txt
#gpu_mem=320
#hdmi_enable_4kp60=1
#hdmi_edid_file=1
#hdmi_drive=2
#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
#dtparam=spi=on
')

Now I have on kodi Settings > System > Audio > Audio output device:
bcm2835 Headphones (default)
But hdmi output is missing!
I also tried uncommenting hdmi_drive=2 but same result.

So next I removed my /home/user/.kodi folder and created a new (empty) .kodi folder and rebooted.
Now kodi starts with a completely fresh profile, no addons, no media, nothing as expected.
But there is still only headphones, no hdmi output selectable!

So I'm out of options, there seems to be no hdmi output on kodi 19 when you follow the pacman instructions after updating from previous kodi 18.9. I hope graysky can shine a light on this.
foobar
 
Posts: 37
Joined: Wed Oct 21, 2020 12:33 pm

Postby foobar » Sun Feb 28, 2021 11:47 am

Just remembered playing with kms and fkms settings in kodi.config.txt earlier WITHOUT the dtparam=audio=on setting so I tried again changing first line in kodi.config.txt to fkms. And there we go:

Kodi Settings > System > Audio > Audio output device:
bcm2835 HDMI 1 (default)
bcm2835 Headphones

Still no sound over hdmi but uncommenting hdmi_drive=2 in config.txt fixes that.

So with these settings I have sound over hdmi (including the hdmi audio extractor):

$this->bbcode_second_pass_code('', '
/boot/kodi.config.txt:
dtoverlay=vc4-fkms-v3d,cma-512
dtoverlay=rpivid-v4l2
disable_overscan=1
disable_fw_kms_setup=1

/boot/config.txt:
initramfs initramfs-linux.img followkernel
[all]
include kodi.config.txt
#gpu_mem=320
#hdmi_enable_4kp60=1
#hdmi_edid_file=1
hdmi_drive=2
#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
#dtparam=spi=on
')

So to summarize if I upgrade from kodi 18.9 to 19 I have to add dtparam=audio=on to config.txt to get an audio device in kodi but it is only headphones. If I change the first line in kodi.config.txt from kms to fkms I also have hdmi output.

In my setup I still do not have sound over hdmi, therefore I have to add hdmi_drive=2 to force sound over hdmi but this is depending on the hardware (monitor and cabling) used. I needed hdmi_drive=2 on my test setup but not on my original setup (different monitor and cabling).

So I'm curious what graysky's comments will be.
foobar
 
Posts: 37
Joined: Wed Oct 21, 2020 12:33 pm

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

Postby graysky » Sun Feb 28, 2021 12:29 pm

All I can offer is that the packages if configured as stated work on multiple RPi4Bs. No idea what the HDMI extractor might be doing. Or that you're starting kodi from your own script (hint - use provided service).

Did you try with default configs (kms, removing custom stuff from config.txt and kodi-config.txt), with a standard HDMI cable, using the provided service, and with a new kodi profile? My point is to get your system to a "factory" state to verify hardware. Then, add your custom changes one by one to see where it breaks.

EDIT: since you are running as 'user' did you put 'user' in the various groups kodi needs to work? Post the output of $this->bbcode_second_pass_code('', 'id user')
graysky
Developer
 
Posts: 1731
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

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

Postby foobar » Sun Feb 28, 2021 1:07 pm

$this->bbcode_second_pass_code('', 'uid=1000(user) gid=985(users) groups=985(users),998(wheel),986(video)
')
foobar
 
Posts: 37
Joined: Wed Oct 21, 2020 12:33 pm

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

Postby graysky » Sun Feb 28, 2021 2:01 pm

You need to be in at least audio input video... keeping it in wheel is a bad idea security-wise. As I said, run kodi with the included service which uses a restricted user.
graysky
Developer
 
Posts: 1731
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

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

Postby foobar » Sun Feb 28, 2021 2:20 pm

$this->bbcode_second_pass_code('', 'uid=1000(user) gid=985(users) groups=985(users),998(wheel),993(input),986(video),1000(audio)')

but with kms still no hdmi output.

I fully understand your point of view and perhaps I should start from scratch with kodi 19. Anyway without a working tvheadend client and callback service kodi is sort of useless for me, so for now I will sit it out for a while and wait for the dust to settle down. I will pick things up later, starting with a fresh kodi install as per your suggestion. Thanks for your assistance.
foobar
 
Posts: 37
Joined: Wed Oct 21, 2020 12:33 pm

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

Postby graysky » Sun Feb 28, 2021 3:04 pm

No dust to settle... not sure what waiting will accomplish. Try the steps I outlined above.
graysky
Developer
 
Posts: 1731
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

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

Postby foobar » Mon Mar 01, 2021 6:39 am

I meant on the kodi add-ons side. I need tvheadend all callback service add-on but at this moment most add-ons are not compliant with kodi 19 requirements. I will test more as per your suggestion but might take some time.
foobar
 
Posts: 37
Joined: Wed Oct 21, 2020 12:33 pm

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

Postby foobar » Tue Mar 02, 2021 12:32 pm

I'm setting up my RPi4 for kodi again but now I did a complete fresh install using a brand new 32GB SD card.

From https://archlinuxarm.org/platforms/armv8/broadcom/raspberry-pi-4 Installation tab I performed the ARMv7 installation procedure to the letter.

After that I do a little customization:
1) Logged in as root and changed the root pasword.
2) Deleted the alarm user.
3) Added a new user named "user" to users and wheel group and created a password.
4) Set hostname, locale and timezone.
5) Edited network configuration for fixed ip address (all fixed ip addresses on my home netwrok, no dhcp).
6) Full system upgrade (pacman -Syu).
7) Install sudo and added user to sudoers file (.. user ALL=(ALL) ALL ..).
8) Rebooted and logged as user.
9) Locked root account.

So now I run as a restricted user with elevated priviliges (sudo).

Now I install kodi:
$this->bbcode_second_pass_code('', '
sudo pacman -S kodi-rpi
..
(104/104) installing kodi-rpi [######################] 100%
-> Remove any tweaks made to /boot/config.txt now!
-> This includes lines such as gpu_mem=...
-> Add the following to /boot/config.txt or else kodi will not work.
[all]
include kodi.config.txt
..
')

And here are the (modified) config settings:
$this->bbcode_second_pass_code('', '
/boot/config.txt:
initramfs initramfs-linux.img followkernel
[all]
include kodi.config.txt
/boot/kodi.config.txt:
dtoverlay=vc4-kms-v3d,cma-512
dtoverlay=rpivid-v4l2
disable_overscan=1
disable_fw_kms_setup=1
')

I rebooted, logged in as user and start kodi:
$this->bbcode_second_pass_code('', '
sudo systemctl start kodi.service
')

Kodi starts but alas same problem, no audio device under Settings > System > Audio.

Only my test monitor is connected to hdmi0.

I have used this installation procedure with my customization for years starting on RPi2 with kodi and never ran into problems. Until now that is with the latest kodi 19 package.
foobar
 
Posts: 37
Joined: Wed Oct 21, 2020 12:33 pm

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

Postby graysky » Tue Mar 02, 2021 12:53 pm

Standard hdmi cable or that extractor?
graysky
Developer
 
Posts: 1731
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

PreviousNext

Return to ARMv8

Who is online

Users browsing this forum: No registered users and 7 guests