x-output problems Error: glXCreateContext failed

Hi,

I just installed the sdk on a kubuntu system with two GTX295 (sli) cards and two displays with twinview. KDE works fine, but running sdk samples with x-output results in:

[ CUDA Mandelbrot/Julia Set ]
Initializing GLUT…
freeglut (./Mandelbrot): Unable to create direct context rendering for window ‘./Mandelbrot’
This may hurt performance.
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 156 (GLX)
Minor opcode of failed request: 5 (X_GLXMakeCurrent)
Serial number of failed request: 42
Current serial number in output stream: 42

Samples like sorting work. Then I started glxdemo, which shows the errormessage:


Error: glXCreateContext failed

I guess the problem is located in my xorg.conf, so I post it here:
[b]

Section “ServerLayout”
Identifier “Layout0”
Screen 0 “Screen0” 0 0
Screen 1 “Screen1” RightOf “Screen0”
Screen 2 “Screen2” RightOf “Screen1”
Screen 3 “Screen3” RightOf “Screen2”
InputDevice “Keyboard0” “CoreKeyboard”
InputDevice “Mouse0” “CorePointer”
EndSection

Section “Files”
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 “Unknown”
HorizSync 28.0 - 33.0
VertRefresh 43.0 - 72.0
Option “DPMS”
EndSection

Section “Monitor”
Identifier “Monitor1”
VendorName “Unknown”
ModelName “Unknown”
HorizSync 28.0 - 33.0
VertRefresh 43.0 - 72.0
Option “DPMS”
EndSection

Section “Monitor”
Identifier “Monitor2”
VendorName “Unknown”
ModelName “Unknown”
HorizSync 28.0 - 33.0
VertRefresh 43.0 - 72.0
Option “DPMS”
EndSection

Section “Monitor”
Identifier “Monitor3”
VendorName “Unknown”
ModelName “Unknown”
HorizSync 28.0 - 33.0
VertRefresh 43.0 - 72.0
Option “DPMS”
EndSection

Section “Device”
Identifier “Device0”
Driver “nvidia”
VendorName “NVIDIA Corporation”
BoardName “GeForce GTX 295”
BusID “PCI:15:0:0”
EndSection

Section “Device”
Identifier “Device1”
Driver “nvidia”
VendorName “NVIDIA Corporation”
BoardName “GeForce GTX 295”
BusID “PCI:14:0:0”
EndSection

Section “Device”
Identifier “Device2”
Driver “nvidia”
VendorName “NVIDIA Corporation”
BoardName “GeForce GTX 295”
BusID “PCI:11:0:0”
EndSection

Section “Device”
Identifier “Device3”
Driver “nvidia”
VendorName “NVIDIA Corporation”
BoardName “GeForce GTX 295”
BusID “PCI:10:0:0”
EndSection

Section “Screen”
Identifier “Screen0”
Device “Device0”
Monitor “Monitor0”
DefaultDepth 24
Option “TwinView” “True”
Option “MetaModes” “nvidia-auto-select, nvidia-auto-select”
Option “TwinViewOrientation” “LeftOf”
SubSection “Display”
Depth 24
EndSubSection
EndSection

Section “Screen”
Identifier “Screen1”
Device “Device1”
Monitor “Monitor1”
DefaultDepth 24
Option “TwinView” “True”
Option “MetaModes” “nvidia-auto-select, nvidia-auto-select”
Option “TwinViewOrientation” “LeftOf”
SubSection “Display”
Depth 24
EndSubSection
EndSection

Section “Screen”
Identifier “Screen2”
Device “Device2”
Monitor “Monitor2”
DefaultDepth 24
Option “TwinView” “True”
Option “MetaModes” “nvidia-auto-select, nvidia-auto-select”
Option “TwinViewOrientation” “LeftOf”
SubSection “Display”
Depth 24
EndSubSection
EndSection

Section “Screen”
Identifier “Screen3”
Device “Device3”
Monitor “Monitor3”
DefaultDepth 24
Option “TwinView” “True”
Option “MetaModes” “nvidia-auto-select, nvidia-auto-select”
Option “TwinViewOrientation” “LeftOf”
SubSection “Display”
Depth 24
EndSubSection
EndSection

[/b]

Any help is wellcome…
Philipp.

Ok, I solved it.
Deinstalling all nvidia* packages with apt-get and reinstalling the nvidia driver worked!