LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Nvidia TV-out/Twinview Configuration (https://www.linuxquestions.org/questions/linux-hardware-18/nvidia-tv-out-twinview-configuration-357590/)

linux-rulz 08-27-2005 03:55 PM

Nvidia TV-out/Twinview Configuration
 
Hello all. I am currently running CentOS 4.1 with an Nvidia GeForce FX 5200 128 MB AGP video card. I have the Nvidia -1.0-7676 drivers installed. I have connected to it a 15" Xplio (cheap local brand name) LCD Monitor which runs at 1024X768. I am trying to connect, alongside this, a Magnasonic TV (13") to run in twin-view mode (cloned so they have the same desktop on both) and I have all of the wires correctly hooked up. Below are links to my original xorg.conf and my new, modified xorg.conf. The modified one results in neither screen working correctly (neither get a signal sent, the TV remains with a black screen and the monitor shuts itself off because of no signal being sent).

Before that, though, I will tell you the hookup. The LCD is hooked directly into the Nvidia cards analog port. The TV is hooked into the s/video port, which connects to an RCA Audio/Video/S-video Selector (sort of a splitter, but more advanced). From there it goes to a VCR, then to the TV.

If and when this problem is solved, I will post the working xorg.conf for future readers to be able to read. For now, links should do though.

Link to original xorg.conf

Link to new, modified xorg.conf

Thx for any help you can offer!

linux-rulz 08-27-2005 05:02 PM

Update:::

I read some info on another website and have modified my xorg.conf file again. Now the monitor works but the TV doesn't. I still get 3D accel.

Link to yet another xorg.conf

Electro 08-27-2005 05:11 PM

There is an error in your setup. You need to move the lines for your tvout setup into the device section where the nvidia driver is located. Also your metamodes are incorrect. The correct metamodes line:

Option "MetaModes" "1024x768, 1024x768; 800x600, 800x600"

You will also need to change tvoutformat to:

Option "TVOutFormat" "S-VIDEO"

Electro 08-27-2005 05:19 PM

It is still incorrect. The correct version:

Code:

Section "ServerLayout"
        Identifier    "Default Layout"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
        RgbPath      "/usr/X11R6/lib/X11/rgb"
        FontPath    "unix/:7100"
EndSection

Section "Module"
        Load  "dbe"
        Load  "extmod"
        Load  "fbdevhw"
        Load  "glx"
        Load  "record"
        Load  "freetype"
        Load  "type1"
        Load  "v4l"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
        Option            "XkbModel" "pc105"
        Option            "XkbLayout" "us"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option            "Protocol" "IMPS/2"
        Option            "Device" "/dev/input/mice"
        Option            "ZAxisMapping" "4 5"
        Option            "Emulate3Buttons" "yes"
EndSection

Section "Monitor"
        Identifier  "Monitor0"
        VendorName  "Monitor Vendor"
        ModelName    "Unknown monitor"
        HorizSync    24.0 - 61.0
        VertRefresh  56.0 - 75.0
        Option            "dpms"
EndSection

Section "Device"
        Identifier  "Videocard0"
        Driver      "nvidia"
        VendorName  "Videocard vendor"
        BoardName  "NVIDIA GeForce FX (generic)"
        Option        "NoLogo"

        Option        "TwinView"
        Option        "SecondMonitorHorizSync"        "30.0-50.0"
        Option  "SecondMonitorVertRefresh"        "60"
          Option  "TVStandard"                        "NTSC-M"
          Option  "TVOutFormat"                        "S-VIDEO"
          Option        "TwinViewOrientation"                "Clone"
          Option        "ConnectedMonitor"                "DFP, TV"
          Option        "MetaModes"                        "1024x768, 1024x768; 800x600, 800x600; 640x480, 640x480"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device    "Videocard0"
        Monitor    "Monitor0"
        DefaultDepth    24

        SubSection "Display"
                Viewport  0 0
                Depth    16
                Modes    "800x600" "640x480"
        EndSubSection

        SubSection "Display"
                Viewport  0 0
                Depth    24
                Modes    "1024x768" "800x600" "640x480"
        EndSubSection
EndSection

Section "DRI"
        Group        0
        Mode        0666
EndSection

Read the manual next time. nVidia has examples.

Tuttle 08-27-2005 05:33 PM

Here's my xorg.conf from the monitor section onwards, you may find some of the commented parts interesting. Note that I prefer not to use the nvidia twinview method.
Code:

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

# Any number of monitor sections may be present

Section "Monitor"

    Identifier  "CRT-0"

# 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  27 - 115

#    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 80 - 160
    Option        "DPMS"

# 100hz:
#Modeline "400x300"  6.94  400 392 424 448  300 301 304 310  -HSync +Vsync
Modeline "640x480"  43.16  640 680 744 848  480 481 484 509  -HSync +Vsync
Modeline "800x600"  68.18  800 848 936 1072  600 601 604 636  -HSync +Vsync
Modeline "1024x768"  113.31  1024 1096 1208 1392  768 769 772 814  -HSync +Vsync
Modeline "1280x960"  178.99  1280 1376 1520 1760  960 961 964 1017  -HSync +Vsync
Modeline "1280x1024"  190.96  1280 1376 1520 1760  1024 1025 1028 1085  -HSync +Vsync

EndSection


Section        "Monitor"
    Identifier        "TV-0"
    HorizSync        30 - 50
    VertRefresh        50 - 80
#    Option        "DPMS"
EndSection

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

# Any number of graphics device sections may be present

Section "Device"
    Identifier  "MX460"
    Driver      "nvidia"
    Option        "nologo"        "1"
    Option        "CursorShadow"        "0"
    BusId        "PCI:1:0:0"
    Screen        0
    #VideoRam    65536
    # Insert Clocks lines here if appropriate
    # javadesktop compatablity
    #Option        "AllowGLXWithComposite"        "1"
   
#    Option "TwinView"
#    Option "ConnectedMonitor" "CRT-0, TV-0"
#    Option "TwinViewOrientation" "Clone"
#    Option "SecondMonitorHorizSync" "10 - 60"
#    Option "SecondMonitorVertRefresh" "50 - 60"
#    Option "MetaModes" "1280x1024,;1280x960,;1024x768,;800x600,;640x480,;,400x300"
#    Option "TVStandard" "PAL-I"
#    Option "TVOutFormat" "COMPOSITE"
#    Option "TvOverscan" "0.8"

EndSection

Section "Device"
    Identifier        "MX460TV"
    Driver        "nvidia"
    Option        "nologo"        "1"
    Option        "CursorShadow"        "0"
    BusId        "PCI:1:0:0"
    Screen        1
    Option        "TVStandard" "PAL-I"
#    Option        "TVOutFormat" "COMPOSITE"
#    Option        "TvOverscan" "0.7"

EndSection

# **********************************************************************
# Screen sections
# **********************************************************************

# Any number of screen sections may be present.  Each describes
# the configuration of a single screen.  A single specific screen section
# may be specified from the X server command line with the "-screen"
# option.

Section "Screen"
    Identifier  "Screen0"
    Device      "MX460"
    Monitor    "CRT-0"

# If your card can handle it, a higher default color depth (like 24 or 32)
# is highly recommended.

#  DefaultDepth 8
#  DefaultDepth 16
  DefaultDepth 24
#  DefaultDepth 32

# "1024x768" is also a conservative usable default resolution.  If you
# have a better monitor, feel free to try resolutions such as
# "1152x864", "1280x1024", "1600x1200", and "1800x1400" (or whatever your
# card/monitor can produce)

    Subsection "Display"
        Depth      8
        Modes "1024x768" "800x600" "640x480"
    EndSubsection
    Subsection "Display"
        Depth      16
        Modes "1280x1024" "1280x960" "1152x864" "1024x768" "800x600" "640x480"
    EndSubsection
    Subsection "Display"
        Depth      24
        Modes "1280x1024" "1280x960" "1152x864" "1024x768" "800x600" "640x480"
    EndSubsection
    Subsection "Display"
        Depth      32
        Modes "1280x1024" "1280x960" "1152x864" "1024x768" "800x600" "640x480"
    EndSubsection
EndSection

Section        "Screen"
    Identifier        "Screen1"
    Device        "MX460TV"
    Monitor        "TV-0"
    DefaultDepth 24
    Subsection "Display"
        Depth      24
        Modes "640x480"
    EndSubsection
EndSection

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

# Any number of ServerLayout sections may be present.  Each describes
# the way multiple screens are organised.  A specific ServerLayout
# section may be specified from the X server command line with the
# "-layout" option.  In the absence of this, the first section is used.
# When now ServerLayout section is present, the first Screen section
# is used alone.

Section "ServerLayout"

# The Identifier line must be present
    Identifier  "Layout0"

# Each Screen line specifies a Screen section name, and optionally
# the relative position of other screens.  The four names after
# primary screen name are the screens to the top, bottom, left and right
# of the primary screen.  In this example, screen 2 is located to the
# right of screen 1.

    Screen        0 "Screen0"
#    Screen        1 "Screen1" rightOf "Screen0"

# Each InputDevice line specifies an InputDevice section name and
# optionally some options to specify the way the device is to be
# used.  Those options include "CorePointer", "CoreKeyboard" and
# "SendCoreEvents".

    InputDevice "Mouse0" "CorePointer"
    InputDevice "Mouse1" "SendCoreEvents"
    InputDevice "Keyboard1" "CoreKeyboard"

EndSection

#Section "ServerLayout"
#    Identifier  "Layout1"
##    Screen        0 "Screen0"
#    Screen        1 "Screen1"
##    InputDevice "Mouse0" "CorePointer"
#    InputDevice "Mouse1" "CorePointer"
#    InputDevice "Keyboard1" "CoreKeyboard"
#
#EndSection


linux-rulz 08-27-2005 05:58 PM

Quote:

Read the manual next time. nVidia has examples.
Well, neither Nvidia's examples nor your xorg.conf you just posted worked, so perhaps we are both doing something wrong. While I am fixing this problem, perhaps you should take a class in Social Skills. (In other words, if you are going to be rude I don't want your help).

Tuttle 08-27-2005 06:12 PM

Is there anything of interest in your /var/log/Xorg.0.log?
Were you aware that the video output must be connected to a 75ohm terminated input (eg. a tv) at boot otherwise it is disabled?
I'm pretty sure I had problems getting mine to work because of that.

linux-rulz 08-27-2005 06:49 PM

OK, here is my current xorg.conf file (based on Tuttle's, since the other ones don't work at all).

Code:

Section "ServerLayout"
        Identifier    "Default Layout"
        Screen      0  "Screen0"
        Screen      1  "Screen1" rightOf "Screen0"
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
        RgbPath      "/usr/X11R6/lib/X11/rgb"
        FontPath    "unix/:7100"
EndSection

Section "Module"
        Load  "dbe"
        Load  "extmod"
        Load  "fbdevhw"
        Load  "glx"
        Load  "record"
        Load  "freetype"
        Load  "type1"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
        Option            "XkbModel" "pc105"
        Option            "XkbLayout" "us"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option            "Protocol" "IMPS/2"
        Option            "Device" "/dev/input/mice"
        Option            "ZAxisMapping" "4 5"
        Option            "Emulate3Buttons" "yes"
EndSection

Section "Monitor"
        Identifier  "LCD"
        HorizSync    24.0 - 61.0
        VertRefresh  56.0 - 75.0
        Option            "dpms"
EndSection

Section "Monitor"
        Identifier  "TV"
        HorizSync    30.0 - 50.0
        VertRefresh  50.0 - 80.0
EndSection

Section "Device"
        Identifier  "LCDcard"
        Driver      "nvidia"
        VendorName  "Videocard vendor"
        BoardName  "NVIDIA GeForce FX (generic)"
        Option        "NoLogo"
        Screen        0
EndSection

Section "Device"
        Identifier        "TVcard"
        Driver                "nvidia"
        Option                "NoLogo"
        Screen                1
        Option                "TVStandard"        "NTSC-M"
        Option                "TVOutFormat"        "S-VIDEO"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device    "LCDcard"
        Monitor    "LCD"
        DefaultDepth    24
        SubSection "Display"
                Depth    24
                Modes    "1024x768" "800x600" "640x480"
        EndSubSection
EndSection

Section "Screen"
        Identifier        "Screen1"
        Device                "TVcard"
        Monitor                "TV"
        DefaultDepth        24
        Subsection "Display"
                Depth        24
                Modes        "800x600"
        EndSubsection
EndSection

Section "DRI"
        Group        0
        Mode        0666
EndSection

And here is a link to my entire X log file.

http://members.shaw.ca/ryan_mcgregor/Xorg.0.log

This is most likely something completely obvious. Tuttle, also, if you read the first post in this thread from me, you'll see I have an abnormal wiring setup. Will this cause my TV to not be detected? I made sure the S-VIDEO selector box was on the right setting and that both the tv and vcr were on when I rebooted and it still doesn't work.

Thx for all of your help :)

linux-rulz 08-27-2005 07:46 PM

You know what guys, I just spent another hour reading docs and playing with config files (brings me up to about 4 hours now) and I can for sure say that I give up. I've already wasted too much time on something that really isn't all that important to me. Thx for your help though :)

Electro 08-27-2005 08:20 PM

Quote:

Originally posted by linux-rulz
OK, here is my current xorg.conf file (based on Tuttle's, since the other ones don't work at all).

Code:

Section "ServerLayout"
        Identifier    "Default Layout"
        Screen      0  "Screen0"
        Screen      1  "Screen1" rightOf "Screen0"
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
        RgbPath      "/usr/X11R6/lib/X11/rgb"
        FontPath    "unix/:7100"
EndSection

Section "Module"
        Load  "dbe"
        Load  "extmod"
        Load  "fbdevhw"
        Load  "glx"
        Load  "record"
        Load  "freetype"
        Load  "type1"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
        Option            "XkbModel" "pc105"
        Option            "XkbLayout" "us"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option            "Protocol" "IMPS/2"
        Option            "Device" "/dev/input/mice"
        Option            "ZAxisMapping" "4 5"
        Option            "Emulate3Buttons" "yes"
EndSection

Section "Monitor"
        Identifier  "LCD"
        HorizSync    24.0 - 61.0
        VertRefresh  56.0 - 75.0
        Option            "dpms"
EndSection

Section "Monitor"
        Identifier  "TV"
        HorizSync    30.0 - 50.0
        VertRefresh  50.0 - 80.0
EndSection

Section "Device"
        Identifier  "LCDcard"
        Driver      "nvidia"
        VendorName  "Videocard vendor"
        BoardName  "NVIDIA GeForce FX (generic)"
        Option        "NoLogo"
        Screen        0
EndSection

Section "Device"
        Identifier        "TVcard"
        Driver                "nvidia"
        Option                "NoLogo"
        Screen                1
        Option                "TVStandard"        "NTSC-M"
        Option                "TVOutFormat"        "S-VIDEO"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device    "LCDcard"
        Monitor    "LCD"
        DefaultDepth    24
        SubSection "Display"
                Depth    24
                Modes    "1024x768" "800x600" "640x480"
        EndSubSection
EndSection

Section "Screen"
        Identifier        "Screen1"
        Device                "TVcard"
        Monitor                "TV"
        DefaultDepth        24
        Subsection "Display"
                Depth        24
                Modes        "800x600"
        EndSubsection
EndSection

Section "DRI"
        Group        0
        Mode        0666
EndSection

And here is a link to my entire X log file.

http://members.shaw.ca/ryan_mcgregor/Xorg.0.log

This is most likely something completely obvious. Tuttle, also, if you read the first post in this thread from me, you'll see I have an abnormal wiring setup. Will this cause my TV to not be detected? I made sure the S-VIDEO selector box was on the right setting and that both the tv and vcr were on when I rebooted and it still doesn't work.

Thx for all of your help :)

Your present config is incorrect. Ignore what you found on the internet because they are wrong.

Have a look at mine because it works just fine.

Code:

Section "Module"
    Load        "extmod"
    SubSection  "extmod"
    EndSubSection
    Load        "type1"
    Load        "freetype"
    Load        "bitmap"
    Load        "speedo"
    Load        "glx"
EndSection

Section "Files"
    RgbPath        "/usr/X11R6/lib/X11/rgb"
    FontPath  "/usr/share/fonts/misc/"
    FontPath  "/usr/share/fonts/TTF/"
    FontPath  "/usr/share/fonts/Type1/"
    FontPath  "/usr/share/fonts/75dpi/"
    FontPath  "/usr/share/fonts/100dpi/"
    FontPath  "/usr/share/fonts/local/"
    FontPath  "/usr/share/fonts/cyrillic/"
    FontPath  "/usr/share/fonts/ukr/"
    FontPath  "/usr/share/fonts/encodings/"
    FontPath  "/usr/share/fonts/ttf-bitstream-vera"
    FontPath  "/usr/share/fonts/xawtv"
    FontPath  "/usr/share/fonts/util"
    FontPath  "/usr/share/fonts/corefonts"
    FontPath  "/usr/share/fonts/sharefonts"
    FontPath  "/usr/share/fonts/freefont/"
    ModulePath "/usr/lib/modules"
EndSection

Section "ServerFlags"
    Option "AllowMouseOpenFail" "1"
EndSection

Section "InputDevice"
    Identifier        "Keyboard1"
    Driver        "kbd"
    Option "AutoRepeat" "250 30"
    Option        "Xleds"      "1 2 3"
    Option "XkbRules"        "xfree86"
    Option "XkbModel"        "microsoft"
    Option "XkbModel"  "pc105"
    Option "XkbLayout"        "us"
EndSection

Section "InputDevice"
    Identifier        "Mouse1"
    Driver        "mouse"
    Option "Protocol"    "ExplorerPS/2"
    Option "Device"      "/dev/psaux"
    Option "ZAxisMapping" "4 5"
    Option "Buttons" "5"
    Option "SampleRate" "100"
    Option "Resolution" "300"
EndSection

Section "Monitor"
    Identifier  "Monitor"
    HorizSync  31-96
    VertRefresh 60-160

  # ModeLines have been truncated
EndSection

Section "Device"
    Identifier        "Video Card"
    VendorName        "eVGA"
    BoardName        "nVidia GeForceFX 5700 Ultra"
    Driver    "nvidia"
    VideoRam    131072
    Option "MetaModes" "1280x1024, NULL; 1280x1024i, NULL; 1280x960, NULL; 1152x864, NULL; 1024x768, NULL; 800x600, 800x600; 640x480, 640x480"
    Option "SecondMonitorVertRefresh" "60"
    Option "TVStandard" "NTSC-M"
    Option "AGPSize" "64"
    Option "RenderAccel" "on"
    Option "ConnectedMonitor" "CRT, TV"
    Option "TwinViewOrientation" "Clone"
    Option "NoBandWidthTest" "1"
    Option "TwinView"
    Option "SecondMonitorHorizSync" "30-50"
    Option "TVOutFormat" "SVIDEO"
EndSection

Section "Screen"
    Identifier  "Screen 1"
    Device      "Video Card"
    Monitor    "Monitor"
    DefaultDepth 24

    Subsection "Display"
        Depth      8
        Modes      "1280x1024" "1280x1024i" "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth      16
        Modes      "1280x1024" "1280x1024i" "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth      24
        Modes      "1280x1024" "1280x1024i" "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
EndSection

Section "ServerLayout"
    Identifier  "Simple Layout"
    Screen "Screen 1"
    InputDevice "Mouse1" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"
EndSection

The one thing that I forgot to mention is that the module (driver) does not support 1024x768 for TV out even though the hardware does support TV out up to 1024x768.

You do not need to reboot your computer after change this file. Hit CTL+ALT+BKSPC and it will reset the X Window System.

The MetaMode line lists what resolutions to activate and deactivate TV out. What does that is the NULL. The comma seperates CRT and TV resolutions. The semi-colon seperates groups of resolutions. The nVidia documentation says this if you read it thoroughly. When I go through the resolutions by hitting CTL+ALT++ or CTL+ALT+-, play a game, or use VMware, it will send signals out to the TV. I do not use XFS (X Font Server), so do not copy what is in my file section.

You can use Tuttle but it is the fucked up way and no way of easily controlling what resolution that the TV out will work at. Twinview is the easiest to control this.

Quote:

Well, neither Nvidia's examples nor your xorg.conf you just posted worked, so perhaps we are both doing something wrong. While I am fixing this problem, perhaps you should take a class in Social Skills. (In other words, if you are going to be rude I don't want your help).
I could of said READ THE FUCKN' MANUAL, but I did not. I said it nicely. You should take a course of Reading Comprehension to help you understand the nVidia manual. The nVidia manual is simple to read.

linux-rulz 08-27-2005 08:41 PM

Electro, what part of "I don't want your help" or "I'm giving up on this since I don't really need it" did you not understand? I'm removing my subscription to this thread, a mod can go ahead and close it if they want.

Tuttle 08-27-2005 08:48 PM

Well pointed out Electro, I did not require anything other than 640*480 on my tvout (for mplayer playback), also the full separation of the desktops works better (for me).
Although the TwinView (commented) section doesn't use NULL indicators, it did the same job.
At linux-rulz: Have you tried it just plugged into a telly? Worth a try!

Tuttle 08-27-2005 08:55 PM

oops!


All times are GMT -5. The time now is 05:03 PM.