Custom EDID on dual-boot system - black screen on boot

  • Hi,

    I have a dual-boot (Ubuntu + LibreElec 11.0.4) NUC8i5BEK system with Yamaha AV Receiver and Sony Full-HD TV.
    When I boot I have all devices turned off: the NUC turn all on via USB-CEC adapter.
    But i get (randomly) a blank screen; to see LE screen I need to reboot (via Kore).

    So I think I need a custom EDID file to load on boot. I followed the official instructions at https://wiki.libreelec.tv/configuration/edid :

    • find connected device (card0-DP-1)
    • create edid.cpio file
    • save edid.cpio in /flash/

    but then I need to load it via grub, configured in ubuntu partition.

    This is my grub setup:

    Code
    menuentry "LibreELEC edid" {
       search --no-floppy --set=root --fs-uuid e2a66b6d-xxxx-2396c0db69b3
       linux /KERNEL boot=UUID=e2a66b6d-xxxx-2396c0db69b3 disk=UUID=3310112e-xxxx-571af07148af quiet initrd=/edid.cpio drm_kms_helper.edid_firmware=DP-1:edid/edid.bin video=DP-1:D
    }

    but the edid file is not loaded.
    This is the dmesg log:

    Any help?

    Thanks a lot,
    tode

  • Thanks mglae ,

    in attach my complete dmesg and the edid.cpio I put in "/flash/" dir.

    I also have the "edid.bin" file in "/storage/.config/firmware/edid/edid.bin": I think this is the one found at time 14.104286 in dmesg.

    Code
    # find / | grep edid.bin
    /run/kernel-overlays/firmware/edid/edid.bin
    /storage/cpio/lib/firmware/edid/edid.bin
    /storage/.config/firmware/edid/edid.bin

    The problem I have is occurring randomly: this boot I didn't have the black screen.

    Thanks for help,
    tode

  • Please provide a full debug log.

    How to post a log (wiki)

    1. Enable debugging in Settings>System Settings>Logging
    2. Restart Kodi
    3. Replicate the problem
    4. Generate a log URL (do not post/upload logs to the forum)

    use "Settings > LibreELEC > System > Paste system logs" or run "pastekodi" over SSH, then post the URL link
  • I think is correct now :)

    grub:

    Code
    menuentry "LibreELEC edid" {
       search --no-floppy --set=root --fs-uuid e2a66b6d-8b16-44a0-b051-2396c0db69b3
       linux /KERNEL boot=UUID=e2a66b6d-8b16-44a0-b051-2396c0db69b3 disk=UUID=3310112e-be99-4319-81ac-571af07148af quiet drm.edid_firmware=DP-1:edid/edid.bin video=DP-1:D
       initrd /edid.cpio 
    }

    dmesg:

    Code
    # dmesg | grep edid
    [    0.000000] Command line: BOOT_IMAGE=/KERNEL boot=UUID=e2a66b6d-8b16-44a0-b051-2396c0db69b3 disk=UUID=3310112e-be99-4319-81ac-571af07148af quiet drm.edid_firmware=DP-1:edid/edid.bin video=DP-1:D
    [    0.044354] Kernel command line: root=/dev/ram0 rdinit=/init usbcore.autosuspend=-1 BOOT_IMAGE=/KERNEL boot=UUID=e2a66b6d-8b16-44a0-b051-2396c0db69b3 disk=UUID=3310112e-be99-4319-81ac-571af07148af quiet drm.edid_firmware=DP-1:edid/edid.bin video=DP-1:D
    [    0.635263] [drm] Got external EDID base block and 1 extension from "edid/edid.bin" for connector "DP-1"
    [    0.843937] [drm] Got external EDID base block and 1 extension from "edid/edid.bin" for connector "DP-1"
    [    0.891825] [drm] Got external EDID base block and 1 extension from "edid/edid.bin" for connector "DP-1"
    [    7.939040] [drm] Got external EDID base block and 1 extension from "edid/edid.bin" for connector "DP-1"

    Thank you mglae ,
    I'm going to test it in few days and i'll give feedback,
    tode

  • After a week I can say the problem of the black screen at boot is gone.
    Thanks again for the support.

    But now I have another problem... 8o
    Sometimes I get a readable screen but at a wrong resolution (see attachment).

    It's not a big problem, can be fixed with a reboot.
    I think is not related to EDID; can be fixed with an additional grub parameter?

    tode

  • OK,

    I finally managed to see the low resolution screen with the logs enabled.

    The log is https://paste.libreelec.tv/rational-crane.log

    This is the xrandr output:

    The problem happens randomly, when I start Kodi with AV Receiver and TV off,
    thanks for help,
    tode

  • The problem happens randomly, when I start Kodi with AV Receiver and TV off,

    So you don't have picture when you switch the TV on.

    From LE side it seems to be connected:

    Code
    Connector 0 (95) DP-1 (connected)
      Encoder 0 (94) TMDS
        Crtc 0 (51) [email protected] 65.000 1024/24/136/160/- 768/3/6/29/- 60 (60.00)  
          Plane 0 (31) fb-id: 121 (crtcs: 0) 0,0 1024x768 -> 0,0 1024x768 (C8   RG16 XR24 XB24 AR24 AB24 XR30 XB30 XR4H XB4H YUYV YVYU UYVY VYUY NV12 XYUV)
            FB 121 1024x768 XR24

    Maybe your TV doesn't switch to the DisplayPort signal. Can you test with a computer monitor?

  • I seem to have the same issue, if I power my Pi4 with my AV amp off, I just get the Librelec name and version at the top left hand corner, I can connect via SAMBA so Kodi is running, if I reboot with AV amp & TV on it boots as per normal.

  • I seem to have the same issue, if I power my Pi4 with my AV amp off, I just get the Librelec name and version at the top left hand corner, I can connect via SAMBA so Kodi is running, if I reboot with AV amp & TV on it boots as per normal.

    Hi, try this: Power-up all connected to the HDMI cable (AV amp. TV - to be all devices ready when the LE starting), then power-up the RPi. If all working, connect to SSH run "getedid create" command. This will dump the EDID data and will use it at the boot (instead to search for a display).