Creating and using edid.bin via xorg.conf

From Kodi
Revision as of 10:00, 27 April 2013 by UNiversal (Talk)

Jump to: navigation, search

 Xorg: Resolution configuration xorg.conf Xorg Modelines Minimal NVidia xorg.conf Creating and using edid.bin via xorg.conf 


1 Creating and using edid.bin via xorg.conf

Information: This page contains explanation about EDID generation and usage in xorg.conf
Advanced: The information contained in this page is considered advanced.
Warning: The informations contained in this page can cause issues with your X if any errors or incorrect information is entered.

2 Outline

If your machine has a black screen only when you boot it up before TV or AMP, follow this guide.

On some combinations of equipments (AVR/TV/XBMC) in rarer cases you may find that the order you power on your equipment matters. This is obviously inconvenient but can be easily fixed.

The root cause of this issue is the EDID (Extended display identification data) handshake. Xorg may not correctly handshake with AV equipment after boot. Typically this results in a black screen and a full system shut down and restart to rectify.

In this guide we will show you how to trick Xorg into thinking your AV equipment is connected and powered on at all times. This locks on your install to one monitor/AVR (port specific) and should stop all handshake issues.

This example is for a nVidia GPU, other GPUs will have a similar approach but are not covered here.

3 Introduction

There are other tools for acquiring EDID information from Xorg.0.log, in this page we use a defer to nvidia-xconfig which is reliable and has been reported that the resulting information is more reliable using this tool, even for ATI GPU's.

You'll need:

  • SSH access.
  • Nano installed or your editor of choice.
  • Reading glasses.
  • nvidia-xconfig

You should be running as normal user while following this guide, i.e. not as root Any further references to "root" are meant to be interpreted as base directory not the user.

Note: nvidia-xconfig is already installed on Ubuntu and variants if you have the nvidia-current drivers installed via the Ubuntu packaging or Xswat ppa. It is not intend to instruct users on full use of this tool.

4 Generating & using edid.bin

Make sure your install is in a working state, powered on in the correct order so that you can see the GUI.

1 Open an SSH session to your machine and backup any existing xorg.conf.
cp /etc/X11/xorg.conf /etc/X11/xorg.conf.bak
2 You can use a current xorg.conf and should always have a backup of existing, however if you want to start with an fresh xorg.conf proceed with following step.
sudo nvidia-xconfig -s --no-logo --no-composite --no-dynamic-twinview --force-generate --output-xconfig=/etc/X11/xorg.conf
3 We need a verbose log from X to generate the edid.bin from the raw data.

Kill xbmc if it's running by:

sudo stop xbmc
cd ~
sudo X -verbose 6 > ~/xlog.txt 2>&1

This process needs interrupting via Ctrl+C after a few seconds.

In the root of your home directory you will find a xlog.txt /home/xbmc/xlog.txt

4 Now we work out the Assigned Display Device DFP number


cat /home/xbmc/xlog.txt | grep ConnectedMonitor |cut -f2 -d\"

you should see message like the following:


Take a note of the DFP number in this example "DFP-0". Your number may vary.

5 Extracting EDID binary

Now that all the information is noted and gathered, we can generate the RAW binary edid information to a binary..

1 The following command works on 32bit and 64bit:
sudo nvidia-xconfig --extract-edids-from-file=/home/xbmc/xlog.txt --extract-edids-output-file=/etc/X11/edid.bin

On success you should see a message like the following:

Found 1 EDID in "/home/xbmc/xlog.txt".
  Wrote EDID for "SAMSUNG (DFP-0)" to "/etc/X11/edid.bin" (256 bytes)..
2 If you did not see the above message we confirm if the edid.bin was created and exists, if not retrace your steps until file is created.
test -f /etc/X11/edid.bin && echo 'File exists' || echo 'File not found'

6 Configure xorg to read from EDID

Now edit the xorg.conf you created again and find Section "Device"

sudo nano /etc/X11/xorg.conf
2 And append the following information to Section "Device" within the /etc/X11/xorg.conf
 Option         "ConnectedMonitor" "DFP-0"
 Option         "CustomEDID" "DFP-0:/etc/X11/edid.bin"
 Option         "IgnoreEDID" "false"
 Option         "UseEDID" "true"
Important: It is VITAL you change the DFP-# number to match the one we found earlier.

In the end your Section "Device" will look something like the example below.

 Section "Device"
  Identifier     "nvidia"
  Driver         "nvidia"
  Option         "DynamicTwinView" "false"
  Option         "NoFlip" "false"
  Option         "NoLogo" "true"
  Option         "ModeValidation" "NoVesaModes, NoXServerModes"
  Option         "ConnectedMonitor" "DFP-0"
  Option         "CustomEDID" "DFP-0:/etc/X11/edid.bin"
  Option         "IgnoreEDID" "false"
  Option         "UseEDID" "true"

Since we have created a new xorg.conf file in a location the OS knows to use as default, no further changes need made to make this permanent. If at a later date you need to undo this work simple rename the config file and reboot to revert to default.

If all has went to plan when you reboot everything will just work and the order of powering equipment up will not matter anymore.

Note: If your equipment is coupled to a receiver that has broader HDMI capabilities than your TV, you should edit your xorg.conf so that the section "Screen" looks like this:

Section "Screen"
    Identifier     "screen"
    Device         "nvidia"
    DefaultDepth    24
    Option         "ColorRange" "Full"
    Option         "ColorSpace" "RGB"
    SubSection     "Display"
        Depth       24

7 Edid Library

The edid library is intended to be a collection of user generated edid.bin for equipment such as TV's or AVR's in case users want to test or modify or share with others existing edid's. This section is a WIP and will need to be improved on by users.

Use the Legend below as a guide to fill in new entries onto the edid.bin table.

Yes No N/A ? Other
{{yes}} {{no}} {{NA}} {{?}} Other
Warning: Make sure you have a backup of your current installation before using any edid.bin below.

Below is an area that the general community can share their edid.bin and relevant information with other users.
Feel free to update and share your experience below.

TV Brand AVR Brand Model GPU Brand/Model Working Download
Samsung N/A Series 5 Nvidia ION Yes Download edid.bin
? ? ? ? ?

8 Credits

The edid instructions are adapted from the Openelec wiki, credit to original authors[1]

9 References

  1. Config EDID NVidia
Personal tools

Wiki help