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

Newegg Daily Deals

Reply
 
Thread Tools
Old 07-10-09, 10:05 AM   #1
rwmech
Registered User
 
Join Date: Jul 2009
Posts: 6
Default I'm going insane! - Dual Video Cards, Compiz, TwinView and Xinerama - Help!

I'm frustrated to no end trying to get my two 7100gs cards running under X. Im using ubuntu 9.x and this by far has been the most trying process I've ever had on Linux. I seem to be having the same issue as others with regards to Xinerama and OpenGL so I cant run Compiz. Additionally if I dont have Xinerama running the second X window is basically useless since I can't drag items to it.

I've attached my xorg.conf. what am I doing wrong here. I know I have a slightly different setup than most since most posts seem to be related to 1 video card with 2 outputs. I have 2 videocards with 4 outputs but right now I only want the 2 DVI outputs running (one on each card).

Can anyone here throw me a bone?

Code:
Section "ServerLayout"
    Identifier     "Default Layout"
    Screen      0  "Screen0" 0 0
    Screen      1  "Screen1" absolute 1680 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Module"
    Load           "glx"
EndSection

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

Section "InputDevice"

    # generated from default
    Identifier     "Keyboard0"
    Driver         "keyboard"
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 "Monitor"
    Identifier     "Configured Monitor 0"
EndSection

Section "Monitor"
    Identifier     "Configured Monitor 1"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "DCL"
    ModelName      "DCLCDDCL20AT"
    HorizSync       30.0 - 85.0
    VertRefresh     56.0 - 76.0
EndSection

Section "Monitor"
    Identifier     "Monitor1"
    VendorName     "Acer"
    ModelName      "Acer AL2016W"
    HorizSync       31.0 - 84.0
    VertRefresh     56.0 - 77.0
EndSection

Section "Device"
    Identifier     "VidCard0"
    Driver         "nvidia"
    BusID          "PCI:1:0:0"
EndSection

Section "Device"
    Identifier     "VidCard1"
    Driver         "nvidia"
    BusID          "PCI:3:0:0"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 7100 GS"
    BusID          "PCI:1:0:0"
EndSection

Section "Device"
    Identifier     "Device1"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 7100 GS"
    BusID          "PCI:3:0:0"
EndSection

Section "Screen"
   Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "NoLogo" "True"
    Option         "RenderAccel" "true"
    Option         "TwinViewOrientation" "LeftOf"
    Option         "TwinView" "1"
    Option         "metamodes" "nvidia-auto-select +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Screen1"
    Device         "Device1"
    Monitor        "Monitor1"
    DefaultDepth    24
    Option         "NoLogo" "True"
    Option         "RenderAccel" "true"
    Option         "TwinViewOrientation" "RightOf"
    Option         "TwinView" "1"
    Option         "metamodes" "nvidia-auto-select +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Extensions"
    Option         "Composite" "Enable"
EndSection
rwmech is offline   Reply With Quote
Old 07-10-09, 11:03 AM   #2
AaronP
NVIDIA Corporation
 
AaronP's Avatar
 
Join Date: Mar 2005
Posts: 2,487
Default Re: I'm going insane! - Dual Video Cards, Compiz, TwinView and Xinerama - Help!

I'm not sure what you expect. The X server does not support Xinerama with Composite, so that's not going to work. As for separate X screens, while you can't drag windows between them, you should at least be able to open new windows on the second screen.
AaronP is offline   Reply With Quote
Old 07-10-09, 12:01 PM   #3
rwmech
Registered User
 
Join Date: Jul 2009
Posts: 6
Default Re: I'm going insane! - Dual Video Cards, Compiz, TwinView and Xinerama - Help!

Quote:
Originally Posted by AaronP View Post
I'm not sure what you expect. The X server does not support Xinerama with Composite, so that's not going to work. As for separate X screens, while you can't drag windows between them, you should at least be able to open new windows on the second screen.
http://www.youtube.com/watch?v=1DWzuIreDGA

Here (from what I can see) you have multiple X Sessions running. I see drag and drop happening from one to the other. I also see that the setup here was a SLI based setup with 3 video cards.

I'm just trying to do this with 2 monitors and 2 cards. Thats what i'm trying to accomplish.

I want to use the OpenGL and Compiz so it works with both monitors. I dont care if there are 2 X Sessions running so long as they both work as expected.

It *LOOKS* like I can do what I want, but I have to say I'm pretty disappointed that its this much trouble to setup a dual head display properly under Linux. I've used Linux boxes for years as servers and wanted to setup a nice workstation but this kind of hurdle jumping is dissapointing.
rwmech is offline   Reply With Quote
Old 07-10-09, 12:14 PM   #4
adamk75
Registered User
 
Join Date: Nov 2006
Posts: 228
Default Re: I'm going insane! - Dual Video Cards, Compiz, TwinView and Xinerama - Help!

The individual who did that would have had to use some combination of twinview + xinerama to get opengl acceleration across all 6 screen, combined into only large screen, and then run Xgl on top of that in order to have the composite extension enabled. They would then have run compiz on top of Xgl.

This is possible but, yes, it is a real PITA, especially as Xgl development has been abandonned and it is entirely unsupported. You would need to use a linux distribution that still ships with Xgl, such as an older version of Ubuntu.

If you only want to use two monitors, you are much better off using two ports on one video card. If, for whatever reason, you must use two separate video cards, then you will have to jump through those hoops I described above to use compiz.

Adam
adamk75 is offline   Reply With Quote
Old 07-10-09, 12:34 PM   #5
rwmech
Registered User
 
Join Date: Jul 2009
Posts: 6
Default Re: I'm going insane! - Dual Video Cards, Compiz, TwinView and Xinerama - Help!

Thanks Adam - While not a solution but for sure an answer on why I cant get it working.

The most compelling reason I have to use the two video cards is that each one has VGA/DVI on them so I can only get DVI out of one card each. I also dual boot to XP64 Bit so I wanted to be able to do that without re-wiring my monitor every time.

Any chance this might change in the future?
rwmech is offline   Reply With Quote
Old 07-10-09, 12:43 PM   #6
adamk75
Registered User
 
Join Date: Nov 2006
Posts: 228
Default Re: I'm going insane! - Dual Video Cards, Compiz, TwinView and Xinerama - Help!

You would really need to check with the Xorg folks as this is a limitation in the X server. However, I have not heard of any plans on remedying this situation in the near future.

Adam
adamk75 is offline   Reply With Quote
Old 07-10-09, 03:11 PM   #7
rwmech
Registered User
 
Join Date: Jul 2009
Posts: 6
Default Re: I'm going insane! - Dual Video Cards, Compiz, TwinView and Xinerama - Help!

Are the only restrictions to use Compiz to have the GLX running with direct rendering? I ran across this aticle http://forums.opensuse.org/install-b...ost-there.html

It seems that adding the following option

Option "AllowGLXWithComposite" "True"

Allows the GLX to run with "Xinerama" running. I was able to make these modifications to my xorg.conf file remotely and restart X. glxinfo is reporting that it's using NVIDIA drivers and is enabled.

Would there be any reason that Compiz wouldnt run now? It's indeed moving from screen to screen as well so if I can get over the last hurdle I'll be good to go. Note that I havent actually seen this in action yet, my son was nice enough to do this much for me while I'm at work. I'll know more in about 4 hours.
rwmech is offline   Reply With Quote
Old 07-10-09, 03:54 PM   #8
AaronP
NVIDIA Corporation
 
AaronP's Avatar
 
Join Date: Mar 2005
Posts: 2,487
Default Re: I'm going insane! - Dual Video Cards, Compiz, TwinView and Xinerama - Help!

Compiz requires both the GLX extension and the Composited extension; the latter is what's not supported when Xinerama is enabled.

The AllowGLXWithComposite option turns on GLX (i.e. OpenGL) support when Composite is enabled on X servers that are too old to really handle both at the same time correctly. That bug has long since been fixed, and that option is enabled by default on any modern X server. It has nothing to do with Xinerama.
AaronP is offline   Reply With Quote

Old 07-10-09, 04:35 PM   #9
rwmech
Registered User
 
Join Date: Jul 2009
Posts: 6
Default Re: I'm going insane! - Dual Video Cards, Compiz, TwinView and Xinerama - Help!

Quote:
Originally Posted by AaronP View Post
Compiz requires both the GLX extension and the Composited extension; the latter is what's not supported when Xinerama is enabled.

The AllowGLXWithComposite option turns on GLX (i.e. OpenGL) support when Composite is enabled on X servers that are too old to really handle both at the same time correctly. That bug has long since been fixed, and that option is enabled by default on any modern X server. It has nothing to do with Xinerama.
So what is lacking support for Composite Mode, is this the NVidia Driver or Something in X?
rwmech is offline   Reply With Quote
Old 07-10-09, 05:36 PM   #10
AaronP
NVIDIA Corporation
 
AaronP's Avatar
 
Join Date: Mar 2005
Posts: 2,487
Default Re: I'm going insane! - Dual Video Cards, Compiz, TwinView and Xinerama - Help!

It's a limitation in the X server.
AaronP is offline   Reply With Quote
Old 07-13-09, 08:35 PM   #11
JaXXoN
Registered User
 
Join Date: Jul 2005
Location: Munich
Posts: 910
Default Re: I'm going insane! - Dual Video Cards, Compiz, TwinView and Xinerama - Help!

Quote:
Originally Posted by AaronP View Post
It's a limitation in the X server.
Last time I checked it was some "known bugs with Xinerama + Composite"
(http://www.nvnews.net/vbulletin/showthread.php?t=108300, posting #7)
SCNR

Anyway, did somebody incidentaly stumbled over any detailed information
on what kind of nature this bug or limitation is?


BTW., there might be a chance to overcome the problem by using DMX:

1. For each card in the PC, setup an input-less back-end X-Server
(using -sharevts and -novtswitch or whatever is appropriate today
in order to de-couple the X-Server from the console).

2. Setup a front-end DMX X-Server that accesses the input-devices of the
PC and uses the back-end X-Servers as output devices.

Here's a diagram to get the basic idea:

Code:
  PC
 ______________________________________________________
                                                       |
                                                       |
                         X-Server 1:0 --- GPU 1 --+----+--- LCD 1
                       /                           `---+--- LCD 2
                      /                                |
  DMX X-Server 0:0 --+-- X-Server 2:0 --- GPU 2 --+----+--- LCD 3
        |  |          \                            `---+--- LCD 4
        |  |           \                               |
        |  |             X-Server 3:0 --- GPU 3 --+----+--- LCD 5
        |  |                                       `---+--- LCD 6
        |  |                                           |
        |  |                                           |
        |   `------------------------------------------+--- Keyboard
        |                                              |
         `---------------------------------------------+--- Mouse
                                                       |
 ______________________________________________________|
Somebody tried something like this, yet?

I thing, DMX is basically doing the same job as XGLX, but on a high level
(X-Protocol vs. GLX/OpenGL only).

regards

Bernhard

Last edited by JaXXoN; 07-13-09 at 08:36 PM. Reason: typo
JaXXoN 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


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


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