Nvidia driver ignores my modelines no matter what I do

I’ve tried a bunch of different things to get the Nvidia driver to work on my Panasonic TV, but It won’t correctly read the EDID and it also won’t accept non EDID modes, so I’m in a bit of a pickle. Here is my Xorg.0.log collected using startx – -logverbose 6:

[   248.509] (**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
[   248.509] (==) NVIDIA(0): RGB weight 888
[   248.509] (==) NVIDIA(0): Default visual is TrueColor
[   248.509] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[   248.509] (**) NVIDIA(0): Option "Stereo" "0"
[   248.509] (**) NVIDIA(0): Option "nvidiaXineramaInfoOrder" "DFP-0"
[   248.509] (**) NVIDIA(0): Option "ModeValidation" "DFP-1: NoEdidModes, AllowNon60HzDFPModes, NoMaxPClkCheck, NoEdidMaxPclkCheck, NoHorizSyncCheck, NoVertRefreshCheck, NoEdidDFPMaxSizeCheck, NoPredefinedModes"
...
[   248.841] (II) NVIDIA(GPU-0): --- Building ModePool for DFP-1 ---
[   248.841] (II) NVIDIA(GPU-0): 
[   248.841] (II) NVIDIA(GPU-0): Native mode timings for DFP-1:
[   248.841] (II) NVIDIA(GPU-0):   640 x 480 @ 60 Hz
[   248.841] (II) NVIDIA(GPU-0):     Pixel Clock      : 25.175 MHz
[   248.841] (II) NVIDIA(GPU-0):     HRes, HSyncStart :  640,  656
[   248.841] (II) NVIDIA(GPU-0):     HSyncEnd, HTotal :  752,  800
[   248.841] (II) NVIDIA(GPU-0):     VRes, VSyncStart :  480,  490
[   248.841] (II) NVIDIA(GPU-0):     VSyncEnd, VTotal :  492,  525
[   248.841] (II) NVIDIA(GPU-0):     H/V Polarity     : -/-
[   248.841] (II) NVIDIA(GPU-0): 
[   248.841] (II) NVIDIA(GPU-0):   Validating Mode "1920x1080_24.00":
[   248.841] (II) NVIDIA(GPU-0):     1920 x 1080 @ 24 Hz
[   248.841] (II) NVIDIA(GPU-0):     Mode Source: X Configuration file ModeLine
[   248.841] (II) NVIDIA(GPU-0):       Pixel Clock      : 61.81 MHz
[   248.841] (II) NVIDIA(GPU-0):       HRes, HSyncStart : 1920, 1944
[   248.841] (II) NVIDIA(GPU-0):       HSyncEnd, HTotal : 2136, 2352
[   248.841] (II) NVIDIA(GPU-0):       VRes, VSyncStart : 1080, 1081
[   248.841] (II) NVIDIA(GPU-0):       VSyncEnd, VTotal : 1084, 1095
[   248.841] (II) NVIDIA(GPU-0):       H/V Polarity     : -/+
[   248.841] (WW) NVIDIA(GPU-0):     Mode is rejected: Only EDID-provided modes are allowed on
[   248.841] (WW) NVIDIA(GPU-0):     DFP-1.
[   248.841] (II) NVIDIA(GPU-0): 
[   248.841] (II) NVIDIA(GPU-0):   Validating Mode "640x350":
[   248.841] (II) NVIDIA(GPU-0):     640 x 350 @ 85 Hz
[   248.841] (II) NVIDIA(GPU-0):     Mode Sources: X Server, X Configuration file ModeLine
[   248.841] (II) NVIDIA(GPU-0):       Pixel Clock      : 31.50 MHz
[   248.841] (II) NVIDIA(GPU-0):       HRes, HSyncStart :  640,  672
[   248.841] (II) NVIDIA(GPU-0):       HSyncEnd, HTotal :  736,  832
[   248.841] (II) NVIDIA(GPU-0):       VRes, VSyncStart :  350,  382
[   248.841] (II) NVIDIA(GPU-0):       VSyncEnd, VTotal :  385,  445
[   248.841] (II) NVIDIA(GPU-0):       H/V Polarity     : +/-
[   248.841] (WW) NVIDIA(GPU-0):     Mode is rejected: Only EDID-provided modes are allowed on
[   248.841] (WW) NVIDIA(GPU-0):     DFP-1.
[   248.841] (II) NVIDIA(GPU-0): 
[   248.841] (II) NVIDIA(GPU-0):   Validating Mode "320x175":
[   248.841] (II) NVIDIA(GPU-0):     320 x 175 @ 85 Hz
[   248.841] (II) NVIDIA(GPU-0):     Mode Sources: X Server, X Configuration file ModeLine
[   248.841] (II) NVIDIA(GPU-0):       Pixel Clock      : 15.75 MHz
[   248.841] (II) NVIDIA(GPU-0):       HRes, HSyncStart :  320,  336
[   248.841] (II) NVIDIA(GPU-0):       HSyncEnd, HTotal :  368,  416
[   248.841] (II) NVIDIA(GPU-0):       VRes, VSyncStart :  175,  191
[   248.841] (II) NVIDIA(GPU-0):       VSyncEnd, VTotal :  192,  222
[   248.841] (II) NVIDIA(GPU-0):       H/V Polarity     : +/-
[   248.841] (II) NVIDIA(GPU-0):       Extra            : DoubleScan
[   248.841] (WW) NVIDIA(GPU-0):     Mode is rejected: Only EDID-provided modes are allowed on
[   248.841] (WW) NVIDIA(GPU-0):     DFP-1.

And here is my Xorg.conf:

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 310.19  (buildmeister@swio-display-x86-rhel47-08.nvidia.com)  Thu Nov  8 02:09:12 PST 2012

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 310.19  (buildmeister@swio-display-x86-rhel47-08.nvidia.com)  Thu Nov  8 02:08:55 PST 2012

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"
EndSection

Section "Files"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Ancor Communications Inc VE228"
    HorizSync       30.0 - 83.0
    VertRefresh     50.0 - 76.0
    Option         "DPMS"
    Modeline "1920x1080_24.00"  61.81  1920 1944 2136 2352  1080 1081 1084 1095  -HSync +Vsync

EndSection

Section "Monitor"
    Identifier	   "Monitor1"
    VendorName	   "Panasonic"
    HorizSync	   26.97 - 30.00
    VertRefresh    23.98 - 24.00
#    Option	   "UseEDID" "FALSE"
#    Option	   "UseEdidFreqs" "FALSE"
    Modeline "1920x1080_24.00"  61.81  1920 1944 2136 2352  1080 1081 1084 1095  -HSync +Vsync

Endsection
Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 660"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Option	   "ModeValidation" "DFP-1: NoEdidModes, AllowNon60HzDFPModes, NoMaxPClkCheck, NoEdidMaxPclkCheck, NoHorizSyncCheck, NoVertRefreshCheck, NoEdidDFPMaxSizeCheck, NoPredefinedModes"
    Device         "Device0"
    Monitor        "Monitor0"
    Monitor        "Monitor1"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-0"

    SubSection     "Display"
        Depth       24
	Modes	    "1920x1080_24.00"	
    EndSubSection
EndSection

If you want to use your own modes, the ModeValidation override you want is AllowNonEdidModes, not NoEdidModes (which has no effect since there’s no EDID).

It’s surprising that there’s no EDID, though. Do you have a different cable you could try? DVI and HDMI monitors are required by the specification to provide an EDID.

Thank you so much!

I spent hours on this after upgrading from a previous driver version (275.09.07) that just read the ModeLines without needing “AllowNonEdidModes” to be set. It was driving me crazy!