PDA

View Full Version : Can't install DRI stuff in Red Hat Linux v7.1



antdude
18th April 2002, 21:48
Hi! I am a Linux newbie and I am having problems installing the Matrox G400's DRI component. I think my 2D part is working. The problem is that I can't insert modules? Here's the information and log:

[root@ANTux-P2 download]# /sbin/insmod agpgart
insmod: agpgart: no module by that name found

[root@ANTux-P2 download]# /sbin/insmod mga
insmod: mga: no module by that name found

[root@ANTux-P2 download]# /sbin/lsmod
Module Size Used by
mga_vid 7440 0
eeprom 3168 0
gl518sm 8160 1
i2c-proc 6160 1 [eeprom gl518sm]
i2c-piix4 4016 0 (unused)
i2c-core 13408 0 [eeprom gl518sm i2c-proc i2c-piix4]
3c59x 26144 1 (autoclean)
serial 45344 0 (autoclean)
sb 7664 0
sb_lib 34304 0 [sb]
uart401 6416 0 [sb_lib]
sound 58416 0 [sb_lib uart401]

[root@ANTux-P2 download]# uname -a
Linux ANTux-P2 2.4.9 #15 Mon Aug 27 01:37:21 PDT 2001 i686 unknown

[root@ANTux-P2 download]# rpm -q mgapdesk
mgapdesk-1.00-7

[root@ANTux-P2 download]# rpm -q XFree86
XFree86-4.0.3-5

[ant@ANTux-P2 download]$ ls -all /usr/X11R6/lib/modules/drivers/mga*
-rw-rw-r-- 1 root root 290041 Sep 10 2001 /usr/X11R6/lib/modules/drivers/mga-1_3_0beta.tgz
-rwxrwxr-x 1 root root 189896 Apr 18 14:30 /usr/X11R6/lib/modules/drivers/mga_drv.o
-rwxr-xr-x 1 ant ant 202013 Sep 10 2001 /usr/X11R6/lib/modules/drivers/mga_drv.o.mgabck.1.0.0
-rwxr-xr-x 1 root root 196257 Mar 30 2001 /usr/X11R6/lib/modules/drivers/mga_drv.o-original
-rwxrwxr-x 1 root root 430682 Apr 18 14:30 /usr/X11R6/lib/modules/drivers/mga_hal_drv.o
-rwxr-xr-x 1 ant ant 431513 Sep 10 2001 /usr/X11R6/lib/modules/drivers/mga_hal_drv.o.mgabck.1.0.0

Also, am I supposed to start Linux (beside X server) when upgrading the video driver? Or do I only just exit X and restart X?

Thank you in advance. :)

jImbEam
21st April 2002, 10:04
I don't have Redhat so I can't help too much. ..


Did you try the latest mga drivers here?
http://www.matrox.com/mga/support/drivers/files/lnx_200.cfm


Did you also try a "locate agpgart " ? Then look to see if the correct location?

My SuSE machine keeps it in:
/lib/modules/2.4.0-4GB/kernel/drivers/char/agp/agpgart.o

Then again, I have never tried to load it. I did not enable DRI.

jImbEam

antdude
21st April 2002, 10:19
Originally posted by jImbEam
I don't have Redhat so I can't help too much. ..


Did you try the latest mga drivers here?
http://www.matrox.com/mga/support/drivers/files/lnx_200.cfm


Did you also try a "locate agpgart " ? Then look to see if the correct location?

My SuSE machine keeps it in:
/lib/modules/2.4.0-4GB/kernel/drivers/char/agp/agpgart.o

Then again, I have never tried to load it. I did not enable DRI.

jImbEam

Yes to the latest mga driver.


[ant@ANTux-P2 ant]$ locate agpgart
/usr/lib/perl5/5.6.0/i386-linux/linux/agpgart.ph
/usr/include/linux/agpgart.h
/usr/src/linux-2.4.2/drivers/char/agp/agpgart_be.c
/usr/src/linux-2.4.2/drivers/char/agp/agpgart_fe.c
/usr/src/linux-2.4.2/include/linux/agpgart.h
/usr/src/linux-2.4.2/include/linux/modules/agpgart_be.stamp
/usr/src/linux-2.4.2/include/linux/modules/agpgart_be.ver
/usr/i386-glibc21-linux/include/linux/agpgart.h
/dev/agpgart
/lib/modules/2.4.2-2/kernel/drivers/char/agp/agpgart.o

Weird, I am using Kernel 2.4.9, but I think I nuked the source for it since I extracted in a temp directory.

kewlcat
21st April 2002, 16:57
Originally posted by antdude

<snip>
[root@ANTux-P2 download]# /sbin/insmod agpgart
insmod: agpgart: no module by that name found

[root@ANTux-P2 download]# /sbin/insmod mga
insmod: mga: no module by that name found

[root@ANTux-P2 download]# uname -a
Linux ANTux-P2 2.4.9 #15 Mon Aug 27 01:37:21 PDT 2001 i686 unknown

<snip>


The one command you left out: "ls /lib/modules". Are there any modules installed in the /lib/modules/2.4.9 directory? If not, do a "make modules_install" in your kernel compile directory (might be /usr/src/linux). If you blew away the kernel compile, get the 2.4.18 source and recompile.

HTH,
Rahul

antdude
21st April 2002, 17:01
Originally posted by kewlcat


The one command you left out: "ls /lib/modules". Are there any modules installed in the /lib/modules/2.4.9 directory? If not, do a "make modules_install" in your kernel compile directory (might be /usr/src/linux). If you blew away the kernel compile, get the 2.4.18 source and recompile.

HTH,
Rahul

[ant@ANTux-P2 ant]$ ls /lib/modules/2.4.9
build misc modules.generic_string modules.parportmap modules.usbmap
kernel modules.dep modules.isapnpmap modules.pcimap pcmcia

However, I think I will need to recompile my Kernel. I heard DRI only accelerates for 3D stuff. Does it affect the 2D desktop at all? I am not going to use this old P2 300 system for gaming and 3D screen savers. If DRI has no effect on 2D desktop, then I guess I don't need to deal with DRI. Am I right?

Wombat
21st April 2002, 19:08
DRI only helps with 3D. It also only works at 16bpp and 32bpp, so if you're running 24bpp, that can also disable DRI.

antdude
21st April 2002, 19:15
Originally posted by Wombat
DRI only helps with 3D. It also only works at 16bpp and 32bpp, so if you're running 24bpp, that can also disable DRI.

Ah then I guess we can forget this DRI stuff for now ;). I am using 32-bit.