EDID
Last updated
Last updated
To change the order of turning on your devices (normally your HTPC has to be powered on last) or to use your LibreELEC device without the TV turned on, you need to dump/save the EDID information from your TV (or AVR).
In the steps below we will explain how this can be done:
Note: Your devices should all be turned on and you should have a screen and audio working. Otherwise the EDID information aren't provided properly and this How-To won't work.
In the sections below we explain different ways to dump and use the EDID information. We also provide a script which performs the specific steps for the various devices automatically.
On x86_64 the steps for Intel and nVidia based GPUs differ significantly from each other.
Note: This script will also only work for Intel or nVidia based GPUs. AMD/ATI GPU's are not supported.
To use the getedid script you need to have SSH access to your LibreELEC machine.
Once you are in, just type in
to see which options are available. It will look like this.
The available options are create
, gpu
, delete
and help
. These are explained below.
This will show a help message and a little explanation for the specific options.
This will check which GPU you are using and you will either get "Intel", "NVidia" or "GPU is not supported" after running that command.
This will do all needed steps which are needed to dump the EDID for the GPU you are using. It first checks if the GPU is supported, then it checks if you already have done changes to the files which the script needs to change, too. If you already have done some changes to those files, the script will stop and you should dump the EDID manually. Those steps are explained in the other tabs. The reason for that is, that we can't know what you already have changed and therefore the script might do something horrible wrong and we don't want to break your system. As you already know how to edit those files it should not be that hard to do that again.
If the files are like they should be from a vanilla installation, the script does its thing and will do everything which is necessary and reboot your machine after everything is done as expected.
After that you shouldn't take care about the ordering how to turn on your devices, anymore. Your HTPC should also be turned on as the first device in the chain now.
This will delete all the created files from getedid create
if you have used it before. After using getedid delete
the default configuration is restored. No unneeded files on it, everything is like a vanilla installation and you have to take care about the ordering how to turn on your devices again.
For the source of that script please look at: https://github.com/LibreELEC/LibreELEC.tv/blob/master/packages/sysutils/busybox/scripts/getedid
First, you have to SSH in your LibreELEC machine. Then enter the following command.
Look for the connected device:
The information we need HDMI-A-2 is connected.
Now we will create a copy of the EDID binary data and put it where it needs to go. Change the cat command to match the active HDMI/DP port. For the possibility to copy and paste the correct commands, change the tabs below to the matching port.
HDMI-A-1
HDMI-A-2
Next a cpio archive file will be created which will be loaded at boot.
Now mount the boot partition as "RW" and move the file to it
After the file is moved to the correct place, we have to add some boot parameters. For this we have edit either the "extlinux.conf" or the "syslinux.cfg" file in your /flash/ directory. Use this command to check which one is available.
Search for "extlinux.conf" or "syslinux.cfg" and edit it. Only one of them is available.
syslinux.cfg
extlinux.conf
Note: If you are not using LibreELEC 9.0 or newer please use nano -w instead of nano
Add to the APPEND line the following things.
HDMI-A-1
The APPEND line should look this like this after (everything in a single line):
HDMI-A-2
The APPEND line should look this like this after (everything in a single line).
Last step is to reboot the device.
If you boot your nVidia GPU based LibreELEC box before the TV/AVR and you see a black screen on boot - follow this guide to create an edid.bin file that tricks Xorg into thinking the TV/AVR are powered on at boot time.
Note: This example will NOT work on Intel or AMD GPU's.
Open an SSH session to your LibreELEC machine. Once logged into the console we need to work out the DFP number.
You should see message like the following:
Note the DFP number - in this example it is "DFP-0" but yours may be different.
To extract EDID data we need we need to place Xorg into debug mode. First we stop Xorg.
Next we clone the xorg.conf to the config override location in /storage/.config
.
Then we edit the file with sed
to enable debug mode.
The device section in the modified file should look something like this.
Now restart Xorg.
Extract the RAW binary EDID information from the debug /var/log/Xog.0.log to a file.
The command should output something like.
Now we edit /storage/.config/xorg.conf - set ModeDebug back to False (edit the word true to false) and uncomment the following lines.
Make sure you change the DFP number to match the one we found earlier. In the end your config will look something like.
Finally we stop/restart xorg.service to disable debug mode and use the new edid.bin file.
If all has gone to plan Xorg now detects the EDID file and the order of powering on equipment no longer matters!
Amlogic legacy kernel devices (using 3.10, 3.14 kernels) do not capture "edid.bin" files like Intel and nVidia devices, but a similar process can capture, store and force the resolutions of a device. Connect your HTPC device directly to the HDMI source that you want to capture EDID information from, then login over SSH and run the following command.
This stores a list of the supported resolutions. It looks like
To remove or add specific resolutions, e.g. if 1080p24hz is missing, edit disp_cap.
Ctrl+o to save, Ctrl+x to exit the nano editor. Next restart Kodi by rebooting the box or running.
The getedid script can be used as described for Generic x86_64.