Setting up my enviroment for work with Opengl

Hi,
I have to prepare my practices for my OpenGL class, but I don’t known which packet I’ve to install (I use Debian).
I tried with glut. It compiled fine, but when I tried run the example programs, It shows:
GLUT: Fatal Error in cube: OpenGL GLX extension not supported by
display: :0

How can I fix it? I tried with the display option but i didn’t work
Thanks

do you have openGL installed properly? if you have an nvidia card, install their drivers. for most other cards, you need mesa: mesa.sourceforge.net

if you have that set up, make sure you have a line that says:

Load “glx”

in your XF86Config file…

… and disabled load dri in module section
and replace
driver=“nvidia” by driver=“nv”

this will be ok

actually, “nvidia” is the nvidia driver, and “nv” is the non accelerated mesa driver. you want “nvidia”

I’ve noticed that the Mandrake installation 8.1 have the Nvidia drivers ver. 1.0-1541 on the distribution discs, but the install puts version 1.0-1512 on the system. I’ve manually updated the drivers but can only get X-Windows to run using the nv driver instead of the nvidia driver. My (manually re-configured) XF86Config-4 file has finally managed to bring up X-Windows, unsing “nv” instead of “nvidia”, but OpenGL is still not ready for prime time on my system. Any suggestions?

I was sure that you need to put “nv” but not “nvidia”. This is the way given by Nvidia itself.

Concerning, mesa, i don’t use mesa.

ok, ill say it again. the driver called “nvidia” is the hardware accelerated driver from nvidia, the driver called “nv” is the non-accelerated driver that comes with x windows. here is an excerpt from the nvidia readme:

"If you already have an XF86Config file working with a different driver
(such as the ‘nv’ driver), then all you need to do is find the relevant
Device section and replace the line:

    Driver "nv"

with

    Driver "nvidia"

Jase: this is why “openGL is not ready for prime time” you arent using a hardware accelerated driver. perhaps if you show us the errors that X windows gives when it tries to start with the “nvidia” driver, we can help some more. the X windows log file should be /var/log/XFree86.0.log however, each time you start x windows, it gets overwritten, so make sure that after you start x windows with the “nvidia” driver and it fails to start, go move the file somewhere so that when you start it with the “nv” driver, it isnt overwritten…

My XF86Config-4 fileeads as follows:


**********************************************************************

Files section. This allows default font and rgb paths to be set

**********************************************************************

Section “Files”
RgbPath “/usr/X11R6/lib/X11/rgb”

FontPath	"/usr/X11R6/lib/X11/fonts/local/"
FontPath	"/usr/X11R6/lib/X11/fonts/misc/"
FontPath	"/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
FontPath	"/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
FontPath	"/usr/X11R6/lib/X11/fonts/Type1/"
FontPath	"/usr/X11R6/lib/X11/fonts/CID/"
FontPath	"/usr/X11R6/lib/X11/fonts/Speedo/"
FontPath	"/usr/X11R6/lib/X11/fonts/75dpi/"
FontPath	"/usr/X11R6/lib/X11/fonts/100dpi/"

ModulePath	"/usr/X11R6/lib/modules"

EndSection

**********************************************************************

Module section – this is an optional section which is used to specify

which run-time loadable modules to load when the X server starts up.

**********************************************************************

Section “Module”

Load “dbe”

SubSection	"extmod"
Option	"omit xfree86-dga"
EndSubSection
Load	"type1"
Load	"freetype"
Load	"glx"

EndSection

**********************************************************************

Server flags section. This contains various server-wide Options.

**********************************************************************

Section “ServerFlags”
Option “blank time” “10” # 10 minutes
Option “standby time” “20”
Option “suspend time” “30”
Option “off time” “60”
EndSection

**********************************************************************

Input devices

**********************************************************************

**********************************************************************

Core keyboard’s InputDevice section

**********************************************************************

Section “InputDevice”
Identifier “Keyboard1”
Driver “keyboard”
Option “AutoRepeat” “500 5”
Option “XkbModel” “pc104”
EndSection

**********************************************************************

Core Pointer’s InputDevice section

**********************************************************************

Section “InputDevice”
Identifier “Mouse1”
Driver “mouse”
Option “Protocol” “Microsoft”
Option “Device” “/dev/mouse”

Option “Protocol” “Auto”

Option “Protocol” “PS/2”

Option “Emulate3Buttons”

Option “Emulate3Timeout” “50”

Option “ChordMiddle”

EndSection

**********************************************************************

Monitor section

**********************************************************************

Section “Monitor”
Identifier “Generic Monitor”
HorizSync 30-50 # modification by jase - Axion mon
VertRefresh 40-65 # Modifcation by jase - Axion mon
Mode “800x600”
DotClock 40
HTimings 800 848 1000 1056
VTimings 600 605 607 633

Flags “”

EndMode

Option “dpms”

EndSection

**********************************************************************

Graphics device section

**********************************************************************

Section “Device”
Identifier “RIVA TNT2”
Driver “nv”

Chipset “generic”

VideoRam 4096

Clocks 25.2 28.3

BusID “PCI:0:10:0”

Option “hw cursor” “off”

Option	"NvAGP" "3"

EndSection

**********************************************************************

Screen sections.

**********************************************************************

Section “Screen”
Identifier “Screen TNT2”
Device “RIVA TNT2”
Monitor “Generic Monitor”
DefaultDepth 24

SubSection "Display"
Depth		8
Modes		"800x600"
EndSubSection

SubSection "Display"
Depth		16
Modes		"800x600"
EndSubSection

SubSection "Display"
Depth		24
Modes		"800x600"
EndSubSection

EndSection

**********************************************************************

ServerLayout sections.

**********************************************************************

Section “ServerLayout”
Identifier “Main Layout”
Screen “Screen TNT2”
InputDevice “Mouse1” “CorePointer”
InputDevice “Keyboard1” “CoreKeyboard”
EndSection


It generates a XFree log file as follows when I modify the driver to load as “nvidia” as opposed to “nv” as it appears here (the only change I made):


XFree86 Version 4.1.0 / X Window System
(protocol Version 11, revision 0, vendor release 6510)
Release Date: 2 June 2001
If the server is older than 6-12 months, or if your card is
newer than the above date, look for a newer version before
reporting problems. (See http://www.XFree86.Org/FAQ))
Build Operating System: Linux 2.4.8-5mdkenterprise i686 [ELF]
Module Loader present
(==) Log file: “/var/log/XFree86.0.log”, Time: Wed Nov 7 22:55:06 2001
(==) Using config file: “/etc/X11/XF86Config-4”
Markers: (–) probed, () from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) ServerLayout “Main Layout”
(
) |–>Screen “Screen TNT2” (0)
() | |–>Monitor “Generic Monitor”
(
) | |–>Device “RIVA TNT2”
() |–>Input Device “Mouse1”
(
) |–>Input Device “Keyboard1”
() Option “AutoRepeat” “500 5”
(
) Option “XkbModel” “pc104”
() XKB: model: “pc104”
(==) Keyboard: CustomKeycode disabled
(WW) The directory “/usr/X11R6/lib/X11/fonts/local/” does not exist.
Entry deleted from font path.
(WW) The directory “/usr/X11R6/lib/X11/fonts/CID/” does not exist.
Entry deleted from font path.
(
) FontPath set to “/usr/X11R6/lib/X11/fonts/misc/,/usr/X11R6/lib/X11/fonts/75dpi/:unscaled,/usr/X11R6/lib/X11/fonts/100dpi/:unscaled,/usr/X11R6/lib/X11/fonts/Type1/,/usr/X11R6/lib/X11/fonts/Speedo/, /usr/X11R6/lib/X11/fonts/75dpi/,/usr/X11R6/lib/X11/fonts/100dpi/”
() RgbPath set to “/usr/X11R6/lib/X11/rgb”
(
) ModulePath set to “/usr/X11R6/lib/modules”
() Option “BlankTime” “10”
(
) Option “StandbyTime” “20”
() Option “SuspendTime” “30”
(
) Option “OffTime” “60”
(–) using VT number 7

(II) Open APM successful
(II) Module ABI versions:
XFree86 ANSI C Emulation: 0.1
XFree86 Video Driver: 0.4
XFree86 XInput driver : 0.2
XFree86 Server Extension : 0.1
XFree86 Font Renderer : 0.2
(II) Loader running on linux
(II) LoadModule: “bitmap”
(II) Loading /usr/X11R6/lib/modules/fonts/libbitmap.a
(II) Module bitmap: vendor=“The XFree86 Project”
compiled for 4.1.0, module version = 1.0.0
Module class: XFree86 Font Renderer
ABI class: XFree86 Font Renderer, version 0.2
(II) Loading font Bitmap
(II) LoadModule: “pcidata”
(II) Loading /usr/X11R6/lib/modules/libpcidata.a
(II) Module pcidata: vendor=“The XFree86 Project”
compiled for 4.1.0, module version = 0.1.0
ABI class: XFree86 Video Driver, version 0.4
(II) PCI: Probing config type using method 1
(II) PCI: Config type is 1
(II) PCI: stages = 0x03, oldVal1 = 0x00000000, mode1Res1 = 0x80000000
(II) PCI: PCI scan (all values are in hex)
(II) PCI: 00:00:0: chip 10b9,1541 card 10b9,1541 rev 04 class 06,00,00 hdr 00
(II) PCI: 00:01:0: chip 10b9,5243 card 0000,0000 rev 04 class 06,04,00 hdr 01
(II) PCI: 00:02:0: chip 10b9,5237 card 0000,0000 rev 03 class 0c,03,10 hdr 00
(II) PCI: 00:07:0: chip 10b9,1533 card 0000,0000 rev c3 class 06,01,00 hdr 00
(II) PCI: 00:0e:0: chip 1274,5880 card 1274,8001 rev 02 class 04,01,00 hdr 00
(II) PCI: 00:0f:0: chip 10b9,5229 card 0000,0000 rev c1 class 01,01,fa hdr 00
(II) PCI: 00:12:0: chip 1013,4000 card 0000,0000 rev 00 class 07,80,00 hdr 00
(II) PCI: 01:00:0: chip 10de,002d card 0000,0000 rev 15 class 03,00,00 hdr 00
(II) PCI: End of PCI scan
(II) LoadModule: “scanpci”
(II) Loading /usr/X11R6/lib/modules/libscanpci.a
(II) Module scanpci: vendor=“The XFree86 Project”
compiled for 4.1.0, module version = 0.1.0
ABI class: XFree86 Video Driver, version 0.4
(II) UnloadModule: “scanpci”
(II) Unloading /usr/X11R6/lib/modules/libscanpci.a
(II) Host-to-PCI bridge:
(II) PCI-to-ISA bridge:
(II) PCI-to-PCI bridge:
(II) Bus 0: bridge is at (0:0:0), (-1,0,0), BCTRL: 0x08 (VGA_EN is set)
(II) Bus 0 I/O range:
[0] -1 0x00000000 - 0x0000ffff (0x10000) IX[b]
(II) Bus 0 non-prefetchable memory range:
[0] -1 0x00000000 - 0xffffffff (0x0) MX[b]
(II) Bus 0 prefetchable memory range:
[0] -1 0x00000000 - 0xffffffff (0x0) MX[b]
(II) Bus 1: bridge is at (0:1:0), (0,1,1), BCTRL: 0x0b (VGA_EN is set)
(II) Bus 1 I/O range:
[0] -1 0x0000c000 - 0x0000cfff (0x1000) IX[b]
(II) Bus 1 non-prefetchable memory range:
[0] -1 0xcde00000 - 0xcfefffff (0x2100000) MX[b]
(II) Bus 1 prefetchable memory range:
[0] -1 0xc9c00000 - 0xcdcfffff (0x4100000) MX[b]
(II) Bus -1: bridge is at (0:7:0), (0,-1,0), BCTRL: 0x08 (VGA_EN is set)
(II) Bus -1 I/O range:
(II) Bus -1 non-prefetchable memory range:
(II) Bus -1 prefetchable memory range:
(–) PCI:*(1:0:0) NVidia Riva Ultra 64 rev 21, Mem @ 0xce000000/24, 0xca000000/25, BIOS @ 0xcfef0000/16
(II) Addressable bus resource ranges are
[0] -1 0x00000000 - 0xffffffff (0x0) MX[b]
[1] -1 0x00000000 - 0x0000ffff (0x10000) IX[b]
(II) OS-reported resource ranges:
[0] -1 0xffe00000 - 0xffffffff (0x200000) MXb
[1] -1 0x00100000 - 0x3fffffff (0x3ff00000) MX[b]E(B)
[2] -1 0x000f0000 - 0x000fffff (0x10000) MX[b]
[3] -1 0x000c0000 - 0x000effff (0x30000) MX[b]
[4] -1 0x00000000 - 0x0009ffff (0xa0000) MX[b]
[5] -1 0x0000ffff - 0x0000ffff (0x1) IX[b]
[6] -1 0x00000000 - 0x000000ff (0x100) IX[b]
(II) Active PCI resource ranges:
[0] -1 0xdfffe000 - 0xdfffefff (0x1000) MX[b]
[1] -1 0xdffff000 - 0xdfffffff (0x1000) MX[b]
[2] -1 0xe0000000 - 0xe3ffffff (0x4000000) MX[b]
[3] -1 0xcfef0000 - 0xcfefffff (0x10000) MXb
[4] -1 0xca000000 - 0xcbffffff (0x2000000) MXb
[5] -1 0xce000000 - 0xceffffff (0x1000000) MXb
[6] -1 0x0000dc00 - 0x0000dcff (0x100) IX[b]
[7] -1 0x0000ffa0 - 0x0000ffaf (0x10) IX[b]
[8] -1 0x0000df00 - 0x0000df3f (0x40) IX[b]
(II) Active PCI resource ranges after removing overlaps:
[0] -1 0xdfffe000 - 0xdfffefff (0x1000) MX[b]
[1] -1 0xdffff000 - 0xdfffffff (0x1000) MX[b]
[2] -1 0xe0000000 - 0xe3ffffff (0x4000000) MX[b]
[3] -1 0xcfef0000 - 0xcfefffff (0x10000) MXb
[4] -1 0xca000000 - 0xcbffffff (0x2000000) MXb
[5] -1 0xce000000 - 0xceffffff (0x1000000) MXb
[6] -1 0x0000dc00 - 0x0000dcff (0x100) IX[b]
[7] -1 0x0000ffa0 - 0x0000ffaf (0x10) IX[b]
[8] -1 0x0000df00 - 0x0000df3f (0x40) IX[b]
(II) OS-reported resource ranges after removing overlaps with PCI:
[0] -1 0xffe00000 - 0xffffffff (0x200000) MXb
[1] -1 0x00100000 - 0x3fffffff (0x3ff00000) MX[b]E(B)
[2] -1 0x000f0000 - 0x000fffff (0x10000) MX[b]
[3] -1 0x000c0000 - 0x000effff (0x30000) MX[b]
[4] -1 0x00000000 - 0x0009ffff (0xa0000) MX[b]
[5] -1 0x0000ffff - 0x0000ffff (0x1) IX[b]
[6] -1 0x00000000 - 0x000000ff (0x100) IX[b]
(II) All system resource ranges:
[0] -1 0xffe00000 - 0xffffffff (0x200000) MXb
[1] -1 0x00100000 - 0x3fffffff (0x3ff00000) MX[b]E(B)
[2] -1 0x000f0000 - 0x000fffff (0x10000) MX[b]
[3] -1 0x000c0000 - 0x000effff (0x30000) MX[b]
[4] -1 0x00000000 - 0x0009ffff (0xa0000) MX[b]
[5] -1 0xdfffe000 - 0xdfffefff (0x1000) MX[b]
[6] -1 0xdffff000 - 0xdfffffff (0x1000) MX[b]
[7] -1 0xe0000000 - 0xe3ffffff (0x4000000) MX[b]
[8] -1 0xcfef0000 - 0xcfefffff (0x10000) MXb
[9] -1 0xca000000 - 0xcbffffff (0x2000000) MXb
[10] -1 0xce000000 - 0xceffffff (0x1000000) MXb
[11] -1 0x0000ffff - 0x0000ffff (0x1) IX[b]
[12] -1 0x00000000 - 0x000000ff (0x100) IX[b]
[13] -1 0x0000dc00 - 0x0000dcff (0x100) IX[b]
[14] -1 0x0000ffa0 - 0x0000ffaf (0x10) IX[b]
[15] -1 0x0000df00 - 0x0000df3f (0x40) IX[b]
(II) LoadModule: “extmod”
(II) Loading /usr/X11R6/lib/modules/extensions/libextmod.a
(II) Module extmod: vendor=“The XFree86 Project”
compiled for 4.1.0, module version = 1.0.0
Module class: XFree86 Server Extension
ABI class: XFree86 Server Extension, version 0.1
(II) Loading extension SHAPE
(II) Loading extension MIT-SUNDRY-NONSTANDARD
(II) Loading extension BIG-REQUESTS
(II) Loading extension SYNC
(II) Loading extension MIT-SCREEN-SAVER
(II) Loading extension XC-MISC
(II) Loading extension XFree86-VidModeExtension
(II) Loading extension XFree86-Misc
(II) Loading extension DPMS
(II) Loading extension FontCache
(II) Loading extension TOG-CUP
(II) Loading extension Extended-Visual-Information
(II) Loading extension XVideo
(II) Loading extension XVideo-MotionCompensation
(II) LoadModule: “type1”
(II) Loading /usr/X11R6/lib/modules/fonts/libtype1.a
(II) Module type1: vendor=“The XFree86 Project”
compiled for 4.1.0, module version = 1.0.0
Module class: XFree86 Font Renderer
ABI class: XFree86 Font Renderer, version 0.2
(II) Loading font Type1
(II) Loading font CID
(II) LoadModule: “freetype”
(II) Loading /usr/X11R6/lib/modules/fonts/libfreetype.a
(II) Module freetype: vendor=“The XFree86 Project”
compiled for 4.1.0, module version = 1.1.9
Module class: XFree86 Font Renderer
ABI class: XFree86 Font Renderer, version 0.2
(II) Loading font FreeType
(II) LoadModule: “glx”
(II) Loading /usr/X11R6/lib/modules/extensions/libglx.a
(II) Module glx: vendor=“The XFree86 Project”
compiled for 4.1.0, module version = 1.0.0
ABI class: XFree86 Server Extension, version 0.1
(II) Loading sub module “GLcore”
(II) LoadModule: “GLcore”
(II) Loading /usr/X11R6/lib/modules/extensions/libGLcore.a
(II) Module GLcore: vendor=“The XFree86 Project”
compiled for 4.1.0, module version = 1.0.0
ABI class: XFree86 Server Extension, version 0.1
(II) Loading extension GLX
(II) LoadModule: “nvidia”
(II) Loading /usr/X11R6/lib/modules/drivers/nvidia_drv.o
(II) Module nvidia: vendor=“NVIDIA Corporation”
compiled for 4.0.2, module version = 1.0.1541
Module class: XFree86 Video Driver
(II) LoadModule: “mouse”
(II) Loading /usr/X11R6/lib/modules/input/mouse_drv.o
(II) Module mouse: vendor=“The XFree86 Project”
compiled for 4.1.0, module version = 1.0.0
Module class: XFree86 XInput Driver
ABI class: XFree86 XInput driver, version 0.2
(II) NVIDIA: NVIDIA driver for: RIVA TNT, RIVA TNT2, RIVA TNT2 Ultra,
RIVA TNT2 Vanta, RIVA TNT2 M64, RIVA TNT2 0x002E, RIVA TNT2 0x002F,
RIVA Aladdin TNT2, GeForce 256, GeForce DDR, Quadro, GeForce2 MX,
GeForce2 MX 100/200, GeForce2 Go, GeForce2 MXR, GeForce2 GTS,
GeForce2, GeForce2 Ultra, Quadro2 Pro, GeForce3, GeForce3, GeForce3,
Quadro DCC
(II) Primary Device is: PCI 01:00:0
(–) Assigning device section with no busID to primary device
(–) Chipset RIVA TNT2 M64 found
(II) resource ranges after xf86ClaimFixedResources() call:
[0] -1 0xffe00000 - 0xffffffff (0x200000) MXb
[1] -1 0x00100000 - 0x3fffffff (0x3ff00000) MX[b]E(B)
[2] -1 0x000f0000 - 0x000fffff (0x10000) MX[b]
[3] -1 0x000c0000 - 0x000effff (0x30000) MX[b]
[4] -1 0x00000000 - 0x0009ffff (0xa0000) MX[b]
[5] -1 0xdfffe000 - 0xdfffefff (0x1000) MX[b]
[6] -1 0xdffff000 - 0xdfffffff (0x1000) MX[b]
[7] -1 0xe0000000 - 0xe3ffffff (0x4000000) MX[b]
[8] -1 0xcfef0000 - 0xcfefffff (0x10000) MXb
[9] -1 0xca000000 - 0xcbffffff (0x2000000) MXb
[10] -1 0xce000000 - 0xceffffff (0x1000000) MXb
[11] -1 0x0000ffff - 0x0000ffff (0x1) IX[b]
[12] -1 0x00000000 - 0x000000ff (0x100) IX[b]
[13] -1 0x0000dc00 - 0x0000dcff (0x100) IX[b]
[14] -1 0x0000ffa0 - 0x0000ffaf (0x10) IX[b]
[15] -1 0x0000df00 - 0x0000df3f (0x40) IX[b]
(II) resource ranges after probing:
[0] -1 0xffe00000 - 0xffffffff (0x200000) MXb
[1] -1 0x00100000 - 0x3fffffff (0x3ff00000) MX[b]E(B)
[2] -1 0x000f0000 - 0x000fffff (0x10000) MX[b]
[3] -1 0x000c0000 - 0x000effff (0x30000) MX[b]
[4] -1 0x00000000 - 0x0009ffff (0xa0000) MX[b]
[5] -1 0xdfffe000 - 0xdfffefff (0x1000) MX[b]
[6] -1 0xdffff000 - 0xdfffffff (0x1000) MX[b]
[7] -1 0xe0000000 - 0xe3ffffff (0x4000000) MX[b]
[8] -1 0xcfef0000 - 0xcfefffff (0x10000) MXb
[9] -1 0xca000000 - 0xcbffffff (0x2000000) MXb
[10] -1 0xce000000 - 0xceffffff (0x1000000) MXb
[11] 0 0x000a0000 - 0x000affff (0x10000) MS[b]
[12] 0 0x000b0000 - 0x000b7fff (0x8000) MS[b]
[13] 0 0x000b8000 - 0x000bffff (0x8000) MS[b]
[14] -1 0x0000ffff - 0x0000ffff (0x1) IX[b]
[15] -1 0x00000000 - 0x000000ff (0x100) IX[b]
[16] -1 0x0000dc00 - 0x0000dcff (0x100) IX[b]
[17] -1 0x0000ffa0 - 0x0000ffaf (0x10) IX[b]
[18] -1 0x0000df00 - 0x0000df3f (0x40) IX[b]
[19] 0 0x000003b0 - 0x000003bb (0xc) IS[b]
[20] 0 0x000003c0 - 0x000003df (0x20) IS[b]
(II) Setting vga for screen 0.
(II) Loading sub module “vgahw”
(II) LoadModule: “vgahw”
(II) Loading /usr/X11R6/lib/modules/libvgahw.a
(II) Module vgahw: vendor=“The XFree86 Project”
compiled for 4.1.0, module version = 0.1.0
ABI class: XFree86 Video Driver, version 0.4
() NVIDIA(0): Depth 24, (–) framebuffer bpp 32
(==) NVIDIA(0): RGB weight 888
(==) NVIDIA(0): Default visual is TrueColor
(==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
(
) NVIDIA(0): Option “NvAGP” “3”
(**) NVIDIA(0): Use of any AGP requested (try AGPGART, then try NVIDIA’s AGP)
(–) NVIDIA(0): Linear framebuffer at 0xCA000000
(–) NVIDIA(0): MMIO registers at 0xCE000000
(EE) NVIDIA(0): Failed to initialize the NVdriver kernel module!
(EE) NVIDIA(0): *** Aborting ***
(II) UnloadModule: “nvidia”
(II) UnloadModule: “vgahw”
(II) Unloading /usr/X11R6/lib/modules/libvgahw.a
(EE) Screen(s) found, but none have a usable configuration.

Fatal server error:
no screens found

When reporting a problem related to a server crash, please send
the full server output, not just the last messages.
This can be found in the log file “/var/log/XFree86.0.log”.
Please report problems to xfree86@xfree86.org.


ok, im going to assume that the XF86Config file you posted works, because it uses the “nv” driver, instead of the “nvidia” driver. that doesnt matter though, because the file is correct. <edit>hehe, i just saw that you said this in your post, sorry…</edit>

the problem you are having is that you arent loading the nvidia kernel module. before you start x windows, try typeing this in at the command line (you must be root):

insmod NVdriver

then try starting x widnows with the “nvidia” driver. this needs to be done once, each time your computer boots. the easiest way to do that, is to put it in one of your startup scripts. read the manuals that come with your distro to see how to do this (there may be some sort of graphical utility to do that). or you could log in as root each time, run the command, log out, log in as yourself, and run x windows, which would be a pain…

[This message has been edited by Spiral Man (edited 11-08-2001).]

Originally posted by Spiral Man:
[b]ok, im going to assume that the XF86Config file you posted works, because it uses the “nv” driver, instead of the “nvidia” driver. that doesnt matter though, because the file is correct. <edit>hehe, i just saw that you said this in your post, sorry…</edit>

the problem you are having is that you arent loading the nvidia kernel module. before you start x windows, try typeing this in at the command line (you must be root):

insmod NVdriver

then try starting x widnows with the “nvidia” driver. this needs to be done once, each time your computer boots. the easiest way to do that, is to put it in one of your startup scripts. read the manuals that come with your distro to see how to do this (there may be some sort of graphical utility to do that). or you could log in as root each time, run the command, log out, log in as yourself, and run x windows, which would be a pain…

[This message has been edited by Spiral Man (edited 11-08-2001).][/b]

The problem is that with the distro that I have, they don’t explain how to edit the startup scripts.

ok, well, there should be a bunch of scripts in /etc/rc.d id look around in that. there may be a file called “rc.modules” or “rc.local” in that directory. if there is, simply add

/sbin/modprobe NVdriver

to the end of the file, and see if that works. if the files dont exist look in the directory for a file that has a bunch of lines that look like that, but are preceded by a ‘#’ (thats a comment in a shell script) and add it to the end of that.

hope you can finally get it working!

I tried your solution and the insmod command works to load the nvidia driver. However, OpenGL apps crash the desktop back to the command prompt. At first in the XFree86 log, it appears the glx driver is loading. Then, it appears it cannot load upon crash… I’m at a loss. I’ve even tried adding the “IgnoreEDID” “on” option for the driver to force it not to poll the monitor (my monitor’s 1024x768 mode is plain broken and even crashes windows).

try disabling agp, or changing which agp driver you are using. i dont remember the exact settings, but the nvidia pdf has a nice description of how to do it, and what some good defaults are…

The modifications to the rc.local file allowed the nVidia drivers to load, but the thing still crashes on OpenGL apps being loaded. I deactivated AGP in the XF86Config-4, but that still didn’t solve the problem. Is it possible I am missing some run-time libraries, and which ones are the likely culprits.

Eureka!!! I got the thing to run by renaming the libglx.a file to prevent it from being loaded. There is a conflict between the two packages, libglx.a (loaded by MESA and not always deleted upon uninstalling MESA) and libglx.so (which nVidia loads).

There is a troubleshooting FAQ that can be found by doing a search on Google for the terms; opengl nvidia troubleshooting.

Thanks to everyone for their help.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.