Intermittent DVI monitor detection on GT610 with dual monitor setup and Ubuntu 14.04

I have two identical monitors (LG 22EA53) connected to a GT610. One is connected to the VGA port and the other to the DVI port.

I’m using Ubuntu 14.04 (Trusty): Linux xxx 3.13.0-29-generic #53-Ubuntu SMP Wed Jun 4 21:00:20 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

I’m using the official NVIDIA driver provided by Cannonical: NVIDIA legacy binary driver - version 304.117

My dual-monitor setup won’t work with the automatic detection settings (no xorg.conf file). The DVI output stays off and the VGA monitor falls back to a low-res mode.

Using a custom xorg.conf:

Section "Monitor"
	Identifier	"Monitor0"
	HorizSync       28.0 - 33.0
	VertRefresh     43.0 - 72.0
EndSection

Section "Device"
	Identifier	"Device0"
	Driver		"nvidia"
	Option		"TwinView" "1"
	Option		"ProbeAllGpus" "0"
	Option		"UseDisplayDevice" "DFP-0"
	Option		"Stereo" "0"
	Option		"Xinerama" "0"
	Option		"ModeDebug" "1"
	Option		"DynamicTwinView" "0"
	Option		"AllowDDCCI" "1"
	Option		"ExactModeTimingsDVI" "1"
	Option		"IncludeImplicitMetaModes" "0"
	Option		"TwinViewXineramaInfoOrder" "DFP-0, CRT-1"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "CustomEDID" "CRT-1:/etc/X11/edid-CRT.bin; DFP-0:/etc/X11/edid-DFP.bin"
    Option         "ConnectedMonitor" "CRT-1, DFP-0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

I’ve managed to get the correct resolution (1920x1080) on both monitors working. However, randomly (sometimes every few hours, others every few seconds) the card detects the monitor on the DVI port as disconnected as shown in the syslog file (line 4):

Jun 18 16:06:51 xxxx colord: Device added: xrandr-Goldstar Company Ltd-22EA53-16843009
Jun 18 16:06:51 xxxx colord: Automatic metadata add icc-869dd3c5ac3e4ba75681121cb3ce12c1 to xrandr-Goldstar Company Ltd-22EA53-16843009
Jun 18 16:06:51 xxxx colord: Automatic metadata add icc-90e27d482064826ac485ef94e88dbcc0 to xrandr-Goldstar Company Ltd-22EA53-16843009
Jun 18 16:06:54 xxxx colord: device removed: xrandr-Goldstar Company Ltd-22EA53-16843009
Jun 18 16:06:56 xxxx colord: Device added: xrandr-Goldstar Company Ltd-22EA53-16843009
Jun 18 16:06:56 xxxx colord: Automatic metadata add icc-aaa310864323b742505a44d6a6d4f359 to xrandr-Goldstar Company Ltd-22EA53-16843009
Jun 18 16:06:56 xxxx colord: Automatic metadata add icc-e6c41ec5469a1ad12c0f17203e705586 to xrandr-Goldstar Company Ltd-22EA53-16843009

The Xorg.0.log file also shows this (line 2, note the timing):

[   214.893] (II) NVIDIA(0): Setting mode "VGA-0: nvidia-auto-select @1920x1080 +1920+0, DVI-I-1: nvidia-auto-select @1920x1080 +0+0"
[   420.660] (II) NVIDIA(0): Setting mode "NULL"
[   420.699] (II) NVIDIA(0): Screen transformation disabled for LG Electronics 22EA53
[   420.699] (II) NVIDIA(0):     (CRT-1)
[   420.699] (II) NVIDIA(0): Setting mode "VGA-0: nvidia-auto-select @1920x1080 +0+0"

Then the driver turns off the DVI output and I’m left with a single monitor.
I can get output on the DVI port again by doing a simple:

xrandr -q

and adjusting the display settings afterwards. However, its very annoying and time consuming to do this more than 10 times a day.
I have tried with the newest driver provided by Cannonnical with the same results (NVIDIA binary driver - version 331.38).
The EDID files for the monitors contain this info (used edid-decode):
edid-CRT.bin

Manufacturer: GSM Model 59a4 Serial Number 16843009
Made week 5 of 2013
EDID version: 1.3
Analog display, Input voltage level: 0.7/0.7 V
Sync: Separate Composite 
Maximum image size: 48 cm x 27 cm
Gamma: 2.20
DPMS levels: Standby Suspend Off
RGB color display
First detailed timing is preferred timing
Established timings supported:
  720x400@70Hz
  640x480@60Hz
  640x480@75Hz
  800x600@56Hz
  800x600@60Hz
  800x600@75Hz
  832x624@75Hz
  1024x768@60Hz
  1024x768@75Hz
  1280x1024@75Hz
  1152x870@75Hz
Standard timings supported:
  1152x864@75Hz
  1280x768@60Hz
  1280x800@60Hz
  1280x1024@60Hz
  1440x900@60Hz
  1400x1050@60Hz
  1600x960@60Hz
  1680x1050@60Hz
Detailed mode: Clock 148.500 MHz, 477 mm x 268 mm
               1920 2008 2052 2200 hborder 0
               1080 1084 1089 1125 vborder 0
               +hsync +vsync
Monitor ranges: 56-75HZ vertical, 30-83kHz horizontal, max dotclock 150MHz
Monitor name: 22EA53
      Serial number: 
            Checksum: 0xda

edid-DFP.bin

Manufacturer: GSM Model 59a5 Serial Number 16843009
Made week 5 of 2013
EDID version: 1.3
Digital display
Maximum image size: 48 cm x 27 cm
Gamma: 2.20
DPMS levels: Standby Suspend Off
Supported color formats: RGB 4:4:4, YCrCb 4:2:2
First detailed timing is preferred timing
Established timings supported:
  720x400@70Hz
  640x480@60Hz
  640x480@75Hz
  800x600@56Hz
  800x600@60Hz
  800x600@75Hz
  832x624@75Hz
  1024x768@60Hz
  1024x768@75Hz
  1280x1024@75Hz
  1152x870@75Hz
Standard timings supported:
  1152x864@75Hz
  1280x768@60Hz
  1280x800@60Hz
  1280x1024@60Hz
  1440x900@60Hz
  1400x1050@60Hz
  1600x960@60Hz
  1680x1050@60Hz
Detailed mode: Clock 148.500 MHz, 477 mm x 268 mm
               1920 2008 2052 2200 hborder 0
               1080 1084 1089 1125 vborder 0
               +hsync +vsync
Monitor ranges: 56-75HZ vertical, 30-83kHz horizontal, max dotclock 150MHz
Monitor name: 22EA53
      Serial number: 
            Checksum: 0xc5

Any help will be appreciated! Thanks!

P.S: How can I attach my ‘nvidia-bug-report.log.gz’ file to this post?

nvidia-bug-report.log.gz (362 KB)

Bump…