Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?


  Search this Thread
Old 12-22-2007, 06:27 PM   #1
LQ Newbie
Registered: Oct 2007
Posts: 2

Rep: Reputation: 0
Help configuring X with 2 monitors + TV


I have a OpenSUSE 10.3 system with a NVIDIA GeForge 7600GT board working in dual head mode. Now I bought a new LCD TV to watch DVDs and connected it to the adapter's S-VIDEO port.

My idea was to check if I could clone the display of one of the monitors so that I'd get the same image on the TV. I haven't succeed on that and some posts suggest it's impossible to simultaneously use both DVI and the S-VIDEO ports (i.e., 2 monitors + TV) in a single configuration.

So, I'd like to keep two X configurations, one for desktop use (2 monitors) and another just for home theather (one monitor + TV). But I am unsure how to modify the xorg.conf file, and how to start X selecting the desired configuration. Can someone explain please?

My xorg.conf file goes below:

Section "Files"
  FontPath     "/usr/share/fonts/misc:unscaled"
  FontPath     "/usr/share/fonts/local"
  FontPath     "/usr/share/fonts/75dpi:unscaled"
  FontPath     "/usr/share/fonts/100dpi:unscaled"
  FontPath     "/usr/share/fonts/Type1"
  FontPath     "/usr/share/fonts/URW"
  FontPath     "/usr/share/fonts/Speedo"
  FontPath     "/usr/share/fonts/PEX"
  FontPath     "/usr/share/fonts/cyrillic"
  FontPath     "/usr/share/fonts/latin2/misc:unscaled"
  FontPath     "/usr/share/fonts/latin2/75dpi:unscaled"
  FontPath     "/usr/share/fonts/latin2/100dpi:unscaled"
  FontPath     "/usr/share/fonts/latin2/Type1"
  FontPath     "/usr/share/fonts/latin7/75dpi:unscaled"
  FontPath     "/usr/share/fonts/baekmuk:unscaled"
  FontPath     "/usr/share/fonts/japanese:unscaled"
  FontPath     "/usr/share/fonts/kwintv"
  FontPath     "/usr/share/fonts/truetype"
  FontPath     "/usr/share/fonts/uni:unscaled"
  FontPath     "/usr/share/fonts/CID"
  FontPath     "/usr/share/fonts/ucs/misc:unscaled"
  FontPath     "/usr/share/fonts/ucs/75dpi:unscaled"
  FontPath     "/usr/share/fonts/ucs/100dpi:unscaled"
  FontPath     "/usr/share/fonts/hellas/misc:unscaled"
  FontPath     "/usr/share/fonts/hellas/75dpi:unscaled"
  FontPath     "/usr/share/fonts/hellas/100dpi:unscaled"
  FontPath     "/usr/share/fonts/hellas/Type1"
  FontPath     "/usr/share/fonts/misc/sgi:unscaled"
  FontPath     "/usr/share/fonts/xtest"
  FontPath     "/opt/kde3/share/fonts"
  InputDevices "/dev/gpmdata"
  InputDevices "/dev/input/mice"

Section "ServerFlags"
  Option       "AllowMouseOpenFail" "on"

Section "Module"
  Load         "dbe"
  Load         "type1"
  Load         "freetype"
  Load         "extmod"
  Load         "glx"

Section "InputDevice"
  Driver       "kbd"
Identifier   "Keyboard[0]"
  Option       "Protocol" "Standard"
  Option       "XkbLayout" "us"
  Option       "XkbModel" "microsoftpro"
  Option       "XkbRules" "xfree86"

Section "InputDevice"
  Driver       "mouse"
  Identifier   "Mouse[1]"
  Option       "Buttons" "12"
  Option       "Device" "/dev/input/mice"
  Option       "Name" "Logitech USB Receiver"
  Option       "Protocol" "explorerps/2"
  Option       "Vendor" "Sysp"
  Option       "ZAxisMapping" "4 5"

Section "Monitor"
  Option       "CalcAlgorithm" "XServerPool"
  DisplaySize  676 270
  HorizSync    30-81
  Identifier   "Monitor[0]"
  Option       "DPMS"
  VendorName   "SAM"
  VertRefresh  43-75
  UseModes     "Modes[0]"

Section "Modes"
  Identifier   "Modes[0]"
  Modeline      "1280x1024" 108.00 1280 1328 1440 1688 1024 1025 1028 1066 +HSync +VSync
  Modeline      "2560x1024" 135.00 2560 1296 1440 1688 1024 1025 1028 1066

Section "Screen"
  DefaultDepth 24
  SubSection "Display"
    Depth      15
    Modes      "1280x1024" "1280x960" "1152x864" "1024x768" "800x600"
  SubSection "Display"
    Depth      16
    Modes      "1280x1024" "1280x960" "1152x864" "1024x768" "800x600"
  SubSection "Display"
    Depth      24
    Modes      "1280x1024" "1280x960" "1152x864" "1024x768" "800x600"
  SubSection "Display"
    Depth      8
    Modes      "1280x1024" "1280x960" "1152x864" "1024x768" "800x600"
  Device       "Device[0]"
  Identifier   "Screen[0]"
  Monitor      "Monitor[0]"
Section "Device"
  BoardName    "GeForce 7600 GT"
  BusID        "2:0:0"
  Driver       "nvidia"
  Identifier   "Device[0]"
  Option       "SaXDualHead"
  Option       "TwinView"
  Option       "SaXDualMonitorVendor" "SAM"
  Option       "SecondMonitorHorizSync" "30-81"
  Option       "SaXDualVSync" "50-75"
  Option       "MetaModes" "1280x1024,1280x1024;1280x960,1280x960;1152x864,1152x864;1024x768,1024x768;800x600,800x600"
  Option       "SaXDualOrientation" "RightOf"
  Option       "SaXDualResolution" "1280x1024"
  Option       "TwinViewOrientation" "RightOf"
  Option       "SaXDualMode" "Xinerama"
  Option       "SecondMonitorVertRefresh" "50-75"
  Option       "SaXDualHSync" "30-81"
  Option       "SaXDualMonitorModel" "SAMSUNG SYNCMASTER"
  VendorName   "NVIDIA"

Section "ServerLayout"
  Identifier   "Layout[all]"
  InputDevice  "Keyboard[0]" "CoreKeyboard"
  InputDevice  "Mouse[1]" "CorePointer"
  Option       "Clone" "off"
  Option       "Xinerama" "off"
  Screen       "Screen[0]"

Section "DRI"
    Group      "video"
    Mode       0660

Section "Extensions"
Old 01-07-2008, 01:07 AM   #2
Senior Member
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 18.3+19.3, MX-18, Mandrake
Posts: 4,462

Rep: Reputation: Disabled
Why don't you copy your old xorg.conf -> xorg.conf.bak and fire up SAX2? Usually SuSE is quite good in hardware configuration...
Old 01-07-2008, 01:17 AM   #3
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 680Reputation: 680Reputation: 680Reputation: 680Reputation: 680Reputation: 680
One additional note. You may need to powercycle before the svideo connection can be used. This is even true for my dvd & sony stereo. I don't know if your hardware will support 2 monitors plus an svideo output.

For documentation, the nvideo site may be your best bet.
From the nvidia_glx html documentation:
Appendix H. Configuring TV-Out
NVIDIA GPU-based video cards with a TV-Out connector can use a television as another display device, just like a CRT or digital flat panel. The TV can be used by itself, or in conjunction with another display device in a TwinView or multiple X screen configuration. If a TV is the only display device connected to your video card, it will be used as the primary display when you boot your system (i.e. the console will come up on the TV just as if it were a CRT).
The NVIDIA X driver populates the mode pool for the TV with all the mode sizes that the driver supports with the given TV standard and the TV encoder on the graphics board. These modes are given names that correspond to their resolution; e.g., "800x600".
Because these TV modes only depend on the TV encoder and the TV standard, TV modes do not go through normal mode validation. The X configuration options HorizSync and VertRefresh are not used for TV mode validation.
Additionally, the NVIDIA driver contains a hardcoded list of mode sizes that it can drive for each combination of TV encoder and TV standard. Therefore, custom modelines in your X configuration file are ignored for TVs.
To use your TV with X, there are several relevant X configuration options:
The Modes in the screen section of your X configuration file; you can use these to request any of the modes in the mode pool which the X driver created for this combination of TV standard and TV encoder. Examples include "640x480" and "800x600". If in doubt, use "nvidia-auto-select".
The "TVStandard" option should be added to your screen section; valid values are:
"PAL-B" used in Belgium, Denmark, Finland, Germany, Guinea, Hong Kong, India, Indonesia, Italy, Malaysia, The Netherlands, Norway, Portugal, Singapore, Spain, Sweden, and Switzerland
"PAL-D" used in China and North Korea
"PAL-G" used in Denmark, Finland, Germany, Italy, Malaysia, The Netherlands, Norway, Portugal, Spain, Sweden, and Switzerland
"PAL-H" used in Belgium
"PAL-I" used in Hong Kong and The United Kingdom
"PAL-K1" used in Guinea
"PAL-M" used in Brazil
"PAL-N" used in France, Paraguay, and Uruguay
"PAL-NC" used in Argentina
"NTSC-J" used in Japan
"NTSC-M" used in Canada, Chile, Colombia, Costa Rica, Ecuador, Haiti, Honduras, Mexico, Panama, Puerto Rico, South Korea, Taiwan, United States of America, and Venezuela
"HD480i" 480 line interlaced
"HD480p" 480 line progressive
"HD720p" 720 line progressive
"HD1080i" 1080 line interlaced
"HD1080p" 1080 line progressive
"HD576i" 576 line interlace
"HD576p" 576 line progressive
The line in your X config file should be something like:
Option "TVStandard" "NTSC-M"

If you do not specify a TVStandard, or you specify an invalid value, the default "NTSC-M" will be used. Note: if your country is not in the above list, select the country closest to your location.
The "UseDisplayDevice" option can be used if there are multiple display devices connected, and you want the connected TV to be used instead of the connected CRTs and/or DFPs. E.g.,
Option "UseDisplayDevice" "TV"

It is recommended to use the "UseDisplayDevice" option, rather than the "ConnectedMonitor" option.
The "TVOutFormat" option can be used to force the output format. Without this option the driver autodetects the output format. Unfortunately, it does not always do this correctly. The output format can be forced with the "TVOutFormat" option; valid values are:
Supported TV standards
"AUTOSELECT" The driver autodetects the output format (default value). PAL, NTSC, HD
"COMPOSITE" Force Composite output format PAL, NTSC
"SVIDEO" Force S-Video output format PAL, NTSC
"COMPONENT" Force Component output format, also called YPrPp HD
"SCART" Force Scart output format, also called Peritel PAL, NTSC
The line in your X config file should be something like:
Option "TVOutFormat" "SVIDEO"

The "TVOverScan" option can be used to enable Overscan, when the TV encoder supports it. Valid values are decimal values in the range 1.0 (which means overscan as much as possible: make the image as large as possible) and 0.0 (which means disable overscanning: make the image as small as possible). Overscanning is disabled (0.0) by default.
The NVIDIA X driver may not restore the console correctly with XFree86 versions older than 4.3 when the console is a TV. This is due to binary incompatibilities between XFree86 int10 modules. If you use a TV as your console it is recommended that you upgrade to XFree86 4.3 or later.

Last edited by jschiwal; 01-07-2008 at 01:20 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Configuring XF86Config-4 To have Dual Monitors (One big screen) unleaded17 Linux - Software 1 10-19-2005 07:56 AM
Need help configuring dual monitors [SuSE 9.3] gogogadgetearl Linux - Hardware 3 10-11-2005 01:18 PM
Configuring monitors Mandrake 10 HelplessNewbie Linux - Hardware 3 03-30-2005 07:10 PM
Configuring X for LCD Monitors aznbeady Linux - Laptop and Netbook 3 12-24-2003 01:06 PM
configuring two monitors as one desktop LinuxLala Linux - Hardware 1 08-21-2003 04:59 PM > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:19 PM.

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