LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-10-2004, 07:57 AM   #1
d1sc0rd
LQ Newbie
 
Registered: Oct 2003
Posts: 28

Rep: Reputation: 15
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

Last edited by d1sc0rd; 03-10-2004 at 07:58 AM.
 
Old 03-10-2004, 08:06 AM   #2
carboncopy
Senior Member
 
Registered: Jan 2003
Location: Malaysia
Posts: 1,210
Blog Entries: 4

Rep: Reputation: 45
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.
 
Old 03-10-2004, 08:16 AM   #3
d1sc0rd
LQ Newbie
 
Registered: Oct 2003
Posts: 28

Original Poster
Rep: Reputation: 15
hmm i may take a look at that when i try loading the XF86Config again.

thanks
 
Old 05-15-2011, 07:28 AM   #4
WizadNoNext
Member
 
Registered: Nov 2009
Posts: 140

Rep: Reputation: 9
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
 
Old 05-15-2011, 04:53 PM   #5
storkus
Member
 
Registered: Jun 2008
Location: Phoenix, Arizona, USA
Distribution: Slackware
Posts: 329

Rep: Reputation: 51
LOL, wizad, did you not notice the post is over 7 years old?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
nvidia 6600GT / twinview / dual display / XFree86 configuration reflection666 Mandriva 1 04-07-2005 07:40 AM
nvidia 6600GT / twinview / dual display / XFree86 configuration reflection666 Linux - Newbie 3 04-07-2005 06:23 AM
2 monitors, nvidia, problem with window-size (maximize uses both monitors) meximex Linux - Hardware 1 05-19-2004 04:37 AM
NVidia Twinview dual head, 2 frame buffers peter72 Linux - Hardware 0 04-07-2004 02:22 PM
Dual monitors (twinview) AND tvout with the same X-server?! pokke Linux - Hardware 2 02-11-2004 02:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration