LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-29-2008, 09:13 PM   #1
xunil154
LQ Newbie
 
Registered: Mar 2008
Posts: 14

Rep: Reputation: 0
Tri-Monitors with Nvidia


Hello,
I am running Ubuntu 8.04 and have a Nvidia GeForce 7600 GS (PCI Express) and a Nvidia Riva TNT2 modle 64 (PCI). I currently have dual monitors set up on the 7600, however i would like to get the third monitor working as well. I know i need to tell the xorg.conf what driver to use, and what slot, and resolution and what not. im just not entirely sure how to do it.

here is my lspci for the graphic cards
Code:
$ lspci | grep nVidia
01:00.0 VGA compatible controller: nVidia Corporation G70 [GeForce 7600 GS] (rev a1)
06:01.0 VGA compatible controller: nVidia Corporation NV5M64 [RIVA TNT2 Model 64/Model 64 Pro] (rev 15)

and here is my xorg.conf

Code:
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 1.0  (buildmeister@builder3)  Thu Feb 14 18:20:37 PST 2008

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 1.0  (buildd@vernadsky)  Tue Mar  4 20:24:34 UTC 2008

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

Section "Files"
    RgbPath         "/usr/X11R6/lib/X11/rgb"
EndSection

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

Section "ServerFlags"
    Option         "Xinerama" "0"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Gateway FPD1730"
    HorizSync       30.0 - 83.0
    VertRefresh     56.0 - 75.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
EndSection

Section "Device"
    Identifier     "Videocard0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 7600 GS"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Videocard0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "TwinView" "1"
    Option         "TwinViewXineramaInfoOrder" "DFP-0"
    Option         "metamodes" "CRT: nvidia-auto-select +0+0, DFP: 1280x1024 +1280+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

If anyone can please help me with setting this up i would greatly appriciate it!
 
Old 07-30-2008, 12:49 AM   #2
BugZRevengE
Member
 
Registered: Oct 2005
Location: Australia
Distribution: Slackware & Kubuntu & CentOS
Posts: 106

Rep: Reputation: 17
A change to your xorg. You need to add a few sections for the device, monitor, and screen (BACKUP YOUR xorg.conf FIRST!)
- on second note, device0 and Videocard0 are there already (was it detected automatically?)
Ok - i changed your config - added the second screen (screen1) to your serverlayout... hopfully got the position right (0, 2048 - being the start position of the screen i think), added monitor1, and changed the name of videocard0 to device1, as it keeps things the same. and added a second screen section. You may have to pass some parameters to get your monitor right... but it should just work hopefully.
also I added the busid to each device - that way we x does not get them mixed up at any stage...

Here is the modified xorg.conf
Code:
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 1.0  (buildmeister@builder3)  Thu Feb 14 18:20:37 PST 2008

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 1.0  (buildd@vernadsky)  Tue Mar  4 20:24:34 UTC 2008

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    Screen      1  "Screen1" 0 2048
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
    RgbPath         "/usr/X11R6/lib/X11/rgb"
EndSection

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

Section "ServerFlags"
    Option         "Xinerama" "0"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Gateway FPD1730"
    HorizSync       30.0 - 83.0
    VertRefresh     56.0 - 75.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Videocard0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 7600 GS"
    BusID          "PCI:01:00.0"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Videocard0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "TwinView" "1"
    Option         "TwinViewXineramaInfoOrder" "DFP-0"
    Option         "metamodes" "CRT: nvidia-auto-select +0+0, DFP: 1280x1024 +1280+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Device"
    Identifier     "Videocard1"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BusID          "PCI:06:01.0"
EndSection

Section "Monitor"
    Identifier     "Monitor1"
    VendorName     "Unknown"
    Option         "DPMS"
EndSection

Section "Screen"
    Identifier     "Screen1"
    Device         "Videocard1"
    Monitor        "Monitor1"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection
 
Old 07-30-2008, 11:06 PM   #3
xunil154
LQ Newbie
 
Registered: Mar 2008
Posts: 14

Original Poster
Rep: Reputation: 0
?_?

Ok, so thanks for the start, but where do i put in the Option part to offset it to 0,2048? and is there an xinerma flag that needs to be added to it to make it extend the desktop? or is that an Nvidia "TwinView" option? and does order make a difference in the xorg? thanks!
 
Old 07-30-2008, 11:52 PM   #4
BugZRevengE
Member
 
Registered: Oct 2005
Location: Australia
Distribution: Slackware & Kubuntu & CentOS
Posts: 106

Rep: Reputation: 17
It is part of the Screen1 line in the ServerLayout Section, not an option, but an argument passed. (I think these numbers are correct, but not 100% sure)
I would think it should just work, you may have to enable the second screen in your window-managers monitor/display section.
Nvidia TwinView is just enabling the two outputs from one card - and is what you had working. You are enabling a second card and monitor - X call a monitor and a video card device a screen. TwinView is a bit of a hack that nvidia driver uses to enable one video card device with two monitors appear to X as two screens, but with only one screen defined in the config.

I have experience with dual screens via two video cards, and also twinview, but not 3 monitors - but the theory is as I have shown in the config file I attached to my last post. If you are not sure what I have changed, you might want to run the files through diff or a graphical font end such as KDiff (kde) or Meld (gnome I think).

Doing a quick google search shows I may have some options wrong - looks like Xinerama handles these options by itself (newer then my older experiance).
This url has a setup similar to yours... so it will probably help, if not - I will re-do your xorg.conf if you need, from this example.
http://terrencemiao.com/Webmail/msg00928.html

Sorry - my original instructions were not quite right...
 
Old 07-31-2008, 01:13 AM   #5
xunil154
LQ Newbie
 
Registered: Mar 2008
Posts: 14

Original Poster
Rep: Reputation: 0
Thanks for all your help. I did try your config, but it came up clone mode in 640x480 and the third monitor didn't even flash. I do remember somewhere reading that in your BIOS you have to set it so that the card you want your third monitor to be on, has to be set as the primary graphics card on your motherboard. It also appears in that link that they set it up so that there is three devices and three screens, and they assigned a screen to each individual device, and that the twin view is configured on the second monitor. Ill try messing around with it a little more. Thanks!
 
Old 07-31-2008, 02:11 AM   #6
BugZRevengE
Member
 
Registered: Oct 2005
Location: Australia
Distribution: Slackware & Kubuntu & CentOS
Posts: 106

Rep: Reputation: 17
BIOS setting is that PCI cards usually do have to be booted before AGP cards back in those days - it is probably the same for PCI first and PCI Express second with modern systems.
They do have 3 screens setup, but only add two to the serverlayout. I am not sure why, and assumed they just set it up dummy...

Have a look at the references as well... Have a play, and get back on how it went (post your config for others to see)
 
  


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
I have 4 monitors using NVidia GForce and only 3 work. Mike3620 Linux - Hardware 2 01-14-2008 08:52 PM
1 nvidia card, 2 monitors, and a tv xtravar Linux - Hardware 8 07-15-2006 01:33 PM
2 monitors, nvidia, problem with window-size (maximize uses both monitors) meximex Linux - Hardware 1 05-19-2004 04:37 AM
Dual Monitors on one Card (nvidia) mastahnke Linux - Hardware 4 08-20-2003 07:57 PM
Xfree Dual Monitors and Nvidia... dcwvckd Linux - Software 3 06-15-2003 11:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:58 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