LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-25-2006, 11:16 PM   #1
verbose
Member
 
Registered: Aug 2004
Distribution: deb lenny 2.6.21-amd64
Posts: 320

Rep: Reputation: 31
nv fx5200 pci glxgears problems


I finally got my video card working and am using the generic drivers, since I was never able to build the kernel interface for the latest drivers for some reason... I'm still not sure.

Glxgears is running waaay slower than I'd expect and I keep getting this "fatal IO error 104", which I've read is the result of a problem in hw.


Code:
$ glxgears
Xlib:  extension "XFree86-DRI" missing on display ":0.0".
324 frames in 5.0 seconds = 64.800 FPS
280 frames in 5.0 seconds = 56.000 FPS
280 frames in 6.0 seconds = 46.667 FPS
280 frames in 5.0 seconds = 56.000 FPS
280 frames in 6.0 seconds = 46.667 FPS
XIO:  fatal IO error 104 (Connection reset by peer) on X server ":0.0"
      after 3201 requests (30 known processed) with 0 events remaining.
Code:
$ glxinfo
name of display: :0.0
Xlib:  extension "XFree86-DRI" missing on display ":0.0".
display: :0  screen: 0
direct rendering: No
server glx vendor string: SGI
server glx version string: 1.2
server glx extensions:
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
client glx vendor string: SGI
client glx version string: 1.2
client glx extensions:
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
GLX extensions:
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
OpenGL vendor string: Mesa project: www.mesa3d.org
OpenGL renderer string: Mesa GLX Indirect
OpenGL version string: 1.3 Mesa 4.0.4
OpenGL extensions:
    GL_ARB_imaging, GL_ARB_multitexture, GL_ARB_texture_border_clamp,
    GL_ARB_texture_cube_map, GL_ARB_texture_env_add,
    GL_ARB_texture_env_combine, GL_ARB_texture_env_dot3,
    GL_ARB_transpose_matrix, GL_EXT_abgr, GL_EXT_blend_color,
    GL_EXT_blend_minmax, GL_EXT_blend_subtract, GL_EXT_texture_env_add,
    GL_EXT_texture_env_combine, GL_EXT_texture_env_dot3,
    GL_EXT_texture_lod_bias
glu version: 1.3
glu extensions:
    GLU_EXT_nurbs_tessellator, GLU_EXT_object_space_tess
Here is my XF86Config-4 file:
Code:
Section "Files"
	FontPath	"unix/:7100"			# local font server
	# if the local font server has problems, we can fall back on these
        FontPath        "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
        FontPath        "/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID"
        FontPath        "/usr/share/fonts/truetype"
        FontPath        "/usr/local/share/fonts/truetype"
        FontPath        "/usr/lib/X11/fonts/CID"
        FontPath        "/usr/lib/X11/fonts/Speedo"
	FontPath	"/usr/lib/X11/fonts/misc"
	FontPath	"/usr/lib/X11/fonts/cyrillic"
	FontPath	"/usr/lib/X11/fonts/100dpi/:unscaled"
	FontPath	"/usr/lib/X11/fonts/75dpi/:unscaled"
	FontPath	"/usr/lib/X11/fonts/Type1"
	FontPath	"/usr/lib/X11/fonts/CID"
	FontPath	"/usr/lib/X11/fonts/Speedo"
	FontPath	"/usr/lib/X11/fonts/100dpi"
	FontPath	"/usr/lib/X11/fonts/75dpi"
EndSection

Section "Module"
#	Load	"GLcore"
	Load	"bitmap"
	Load	"dbe"
	Load	"ddc"
#	Load	"dri"
	Load	"extmod"
	Load	"freetype"
	Load	"glx"
	Load	"int10"
	Load	"record"
	Load	"speedo"
	Load	"type1"
	Load	"vbe"
EndSection

Section "InputDevice"
	Identifier	"Generic Keyboard"
	Driver		"keyboard"
	Option		"CoreKeyboard"
	Option		"XkbRules"	"xfree86"
	Option		"XkbModel"	"pc104"
	Option		"XkbLayout"	"us"
EndSection

Section "InputDevice"
	Identifier	"Configured Mouse"
	Driver		"mouse"
	Option		"CorePointer"
	Option		"Device"		"/dev/psaux"
	Option		"Protocol"		"ImPS/2"
	Option		"Emulate3Buttons"	"true"
	Option		"ZAxisMapping"		"4 5"
EndSection
Section "InputDevice"
	Identifier	"Generic Mouse"
	Driver		"mouse"
	Option		"SendCoreEvents"	"true"
	Option		"Device"		"/dev/input/mice"
	Option		"Protocol"		"ImPS/2"
	Option		"Emulate3Buttons"	"true"
	Option		"ZAxisMapping"		"4 5"
EndSection

Section "Device"
#	Identifier	"Intel Corporation 82810 CGC [Chipset Graphics Controller]"
#	Driver		"i810"
	Identifier	"FX5200"
	Driver		"nv"
EndSection

Section "Monitor"
	Identifier	"Dell P1110"
	HorizSync	30-121
	VertRefresh	48-160
	Option		"DPMS"
EndSection

Section "Screen"
	Identifier	"Default Screen"
#	Device		"Intel Corporation 82810 CGC [Chipset Graphics Controller]"
	Device		"FX5200"
	Monitor		"Dell P1110"
	DefaultDepth	24
#	SubSection "Display"
#		Depth		1
#		Modes		"1600x1200" "1280x1024" "1280x960" "1152x864"
#	EndSubSection
#	SubSection "Display"
#		Depth		4
#		Modes		"1600x1200" "1280x1024" "1280x960" "1152x864"
#	EndSubSection
#	SubSection "Display"
#		Depth		8
#		Modes		"1600x1200" "1280x1024" "1280x960" "1152x864"
#	EndSubSection
#	SubSection "Display"
#		Depth		15
#		Modes		"1600x1200" "1280x1024" "1280x960" "1152x864"
#	EndSubSection
#	SubSection "Display"
#		Depth		16
#		Modes		"1600x1200" "1280x1024" "1280x960" "1152x864"
#	EndSubSection
	SubSection "Display"
		Depth		24
		Modes		"2560x1600" "1920x1200" "1680x1050" "1600x1200" "1280x1024" "1280x960" "1152x864"
	EndSubSection
#	SubSection "Display"
#		Depth		32
#		Modes		"2560x1600" "1920x1200" "1680x1050" "1600x1200" "1280x1024" "1280x960" "1152x864"
#	EndSubSection
EndSection

Section "ServerLayout"
	Identifier	"Default Layout"
	Screen		"Default Screen"
	InputDevice	"Generic Keyboard"
	InputDevice	"Configured Mouse"
	InputDevice	"Generic Mouse"
EndSection

Section "DRI"
	Mode	0666
EndSection
Specs:
Celeron A 733MHz
Nvidia FX5200 PCI
319MB PC133 RAM


Thanks



edit: Screen res is 1600x1200.
 
Old 03-26-2006, 12:13 AM   #2
kak
Member
 
Registered: Jul 2004
Location: Moriarty, NM, USA about 100 yards form Rattle Snake Coutry
Distribution: Slackware , Ubuntu
Posts: 269

Rep: Reputation: 30
The "nv" drivers offer NO 3d support, so what you are getting is software acceleration.

Quote:
$ glxinfo
name of display: :0.0
Xlib: extension "XFree86-DRI" missing on display ":0.0".
display: :0 screen: 0
direct rendering: No
Must read as the following for 3d acceleration
Quote:
glxinfo
name of display: :0.0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: NVIDIA Corporation
To have proper 3d acceleration you need to install the proprietary Nvidia drivers.
 
Old 03-26-2006, 02:25 AM   #3
verbose
Member
 
Registered: Aug 2004
Distribution: deb lenny 2.6.21-amd64
Posts: 320

Original Poster
Rep: Reputation: 31
Thanks for your quick reply.

Would someone be willing to help me install the latest drivers..? I've posted my question to NVNews but no one's replied for 3 days.

Nvidia-installer successfully installs the kernel module, but then it encounters an error:
Code:
ERROR: Unable to load the kernel module 'nvidia.ko'.  This is most likely
       because the kernel module was built using the wrong kernel source files.
       Please make sure you have installed the kernel source files for your
       kernel and that they are properly configured; on Red Hat Linux systems,
       for example, be sure you have the 'kernel-source' RPM installed.  If you
       know the correct kernel source files are installed, you may specify the
       kernel source path with the '--kernel-source-path' command line option.
-> Kernel module load error: ./usr/src/nv/nvidia.ko: couldn't find the kernel
   version the module was compiled for
-> Kernel messages:
   PCI: Sharing IRQ 9 with 00:1f.3
   PCI: Sharing IRQ 9 with 00:1f.5
   NVRM: loading NVIDIA Linux x86 NVIDIA Kernel Module  1.0-7174  Tue Mar 22
   06:44:39 PST 2005
   Linux Tulip driver version 0.9.15-pre12 (Aug 9, 2002)
   PCI: Found IRQ 9 for device 00:1f.5
   PCI: Sharing IRQ 9 with 00:1f.3
   PCI: Sharing IRQ 9 with 01:0d.0
   PCI: Setting latency timer of device 00:1f.5 to 64
   intel8x0_measure_ac97_clock: measured 42000 usecs
   intel8x0: clocking to 48000
   uhci.c: USB Universal Host Controller Interface driver v1.1
   pci_hotplug: PCI Hot Plug PCI Core version: 0.5
   shpchp: acpi_shpchprm:get_device PCI ROOT HID fail=0x1001
   pci_hotplug: PCI Hot Plug PCI Core version: 0.5
   pciehp: acpi_pciehprm:get_device PCI ROOT HID fail=0x1001
   hw_random: misc device register failed
   parport0: PC-style at 0x378 [PCSPP,TRISTATE]
   lp0: using parport0 (polling).
   ppdev: user-space parallel port driver
   ppdev0: registered pardevice
   ppdev0: unregistered pardevice
   ppdev1: claim the port first
   ppdev2: claim the port first
   apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16)
   i810_rng hardware driver 0.9.8 loaded
 
Old 03-26-2006, 10:50 AM   #4
kak
Member
 
Registered: Jul 2004
Location: Moriarty, NM, USA about 100 yards form Rattle Snake Coutry
Distribution: Slackware , Ubuntu
Posts: 269

Rep: Reputation: 30
Looks like the installer is complaining that the kernel sources do not match the kernel currently running.

At CLI enter "uname -r" will give you the kernel that is currently running.
Then look in /usr/src/ you should see linux-???????
Make sure that it matches your running kernel and you have a link to the folder like the example below:
Quote:
keith@slack:~$ uname -r
2.6.15.4
keith@slack:~$ ls -l /usr/src/
lrwxrwxrwx 1 root root 14 2006-02-21 21:27 linux -> linux-2.6.15.4/
drwxrwxrwx 20 root root 4096 2006-02-21 21:54 linux-2.6.15.4/
If it does not match you will need to install the correct kernel sources and link to "linux"
ie: ln -s /user/src/linux-????? /usr/src/linux

The nvidia module needs to be compiled against the running kernel's sources.
 
Old 03-26-2006, 04:24 PM   #5
verbose
Member
 
Registered: Aug 2004
Distribution: deb lenny 2.6.21-amd64
Posts: 320

Original Poster
Rep: Reputation: 31
My kernel is 2.4.27-2 and the kernel sources is 2.4.27-12, which I installed with apt-get. Does the number following the hyphen matter or not? This is something I've never been sure of. I never linked it to linux so I was just using the --kernel-source-path instead.


Thanks
 
Old 03-26-2006, 06:26 PM   #6
kak
Member
 
Registered: Jul 2004
Location: Moriarty, NM, USA about 100 yards form Rattle Snake Coutry
Distribution: Slackware , Ubuntu
Posts: 269

Rep: Reputation: 30
The number after the hyphen is the Debian specific patch level and yes it does matter.
They need to be the same.
 
Old 03-26-2006, 11:20 PM   #7
verbose
Member
 
Registered: Aug 2004
Distribution: deb lenny 2.6.21-amd64
Posts: 320

Original Poster
Rep: Reputation: 31
Debian's packages site only has kernel-source 2.4.27-12. It has a kernel-image package with the correct kernel version, but this isn't what I want.


I can't even find it here.

Last edited by verbose; 03-26-2006 at 11:24 PM.
 
Old 03-27-2006, 06:55 AM   #8
kak
Member
 
Registered: Jul 2004
Location: Moriarty, NM, USA about 100 yards form Rattle Snake Coutry
Distribution: Slackware , Ubuntu
Posts: 269

Rep: Reputation: 30
from Debian---->"Package: kernel-image-2.4.27-2-386 (2.4.27-10sarge1)"
Linky------------->http://packages.debian.org/stable/ba...e-2.4.27-2-386

So assuming I am reading that correctly 2.4.27-2-386 = 2.4.27-10sarge1

Hope that helps
 
Old 03-27-2006, 08:52 AM   #9
verbose
Member
 
Registered: Aug 2004
Distribution: deb lenny 2.6.21-amd64
Posts: 320

Original Poster
Rep: Reputation: 31
Yes, you are correct.
Unfortunately, for etch they only have kernel-source-2.4.27-12.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problems with a nvidia fx5200 video card charlescpc Mandriva 9 02-28-2006 07:38 PM
fx5200 resolution problems onionlee Linux - Hardware 5 09-25-2004 07:58 AM
nvidia FX5200 and SuSE 9.0 Problems (latest driver) odin123 Linux - Distributions 4 04-27-2004 10:23 AM
Problems with nVidia drivers on Soyo KT600+, Apollo FX5200 PeaceTank Linux - Games 5 03-20-2004 07:46 PM
OpenGL problems (quake 3, glxgears) barret Linux - Software 3 08-22-2003 07:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration