LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   dual monitors / Nvidia Twinview / modeline problem?? (https://www.linuxquestions.org/questions/slackware-14/dual-monitors-nvidia-twinview-modeline-problem-155800/)

d1sc0rd 03-10-2004 07:57 AM

dual monitors / Nvidia Twinview / modeline problem??
 
Hello,

I have been working on editing my XF86Config file for a number of hours tonight and I have been able to get both displays to display the proper resolution although I am getting some crazy lines across my display like the frequency is wrong or something. Anyway I have the refrence CD for both of my 15" LCD's and I notice different values than those generated by the online version of the modeline generator (I first tried the values that it gave me when I entered 1024x768 @ 75hz; which my monitor documentation gave me as the max resolution).

Specifically the online modeline generator gives me

# 1024x768 @ 75.00 Hz (GTF) hsync: 60.15 kHz; pclk: 81.80 MHz
Modeline "1024x768_75.00" 81.80 1024 1080 1192 1360 768 769 772 802 -HSync +Vsync

which I changed the pclk value to coincide with the one listed in the monitor documentation

anyways neither the generated modeline or the one I edited work so maybe my problem isn't modelines but I tend to think I have modeline problems.

I am attaching the XF86Config file I made and I would appriciate it if someone could help me get rid of these crazy flashing lines so I could use my new computer.


Oh I almost forgot the motherboard has onboard dual head GeForce 4 MX. It is an HP d325 microtower and the monitors are 2 15" Compaq 5017m LCD monitors.





**************************************************
*****************
# Refer to the XF86Config(4/5) man page for details about the format of
# this file.
# **************************************************
********************

# NOTE: This is a NEW IMPROVED version of XF86Config-fbdev that uses the vesa
# driver instead of the fbdev driver. Thanks to Kenneth Fanyo who pointed
# this out to me.

# This XF86Config file is designed for use with the VESA framebuffer.
# This generic interface should work with nearly all video cards
# (although not every card will support every resolution).

# With the new driver, it should no longer be required to have frame buffer
# support in the kernel, or to run it on the console.
#
# Enjoy!
# -- volkerdi@slackware.com
#

# **************************************************
********************
# Module section -- this section is used to specify
# which dynamically loadable modules to load.
# **************************************************
********************
#
Section "Module"

# This loads the DBE extension module.

Load "dbe" # Double buffer extension

# This loads the miscellaneous extensions module, and disables
# initialisation of the XFree86-DGA extension within that module.
SubSection "extmod"
Option "omit xfree86-dga" # don't initialise the DGA extension
EndSubSection

# This loads the font modules
Load "type1"
Load "freetype"
Load "speedo"

# This loads the GLX module
Load "glx"

EndSection

# **************************************************
********************
# Files section. This allows default font and rgb paths to be set
# **************************************************
********************


FontPath "/usr/X11R6/lib/X11/fonts/local/"
FontPath "/usr/X11R6/lib/X11/fonts/misc/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
FontPath "/usr/X11R6/lib/X11/fonts/CID/"
FontPath "/usr/X11R6/lib/X11/fonts/Speedo/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/cyrillic/"

# ModulePath can be used to set a search path for the X server modules.
# The default path is shown here.

# ModulePath "/usr/X11R6/lib/modules"

EndSection

# **************************************************
********************
# Server flags section.
# **************************************************
********************

# **************************************************
********************
# Input devices
# **************************************************
********************

# **************************************************
********************
# Core keyboard's InputDevice section
# **************************************************
********************

Section "InputDevice"

Identifier "Keyboard1"
Driver "Keyboard"
EndSection


# **************************************************
********************
# Core Pointer's InputDevice section
# **************************************************
********************

Section "InputDevice"

# Identifier and driver

Identifier "Mouse1"
Driver "mouse"


# **************************************************
********************
# Monitor section
# **************************************************
********************

# Any number of monitor sections may be present

#Section "Monitor"

# Identifier "My Monitor"

# HorizSync is in kHz unless units are specified.
# HorizSync may be a comma separated list of discrete values, or a
# comma separated list of ranges of values.
# NOTE: THE VALUES HERE ARE EXAMPLES ONLY. REFER TO YOUR MONITOR'S
# USER MANUAL FOR THE CORRECT NUMBERS.

# HorizSync 31.5 - 50.0

# HorizSync 30-64 # multisync
# HorizSync 31.5, 35.2 # multiple fixed sync frequencies
# HorizSync 15-25, 30-50 # multiple ranges of sync frequencies

# VertRefresh is in Hz unless units are specified.
# VertRefresh may be a comma separated list of discrete values, or a
# comma separated list of ranges of values.
# NOTE: THE VALUES HERE ARE EXAMPLES ONLY. REFER TO YOUR MONITOR'S
# USER MANUAL FOR THE CORRECT NUMBERS.

# VertRefresh 40-90

#EndSection
Modeline "1024x768_1" 78.750 1024 1080 1192 1360 768 769 772 802 +HSync +Vsync
Modeline "1024x768_2" 78.750 1024 1080 1192 1360 768 769 772 802 +HSync +Vsync


Option "DPMS"
EndSection

Section "Monitor"
Identifier "Dual1"
HorizSync 30-61
VertRefresh 56-75
# 100 Hz
Modeline "1024x768_1" 78.750 1024 1080 1192 1360 768 769 772 802 +HSync +Vsync
Option "DPMS"
EndSection

Section "Monitor"
Identifier "Dual2"
HorizSync 38-86
VertRefresh 48-150
# 80 Hz
Modeline "1024x768_2" 78.750 1024 1080 1192 1360 768 769 772 802 +HSync +Vsync
Option "DPMS"
EndSection

# **************************************************
********************
# Graphics device section
# **************************************************
********************

# Any number of graphics device sections may be present

#Section "Device"
# Identifier "nvidia_driver"
# Driver "nvidia"
#VideoRam 4096
# Insert Clocks lines here if appropriate
# EndSection

Section "Device"
Identifier "TwinView"
VendorName "nvidia"
Driver "nvidia"
BusID "PCI:1:0:0"
Option "DPMS"
Option "TwinView"
Option "IgnoreEDID" "1"
Option "RenderAccel" "1"
Option "CursorShadow" "1"
Option "NvAGP" "1"
Option "DigitalVibrance" "2"
Option "ConnectedMonitor" "crt,crt"
Option "TwinViewOrientation" "RightOf"
Option "SecondMonitorHorizSync" "30-61"
Option "SecondMonitorVertRefresh" "56-75"
Option "MetaModes" "1024x768_1,1024x768_2;1024x768_1,NULL;"
EndSection

Section "Device"
Identifier "Dual1"
Driver "nvidia"
BusID "PCI:1:0:0"
Option "NODDC" "1"
Screen 0
EndSection

Section "Device"
Identifier "Dual2"
Driver "nvidia"
BusID "PCI:1:0:0"
Option "NODDC" "1"
Screen 1
EndSection
# **************************************************
********************
# Screen sections
# **************************************************
********************






Section "Screen"
Identifier "TwinView"
Device "TwinView"
Monitor "Compaq_5017m"
DefaultDepth 24
Subsection "Display"
Depth 24
EndSubsection
EndSection

Section "Screen"
Identifier "Dual1"
Device "Dual1"
Monitor "Dual1"
DefaultDepth 24
Subsection "Display"
Depth 24
Modes "1024x768_1"
EndSubsection
EndSection

Section "Screen"
Identifier "Dual2"
Device "Dual2"
Monitor "Dual2"
DefaultDepth 24
Subsection "Display"
Depth 24
Modes "1024x768_2"
EndSubsection
EndSection

# **************************************************
********************
# ServerLayout sections.
# **************************************************
********************


Section "ServerLayout"
Identifier "TwinView"
Screen "TwinView"
InputDevice "Mouse1" "CorePointer"
InputDevice "Keyboard1" "CoreKeyboard"
Option "blank time" "10"
Option "off time" "20"
EndSection

Section "ServerLayout"
Identifier "Dual"
Screen 0 "Dual1"
Screen 1 "Dual2" rightOf "Dual1"
InputDevice "Mouse1" "CorePointer"
InputDevice "Keyboard1" "CoreKeyboard"
EndSection

carboncopy 03-10-2004 08:06 AM

I don't know what is the problem but you may try tweaking the display on the fly using
xvidtune. You can tweak the settings for your modeline through that on the fly. Please read the warning of the prog.

to launch xvidtune

type xvidtune at console.

d1sc0rd 03-10-2004 08:16 AM

hmm i may take a look at that when i try loading the XF86Config again.

thanks

WizadNoNext 05-15-2011 07:28 AM

Man this is one huge mess.

Ok I see point of having more "dynamic" conf, but you made here at least two mistakes.

Your code with comments:
<code>
Section "InputDevice"

# Identifier and driver

Identifier "Mouse1"
Driver "mouse"


# **************************************************
********************
# Monitor section
# **************************************************
********************

# Any number of monitor sections may be present

#Section "Monitor"

# Identifier "My Monitor"

# HorizSync is in kHz unless units are specified.
# HorizSync may be a comma separated list of discrete values, or a
# comma separated list of ranges of values.
# NOTE: THE VALUES HERE ARE EXAMPLES ONLY. REFER TO YOUR MONITOR'S
# USER MANUAL FOR THE CORRECT NUMBERS.

# HorizSync 31.5 - 50.0

# HorizSync 30-64 # multisync
# HorizSync 31.5, 35.2 # multiple fixed sync frequencies
# HorizSync 15-25, 30-50 # multiple ranges of sync frequencies

# VertRefresh is in Hz unless units are specified.
# VertRefresh may be a comma separated list of discrete values, or a
# comma separated list of ranges of values.
# NOTE: THE VALUES HERE ARE EXAMPLES ONLY. REFER TO YOUR MONITOR'S
# USER MANUAL FOR THE CORRECT NUMBERS.

# VertRefresh 40-90

#EndSection
Modeline "1024x768_1" 78.750 1024 1080 1192 1360 768 769 772 802 +HSync +Vsync
Modeline "1024x768_2" 78.750 1024 1080 1192 1360 768 769 772 802 +HSync +Vsync


Option "DPMS"
EndSection
</code>

And Now with all comments removed:

<code>
Section "InputDevice"

Identifier "Mouse1"
Driver "mouse"

Modeline "1024x768_1" 78.750 1024 1080 1192 1360 768 769 772 802 +HSync +Vsync
Modeline "1024x768_2" 78.750 1024 1080 1192 1360 768 769 772 802 +HSync +Vsync

Option "DPMS"
EndSection
</code>

Do you have display in mouse?

<code>
Section "Monitor"
Identifier "Dual1"
HorizSync 30-61
VertRefresh 56-75
# 100 Hz
Modeline "1024x768_1" 78.750 1024 1080 1192 1360 768 769 772 802 +HSync +Vsync
Option "DPMS"
EndSection

Section "Monitor"
Identifier "Dual2"
HorizSync 38-86
VertRefresh 48-150
# 80 Hz
Modeline "1024x768_2" 78.750 1024 1080 1192 1360 768 769 772 802 +HSync +Vsync
Option "DPMS"
EndSection
</code>

Comments like <quote> # 100 Hz</quote> and <quote># 80 HZ</quote>
Suggest me that those Modelines will be rated at 100Hz and 80Hz, but they are same and looks around 72Hz.

Your Screen Section:
<code>
Section "Screen"
Identifier "TwinView"
Device "TwinView"
Monitor "Compaq_5017m"
DefaultDepth 24
Subsection "Display"
Depth 24
EndSubsection
EndSection
</code>
In this particular screen section you have Monitor Compaq_5017m which isn't configured anywhere in your config. Its coming from nowhere.

Before starting complaining you should at least check your config, as this one is big mess.

I have nVidia Adapter and have both Dual-Screen and TwinView configs, but they are separate. Otherwise I would have same mess as you have right now.

Not get EDID from both displays, best will be nvidia-settings for it. Save it and parse it.

You should get something like it:
<code>
marek@squeeze:~$ parse-edid F700P.bin
parse-edid: parse-edid version 2.0.0
parse-edid: EDID checksum passed.

# EDID version 1 revision 3
Section "Monitor"
# Block type: 2:0 3:fd
# Block type: 2:0 3:fc
Identifier "F700P"
VendorName "GSM"
ModelName "F700P"
# Block type: 2:0 3:fd
HorizSync 30-96
VertRefresh 50-160
# Max dot clock (video bandwidth) 200 MHz
# Block type: 2:0 3:fc
# Block type: 2:0 3:fc
# DPMS capabilities: Active off:yes Suspend:yes Standby:yes

Mode "1280x1024" # vfreq 85.029Hz, hfreq 91.152kHz
DotClock 157.510000
HTimings 1280 1344 1504 1728
VTimings 1024 1025 1028 1072
Flags "-HSync" "-VSync"
EndMode
# Block type: 2:0 3:fd
# Block type: 2:0 3:fc
# Block type: 2:0 3:fc
EndSection
marek@squeeze:~$
</code>

You can simply copy all Monitor Section to your Config

storkus 05-15-2011 04:53 PM

LOL, wizad, did you not notice the post is over 7 years old?


All times are GMT -5. The time now is 11:35 AM.