Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 12-09-06, 11:23 PM   #1
alaric
Cyber Jedi
 
alaric's Avatar
 
Join Date: Aug 2003
Location: Amsterdam
Posts: 75
Exclamation Eye-opener: Using (nvidia) Option's in the Monitor section

Heya fellow linux hackers,

I found that you can use Option in the Monitor Section. Doing this gives a very logical, assessable, result. Besides, you might find more usable tricks in this xorg.conf.

Have a look at my new xorg.conf and be amazed!


Code:
# Possible layouts:
#
# SingleVMP17	(center monitor - head 1 - DVI)
# SingleVMP410  (left monitor - head 0 - VGA)
# TwinView	(default)
# Test
#
# Example (spaces and underscores in names are ignored/irrelevant):
# Use: startx -- -layout SingleVMP17

# The default layout.
Section "ServerFlags"
        Option         "DefaultServerLayout" "TwinView"
EndSection

#============================================================================
# Layouts

#---------------------------------------------------------------------
# The (default) TwinView setup.
# Currently for the two Iiyama Vision Masters on the FX6200.

Section "ServerLayout"
        Identifier	"TwinView"
        Screen		"Screen TwinView"
        InputDevice	"Generic Keyboard"
        InputDevice	"Configured Mouse"
EndSection

Section "Screen"
        Identifier      "Screen TwinView"
        Device          "FX6200"
        Monitor		"VMP410_VMP17_TwinView"
        DefaultDepth    24
        SubSection "Display"
                Depth           24
                Modes           "2048x768" "1024x768"
        EndSubSection
EndSection

#---------------------------------------------------------------------
# A single head display for the Iiyama Vision Master Pro17.

Section "ServerLayout"
        Identifier	"Single VMP17"
        Screen		"Screen Single VMP17"
        InputDevice	"Generic Keyboard"
        InputDevice	"Configured Mouse"
EndSection

Section "Screen"
        Identifier	"Screen Single VMP17"
        Device		"FX6200"
        Monitor		"VMP17"
        Option          "HWcursor" "True"
        DefaultDepth	24
        SubSection "Display"
                Depth		24
                Modes		"1024x768"
        EndSubSection
EndSection

#---------------------------------------------------------------------
# A single head display for the Iiyama Vision Master Pro410.

Section "ServerLayout"
        Identifier	"Single VMP410"
        Screen		"Screen Single VMP410"
        InputDevice	"Generic Keyboard"
        InputDevice	"Configured Mouse"
EndSection

Section "Screen"
        Identifier	"Screen Single VMP410"
        Device		"FX6200"
        Monitor		"VMP410"
        Option          "HWcursor" "True"
        DefaultDepth	24
        SubSection "Display"
                Depth		24
                Modes		"1024x768"
        EndSubSection
EndSection

#---------------------------------------------------------------------
# A test layout
# A single head display for the Samsung 205BW.

Section "ServerLayout"
        Identifier	"Test"
        Screen		"Screen Test"
        InputDevice	"Generic Keyboard"
        InputDevice	"Configured Mouse"
EndSection

Section "Screen"
        Identifier	"Screen Test"
        Device		"FX6200"
        Monitor		"S205BW"
        DefaultDepth	24
        SubSection "Display"
                Depth		24
                Modes		"1680x1050"
        EndSubSection
EndSection

#============================================================================
# General configurations

# Paths suitable for debian etch.
Section "Files"
        FontPath	"/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
        FontPath	"/usr/share/fonts/X11/misc"
        FontPath	"/usr/share/fonts/X11/cyrillic"
        FontPath	"/usr/share/fonts/X11/100dpi/:unscaled"
        FontPath	"/usr/share/fonts/X11/75dpi/:unscaled"
        FontPath	"/usr/share/fonts/X11/Type1"
        FontPath	"/usr/share/fonts/X11/100dpi"
        FontPath	"/usr/share/fonts/X11/75dpi"
EndSection

# Xorg modules.
Section "Module"
        Load	"bitmap"
        Load	"ddc"
        Load	"extmod"
        Load	"freetype"
        Load	"glx"
        Load	"int10"
        Load	"vbe"
EndSection

# Everyone has this.
Section "DRI"
        Mode    0666
EndSection

# My PS/2 keyboard.
Section "InputDevice"
        Identifier	"Generic Keyboard"
        Driver		"kbd"
        Option		"CoreKeyboard"
        Option		"XkbRules"	"xorg"
        Option		"XkbModel"	"pc104"
        Option		"XkbLayout"	"us"
EndSection

# My USB mouse and PS/2 mouse (both work at the same time).
Section "InputDevice"
        Identifier	"Configured Mouse"
        Driver		"mouse"
        Option		"CorePointer"
        Option		"Device"		"/dev/input/mice"
        Option		"Protocol"		"ExplorerPS/2"
EndSection

#=============================================================================
# Devices

# The GeForce FX6200 (PV-T44A-PANG).
# This AGP8x card sits in my AGP4x slot of the "unknown" motherboard,
# but I know the driver chip: the intel 82845.
#
# From lspci -v:
#
# 00:01.0 PCI bridge: Intel Corporation 82845 845 (Brookdale) Chipset AGP Bridge (rev 04) (prog-if 00 [Normal decode])
#        Flags: bus master, 66MHz, fast devsel, latency 64
#        Bus: primary=00, secondary=01, subordinate=01, sec-latency=32
#        Memory behind bridge: e8000000-eaffffff
#        Prefetchable memory behind bridge: d0000000-dfffffff
#
# 01:00.0 VGA compatible controller: nVidia Corporation NV43 [GeForce 6200] (rev a1) (prog-if 00 [VGA])
#        Subsystem: XFX Pine Group Inc. Unknown device 215c
#        Flags: bus master, 66MHz, medium devsel, latency 248, IRQ 201
#        Memory at e8000000 (32-bit, non-prefetchable) [size=16M]
#        Memory at d0000000 (32-bit, prefetchable) [size=256M]
#        Memory at e9000000 (32-bit, non-prefetchable) [size=16M]
#        [virtual] Expansion ROM at ea000000 [disabled] [size=128K]
#        Capabilities: [60] Power Management version 2
#        Capabilities: [44] AGP version 3.0
#
# Note that AGP version 3.0 means that it should work in an AGP4x slot.

Section "Device"
        Identifier	"FX6200"
        Driver		"nvidia"
        BusID		"PCI:1:0:0"
        Option          "HWcursor" "True"
        Option          "CursorShadow" "True"
        Option          "CursorShadowAlpha" "64"
	# The FX6200 is unstable with agpgart. Using this, the agpgart kernel
	# module is still loaded (used by the nvidia kernel module and the
	# intel_agp kernel module) but the internal AGP support from the
	# nvidia driver will be used. Note that without intel_agp loaded
	# the result was highly unstable too.
	Option		"NvAGP" "1"
EndSection

#============================================================================
# List of monitors

# An undocumented feature turns out to be that one can specify
# nvidia driver specific options in the Monitor section.
# By doing that, we can remove a lot of Options from the Device
# section, until we only have a single Device section.
# The rationale behind putting "device options" containing
# CRT-0, CRT-1, DPF-0 etc, in the Monitor section is that
# with a given setup a monitor is connected to a given plug
# on the video card, and the plug is directly related to these
# "device" names (in the case of a multihead card).
#
# My specific setup is as follows:
#
# If any monitor is connected, then
# VMP17  --> DVI plug, through DVI->VGA adaptor (CRT-1)
# VMP410 --> VGA plug (CRT-0)
# S205BW --> DVI plug (DFP-1)

# Iiyama Vision Master Pro17 (MT-9017T)
#
# The VMP17 outputs EDID that is not understood by the nvidia driver
# (currently 1.0-9631). Therefore the EDID is replaced with one from
# the file VMP17edid.bin.
# This EDID (apart from the header, as-is read with read-edid) contains
# wrong frequencies (too low), therefore also EdidFreqs and
# EdidMaxPClkCheck are being ignored.
Section "Monitor"
        Identifier	"VMP17"
        Option		"DPMS"
        Option          "ConnectedMonitor" "CRT-1"
        Option          "CustomEDID" "CRT-1:/etc/X11/VMP17edid.bin"
        Option          "ModeValidation" "CRT-1: NoEdidMaxPClkCheck"
        Option          "HorizSync"   "CRT-1: 27-96"
        Option          "VertRefresh" "CRT-1: 50-160"
EndSection

# Iiyama Vision Master Pro410 (A702HT)
# Suffers from the exact same problems as described above.
Section "Monitor"
        Identifier	"VMP410"
        Option		"DPMS"
        Option          "ConnectedMonitor" "CRT-0"
        Option          "CustomEDID" "CRT-0:/etc/X11/VMP410edid.bin"
        Option          "ModeValidation" "CRT-0: NoEdidMaxPClkCheck"
        Option          "HorizSync"   "CRT-0: 27-96"
        Option          "VertRefresh" "CRT-0: 50-160"
EndSection

# And now all together...
# A dummy monitor.
# This entry contains all TwinView options needed
# for the combination VMP410 + VMP17.
Section "Monitor"
        Identifier	"VMP410_VMP17_TwinView"
        Option          "TwinView" "True"
        Option          "ConnectedMonitor" "CRT-0, CRT-1"
        Option          "TwinViewOrientation" "CRT-0 LeftOf CRT-1"
        Option          "MetaModes" "1024x768,1024x768; NULL,1024x768"
        Option          "CustomEDID" "CRT-0:/etc/X11/VMP410edid.bin; CRT-1:/etc/X11/VMP17edid.bin"
        Option          "ModeValidation" "NoEdidMaxPClkCheck"
        Option          "HorizSync"   "CRT-0: 27-96; CRT-1: 27-96"
        Option          "VertRefresh" "CRT-0: 50-160; CRT-1: 50-160"
EndSection

# Samsung 205BW.
# Note that most Options are put in the Device section(s), not here.
# Search for S205BW to find them all.
Section "Monitor"
        Identifier	"S205BW"
        Option		"DPMS"
	# Since this is just a test to see if the FX6200 can do this,
	# and in reality I am using the VMP17 to digest it, we need
	# to specifiy this (as opposed to getting it from the EDID).
	Modeline        "1680x1050"  146.25  1680 1784 1960 2240  1050 1053 1059 1089 +hsync -vsync
        Option          "ConnectedMonitor" "DFP-1"
        Option          "CustomEDID" "DFP-1:/etc/X11/VMP17edid.bin"
        Option          "ModeValidation" "DFP-1: NoEdidMaxPClkCheck"
        Option          "HorizSync"   "DFP-1: 27-96"
        Option          "VertRefresh" "DFP-1: 50-160"
EndSection
Alaric

PS Some people might have noticed my new avatar too
__________________
Get my email address from my homepage.
alaric is offline   Reply With Quote
Old 12-27-06, 11:41 AM   #2
alaric
Cyber Jedi
 
alaric's Avatar
 
Join Date: Aug 2003
Location: Amsterdam
Posts: 75
Thumbs up Re: Eye-opener: Using (nvidia) Option's in the Monitor section

Hi again. I bought my Samsung 205BW, fixed the instabilities of the "FX6200" (turned out to be bad caps on my motherboard, as you can read elsewhere) and I am a happy user of twinview with one 17" CRT and the 205BW since a few weeks now.

I thought I should update this post by posting my final/current xorg.conf.

Code:
# Possible layouts:
#
# With the S205BW connected:
#
# SingleS205BW  (center monitor - head 1 - DVI)
# SingleVMP410  (left monitor - head 0 - VGA)
# TwinView      (default)
#
# With the VMP17 connected:
#
# SingleVMP17   (center monitor - head 1 - DVI)
# SingleVMP410  (left monitor - head 0 - VGA)
# TwinViewOld
#
#
# Example (spaces and underscores in names are ignored/irrelevant):
# Use: startx -- -layout SingleVMP17

# The default layout.
Section "ServerFlags"
        Option         "DefaultServerLayout" "TwinView"
EndSection

#============================================================================
# Layouts

#---------------------------------------------------------------------
# The (default) TwinView setup.
# Currently for the Iiyama Vision Master Pro410 and the Samsung 205BW.

Section "ServerLayout"
        Identifier      "TwinView"
        Screen          "Screen TwinView"
        InputDevice     "Generic Keyboard"
        InputDevice     "Configured Mouse"
EndSection

Section "Screen"
        Identifier      "Screen TwinView"
        Device          "FX6200"
        Monitor         "VMP410_S205BW_TwinView"
        DefaultDepth    24
EndSection

#---------------------------------------------------------------------
# The old TwinView setup.
# For the two Iiyama Vision Masters on the FX6200.

Section "ServerLayout"
        Identifier      "TwinViewOld"
        Screen          "Screen TwinViewOld"
        InputDevice     "Generic Keyboard"
        InputDevice     "Configured Mouse"
EndSection

Section "Screen"
        Identifier      "Screen TwinViewOld"
        Device          "FX6200"
        Monitor         "VMP410_VMP17_TwinView"
        DefaultDepth    24
        SubSection "Display"
                Depth           24
                Modes           "2048x768" "1024x768"
        EndSubSection
EndSection

#---------------------------------------------------------------------
# A single head display for the Iiyama Vision Master Pro17.

Section "ServerLayout"
        Identifier      "Single VMP17"
        Screen          "Screen Single VMP17"
        InputDevice     "Generic Keyboard"
        InputDevice     "Configured Mouse"
EndSection

Section "Screen"
        Identifier      "Screen Single VMP17"
        Device          "FX6200"
        Monitor         "VMP17"
        Option          "HWcursor" "True"
        DefaultDepth    24
        SubSection "Display"
                Depth   24
                Modes   "1024x768"
        EndSubSection
EndSection

#---------------------------------------------------------------------
# A single head display for the Iiyama Vision Master Pro410.

Section "ServerLayout"
        Identifier      "Single VMP410"
        Screen          "Screen Single VMP410"
        InputDevice     "Generic Keyboard"
        InputDevice     "Configured Mouse"
EndSection

Section "Screen"
        Identifier      "Screen Single VMP410"
        Device          "FX6200"
        Monitor         "VMP410"
        Option          "HWcursor" "True"
        DefaultDepth    24
        SubSection "Display"
                Depth   24
                Modes   "1024x768"
        EndSubSection
EndSection

#---------------------------------------------------------------------
# A single head display for the Samsung 205BW.

Section "ServerLayout"
        Identifier      "SingleS205BW"
        Screen          "Screen Single S205BW"
        InputDevice     "Generic Keyboard"
        InputDevice     "Configured Mouse"
EndSection

Section "Screen"
        Identifier      "Screen Single S205BW"
        Device          "FX6200"
        Monitor         "S205BW"
        DefaultDepth    24
        SubSection "Display"
                Depth   24
                Modes   "1680x1050"
        EndSubSection
EndSection

#============================================================================
# General configurations

# Paths suitable for debian etch.
Section "Files"
        FontPath        "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
        FontPath        "/usr/share/fonts/X11/misc"
        FontPath        "/usr/share/fonts/X11/cyrillic"
        FontPath        "/usr/share/fonts/X11/100dpi/:unscaled"
        FontPath        "/usr/share/fonts/X11/75dpi/:unscaled"
        FontPath        "/usr/share/fonts/X11/Type1"
        FontPath        "/usr/share/fonts/X11/100dpi"
        FontPath        "/usr/share/fonts/X11/75dpi"
EndSection

# Xorg modules.
Section "Module"
        Load    "bitmap"
        Load    "ddc"
        Load    "extmod"
        Load    "freetype"
        Load    "glx"
        Load    "int10"
        Load    "vbe"
EndSection

# Everyone has this.
Section "DRI"
        Mode    0666
EndSection

# My PS/2 keyboard.
Section "InputDevice"
        Identifier      "Generic Keyboard"
        Driver          "kbd"
        Option          "CoreKeyboard"
        Option          "XkbRules"      "xorg"
        Option          "XkbModel"      "pc104"
        Option          "XkbLayout"     "us"
EndSection

# My USB mouse and PS/2 mouse (both work at the same time).
Section "InputDevice"
        Identifier      "Configured Mouse"
        Driver          "mouse"
        Option          "CorePointer"
        Option          "Device"                "/dev/input/mice"
        Option          "Protocol"              "ExplorerPS/2"
EndSection

#=============================================================================
# Devices

Section "Device"
        Identifier      "FX6200"
        Driver          "nvidia"
        BusID           "PCI:1:0:0"
        Option          "HWcursor" "True"
        Option          "CursorShadow" "True"
        Option          "CursorShadowAlpha" "64"
EndSection

#============================================================================
# List of monitors

# An undocumented feature turns out to be that one can specify
# nvidia driver specific options in the Monitor section.
# By doing that, we can remove a lot of Options from the Device
# section, until we only have a single Device section.
# The rationale behind putting "device options" containing
# CRT-0, CRT-1, DPF-0 etc, in the Monitor section is that
# with a given setup a monitor is connected to a given plug
# on the video card, and the plug is directly related to these
# "device" names (in the case of a multihead card).
#
# My specific setup is as follows:
#
# If any monitor is connected, then
# VMP17  --> DVI plug, through DVI->VGA adaptor (CRT-1)
# VMP410 --> VGA plug (CRT-0)
# S205BW --> DVI plug (DFP-0)

# Iiyama Vision Master Pro17 (MT-9017T)
#
# The VMP17 outputs EDID that is not understood by the nvidia driver
# (currently 1.0-9631). Therefore the EDID is replaced with one from
# the file VMP17edid.bin.
# This EDID (apart from the header, as-is read with read-edid) contains
# wrong frequencies (too low), therefore also EdidFreqs and
# EdidMaxPClkCheck are being ignored.
Section "Monitor"
        Identifier      "VMP17"
        Option          "DPMS"
        Option          "ConnectedMonitor" "CRT-1"
        Option          "CustomEDID" "CRT-1:/etc/X11/VMP17edid.bin"
        Option          "ModeValidation" "CRT-1: NoEdidMaxPClkCheck"
        Option          "HorizSync"   "CRT-1: 27-96"
        Option          "VertRefresh" "CRT-1: 50-160"
EndSection

# Iiyama Vision Master Pro410 (A702HT)
# Suffers from the exact same problems as described above.
Section "Monitor"
        Identifier      "VMP410"
        Option          "DPMS"
        Option          "ConnectedMonitor" "CRT-0"
        Option          "CustomEDID" "CRT-0:/etc/X11/VMP410edid.bin"
        Option          "ModeValidation" "CRT-0: NoEdidMaxPClkCheck"
        Option          "HorizSync"   "CRT-0: 27-96"
        Option          "VertRefresh" "CRT-0: 50-160"
EndSection

# And now all together...
# A dummy monitor.
# This entry contains all TwinViewOld options needed
# for the combination VMP410 + VMP17.
Section "Monitor"
        Identifier      "VMP410_VMP17_TwinView"
        Option          "TwinView" "True"
        Option          "ConnectedMonitor" "CRT-0, CRT-1"
        Option          "TwinViewOrientation" "CRT-0 LeftOf CRT-1"
        Option          "MetaModes" "1024x768,1024x768; NULL,1024x768"
        Option          "CustomEDID" "CRT-0:/etc/X11/VMP410edid.bin; CRT-1:/etc/X11/VMP17edid.bin"
        Option          "ModeValidation" "NoEdidMaxPClkCheck"
        Option          "HorizSync"   "CRT-0: 27-96; CRT-1: 27-96"
        Option          "VertRefresh" "CRT-0: 50-160; CRT-1: 50-160"
EndSection

# Samsung 205BW.
Section "Monitor"
        Identifier      "S205BW"
        Option          "DPMS"
        Option          "UseDisplayDevice" "DFP"
        Option          "FlatPanelProperties" "DFP-0: Scaling=aspect-scaled"
EndSection

# A dummy monitor.
# This entry contains all TwinView options needed
# for the combination VMP410 + S205BW.
Section "Monitor"
        Identifier      "VMP410_S205BW_TwinView"
        Option          "TwinView" "True"
        Option          "MetaModes" "1024x768 +0+0, 1680x1050 +1024+0; NULL,1680x1050; NULL,840x525; NULL,1280x1024; NULL,1024x768; NULL,800x600"
        Option          "TwinViewXineramaInfoOrder" "DFP"
        Option          "TwinViewOrientation" "CRTi-0 LeftOf DFP-0"
        Option          "UseEdidDpi" "DFP-0"
        Option          "FlatPanelProperties" "DFP-0: Scaling=aspect-scaled"
        Option          "DynamicTwinView" "False"

        Option          "CustomEDID" "CRT-0:/etc/X11/VMP410edid.bin"
        Option          "ModeValidation" "CRT-0: NoEdidMaxPClkCheck"
        Option          "HorizSync"   "CRT-0: 27-96"
        Option          "VertRefresh" "CRT-0: 50-160"
EndSection
/etc/X11/VMP410edid.bin is attached.
Attached Files
File Type: gz VMP410edid.bin.gz (88 Bytes, 109 views)
__________________
Get my email address from my homepage.

Last edited by alaric; 12-27-06 at 11:58 AM.
alaric is offline   Reply With Quote
Reply


Thread Tools

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 On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Saturday Crapshoot: Queen: The Eye News Archived News Items 0 06-02-12 10:40 AM
Need Help Installing NVIDIA Tesla M2070Q in Linux RHEL5 Ferianto85 NVIDIA Linux 0 05-18-12 09:35 PM
Rumor regarding lack of 680 availability ViN86 Rumor Mill 6 05-09-12 05:48 PM

All times are GMT -5. The time now is 06:12 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.