Creating and using edid.bin via xorg.conf
1 Creating and using edid.bin via xorg.conf
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.
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.
- SSH access.
- Nano installed or your editor of choice.
- Reading glasses.
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.
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
|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:
ConnectedMonitor DFP-0 DFP-0
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"
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" EndSection
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.
Section "Screen" Identifier "screen" Device "nvidia" DefaultDepth 24 Option "ColorRange" "Full" Option "ColorSpace" "RGB" SubSection "Display" Depth 24 EndSubSection EndSection
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.
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|
The edid instructions are adapted from the Openelec wiki, credit to original authors