PDA

View Full Version : Dual Head (2 vid cards) & OpenGL


Kapoentje
03-31-03, 07:11 AM
To start off, here is my current setup:
Slackware 9
KDE 3.1 - XFree 4.3.0
main graphical card: gf2 mx 400 AGP 64 sdram
second card: SiS 65xx PCI 8 meg ram
both cards have their own screen attached (so twinview isnt used and not an option).
Nvidia drivers: v4191 (compiled them from tar.gz files)

Xinerama seems to work fine with all kinds of 2D applications. Whenever I try to start an OpenGL
application (eg. Quake 3), the wrong video card/screen is selected. The old pci card isnt capable of OpenGL acceleration so this gives some nice black screens and a lot of hangups :( .

I tried switching the boot sequence of both cards in the bios, but the same problems remain.
However, disabling Xinerama (and therefore my dual head config) helped. Everything seems to work fine as long as I only have 1 screen to use.

How do I tell XFree to boot OpenGL applications on a certain screen/card? (in this case my gf2 card).

AlgUSF
03-31-03, 08:14 AM
In the documentation on nVidia's site, they say this about openGL and Xinerama.

Currently, OpenGL will not display to anything other than the first display

I tried Xinerama, but I didin't like it, especially the problems with OGL.

Kapoentje
03-31-03, 09:14 AM
Ok, but why does the problem remain even I make the GF 2 card the primary adaptor in my bios? Or do I have to change another setting in my XFree config?

AlgUSF
03-31-03, 09:37 AM
Do you have the nVidia card setup as the first display in your XFree86 config file?

Kapoentje
03-31-03, 10:41 AM
Yes, this piece of code is from my config file. It indicates that the second monitor is left from the primary display.


Section "ServerLayout"
Identifier "XFree86 Configured"
Screen "Screen0"
Screen "Screen1" LeftOf "Screen0"
Option "Xinerama" "on"
InputDevice "Configured Mouse" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection


If I'm not mistaking this clearly states that Screen1 (with SiS card attached) is second to Screen0.

Or is there another way of setting the primary display?

Kapoentje
04-01-03, 03:21 AM
Screen "Screen1" LeftOf "Screen0"


If I change this to RightOf everything seems to work fine, but then I have to scroll right to enter my screen on the left :D