Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
multiple screens - xorg and nvidia
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
voodoodoc
Apprentice
Apprentice


Joined: 01 Feb 2004
Posts: 158

PostPosted: Fri Nov 05, 2004 4:20 pm    Post subject: multiple screens - xorg and nvidia Reply with quote

I have two monitors and I would like to run a single x screen on each of them. I'll be clear right off the bat. TwinView is not what I want. I have that working and it is annoying with one monitor being a nice giant lcd and the other a crappy crt that was laying around as junk. So what I want is for each monitor to be a different screen. The video card is an Nvidia Quadro FX. I plug both monitors into the card set up my xorg.conf file and restart x and it only shows up on one monitor, the crt.

How does the Xorg file know which monitor to apply which settings to. I switched around the cables to see if it made any difference and still the crt starts up. If I unplug it and restart x then the lcd roars to life. Clearly when I get this working I can fine tune it with different settings for each monitor.

How does Xorg know which server layout to use if I define more than one. Am I just not seeing this in the config file somewhere.

Also there are no errors apparent in the logs.

Here are the releveant sections of my xorg.conf file:

Code:

Section "Monitor"
    Identifier  "My Monitor"
    HorizSync   31.5-67
    VertRefresh 50-75
EndSection

Section "Monitor"
    Identifier "Dell"
    HorizSync 80
    VertRefresh 75
EndSection


Code:

Section "Device"
    Identifier  "NVIDIA Quadra FX (generic)"
    Driver      "nvidia"
   # VideoRam    131072
    # Insert Clocks lines here if appropriate
EndSection

Section "Device"
    Identifier  "NVIDIA 2"
    Driver      "nvidia"
EndSection


Code:

Section "Screen"
    Identifier  "Screen 1"
    Device      "NVIDIA Quadra FX (generic)"
    Monitor     "My Monitor"
    DefaultDepth 16

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

Section "Screen"
        Identifier "Screen 2"
        Device     "NVIDIA 2"
        Monitor    "Dell"
        DefaultDepth 24
        Subsection "Display"
                Depth   24
                Modes   "1280x1024" "800x600"
        EndSubsection
EndSection


And lastly
Code:

Section "ServerLayout"
    Identifier  "dual"
    Screen 0 "Screen 1"
    Screen 1 "Screen 2" RightOf "Screen 1"
    InputDevice "Mouse1" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"
EndSection


Section "ServerLayout"
    Identifier  "Simple Layout"
    Screen "Screen 1"
    InputDevice "Mouse1" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"
EndSection
Back to top
View user's profile Send private message
GENsnoop
Tux's lil' helper
Tux's lil' helper


Joined: 09 Mar 2004
Posts: 138

PostPosted: Fri Nov 05, 2004 6:59 pm    Post subject: Reply with quote

I would like to see a solve for this .. I have 2 monitors and I was thinking of setting this up .. someone know of a guide or feel like giving the answer would be most appreciated
_________________
.:GENtoo Linux:.
toshiba pentiumIII 700mhz 128mb ram 10gig hd =
micron PC AMD duron 750mhz 576mb ram 30gig hd =
Back to top
View user's profile Send private message
j0elbYte
Tux's lil' helper
Tux's lil' helper


Joined: 23 Sep 2004
Posts: 91
Location: SV

PostPosted: Fri Nov 05, 2004 8:12 pm    Post subject: Reply with quote

Haven't touched this before, but I think that you should give the server a clockline in the Device section.. This adress points to the respective outputs.. i think.. Try to run "Xorg -configure" from console as root, then check the output in ~root/... lspci can also show these numbers...
_________________
printf("format string what?");
Back to top
View user's profile Send private message
voodoodoc
Apprentice
Apprentice


Joined: 01 Feb 2004
Posts: 158

PostPosted: Fri Nov 05, 2004 8:39 pm    Post subject: Reply with quote

Quote:
someone know of a guide

I got the information to get this far from Nvidia's driver Readme file. Its in /usr/share/doc/Nvidia something usually.

Quote:
I think that you should give the server a clockline in the Device section..
The speed of the GPU's clock really does not matter here. Unless I am really in the dark on something.

Quote:
run "Xorg -configure"
And this will tell me what?

Quote:
lspci can also show these numbers

well here is the relevant part of cat /proc/pci (same thing as lspci does basically)
Code:
  Bus  1, device   0, function  0:
    VGA compatible controller: nVidia Corporation NV30GL [Quadro FX 1000] (rev 162).
      IRQ 17.
      Master Capable.  Latency=248.  Min Gnt=5.Max Lat=1.
      Non-prefetchable 32 bit memory at 0xf8000000 [0xf8ffffff].
      Prefetchable 32 bit memory at 0xe8000000 [0xefffffff].
Back to top
View user's profile Send private message
nightm4re
Guru
Guru


Joined: 20 Jun 2004
Posts: 519
Location: Providence, RI, USA

PostPosted: Fri Nov 05, 2004 8:49 pm    Post subject: Reply with quote

i have this setup. here's my xorgconf.

Code:

Section "ServerLayout"
        Identifier     "Single Screen"
        Screen         "Screen0" 0 0
        Screen      1  "Screen1" LeftOf "Screen0"
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"

        Option "StandbyTime" "20"
        Option "SuspendTime" "30"
EndSection

Section "Files"
        RgbPath      "/usr/X11R6/lib/X11/rgb"
        ModulePath   "/usr/X11R6/lib/modules"
        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/corefonts"
        FontPath         "/usr/share/fonts/artwiz"
        FontPath         "/usr/share/fonts/artwiz-alexzapka-en
        FontPath         "/usr/share/fonts/terminus"
        FontPath         "/usr/share/fonts/lfp-fix"
EndSection

Section "Module"
        Load  "extmod"
        Load  "dri"
        Load  "dbe"
        Load  "record"
        Load  "xtrap"
        Load  "glx"
        Load  "speedo"
        Load  "type1"
        Load  "freetype"
EndSection

Section "Extensions"
        Option "Composite" "true"
        Option "RENDER" "true"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "ExplorerPS/2"
        Option      "Buttons" "7"
        Option      "Device" "/dev/input/mice"
        Option      "ZAxisMapping" "6 7"
EndSection

Section "Monitor"
        Identifier   "Monitor1"
        VendorName   "Dell"
        ModelName    "D1528-LS"
        HorizSync    30-64
        VertRefresh  50-90
EndSection

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Gateway2000"
        ModelName    "Vivitron 15"
        HorizSync    31-64
        VertRefresh  50-120
EndSection

Section "Device"
        Identifier  "geforce"
        Driver      "nvidia"
        VendorName  "nVidia Corporation"
        BoardName   "NV25 [GeForce4 Ti 4600]"
        BusID       "PCI:3:0:0"
        Option      "NvAGP" "1"
        Option      "DPMS"
        Option      "RenderAccel" "1"
EndSection

Section "Device"
        Identifier "geforce1"
        Driver     "nvidia"
        BusID      "PCI:3:0:0"
        Option     "NvAGP" "1"
        Option     "DPMS"
        Option     "RenderAccel" "1"
        Screen     1
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "geforce"
        Monitor    "Monitor0"
        DefaultDepth 24
       
        SubSection "Display"
                Viewport   0 0
                Depth     24
                Modes "1280x1024"
        EndSubSection
EndSection

Section "Screen"
        Identifier "Screen1"
        Device "geforce1"
        Monitor "Monitor1"
        DefaultDepth 24
        Subsection "Display"
                Depth 24
                Modes "1024x768"
        EndSubSection
EndSection


obviously, adjust the mouse/fonts and all that stuff to your setup.
_________________
Nitrogen - GtkMM based background setter/restorer, please test!
Minuslab | d.minuslab.net
Back to top
View user's profile Send private message
voodoodoc
Apprentice
Apprentice


Joined: 01 Feb 2004
Posts: 158

PostPosted: Fri Nov 05, 2004 9:59 pm    Post subject: Reply with quote

Ok, checked out nightmare's xorg.conf file and another one that was posted in another post. Made some changes and still no luck. Although now the lcd is the monitor that starts up but the resolution is like 1024x768 instead of 1280x1024 as the config file dictates.

Here is my new xorg stuff
Quote:

Section "Monitor"
Identifier "My Monitor" #thsi is the LCD
HorizSync 31.5-67
VertRefresh 75
EndSection

Section "Monitor"
Identifier "Dell"
HorizSync 31.5-67
VertRefresh 75
EndSection


Section "Device"
Identifier "NVIDIA Quadra FX (generic)"
Driver "nvidia"
BusID "PCI:1:0:0"
#VideoRam 131072
# Insert Clocks lines here if appropriate
Option "DPMS" "on"
Option "NvAGP" "1"
Option "RenderAccel" "1"
Option "ConnectedMonitor" "DFP"
Screen 0
EndSection

Section "Device"
Identifier "NVIDIA 2"
Driver "nvidia"
BusID "PCI:1:0:0"
Option "NvAGP" "1"
Option "RenderAccel" "1"
Option "ConnectedMonitor" "CRT"
Screen 1
EndSection

Section "Screen"
Identifier "Screen 0"
Device "NVIDIA Quadra FX (generic)"
Monitor "My Monitor"
DefaultDepth 24

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

Section "Screen"
Identifier "Screen 1"
Device "NVIDIA 2"
Monitor "Dell"
DefaultDepth 24
Subsection "Display"
Depth 16
Modes "800x600"
EndSubsection
EndSection



# **********************************************************************
# ServerLayout sections.
# **********************************************************************
Section "ServerLayout"
Identifier "dual"
Screen 0 "Screen 0"
Screen 1 "Screen 1" RightOf "Screen 0"
InputDevice "Mouse1" "CorePointer"
InputDevice "Keyboard1" "CoreKeyboard"
EndSection


Again the log file gives me no hints. If needed I can post it.
Back to top
View user's profile Send private message
j0elbYte
Tux's lil' helper
Tux's lil' helper


Joined: 23 Sep 2004
Posts: 91
Location: SV

PostPosted: Sun Nov 07, 2004 12:41 pm    Post subject: Reply with quote

voodoc: You're right, i meant the BusID.. PCI:00:00.. That is somewhat relevant i guess? And if you probe with Xorg -configure, it will include those numbers in the new example config
_________________
printf("format string what?");
Back to top
View user's profile Send private message
voodoodoc
Apprentice
Apprentice


Joined: 01 Feb 2004
Posts: 158

PostPosted: Sun Nov 07, 2004 9:25 pm    Post subject: Reply with quote

BusID is only relevant if you have multiple video cards so X knows which card to use for what. With only one video card it is not required, but I did include it anyway in the most recent version. Actually just for the heck of it I included it as PCI 1 and as PCI 2 and it makes no difference. (The card is actually on PCI bus 2 there is nothing on bus 1).

As far as using the xorg -configure, no automatic type things like that work with Nvidia cards usually at least that has been my experience in the past with 3 different nvidia cards.
Back to top
View user's profile Send private message
j0elbYte
Tux's lil' helper
Tux's lil' helper


Joined: 23 Sep 2004
Posts: 91
Location: SV

PostPosted: Mon Nov 08, 2004 8:25 pm    Post subject: Reply with quote

That was news for me, thanks for clearing things up
_________________
printf("format string what?");
Back to top
View user's profile Send private message
voodoodoc
Apprentice
Apprentice


Joined: 01 Feb 2004
Posts: 158

PostPosted: Mon Nov 08, 2004 11:21 pm    Post subject: Reply with quote

In the end I just gave up and decided to use nvidia's twinview even though its kind of annoying when you maximize a window.

Last edited by voodoodoc on Fri Nov 12, 2004 5:58 pm; edited 1 time in total
Back to top
View user's profile Send private message
kiss-o-matic
Guru
Guru


Joined: 19 Jul 2004
Posts: 423
Location: Tokyo

PostPosted: Mon Nov 08, 2004 11:51 pm    Post subject: Reply with quote

Have you tried defining your modelines? I've had some widescreen 24" monitors for a while, and only recently did we get them to work in 1900x1200. This is for a quad display (20" monitors) that didn't require it, but the modelines were left in after the copy and paste job. I cut out some of the irrelevant sections.

Quote:

Section "Files"
EndSection

Section "ServerFlags"
Option "AllowMouseOpenFail"
EndSection

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

Section "InputDevice"
Driver "keyboard"
Identifier "Keyboard[0]"
Option "Protocol" "Standard"
Option "XkbLayout" "us"
Option "XkbModel" "pc104"
Option "XkbRules" "xfree86"
EndSection


Section "InputDevice"
Driver "mouse"
Identifier "Mouse[1]"
Option "ButtonNumber" "2"
Option "Buttons" "5"
Option "Device" "/dev/mouse"
Option "Name" "Autodetection"
Option "Protocol" "imps/2"
Option "Vendor" "Sysp"
Option "ZAxisMapping" "4 5"
EndSection

Section "Monitor"
HorizSync 30-75
Identifier "Monitor[0]"
ModelName "XX"
Option "DPMS"
VendorName "XX"
VertRefresh 50-60
UseModes "Modes[0]"
EndSection

Section "Modes"
Identifier "Modes[0]"
Modeline "1920x1200" 193.16 1920 2048 2256 2592 1200 1201 1204 1242 -HSync +VSync
Modeline "1600x1200" 162 1600 1664 1856 2160 1200 1201 1204 1250
Modeline "1152x870" 102.76 1152 1224 1352 1552 870 871 874 907
Modeline "1024x768" 79.52 1024 1080 1192 1360 768 769 772 801
Modeline "800x600" 47.53 800 840 920 1040 600 601 604 626
Modeline "640x480" 29.84 640 664 728 816 480 481 484 501
EndSection


Section "Screen"
DefaultDepth 16
SubSection "Display"
Depth 16
Modes "1920x1200" "1600x1200" "1152x870" "1024x768" "800x600" "640x480"
EndSubSection

Option "MetaModes" "1600x1200,1920x1200"
Option "TwinView"

SubSection "Display"
Depth 24
Modes "1920x1200" "1600x1200" "1152x870" "1024x768" "800x600" "640x480"
EndSubSection
Device "Device[0]"
Identifier "Screen[0]"
Monitor "Monitor[0]"
EndSection

Section "Screen"
DefaultDepth 16
SubSection "Display"
Depth 16
Modes "1920x1200" "1600x1200" "1152x870" "1024x768" "800x600" "640x480"
EndSubSection

Option "MetaModes" "1920x1200,1600x1200"
Option "TwinView"

SubSection "Display"
Depth 24
Modes "1920x1200" "1600x1200" "1152x870" "1024x768" "800x600" "640x480"
EndSubSection
Device "Device[1]"
Identifier "Screen[1]"
Monitor "Monitor[0]"
EndSection

Section "Device"
BoardName "Quadro4 200/400NVS"
BusID "6:0:0"
Driver "nvidia"
Identifier "Device[0]"
Screen 0
VendorName "NVidia"
EndSection
Section "Device"
BoardName "Quadro4 200/400NVS"
BusID "6:4:0"
Driver "nvidia"
Identifier "Device[1]"
Screen 0
VendorName "NVidia"
EndSection

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

Section "DRI"
Group "video"
Mode 0660
EndSection
Back to top
View user's profile Send private message
voodoodoc
Apprentice
Apprentice


Joined: 01 Feb 2004
Posts: 158

PostPosted: Fri Nov 12, 2004 6:07 pm    Post subject: Reply with quote

Modelines not really relevant in my case. Thats all well and good. The problem I have is I do not think my applications are Xinerama aware. I am using Nvidia's twinview and from what I read the reason it is "incompatible" with Xinerama is beacuse it calls off to Xinerama so that is why you don't explicitly turn on Xinerama, although I did try that and it made no difference so who cares. I changed my use flags to reflect Xinerama I'll recompile something when I get some more time and see if it works ok, might have to recompile gnome, which is not a big deal on this machine thank god.

Right now I have my crt (which sucks compared to the lcd) running at low res so I can crank of the very refresh rate and save my eyes but I need to enable the larger than physical size desktop, so I can pan around the screen, that way everything fits in the lcd and the crt I just pan no big deal.

The thing I really do not understand is how X determines which monitor is which.
Say I have

Section Monitor A stuff
Section Montor B stuff

Now what determines which monitor physcally corresponds with Monitor A stuff, it would be nice to know but in the end it does not really matter, just one of those things. So basically here is a working twin view enabled xorg config file for a nice lcd and a crappy crt using an Nvidia Quadra card.

Code:

Section "Module"
    Load        "dbe"     # Double buffer extension
    SubSection  "extmod"
      Option    "omit xfree86-dga"   # don't initialise the DGA extension
    EndSubSection
    Load        "type1"
    Load        "speedo"
    Load        "freetype"
    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/Speedo/"
    FontPath   "/usr/share/fonts/Type1/"
    FontPath   "/usr/share/fonts/CID/"
    FontPath   "/usr/share/fonts/75dpi/"
    FontPath   "/usr/share/fonts/100dpi/"
    FontPath   "/usr/share/fonts/local/"
EndSection

Section "ServerFlags"
    Option "Xinerama" "on"
EndSection

Section "InputDevice"
    Identifier   "Keyboard1"
    Driver   "Keyboard"
    Option "AutoRepeat" "500 30"
    Option "XkbRules"   "xorg"
    Option "XkbModel"   "pc104"
    Option "XkbLayout"   "us"
EndSection

Section "InputDevice"
    Identifier   "Mouse1"
    Driver   "mouse"
    Option "Protocol"    "IMPS/2"
    Option "Device"      "/dev/mouse"
    Option "ZAxisMapping" "4 5"
    Option "Emulate3Buttons" "no"
EndSection

Section "Monitor"
    Identifier  "LCD"
    HorizSync   31.5-67
    #VertRefresh 50-70
    VertRefresh 80
EndSection

Section "Monitor"
  Identifier "My Monitor"
  HorizSync 30-64
  VertRefresh 75
EndSection

Section "Device"
    Identifier  "NVIDIA Quadra FX (generic)"
    Driver      "nvidia"
    Option "TwinView" "true"
    # For some reason dell/crt/piece of junk is first and lcd second so its: "Dell, LCD"
    Option "MetaModes" "1024x768, 1280x1024; 1024x768,1024x768"
    Option "TwinViewOrientation" "LeftOf"
EndSection

Section "Screen"
    Identifier  "Screen 1"
    Device      "NVIDIA Quadra FX (generic)"
    Monitor     "My Monitor"
    DefaultDepth 24
    Subsection "Display"
        Depth       24
   Modes       "1280x1024" "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
EndSection


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

Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum