TV stops being detected

My system was running Ubuntu 12.04 (Mythbuntu) and I just upgraded to 14.04. On 12.04 never had NVIDIA driver problems. On 14.04 i’m encountering a situation where the TV acts as though no signal is detected anymore. I haven’t calculated the exact circumstances that cause this to occur, but it’s either when the TV is turned off, receiver power cycles, a particular timeout or some combination of the above.

I’m running driver 331.38 on 14.04 now.

Previously my xorg.conf looked like this:

Section "Screen"
	Identifier	"Default Screen"
	DefaultDepth	24
EndSection

Section "Device"
	Identifier	"Default Device"
	Driver	"nvidia"
	Option	"DPI"	"100x100"
	Option	"NoLogo"	"1"
EndSection

Section "Extensions"
	Option "Composite" "Disable"
EndSection

When I started to encounter this failure, a friend mentioned it happened with his receiver too and he solved it by capturing the EDID from nvidia-settings and adding to his xorg.conf. I tried that to no avail. I also discovered that when this happens this pops up in the X log:

[ 3827.469] (II) NVIDIA(0): Setting mode “NULL”

That made me suspect that it was going into a bad mode, so I hardcoded it to 1920x1080, but it’s still finding it’s way into this mode.

Here’s the xorg.conf I tried:

Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "SONY AVAMP"
    HorizSync       31.0 - 82.0
    VertRefresh     57.0 - 63.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 9500 GT"
	Option	"DPI"	"100x100"
	Option	"NoLogo"	"1"
	Option  "ConnectedMonitor" "DFP-1"
	Option  "CustomEDID" "DFP-1:/etc/X11/edid.bin"
	Option  "UseEDID" "True"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "metamodes" "1920x1080 +0+0"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Extensions"
	Option "Composite" "Disable"
EndSection

Here’s the full Xorg.0.log (including the failure bit)

X.Org X Server 1.15.0
Release Date: 2013-12-27
[   290.946] X Protocol Version 11, Revision 0
[   290.946] Build Operating System: Linux 3.2.0-58-generic i686 Ubuntu
[   290.946] Current Operating System: Linux supermario 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:08:14 UTC 2014 i686
[   290.946] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-3.13.0-24-generic root=UUID=ef8ed034-2d40-4e23-8c28-4069263c69c8 ro quiet splash
[   290.946] Build Date: 13 March 2014  12:22:57PM
[   290.946] xorg-server 2:1.15.0-1ubuntu7 (For technical support please see http://www.ubuntu.com/support) 
[   290.946] Current version of pixman: 0.30.2
[   290.946] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[   290.946] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   290.946] (==) Log file: "/var/log/Xorg.0.log", Time: Mon Apr 14 16:18:09 2014
[   290.946] (==) Using config file: "/etc/X11/xorg.conf"
[   290.946] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   290.947] (==) No Layout section.  Using the first Screen section.
[   290.947] (**) |-->Screen "Screen0" (0)
[   290.947] (**) |   |-->Monitor "Monitor0"
[   290.947] (**) |   |-->Device "Device0"
[   290.947] (==) Automatically adding devices
[   290.947] (==) Automatically enabling devices
[   290.947] (==) Automatically adding GPU devices
[   290.947] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[   290.947] 	Entry deleted from font path.
[   290.947] (==) FontPath set to:
	/usr/share/fonts/X11/misc,
	/usr/share/fonts/X11/100dpi/:unscaled,
	/usr/share/fonts/X11/75dpi/:unscaled,
	/usr/share/fonts/X11/Type1,
	/usr/share/fonts/X11/100dpi,
	/usr/share/fonts/X11/75dpi,
	built-ins
[   290.947] (==) ModulePath set to "/usr/lib/i386-linux-gnu/xorg/extra-modules,/usr/lib/xorg/extra-modules,/usr/lib/xorg/modules"
[   290.947] (**) Extension "Composite" is disabled
[   290.947] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[   290.947] (II) Loader magic: 0xb778a6c0
[   290.947] (II) Module ABI versions:
[   290.947] 	X.Org ANSI C Emulation: 0.4
[   290.947] 	X.Org Video Driver: 15.0
[   290.947] 	X.Org XInput driver : 20.0
[   290.947] 	X.Org Server Extension : 8.0
[   290.948] (II) xfree86: Adding drm device (/dev/dri/card0)
[   290.949] (--) PCI:*(0:2:0:0) 10de:0640:1462:1575 rev 161, Mem @ 0xfd000000/16777216, 0xd0000000/268435456, 0xfa000000/33554432, I/O @ 0x0000ec00/128, BIOS @ 0x????????/524288
[   290.949] Initializing built-in extension Generic Event Extension
[   290.949] Initializing built-in extension SHAPE
[   290.949] Initializing built-in extension MIT-SHM
[   290.949] Initializing built-in extension XInputExtension
[   290.949] Initializing built-in extension XTEST
[   290.949] Initializing built-in extension BIG-REQUESTS
[   290.949] Initializing built-in extension SYNC
[   290.949] Initializing built-in extension XKEYBOARD
[   290.949] Initializing built-in extension XC-MISC
[   290.949] Initializing built-in extension SECURITY
[   290.949] Initializing built-in extension XINERAMA
[   290.950] Initializing built-in extension XFIXES
[   290.950] Initializing built-in extension RENDER
[   290.950] Initializing built-in extension RANDR
[   290.950] Initializing built-in extension COMPOSITE
[   290.950] Initializing built-in extension DAMAGE
[   290.950] Initializing built-in extension MIT-SCREEN-SAVER
[   290.950] Initializing built-in extension DOUBLE-BUFFER
[   290.950] Initializing built-in extension RECORD
[   290.950] Initializing built-in extension DPMS
[   290.950] Initializing built-in extension Present
[   290.950] Initializing built-in extension DRI3
[   290.950] Initializing built-in extension X-Resource
[   290.950] Initializing built-in extension XVideo
[   290.950] Initializing built-in extension XVideo-MotionCompensation
[   290.950] Initializing built-in extension SELinux
[   290.950] Initializing built-in extension XFree86-VidModeExtension
[   290.950] Initializing built-in extension XFree86-DGA
[   290.950] Initializing built-in extension XFree86-DRI
[   290.950] Initializing built-in extension DRI2
[   290.950] (WW) "glamoregl" will not be loaded unless you've specified it to be loaded elsewhere.
[   290.950] (II) "glx" will be loaded by default.
[   290.950] (WW) "xmir" is not to be loaded by default. Skipping.
[   290.950] (II) LoadModule: "glx"
[   290.950] (II) Loading /usr/lib/i386-linux-gnu/xorg/extra-modules/libglx.so
[   290.998] (II) Module glx: vendor="NVIDIA Corporation"
[   290.998] 	compiled for 4.0.2, module version = 1.0.0
[   290.998] 	Module class: X.Org Server Extension
[   290.998] (II) NVIDIA GLX Module  331.38  Wed Jan  8 19:14:22 PST 2014
[   290.998] Loading extension GLX
[   290.998] (II) LoadModule: "nvidia"
[   290.998] (II) Loading /usr/lib/i386-linux-gnu/xorg/extra-modules/nvidia_drv.so
[   290.999] (II) Module nvidia: vendor="NVIDIA Corporation"
[   290.999] 	compiled for 4.0.2, module version = 1.0.0
[   290.999] 	Module class: X.Org Video Driver
[   290.999] (II) NVIDIA dlloader X Driver  331.38  Wed Jan  8 18:53:28 PST 2014
[   290.999] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[   290.999] (++) using VT number 7

[   291.000] (II) Loading sub module "fb"
[   291.000] (II) LoadModule: "fb"
[   291.000] (II) Loading /usr/lib/xorg/modules/libfb.so
[   291.001] (II) Module fb: vendor="X.Org Foundation"
[   291.001] 	compiled for 1.15.0, module version = 1.0.0
[   291.001] 	ABI class: X.Org ANSI C Emulation, version 0.4
[   291.001] (WW) Unresolved symbol: fbGetGCPrivateKey
[   291.001] (II) Loading sub module "wfb"
[   291.001] (II) LoadModule: "wfb"
[   291.001] (II) Loading /usr/lib/xorg/modules/libwfb.so
[   291.001] (II) Module wfb: vendor="X.Org Foundation"
[   291.001] 	compiled for 1.15.0, module version = 1.0.0
[   291.001] 	ABI class: X.Org ANSI C Emulation, version 0.4
[   291.001] (II) Loading sub module "ramdac"
[   291.001] (II) LoadModule: "ramdac"
[   291.001] (II) Module "ramdac" already built-in
[   291.002] (**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
[   291.002] (==) NVIDIA(0): RGB weight 888
[   291.002] (==) NVIDIA(0): Default visual is TrueColor
[   291.002] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[   291.002] (**) NVIDIA(0): Option "NoLogo" "1"
[   291.002] (**) NVIDIA(0): Option "Stereo" "0"
[   291.002] (**) NVIDIA(0): Option "DPI" "100x100"
[   291.002] (**) NVIDIA(0): Option "SLI" "Off"
[   291.002] (**) NVIDIA(0): Option "MultiGPU" "Off"
[   291.002] (**) NVIDIA(0): Option "BaseMosaic" "off"
[   291.002] (**) NVIDIA(0): Stereo disabled by request
[   291.002] (**) NVIDIA(0): NVIDIA SLI disabled.
[   291.002] (**) NVIDIA(0): NVIDIA Multi-GPU disabled.
[   291.002] (**) NVIDIA(0): Option "UseEDID" "True"
[   291.002] (**) NVIDIA(0): Option "ConnectedMonitor" "DFP-1"
[   291.002] (**) NVIDIA(0): Option "CustomEDID" "DFP-1:/etc/X11/edid.bin"
[   291.002] (**) NVIDIA(0): Option "MetaModes" "1920x1080 +0+0"
[   291.002] (**) NVIDIA(0): Enabling 2D acceleration
[   291.002] (**) NVIDIA(0): ConnectedMonitor string: "DFP-1"
[   291.632] (**) NVIDIA(0): Using ConnectedMonitor string "DFP-1".
[   291.633] (II) NVIDIA(0): Display (SONY AVAMP (DFP-1)) does not support NVIDIA 3D Vision
[   291.633] (II) NVIDIA(0):     stereo.
[   291.633] (II) NVIDIA(GPU-0): Found DRM driver nvidia-drm (20130102)
[   291.634] (II) NVIDIA(0): NVIDIA GPU GeForce 9500 GT (G96) at PCI:2:0:0 (GPU-0)
[   291.634] (--) NVIDIA(0): Memory: 524288 kBytes
[   291.634] (--) NVIDIA(0): VideoBIOS: 62.94.57.00.00
[   291.634] (II) NVIDIA(0): Detected PCI Express Link width: 16X
[   291.635] (--) NVIDIA(0): Valid display device(s) on GeForce 9500 GT at PCI:2:0:0
[   291.635] (--) NVIDIA(0):     CRT-0
[   291.635] (--) NVIDIA(0):     CRT-1
[   291.635] (--) NVIDIA(0):     DFP-0
[   291.635] (--) NVIDIA(0):     SONY AVAMP (DFP-1) (boot, connected)
[   291.635] (--) NVIDIA(0): CRT-0: 400.0 MHz maximum pixel clock
[   291.636] (--) NVIDIA(0): CRT-1: 400.0 MHz maximum pixel clock
[   291.636] (--) NVIDIA(0): DFP-0: Internal Single Link TMDS
[   291.636] (--) NVIDIA(0): DFP-0: 330.0 MHz maximum pixel clock
[   291.636] (--) NVIDIA(0): SONY AVAMP (DFP-1): Internal Single Link TMDS
[   291.636] (--) NVIDIA(0): SONY AVAMP (DFP-1): 165.0 MHz maximum pixel clock
[   291.636] (**) NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID for display
[   291.636] (**) NVIDIA(0):     device SONY AVAMP (DFP-1) (Using EDID frequencies has been
[   291.636] (**) NVIDIA(0):     enabled on all display devices.)
[   291.637] (WW) NVIDIA(GPU-0): The EDID for SONY AVAMP (DFP-1) contradicts itself: mode
[   291.637] (WW) NVIDIA(GPU-0):     "1920x1080" is specified in the EDID; however, the EDID's
[   291.637] (WW) NVIDIA(GPU-0):     valid HorizSync range (31.000-82.000 kHz) would exclude
[   291.637] (WW) NVIDIA(GPU-0):     this mode's HorizSync (27.0 kHz); ignoring HorizSync check
[   291.637] (WW) NVIDIA(GPU-0):     for mode "1920x1080".
[   291.637] (WW) NVIDIA(GPU-0): The EDID for SONY AVAMP (DFP-1) contradicts itself: mode
[   291.637] (WW) NVIDIA(GPU-0):     "1920x1080" is specified in the EDID; however, the EDID's
[   291.638] (WW) NVIDIA(GPU-0):     valid VertRefresh range (57.000-63.000 Hz) would exclude
[   291.638] (WW) NVIDIA(GPU-0):     this mode's VertRefresh (24.0 Hz); ignoring VertRefresh
[   291.638] (WW) NVIDIA(GPU-0):     check for mode "1920x1080".
[   291.639] (II) NVIDIA(0): Validated MetaModes:
[   291.639] (II) NVIDIA(0):     "1920x1080+0+0"
[   291.639] (II) NVIDIA(0): Virtual screen size determined to be 1920 x 1080
[   291.680] (**) NVIDIA(0): DPI set to (100, 100); computed from "DPI" X config option
[   291.681] (--) Depth 24 pixmap format is 32 bpp
[   291.681] (II) NVIDIA: Using 768.00 MB of virtual memory for indirect memory access.
[   291.686] (II) NVIDIA(0): Setting mode "1920x1080+0+0"
[   291.725] Loading extension NV-GLX
[   291.747] (==) NVIDIA(0): Disabling shared memory pixmaps
[   291.747] (==) NVIDIA(0): Backing store disabled
[   291.747] (==) NVIDIA(0): Silken mouse enabled
[   291.748] (**) NVIDIA(0): DPMS enabled
[   291.748] Loading extension NV-CONTROL
[   291.748] Loading extension XINERAMA
[   291.748] (II) Loading sub module "dri2"
[   291.748] (II) LoadModule: "dri2"
[   291.748] (II) Module "dri2" already built-in
[   291.748] (II) NVIDIA(0): [DRI2] Setup complete
[   291.748] (II) NVIDIA(0): [DRI2]   VDPAU driver: nvidia
[   291.748] (--) RandR disabled
[   291.757] (II) SELinux: Disabled on system
[   291.758] (II) Initializing extension GLX
[   291.791] (II) XKB: reuse xkmfile /var/lib/xkb/server-B20D7FC79C7F597315E3E501AEF10E0D866E8E92.xkm
[   291.796] (II) config/udev: Adding input device Power Button (/dev/input/event1)
[   291.796] (**) Power Button: Applying InputClass "evdev keyboard catchall"
[   291.796] (II) LoadModule: "evdev"
[   291.796] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
[   291.797] (II) Module evdev: vendor="X.Org Foundation"
[   291.797] 	compiled for 1.15.0, module version = 2.8.2
[   291.797] 	Module class: X.Org XInput Driver
[   291.797] 	ABI class: X.Org XInput driver, version 20.0
[   291.797] (II) Using input driver 'evdev' for 'Power Button'
[   291.797] (**) Power Button: always reports core events
[   291.797] (**) evdev: Power Button: Device: "/dev/input/event1"
[   291.797] (--) evdev: Power Button: Vendor 0 Product 0x1
[   291.797] (--) evdev: Power Button: Found keys
[   291.797] (II) evdev: Power Button: Configuring as keyboard
[   291.797] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input1/event1"
[   291.797] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 6)
[   291.797] (**) Option "xkb_rules" "evdev"
[   291.797] (**) Option "xkb_model" "pc105"
[   291.797] (**) Option "xkb_layout" "us"
[   291.798] (II) config/udev: Adding input device Power Button (/dev/input/event0)
[   291.798] (**) Power Button: Applying InputClass "evdev keyboard catchall"
[   291.798] (II) Using input driver 'evdev' for 'Power Button'
[   291.798] (**) Power Button: always reports core events
[   291.798] (**) evdev: Power Button: Device: "/dev/input/event0"
[   291.798] (--) evdev: Power Button: Vendor 0 Product 0x1
[   291.798] (--) evdev: Power Button: Found keys
[   291.798] (II) evdev: Power Button: Configuring as keyboard
[   291.798] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/device:00/PNP0C0C:00/input/input0/event0"
[   291.798] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 7)
[   291.798] (**) Option "xkb_rules" "evdev"
[   291.798] (**) Option "xkb_model" "pc105"
[   291.798] (**) Option "xkb_layout" "us"
[   291.799] (II) config/udev: Adding input device Media Center Ed. eHome Infrared Remote Transceiver (0471:0815) (/dev/input/event2)
[   291.799] (**) Media Center Ed. eHome Infrared Remote Transceiver (0471:0815): Applying InputClass "evdev keyboard catchall"
[   291.799] (II) Using input driver 'evdev' for 'Media Center Ed. eHome Infrared Remote Transceiver (0471:0815)'
[   291.799] (**) Media Center Ed. eHome Infrared Remote Transceiver (0471:0815): always reports core events
[   291.799] (**) evdev: Media Center Ed. eHome Infrared Remote Transceiver (0471:0815): Device: "/dev/input/event2"
[   291.799] (--) evdev: Media Center Ed. eHome Infrared Remote Transceiver (0471:0815): Vendor 0x471 Product 0x815
[   291.799] (--) evdev: Media Center Ed. eHome Infrared Remote Transceiver (0471:0815): Found keys
[   291.799] (II) evdev: Media Center Ed. eHome Infrared Remote Transceiver (0471:0815): Configuring as keyboard
[   291.799] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:04.0/usb4/4-1/4-1:1.0/rc/rc0/input4/event2"
[   291.799] (II) XINPUT: Adding extended input device "Media Center Ed. eHome Infrared Remote Transceiver (0471:0815)" (type: KEYBOARD, id 8)
[   291.799] (**) Option "xkb_rules" "evdev"
[   291.799] (**) Option "xkb_model" "pc105"
[   291.799] (**) Option "xkb_layout" "us"
[   291.799] (II) config/udev: Adding input device HDA NVidia Line Out Front (/dev/input/event8)
[   291.799] (II) No input driver specified, ignoring this device.
[   291.799] (II) This device may have been added with another device file.
[   291.800] (II) config/udev: Adding input device HDA NVidia Line Out Surround (/dev/input/event7)
[   291.800] (II) No input driver specified, ignoring this device.
[   291.800] (II) This device may have been added with another device file.
[   291.800] (II) config/udev: Adding input device HDA NVidia Line Out CLFE (/dev/input/event6)
[   291.800] (II) No input driver specified, ignoring this device.
[   291.800] (II) This device may have been added with another device file.
[   291.800] (II) config/udev: Adding input device HDA NVidia Line Out Side (/dev/input/event5)
[   291.800] (II) No input driver specified, ignoring this device.
[   291.800] (II) This device may have been added with another device file.
[   291.801] (II) config/udev: Adding input device HDA NVidia Front Headphone (/dev/input/event4)
[   291.801] (II) No input driver specified, ignoring this device.
[   291.801] (II) This device may have been added with another device file.
[   291.801] (II) config/udev: Adding input device HDA NVidia Rear Mic (/dev/input/event11)
[   291.801] (II) No input driver specified, ignoring this device.
[   291.801] (II) This device may have been added with another device file.
[   291.801] (II) config/udev: Adding input device HDA NVidia Front Mic (/dev/input/event10)
[   291.801] (II) No input driver specified, ignoring this device.
[   291.801] (II) This device may have been added with another device file.
[   291.802] (II) config/udev: Adding input device HDA NVidia Line (/dev/input/event9)
[   291.802] (II) No input driver specified, ignoring this device.
[   291.802] (II) This device may have been added with another device file.
[   291.802] (II) config/udev: Adding drm device (/dev/dri/card0)
[   291.802] (II) config/udev: Ignoring already known drm device (/dev/dri/card0)
[   291.804] (II) config/udev: Adding input device MCE IR Keyboard/Mouse (mceusb) (/dev/input/event3)
[   291.804] (**) MCE IR Keyboard/Mouse (mceusb): Applying InputClass "evdev pointer catchall"
[   291.804] (**) MCE IR Keyboard/Mouse (mceusb): Applying InputClass "evdev keyboard catchall"
[   291.804] (II) Using input driver 'evdev' for 'MCE IR Keyboard/Mouse (mceusb)'
[   291.804] (**) MCE IR Keyboard/Mouse (mceusb): always reports core events
[   291.804] (**) evdev: MCE IR Keyboard/Mouse (mceusb): Device: "/dev/input/event3"
[   291.804] (--) evdev: MCE IR Keyboard/Mouse (mceusb): Vendor 0 Product 0
[   291.804] (--) evdev: MCE IR Keyboard/Mouse (mceusb): Found 3 mouse buttons
[   291.804] (--) evdev: MCE IR Keyboard/Mouse (mceusb): Found relative axes
[   291.804] (--) evdev: MCE IR Keyboard/Mouse (mceusb): Found x and y relative axes
[   291.804] (--) evdev: MCE IR Keyboard/Mouse (mceusb): Found keys
[   291.804] (II) evdev: MCE IR Keyboard/Mouse (mceusb): Configuring as mouse
[   291.804] (II) evdev: MCE IR Keyboard/Mouse (mceusb): Configuring as keyboard
[   291.804] (**) evdev: MCE IR Keyboard/Mouse (mceusb): YAxisMapping: buttons 4 and 5
[   291.804] (**) evdev: MCE IR Keyboard/Mouse (mceusb): EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[   291.804] (**) Option "config_info" "udev:/sys/devices/virtual/input/input5/event3"
[   291.804] (II) XINPUT: Adding extended input device "MCE IR Keyboard/Mouse (mceusb)" (type: KEYBOARD, id 9)
[   291.805] (**) Option "xkb_rules" "evdev"
[   291.805] (**) Option "xkb_model" "pc105"
[   291.805] (**) Option "xkb_layout" "us"
[   291.805] (II) evdev: MCE IR Keyboard/Mouse (mceusb): initialized for relative axes.
[   291.805] (**) MCE IR Keyboard/Mouse (mceusb): (accel) keeping acceleration scheme 1
[   291.805] (**) MCE IR Keyboard/Mouse (mceusb): (accel) acceleration profile 0
[   291.805] (**) MCE IR Keyboard/Mouse (mceusb): (accel) acceleration factor: 2.000
[   291.805] (**) MCE IR Keyboard/Mouse (mceusb): (accel) acceleration threshold: 4
[   291.805] (II) config/udev: Adding input device MCE IR Keyboard/Mouse (mceusb) (/dev/input/mouse0)
[   291.805] (II) No input driver specified, ignoring this device.
[   291.805] (II) This device may have been added with another device file.
[   293.747] (**) NVIDIA(GPU-0): Using ConnectedMonitor string "DFP-1".
[   293.748] (II) NVIDIA(GPU-0): Display (SONY AVAMP (DFP-1)) does not support NVIDIA 3D Vision
[   293.748] (II) NVIDIA(GPU-0):     stereo.
[   294.706] (**) NVIDIA(GPU-0): Using ConnectedMonitor string "DFP-1".
[   294.706] (II) NVIDIA(GPU-0): Display (SONY AVAMP (DFP-1)) does not support NVIDIA 3D Vision
[   294.706] (II) NVIDIA(GPU-0):     stereo.
[   295.208] (**) NVIDIA(GPU-0): Using ConnectedMonitor string "DFP-1".
[   295.208] (II) NVIDIA(GPU-0): Display (SONY AVAMP (DFP-1)) does not support NVIDIA 3D Vision
[   295.208] (II) NVIDIA(GPU-0):     stereo.
[   295.212] (**) NVIDIA(GPU-0): Using ConnectedMonitor string "DFP-1".
[   295.213] (II) NVIDIA(GPU-0): Display (SONY AVAMP (DFP-1)) does not support NVIDIA 3D Vision
[   295.213] (II) NVIDIA(GPU-0):     stereo.
[   296.955] (**) NVIDIA(GPU-0): Using ConnectedMonitor string "DFP-1".
[   296.955] (II) NVIDIA(GPU-0): Display (SONY AVAMP (DFP-1)) does not support NVIDIA 3D Vision
[   296.955] (II) NVIDIA(GPU-0):     stereo.
[   296.956] (**) NVIDIA(GPU-0): Using ConnectedMonitor string "DFP-1".
[   296.956] (II) NVIDIA(GPU-0): Display (SONY AVAMP (DFP-1)) does not support NVIDIA 3D Vision
[   296.956] (II) NVIDIA(GPU-0):     stereo.
[  3827.469] (II) NVIDIA(0): Setting mode "NULL"
[  3827.510] (**) NVIDIA(GPU-0): Using ConnectedMonitor string "DFP-1".
[  3827.511] (II) NVIDIA(GPU-0): Display (SONY AVAMP (DFP-1)) does not support NVIDIA 3D Vision
[  3827.511] (II) NVIDIA(GPU-0):     stereo.
[  3827.511] (**) NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID for display
[  3827.511] (**) NVIDIA(0):     device SONY AVAMP (DFP-1) (Using EDID frequencies has been
[  3827.511] (**) NVIDIA(0):     enabled on all display devices.)
[  3827.514] (WW) NVIDIA(GPU-0): The EDID for SONY AVAMP (DFP-1) contradicts itself: mode
[  3827.514] (WW) NVIDIA(GPU-0):     "1920x1080" is specified in the EDID; however, the EDID's
[  3827.514] (WW) NVIDIA(GPU-0):     valid HorizSync range (31.000-82.000 kHz) would exclude
[  3827.514] (WW) NVIDIA(GPU-0):     this mode's HorizSync (27.0 kHz); ignoring HorizSync check
[  3827.514] (WW) NVIDIA(GPU-0):     for mode "1920x1080".
[  3827.514] (WW) NVIDIA(GPU-0): The EDID for SONY AVAMP (DFP-1) contradicts itself: mode
[  3827.514] (WW) NVIDIA(GPU-0):     "1920x1080" is specified in the EDID; however, the EDID's
[  3827.514] (WW) NVIDIA(GPU-0):     valid VertRefresh range (57.000-63.000 Hz) would exclude
[  3827.514] (WW) NVIDIA(GPU-0):     this mode's VertRefresh (24.0 Hz); ignoring VertRefresh
[  3827.514] (WW) NVIDIA(GPU-0):     check for mode "1920x1080".
[  3827.529] (**) NVIDIA(GPU-0): Using ConnectedMonitor string "DFP-1".
[  3827.530] (II) NVIDIA(GPU-0): Display (SONY AVAMP (DFP-1)) does not support NVIDIA 3D Vision
[  3827.530] (II) NVIDIA(GPU-0):     stereo.
[  3827.539] (**) NVIDIA(GPU-0): Using ConnectedMonitor string "DFP-1".
[  3827.539] (II) NVIDIA(GPU-0): Display (SONY AVAMP (DFP-1)) does not support NVIDIA 3D Vision
[  3827.539] (II) NVIDIA(GPU-0):     stereo.
[  3827.541] (**) NVIDIA(GPU-0): Using ConnectedMonitor string "DFP-1".
[  3827.542] (II) NVIDIA(GPU-0): Display (SONY AVAMP (DFP-1)) does not support NVIDIA 3D Vision
[  3827.542] (II) NVIDIA(GPU-0):     stereo.
[  3827.547] (**) NVIDIA(GPU-0): Using ConnectedMonitor string "DFP-1".
[  3827.547] (II) NVIDIA(GPU-0): Display (SONY AVAMP (DFP-1)) does not support NVIDIA 3D Vision
[  3827.547] (II) NVIDIA(GPU-0):     stereo.
[  3827.548] (**) NVIDIA(GPU-0): Using ConnectedMonitor string "DFP-1".
[  3827.548] (II) NVIDIA(GPU-0): Display (SONY AVAMP (DFP-1)) does not support NVIDIA 3D Vision
[  3827.548] (II) NVIDIA(GPU-0):     stereo.
[  4002.794] (**) NVIDIA(GPU-0): Using ConnectedMonitor string "DFP-1".
[  4002.795] (II) NVIDIA(GPU-0): Display (SONY AVAMP (DFP-1)) does not support NVIDIA 3D Vision
[  4002.795] (II) NVIDIA(GPU-0):     stereo.
[  4019.253] (**) NVIDIA(GPU-0): Using ConnectedMonitor string "DFP-1".
[  4019.254] (II) NVIDIA(GPU-0): Display (SONY AVAMP (DFP-1)) does not support NVIDIA 3D Vision
[  4019.254] (II) NVIDIA(GPU-0):     stereo.

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

I determined the circumstances that cause this are a power cycle of the TV. Power cycling the receiver while the TV remains on doesn’t seem to affect the problem.

I’ve reported this bug on Ubuntu’s launchpad as well, here:

Downgraded to 304.117 and it still happens there too.

I came up with a workaround so I don’t need to restart the X server every time this happens. Not ideal, but better than nothing for now.

#!/bin/sh
#Fix TV state when HDMI link is lost.
#By Mario Limonciello <superm1@ubuntu.com>

OUTPUT="HDMI-0"
BAD_MODE="1280x720"
GOOD_MODE="1920x1080"

for MODE in $BAD_MODE $GOOD_MODE; do
	DISPLAY=:0 xrandr --output $OUTPUT --mode $MODE
	sleep 2
done

When the driver spits out that “Setting mode …” message, it’s because it’s doing that in response to an X client telling it to. In this case, it sounds like powering the receiver off is causing the TV to show up as disconnected to the GPU. When that happens, the driver will generate an unplug event to the X clients but it won’t automatically change anything about the display configuration. It sounds like what’s happening is that some part of your desktop environment is responding to the TV going away by disabling its output via RandR, and then failing to turn it back on when it comes back.

Please try running “xev -event randr” and then power-cycling the receiver and attach the logs from doing that in the good and bad cases. Hopefully that should shed some light on what’s going on.

Thanks for getting back to me.

Nothing it output when the TV is powered down.
When the TV gets powered back on this slew of events comes out of xev:

RRNotify event, serial 25, synthetic NO, window 0x800001,
    subtype XRROutputPropertyChangeNotifyEvent
    output HDMI-0, property EDID, timestamp 93793852, state Delete

RRScreenChangeNotify event, serial 25, synthetic NO, window 0x800001,
    root 0x1d4, timestamp 93713304, config_timestamp 93794118
    size_index 65535, subpixel_order SubPixelUnknown
    rotation RR_Rotate_0
    width 1920, height 1080, mwidth 485, mheight 273

RRNotify event, serial 25, synthetic NO, window 0x800001,
    subtype XRROutputChangeNotifyEvent
    output HDMI-0, crtc 447, mode 453
    rotation RR_Rotate_0
    connection RR_Disconnected, subpixel_order SubPixelUnknown

RRScreenChangeNotify event, serial 25, synthetic NO, window 0x800001,
    root 0x1d4, timestamp 93713304, config_timestamp 93794118
    size_index 65535, subpixel_order SubPixelUnknown
    rotation 0
    width 1920, height 1080, mwidth 485, mheight 273

RRNotify event, serial 25, synthetic NO, window 0x800001,
    subtype XRRCrtcChangeNotifyEvent
    crtc 447, mode None, rotation 0
    x 0, y 0, width 0, height 0

RRNotify event, serial 25, synthetic NO, window 0x800001,
    subtype XRROutputChangeNotifyEvent
    output HDMI-0, crtc None, mode None
    rotation RR_Rotate_0
    connection RR_Disconnected, subpixel_order SubPixelUnknown

RRScreenChangeNotify event, serial 36, synthetic NO, window 0x800001,
    root 0x1d4, timestamp 93794139, config_timestamp 93795171
    size_index 65535, subpixel_order SubPixelUnknown
    rotation 0
    width 1920, height 1080, mwidth 485, mheight 273

RRNotify event, serial 36, synthetic NO, window 0x800001,
    subtype XRROutputChangeNotifyEvent
    output HDMI-0, crtc None, mode None
    rotation RR_Rotate_0
    connection RR_Connected, subpixel_order SubPixelUnknown

This is the accompanying X log with that TV turn on event

[ 93794.199] (II) NVIDIA(0): Setting mode "NULL"
[ 93795.164] (II) NVIDIA(GPU-0): Display (SONY AVAMP (DFP-1)) does not support NVIDIA 3D Vision
[ 93795.164] (II) NVIDIA(GPU-0):     stereo.
[ 93795.165] (**) NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID for display
[ 93795.165] (**) NVIDIA(0):     device SONY AVAMP (DFP-1) (Using EDID frequencies has been
[ 93795.165] (**) NVIDIA(0):     enabled on all display devices.)
[ 93795.167] (WW) NVIDIA(GPU-0): The EDID for SONY AVAMP (DFP-1) contradicts itself: mode
[ 93795.167] (WW) NVIDIA(GPU-0):     "1920x1080" is specified in the EDID; however, the EDID's
[ 93795.167] (WW) NVIDIA(GPU-0):     valid HorizSync range (15.000-46.000 kHz) would exclude
[ 93795.167] (WW) NVIDIA(GPU-0):     this mode's HorizSync (67.4 kHz); ignoring HorizSync check
[ 93795.167] (WW) NVIDIA(GPU-0):     for mode "1920x1080".
[ 93795.169] (WW) NVIDIA(GPU-0): The EDID for SONY AVAMP (DFP-1) contradicts itself: mode
[ 93795.169] (WW) NVIDIA(GPU-0):     "1920x1080" is specified in the EDID; however, the EDID's
[ 93795.169] (WW) NVIDIA(GPU-0):     valid HorizSync range (15.000-46.000 kHz) would exclude
[ 93795.169] (WW) NVIDIA(GPU-0):     this mode's HorizSync (56.2 kHz); ignoring HorizSync check
[ 93795.169] (WW) NVIDIA(GPU-0):     for mode "1920x1080".
[ 93795.170] (WW) NVIDIA(GPU-0): The EDID for SONY AVAMP (DFP-1) contradicts itself: mode
[ 93795.170] (WW) NVIDIA(GPU-0):     "1920x1080" is specified in the EDID; however, the EDID's
[ 93795.170] (WW) NVIDIA(GPU-0):     valid VertRefresh range (49.000-61.000 Hz) would exclude
[ 93795.170] (WW) NVIDIA(GPU-0):     this mode's VertRefresh (24.0 Hz); ignoring VertRefresh
[ 93795.171] (WW) NVIDIA(GPU-0):     check for mode "1920x1080".
[ 93795.276] (II) NVIDIA(GPU-0): Display (SONY AVAMP (DFP-1)) does not support NVIDIA 3D Vision
[ 93795.276] (II) NVIDIA(GPU-0):     stereo.
[ 93795.379] (II) NVIDIA(GPU-0): Display (SONY AVAMP (DFP-1)) does not support NVIDIA 3D Vision
[ 93795.379] (II) NVIDIA(GPU-0):     stereo.
[ 93795.480] (II) NVIDIA(GPU-0): Display (SONY AVAMP (DFP-1)) does not support NVIDIA 3D Vision
[ 93795.481] (II) NVIDIA(GPU-0):     stereo.

Toggling the receiver doesn’t cause it for me, but a friend with a different receiver does have that happen. I’ll ask him to add some details to this thread.

I started to examine the clients running, and I think you’re right. This looks Xfce isn’t responding to all these events correctly (or the events it’s getting aren’t what it expects).

If I kill xfsettingsd and power cycle the TV it survives. I’ll raise it with that community.

Thanks again.

You don’t get another RRNotify about the EDID property coming back? Do you see an EDID when you run “xrandr --prop”?

Was DFP-1 reported as “SONY AVAMP” before, or did it get a different EDID from the TV? I wonder if the receiver is just making up an EDID when the TV is off, and the new EDID doesn’t support the desired mode, so whatever desktop environment you’re using just leaves it at the bad mode? (Sorry, I can’t get your bug report log because dropbox is blocked by our firewall).

Nope, no other RRNotify events come out.

It looks like to me the EDID is the same in all 3 states. Here’s $ xrandr --prop output

With TV on:

$ DISPLAY=:0 xrandr --prop
Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 8192 x 8192
DVI-I-0 disconnected primary (normal left inverted right x axis y axis)
	BorderDimensions: 4 
		supported: 4
	Border: 0 0 0 0 
		range: (0, 65535)
	SignalFormat: VGA 
		supported: VGA
	ConnectorType: DVI-I 
	ConnectorNumber: 0 
	_ConnectorLocation: 0 
VGA-0 disconnected (normal left inverted right x axis y axis)
	BorderDimensions: 4 
		supported: 4
	Border: 0 0 0 0 
		range: (0, 65535)
	SignalFormat: VGA 
		supported: VGA
	ConnectorType: VGA 
	ConnectorNumber: 1 
	_ConnectorLocation: 1 
DVI-I-1 disconnected (normal left inverted right x axis y axis)
	BorderDimensions: 4 
		supported: 4
	Border: 0 0 0 0 
		range: (0, 65535)
	SignalFormat: TMDS 
		supported: TMDS
	ConnectorType: DVI-I 
	ConnectorNumber: 0 
	_ConnectorLocation: 0 
HDMI-0 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 160mm x 90mm
	EDID: 
		00ffffffffffff004dd9020501010101
		02140103801009780aee91a3544c9926
		0f505420000001010101010101010101
		010101010101023a801871382d40582c
		4500a05a0000001e011d007251d01e20
		6e285500a05a0000001e000000fc0053
		4f4e59204156414d500a2020000000fd
		00393f1f5210000a202020202020019a
		02032bf6461020058403022f0907070d
		07070f07071507553d07c0835f000067
		030c002200b82de3050301023a801871
		382d40582c0405a05a0000001e011d80
		18711c1620582c2500a05a0000009e01
		1d007251d01e206e285500a05a000000
		1e8c0ad08a20e02d10103e9600a05a00
		0000180000000000000000000000003a
	BorderDimensions: 4 
		supported: 4
	Border: 0 0 0 0 
		range: (0, 65535)
	SignalFormat: TMDS 
		supported: TMDS
	ConnectorType: HDMI 
	ConnectorNumber: 2 
	_ConnectorLocation: 2 
   1920x1080      60.0*+   60.0     59.9     24.0     60.1     60.0  
   1280x720       60.0     59.9  
   720x480        59.9  
   640x480        59.9

With TV off:

$ DISPLAY=:0 xrandr --prop
Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 8192 x 8192
DVI-I-0 disconnected primary (normal left inverted right x axis y axis)
	BorderDimensions: 4 
		supported: 4
	Border: 0 0 0 0 
		range: (0, 65535)
	SignalFormat: VGA 
		supported: VGA
	ConnectorType: DVI-I 
	ConnectorNumber: 0 
	_ConnectorLocation: 0 
VGA-0 disconnected (normal left inverted right x axis y axis)
	BorderDimensions: 4 
		supported: 4
	Border: 0 0 0 0 
		range: (0, 65535)
	SignalFormat: VGA 
		supported: VGA
	ConnectorType: VGA 
	ConnectorNumber: 1 
	_ConnectorLocation: 1 
DVI-I-1 disconnected (normal left inverted right x axis y axis)
	BorderDimensions: 4 
		supported: 4
	Border: 0 0 0 0 
		range: (0, 65535)
	SignalFormat: TMDS 
		supported: TMDS
	ConnectorType: DVI-I 
	ConnectorNumber: 0 
	_ConnectorLocation: 0 
HDMI-0 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 160mm x 90mm
	EDID: 
		00ffffffffffff004dd9020501010101
		02140103801009780aee91a3544c9926
		0f505420000001010101010101010101
		010101010101023a801871382d40582c
		4500a05a0000001e011d007251d01e20
		6e285500a05a0000001e000000fc0053
		4f4e59204156414d500a2020000000fd
		00393f1f5210000a202020202020019a
		02032bf6461020058403022f0907070d
		07070f07071507553d07c0835f000067
		030c002200b82de3050301023a801871
		382d40582c0405a05a0000001e011d80
		18711c1620582c2500a05a0000009e01
		1d007251d01e206e285500a05a000000
		1e8c0ad08a20e02d10103e9600a05a00
		0000180000000000000000000000003a
	BorderDimensions: 4 
		supported: 4
	Border: 0 0 0 0 
		range: (0, 65535)
	SignalFormat: TMDS 
		supported: TMDS
	ConnectorType: HDMI 
	ConnectorNumber: 2 
	_ConnectorLocation: 2 
   1280x720       60.0 +   59.9     50.0  
   1920x1080      59.9     50.0     24.0     60.0     50.0  
   720x576        50.0  
   720x480        59.9  
   640x480        59.9  
  1920x1080 (0x1c5)  148.5MHz
        h: width  1920 start 2008 end 2052 total 2200 skew    0 clock   67.5KHz
        v: height 1080 start 1084 end 1089 total 1125           clock   60.0Hz

With TV turned back on after xfsettingsd reacts to randr events:

$ DISPLAY=:0 xrandr --prop
Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 8192 x 8192
DVI-I-0 disconnected primary (normal left inverted right x axis y axis)
	BorderDimensions: 4 
		supported: 4
	Border: 0 0 0 0 
		range: (0, 65535)
	SignalFormat: VGA 
		supported: VGA
	ConnectorType: DVI-I 
	ConnectorNumber: 0 
	_ConnectorLocation: 0 
VGA-0 disconnected (normal left inverted right x axis y axis)
	BorderDimensions: 4 
		supported: 4
	Border: 0 0 0 0 
		range: (0, 65535)
	SignalFormat: VGA 
		supported: VGA
	ConnectorType: VGA 
	ConnectorNumber: 1 
	_ConnectorLocation: 1 
DVI-I-1 disconnected (normal left inverted right x axis y axis)
	BorderDimensions: 4 
		supported: 4
	Border: 0 0 0 0 
		range: (0, 65535)
	SignalFormat: TMDS 
		supported: TMDS
	ConnectorType: DVI-I 
	ConnectorNumber: 0 
	_ConnectorLocation: 0 
HDMI-0 connected (normal left inverted right x axis y axis)
	EDID: 
		00ffffffffffff004dd9020501010101
		02140103801009780aee91a3544c9926
		0f505420000001010101010101010101
		010101010101023a801871382d40582c
		4500a05a0000001e011d007251d01e20
		6e285500a05a0000001e000000fc0053
		4f4e59204156414d500a2020000000fd
		00393f1f5210000a202020202020019a
		02032bf6461020058403022f0907070d
		07070f07071507553d07c0835f000067
		030c002200b82de3050301023a801871
		382d40582c0405a05a0000001e011d80
		18711c1620582c2500a05a0000009e01
		1d007251d01e206e285500a05a000000
		1e8c0ad08a20e02d10103e9600a05a00
		0000180000000000000000000000003a
	BorderDimensions: 4 
		supported: 4
	Border: 0 0 0 0 
		range: (0, 65535)
	SignalFormat: TMDS 
		supported: TMDS
	ConnectorType: HDMI 
	ConnectorNumber: 2 
	_ConnectorLocation: 2 
   1920x1080      60.0 +   60.0     59.9     24.0     60.1     60.0  
   1280x720       60.0     59.9  
   720x480        59.9  
   640x480        59.9

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