Posts by fmafma

    Ok, I found the solution!


    First, drm_kms_helper.edid_firmware becomes drm.edid_firmware.


    Second, the syntax of the video param is now video=HDMI-A-1:[email protected] instead of video=HDMI-A-1:[email protected]:D. No more : before D. Grrr!


    Then, I had to generate 2 edid.bin files, one for the monitor, one for the projector. When using the monitor edid.bin file for the projector, the projector timings where wrong (it worked fine previously). So, the entire solution is:


    # mkdir -p /storage/.config/firmware/edid

    # cat /sys/class/drm/card0-HDMI-A-1/edid > /storage/.config/firmware/edid/projo_edid.bin

    # cat /sys/class/drm/card0-HDMI-A-2/edid > /storage/.config/firmware/edid/monitor_edid.bin

    # cd ~

    # mkdir -p cpio/lib/firmware/edid

    # cp .config/firmware/edid/* cpio/lib/firmware/edid/

    # cd cpio/

    # find . -print | cpio -ov -H newc > ../edid.cpio

    # mount -o remount,rw /flash

    # mv ../edid.cpio /flash/

    # nano /flash/extlinux.conf


    on the kernel command line, add:


    initrd=/edid.cpio drm.edid_firmware=HDMI-A-1:edid/projo_edid.bin,HDMI-A-2:edid/monitor_edid.bin video=HDMI-A-1:[email protected] video=HDMI-A-2:[email protected]


    And finally:


    # cd /lib/firmware/edid/

    # ln -s /storage/.config/firmware/edid/monitor_edid.bin monitor_edid.bin

    # ln -s /storage/.config/firmware/edid/projo_edid.bin projo_edid.bin

    # reboot


    Hope this helps!

    Sorry for digging this old thread...


    I just upgraded my kodi install to Leia (9.0.1), and the above hack does not work anymore :o(


    I only get the image on the monitor, nothing on the projector. And the monitor uses resolution 1440x900 instead of 1280x720, as asked in kernel command line.


    Old files where still there after upgrade, but I re-did the entire procedure, without success.


    Any idea what has changed? It seems that the kernel does not take into account the additional params. Is there another way to do that, now?


    Thanks,

    Ok, so I dug deeper on the hardware... and found the problem!


    In fact, there where 2 issues : the hdmi input I was using on the amplifier does not work well anymore, *and* the HDMI cable was also faulty :o( So, my initial tests with this cable didn't show that only 1 HDMI input was buggy.


    Very strange all this occurred after a shutdown. But, well, it did!


    Again, thanks for your help!

    I run kodi on a Intel Nuc.

    The audio output is configured so kodi decodes audio streams and output 4.1 channels, through the HDMI output. All was working fine until last week. I shutdown everything before I left, and when I returned and restarted everything, no audio at all.

    I checked to see if it was an amplifier problem, but, no, it was kodi not sending anything. I upgraded LibreElec (8.2.4 -> 8.2.5), and after reboot, audio worked again. I though a param was lost during the shutdown or so...

    But last night, I tried to play a multi-channel movie (DTS): no sound! If I configure the output to limit to 2 channels, it works. But as soon as I have more than 2 channels, nothing. I tried to re-enable the audio passthru: same, no audio when playing the movie (I see the PCM label blinking on the amplifier, saying there is a stream missing or problem). But all works fine on music, or with UI sounds (2 channels only). I tried to change a lot of params, without any success.

    Any idea what happens? Software? Hardware? I'm puzzled...

    Thanks,


    Frédéric

    Ok, I finally made it work!


    I followed what is written here:


    custom_edid [LibreELEC]


    In my case, I used the monitor edid datas, but projector datas would have been ok too, as the common resolution I want to use (1280x720) has exactly the same values for both. It is just that the projector was off when I did it.


    But I changed the additional parameters given to the kernel. I used:


    Code
    1.   initrd=/edid.cpio drm_kms_helper.edid_firmware=edid/edid.bin video=HDMI-A-1:1280x720D video=HDMI-A-2:1280x720D


    First, for drm_kms_helper.edid_firmware, I didn't give the output, so it applies to all.


    Then, you can see that the video param can occurs several times. It is there possible to force the resolution (and other stuff), and the final D is to force the output even if there is no monitor/projector connected (or switched on).


    And all works great :)


    BTW, it is possible that using a single video= param, without the output name, also works; I let you check if needed, I'm tired to edit/reboot/edit/reboot (I may have done it 65 times!).


    Sources that helped me:


    custom_edid [LibreELEC]

    Kernel mode setting - ArchWiki

    Kernel Mode Setting (KMS) is great, but may not work as expected: OSADL - Open Source Automation Development Lab eG

    Hi!


    I use LibreElec/Kodi on a Intel NUC, which has 2 hdmi outputs.


    The first HDMI output is connected to my HT amplifier, to decode audio, and the output of the amplifier is connected to a monitor (resolution 1440x900).


    The second HDMI output is connected to a projector (resolution 1280x720).


    I have issues when I boot Kodi with or without projector/monitor on: resolution are not always correct.


    Is there a way to force resolutions on each output, to match the screen/projector, even if I switch them on after booting Kodi?


    Thanks,


    Frédéric