Enabling direct rendering...
How do I get direct rendering to work?
Quote:
the vesa driver and the r128 driver and that's not been enough! When I modprobe for agpgart, it is not there, would that stop it working? Help! Riddick |
ATI cards are always a problem to get 3D working. Took me a long time to get DRI working on my laptop's radeon mobility U1. What kind of system do you have and what's the rest of the card's name? For this I'll assume Radeon.
1) First thing you'll want to do is recompile your kernel. In the video driver sections enable as built-in: AGP (provides agpgart) and DRM. Include NONE of the individual chipset drivers. 2) Next go to this site: http://dri.freedesktop.org/snapshots/ Get the latest radeon-* and in the archive folder get the latest common-* 3) Make sure ALL Mesa stuff is removed (may be tricky) 4) In /usr/X11R6/lib/modules/extensions make backups of libGLcore.a, libdri.a and libglx.a. These files will be replaced. For mine to work I had to still use the original libdri.a 5) Compile and install the common-*, then the radeon-* packages 6) Edit your xorg.conf to load "GLcore", "glx" and "dri"; in the graphics device section load the "radeon" driver; and at the bottom put: Section "DRI" Mode 0666 EndSection The next time you go to check glxinfo login as root and don't grep. If direct rendering is still no, look at GL vendor. If it's SGI then you still have some Mesa stuff. When you get it working try as a user as there may be permission issues with the device in /dev. If so the easiest fix is to add the user to the group that owns the device. |
are you sure about the raedon and not the rage drivers?
All the rest I'm doing I'll let you know how it turns out... Thanks, Riddick P.S. how do i get rid of all the MESA stuff, I'm on slackware and it doesn't seem to be installed as a package! Thanks again P.P.S. /usr/X11R6/lib/modules/extensions doesn't exist, /usr/X11/lib/modules/extensions exists but there is nothing in it! |
Do I also need to install OpenGL - I don't think it is...
|
My use of the name radeon was only as an example. If yours is a rage use rage. GL support will be included with the dri packages. For the mesa stuff I'll have to look through my notes and get back. I remember one filename - libMesaGL - I think it was in /usr/X11R6/lib. Yours might be /usr/X11/lib. Like I said I'll check my notes and get back.
Again what kind of system is this? Dekstop or laptop? And do you know the full name of the ATI card? Is it a Rage something M3? I wouldn't worry about the extensions directory being empty. But before you get too far let's answer those questions. And always before you recompile a kernel make a backup of your current one. Just cp the file to something you'll know you won't overwrite or delete. That way if your new one doesn't work as expected you can restore it. |
This is a DELL C600 laptop.
The name of the graphics card is: "VGA compatible controller: ATI Technology Inc Rage Mobility M3 AGP 2x (rev 02)" I have a backup 2.4 kernel that I'm not modifying at all that we can always fall back on! I'll wait for further instructions before removing mesa stuff, and compiling those programs, alright? Thanks, you are being very useful, Riddick P.S. found a libOSMesa.a and ... .so.4.0 |
Results:
ed@edslaptop:~$ locate mesa /usr/doc/glut-3.7/README.mesa /usr/lib/perl5/5.8.7/pod/perlvmesa.pod /usr/man/man1/perlvmesa.1.gz /usr/X11R6/include/GL/osmesa.h ed@edslaptop:~$ locate Mesa /usr/X11R6/lib/libOSMesa.so.4 /usr/X11R6/lib/libOSMesa.so.4.0 /usr/X11R6/lib/libOSMesa.so /usr/X11R6/lib/libOSMesa.a ed@edslaptop:~$ locate MESA ed@edslaptop:~$ If I "rm" those as root, can I continue and complie those two packages? Thanks, Riddick |
...did it all and there is MESA stuff left! where do I find it.
By the way my root doesn't have "glxinfo"! Thanks, Riddick |
Riddick, I believe you need to update locate's database. It creates a db rather than search the hdd whenever you want to find something. In Slackware, "locate" is linked to "slocate", which uses "updatedb" to upgrade its database...I don't know about SuSe. Check the man page for locate and see what it says to do.
|
...oh, and by default, /usr/X11R6/bin isn't in root's PATH, but if you use the program's full location (/usr/X11R6/bin/glxinfo, perhaps), root should be able to run it. But why run glxinfo as root, anyway?
|
I just did that!
I deleted all those files, but there must still be something somewhere. When I installed the two files, one said configuring and compiling kernel modules - do I need to do anything more than that, or do I have to do some sort of kernel recompile? Need to get rid of MESA now! Thanks for any help! Riddick P.S. here is the proof: Code:
root@edslaptop:/home/ed# locate -u |
Sorry for the long wait. I found my notes. According to your recent posts you definitely will want the rage driver as opposed to the radeon. So you found the libOSMesa file and removed that. According to my notes you need to find three others: libGL, libGLU and libGLw. I found mine in either /usr/local/lib or /usr/X11R6/lib. The new driver will install new libGL and libGLU into /usr/X11R6/lib. Yours might go to /usr/X11/lib.
Running glxinfo as root will only be for verifying that DRI is enabled. If a user doesn't have appropriate permissions to the card in /dev glxinfo will report "direct rendering: no". That bugged me for a couple of days before I figured out it was a permissions issue. |
Right... I have a question now... Those installation scripts say:
The script will use the following XFree86 directory: /usr/X11R6 is that correct or shall I redirect them to /etc/X11 ? I got rid of the files you said from /usr/X11R6 and now I get ed@edslaptop:~$ glxinfo glxinfo: error while loading shared libraries: libGLU.so.1: cannot open shared object file: No such file or directory ed@edslaptop:~$ even after re running both installations scripts! Also the rage driver fail to install the kernel modules: Code:
make DRM_MODULES=r128.o modules Code:
kobject_register failed for drm (-17) In conclusion there are 3 problems: 1. where do i tell the scripts to install 2. what happened to the thing that breaks glxinfo, and where does it go looking for it? 3. what's wrong with the kernel modules installation for the rage? Thanks, Riddick |
I think I just found an important key to this puzzle from a SuSE forum:
Quote:
You did make sure your kernel has agp and drm didn't you? |
kernel has agp and drm built in.
I'm going to recompile without rage support. So the GATOS driver above is the DRI package for M3s is that right? I'm going to get it and see... So: It seems to be the right thing, but it's for XFree86 versions of X, versions 4.2.0 and 4.3.0... and I think I have XOrg... what shall I do! I'm a bit confused - what should I be doing now? Should the common dri package be installed? What do i need to do in terms of GATOS? How do I install GATOS! Thanks for your continuous help, Don't give up on me yet! Riddick As a second thought, is it not possible to use VESA and MESA to get 3d acceleration? |
All times are GMT -5. The time now is 09:46 PM. |