Re: kde4 and opengl



J.O. Aho wrote:
wcth wrote:
I installed kde4 from slackware-current, and opengl does not work.

glxinfo gives :

direct rendering: Yes
server glx vendor string: NVIDIA Corporation
server glx version string: 1.4
client glx vendor string: NVIDIA Corporation
client glx version string: 1.4
GLX version: 1.3
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce 7600 GS/PCI/SSE2
OpenGL version string: 2.1.2 NVIDIA 180.44

XRender works but slowly.
How could I get opengl working ?

Thank you in advance.

Is your driver properly installed?
Does the xorg.conf have the right modules enabled/disabled?
There are many tips in the nVidia driver documentation that comes together
with the closed source driver.

I have the following xorg.conf :

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

Section "Files"
FontPath "/usr/share/fonts/TTF"
FontPath "/usr/share/fonts/OTF"
FontPath "/usr/share/fonts/Type1"
FontPath "/usr/share/fonts/misc"
FontPath "/usr/share/fonts/75dpi/:unscaled"
EndSection

Section "Module"
SubSection "extmod"
Option "omit xfree86-dga" # don't initialise the DGA extension
EndSubSection
Load "freetype"
Load "glx"
EndSection

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

Section "InputDevice"
Identifier "Keyboard1"
Driver "kbd"
Option "AutoRepeat" "500 30"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "fr"
EndSection

Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "Auto" # Auto detect
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5"
Option "HWHEELRelativeAxisButtons" "7 6"
EndSection

Section "Monitor"
Identifier "xxx"
HorizSync 30.0 - 83.0
VertRefresh 56.0 - 76.0
EndSection

Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "DELL 2407WFP"
HorizSync 30.0 - 83.0
VertRefresh 56.0 - 76.0
EndSection

Section "Device"
Identifier "Standard VGA"
Driver "vga"
VendorName "Unknown"
BoardName "Unknown"
EndSection

Section "Device"
Identifier "xxx"
Driver "nvidia"
Option "RenderAccel" "true"
Option "AllowGLXWithComposite" "true"
Option "AddARGBGLXVisuals" "True"
EndSection

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

Section "Screen"
Identifier "Screen 1"
Device "xxx"
Monitor "xxx"
DefaultDepth 16
SubSection "Display"
Viewport 0 0
Depth 8
Modes "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
Modes "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
EndSection

Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
Option "AddARGBGLXVisuals" "True"
Option "DisableGLXRootClipping" "true"
Option "TripleBuffer" "true"
Option "TwinView" "0"
Option "metamodes" "1920x1200 +0+0; 1024x768 +0+0; 800x600 +0+0; 640x480 +0+0"
Option "RenderAccel" "true"
Option "AllowGLXWithComposite" "true"
Option "UseEvents" "false"
Option "DamageEvents" "1"
Option "BackingStore" "1"
Option "PixmapCacheSize" "1000000"
Option "OnDemandVBlankInterrupts" "true"
Option "AllowSHMPixmaps" "0"
Option "AllowUnofficialGLXProtocol" "true"
SubSection "Display"
Depth 24
Modes "nvidia-auto-select"
EndSubSection
EndSection

Section "Extensions"
Option "Composite" "Enable"
EndSection
.