LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   nvidia driver chooses wrong native resolution (https://www.linuxquestions.org/questions/linux-hardware-18/nvidia-driver-chooses-wrong-native-resolution-560726/)

groundstate 06-10-2007 07:47 PM

nvidia driver chooses wrong native resolution
 
I have a GeForce 6600 on an x86_64 Mandriva Linux box, and a Hyundai 32" monitor.
The native resolution is 1360x768. The open-source nv driver works fine at this resolution. However, the nvidia driver ignores my modelines and resolution lines, and defaults to 1280x1024, which is not only wrong, but the wrong aspect ratio, so everything is stretched. 1360x768 is listed in the EDID, so I'm not sure why it's ignoring it. I've also tried deleting the vert/horiz lines, the modelines, and the resolution lines allowing everything to go automatic, with the same result.

This is with 100.14.09 and 9755 builds. Something makes me thing it used to work on an older distro with 8774, but I don't have it anymore.

Any help would be appreciated.

Interesting Xorg logs:

(--) NVIDIA(0): --- EDID for HIQ Q320WD DVI (DFP-0) ---
(--) NVIDIA(0): EDID Version : 1.3
(--) NVIDIA(0): Manufacturer : HIQ
(--) NVIDIA(0): Monitor Name : HIQ Q320WD DVI
(--) NVIDIA(0): Product ID : 23820
(--) NVIDIA(0): 32-bit Serial Number : 20050823
(--) NVIDIA(0): Serial Number String :
(--) NVIDIA(0): Manufacture Date : 2005, week 34
(--) NVIDIA(0): DPMS Capabilities :
(--) NVIDIA(0): Prefer first detailed timing : No
(--) NVIDIA(0): Supports GTF : No
(--) NVIDIA(0): Maximum Image Size : 700mm x 390mm
(--) NVIDIA(0): Valid HSync Range : 31.0 kHz - 83.0 kHz
(--) NVIDIA(0): Valid VRefresh Range : 56 Hz - 85 Hz
(--) NVIDIA(0): EDID maximum pixel clock : 140.0 MHz
(--) NVIDIA(0):
(--) NVIDIA(0): Established Timings:
(--) NVIDIA(0): 640 x 480 @ 60 Hz
(--) NVIDIA(0): 640 x 480 @ 75 Hz
(--) NVIDIA(0): 800 x 600 @ 60 Hz
(--) NVIDIA(0): 800 x 600 @ 75 Hz
(--) NVIDIA(0): 1024 x 768 @ 60 Hz
(--) NVIDIA(0): 1024 x 768 @ 75 Hz
(--) NVIDIA(0): 1280 x 1024 @ 75 Hz
(--) NVIDIA(0):
(--) NVIDIA(0): Standard Timings:
(--) NVIDIA(0): 640 x 480 @ 85 Hz
(--) NVIDIA(0): 720 x 405 @ 85 Hz
(--) NVIDIA(0): 800 x 600 @ 85 Hz
(--) NVIDIA(0): 1024 x 768 @ 85 Hz
(--) NVIDIA(0): 1280 x 1024 @ 60 Hz
(--) NVIDIA(0): 1280 x 720 @ 60 Hz
(--) NVIDIA(0):
(--) NVIDIA(0): Detailed Timings:
(--) NVIDIA(0): 1360 x 768 @ 60 Hz
(--) NVIDIA(0): Pixel Clock : 86.96 MHz
(--) NVIDIA(0): HRes, HSyncStart : 1360, 1480
(--) NVIDIA(0): HSyncEnd, HTotal : 1528, 1774
(--) NVIDIA(0): VRes, VSyncStart : 768, 778
(--) NVIDIA(0): VSyncEnd, VTotal : 783, 817
(--) NVIDIA(0): H/V Polarity : -/-
(--) NVIDIA(0): 1280 x 768 @ 60 Hz
(--) NVIDIA(0): Pixel Clock : 81.00 MHz
(--) NVIDIA(0): HRes, HSyncStart : 1280, 1328
(--) NVIDIA(0): HSyncEnd, HTotal : 1440, 1688
(--) NVIDIA(0): VRes, VSyncStart : 768, 769
(--) NVIDIA(0): VSyncEnd, VTotal : 772, 802
(--) NVIDIA(0): H/V Polarity : +/+
(--) NVIDIA(0):
(--) NVIDIA(0): --- End of EDID for HIQ Q320WD DVI (DFP-0) ---

(II) NVIDIA(0): Frequency information for HIQ Q320WD DVI (DFP-0):
(II) NVIDIA(0): HorizSync : 31.000-83.000 kHz
(II) NVIDIA(0): VertRefresh : 56.000-85.000 Hz
(II) NVIDIA(0): (HorizSync from EDID)
(II) NVIDIA(0): (VertRefresh from EDID)
(II) NVIDIA(0):
(II) NVIDIA(0): Native backend timings for HIQ Q320WD DVI (DFP-0):
(II) NVIDIA(0): 1280 x 1024 @ 60 Hz
(II) NVIDIA(0): Pixel Clock : 108.00 MHz
(II) NVIDIA(0): HRes, HSyncStart : 1280, 1328
(II) NVIDIA(0): HSyncEnd, HTotal : 1440, 1688
(II) NVIDIA(0): VRes, VSyncStart : 1024, 1025
(II) NVIDIA(0): VSyncEnd, VTotal : 1028, 1066
(II) NVIDIA(0): H/V Polarity : +/+
(II) NVIDIA(0): Assigned Display Device: DFP-0
(II) NVIDIA(0): Requested modes:
(II) NVIDIA(0): "1360x768"
(WW) NVIDIA(0): No valid modes for "1360x768"; removing.
(WW) NVIDIA(0):
(WW) NVIDIA(0): Unable to validate any modes; falling back to the default mode
(WW) NVIDIA(0): "nvidia-auto-select".
(WW) NVIDIA(0):
(II) NVIDIA(0): Validated modes:
(II) NVIDIA(0): MetaMode "nvidia-auto-select":
(II) NVIDIA(0): Bounding Box: [0, 0, 1280, 1024]
(II) NVIDIA(0): HIQ Q320WD DVI (DFP-0): "nvidia-auto-select"
(II) NVIDIA(0): Size : 1280 x 1024
(II) NVIDIA(0): Offset : +0 +0
(II) NVIDIA(0): Panning Domain: @ 1280 x 1024
(II) NVIDIA(0): Position : [0, 0, 1280, 1024]
(II) NVIDIA(0): Virtual screen size determined to be 1280 x 1024

groundstate 06-10-2007 07:50 PM

xorg.conf
 
Here's the juicy parts of my xorg.conf.
(Why don't these forums support attachments?)

Section "Monitor"
Identifier "monitor1"
VendorName "Hyundai Electronics Industries Co., Ltd."
ModelName "Hyundai Image Quest Q320"
HorizSync 31-83
VertRefresh 56-85

# TV fullscreen mode or DVD fullscreen output.
# 768x576 @ 79 Hz, 50 kHz hsync
ModeLine "768x576" 50.00 768 832 846 1000 576 590 595 630

# 768x576 @ 100 Hz, 61.6 kHz hsync
ModeLine "768x576" 63.07 768 800 960 1024 576 578 590 616

# modeline generated by gtf(1) [handled by XFdrake]
ModeLine "1360x768_120" 183.30 1360 1456 1608 1856 768 769 772 823 -HSync +Vsync

# modeline generated by gtf(1) [handled by XFdrake]
ModeLine "1360x768_100" 149.78 1360 1456 1600 1840 768 769 772 814 -HSync +Vsync

# modeline generated by gtf(1) [handled by XFdrake]
ModeLine "1360x768_85" 125.12 1360 1448 1592 1824 768 769 772 807 -HSync +Vsync

# modeline generated by gtf(1) [handled by XFdrake]
ModeLine "1360x768_75" 108.75 1360 1440 1584 1808 768 769 772 802 -HSync +Vsync

# modeline generated by gtf(1) [handled by XFdrake]
ModeLine "1360x768_60" 84.72 1360 1424 1568 1776 768 769 772 795 -HSync +Vsync

# modeline generated by gtf(1) [handled by XFdrake]
ModeLine "1360x768_50" 69.61 1360 1416 1560 1760 768 769 772 791 -HSync +Vsync
EndSection
Section "Device"
Identifier "device1"
VendorName "nVidia Corporation"
BoardName "NVIDIA GeForce FX - GeForce 7950"
Driver "nvidia"
Option "DPMS"
Option "AddARGBGLXVisuals"
EndSection

Section "Screen"
Identifier "screen1"
Device "device1"
Monitor "monitor1"
DefaultColorDepth 24

Subsection "Display"
Depth 8
Modes "1360x768"
EndSubsection

Subsection "Display"
Depth 15
Modes "1360x768"
EndSubsection

Subsection "Display"
Depth 16
Modes "1360x768"
EndSubsection

Subsection "Display"
Depth 24
Modes "1360x768"
EndSubsection
EndSection

Thanks again!

Electro 06-10-2007 08:00 PM

The modes line in the display section have to match the modelines names in the monitor section or else X Window System will fine out the modelines for 1360x768.

groundstate 06-10-2007 08:15 PM

more modelines
 
Well, I think they match enough already. This was generated by XFdrake, and works fine with the nv driver.

If you're implying that I need this line:
ModeLine "1360x768" 84.72 1360 1424 1568 1776 768 769 772 795 -HSync +Vsync
I tried adding it and I still get "no valid modelines".


All times are GMT -5. The time now is 04:41 AM.