There is one more thing I am struggling with and trying to achieve, but not releated to hifiberry.
I am trying to setup everything in the following way:
HDMI0 - JVC 4K projector
HDMI1 - Sony AVR - FullHD TV
I am not going to use both dispays in the same time but either one. On projector I would like to have max viddeo resolution without audio. On HDMI 1 where is that sony headphones AVR I need audio and vide which will be passed to old fullhd tv. The goal is to have audion on sony hedphones while using projector. At the moment audio works as expected but when projector is off I have black screen on TV (I can see the libreelac loading logo but thats it). When projector is on then it is also fine and I have what I need.
I want the GUI to automatically switch to TV (1080p) when projector is off and back to projector when it’s on and tv off, wothout reboot. Eventualy I can keep both screens on. EDID for both devices is loaded.
# HDMI0
hdmi_force_hotplug:0=1
hdmi_enable_4kp60=1
# HDMI1
hdmi_force_hotplug:1=1
hdmi_group:1=1
hdmi_mode:1=16
hdmi_drive:1=2
audio_pwm_mode=2
hdmi_ignore_cec:1=1
hdmi_ignore_cec_init=1
[all]
################################################################################
# Use distroconfig-composite.txt instead of distroconfig.txt to enable
# composite video output.
# The composite video mode needs to be configured in cmdline.txt:
# For PAL add: video=Composite-1:720x576@50ie
# For NTSC add: video=Composite-1:720x480@60ie
################################################################################
include distroconfig.txt
# uncomment to enable infrared remote receiver connected to GPIO 18
#dtoverlay=gpio-ir,gpio_pin=18
# digi
dtoverlay=hifiberry-digi
drm.edid_firmware=HDMI-A-1:edid/jvc.bin,HDMI-A-2:edid/sony.bin
initramfs edid.cpio 0x3c00000
disable_overscan=1
hdmi_force_hotplug=1
# Fallback on HDMI1 when HDMI0 off
vc4-kms-v3d.max_interfaces=2
dtoverlay=vc4-kms-v3d,cma-512
hdmi_force_hotplug:1=1