Configuring Analog Sound DVI to HDMI
Newer nVidia hardware supports audio over HDMI. When a display device notifies the drivers that it will accept audio, the card will provide an audio stream. This will occur on both HDMI and DVI ports, whether or not the card has pass-through audio inputs. Some TVs will automatically use this empty audio stream, and have no option to switch to another input
Acquire EDID Block
In order to resolve this, the nVidia drivers must be provided a modified EDID block saying the TV does not support audio. On nVidia hardware, there are two ways to acquire the original EDID block.
This method requires you have a mouse and keyboard attached to the machine.
- Run 'nvidia-settings' on the local X-Server
- Click the entry corresponding to your TV (e.g. DFP-0)
- Click 'Acquire EDID' and save the 'edid.bin' file
This method can be performed completely from a text console.
- Run an X server with enough verbosity to print out the EDID block
startx -- -logverbose 6
- After the X-Server has finished initializing, close it
- Find your log file, it will probably be in /var/log/Xorg.0.log
- Extract the EDID block using nvidia-xconfig
nvidia-xconfig --extract-edids-from-file=/var/log/Xorg.0.log --extract-edids-output-file=edid.bin
Modify EDID Block
The EDID block contains a block listing capable extensions, which must be removed. A program to do this is available at analogbit.com. Download 'edid_disable_exts' and compile if necessary. The program takes two arguments, the input file and the output file, so process your original EDID and save the new one in '/etc/X11/'.
Apply Modified EDID
Open your '/etc/X11/xorg.conf' file, and go to the Device section for your video card. Add the line
Option "CustomEDID" "DFP-0:/etc/X11/edid.modified.bin"
to tell the driver to use your custom block rather than acquiring one from your TV. The changes will take effect after a restart of X.