LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 08-28-2005, 05:35 AM   #1
Riddick
Member
 
Registered: May 2004
Location: Rome, Italy
Distribution: slackware-current
Posts: 454

Rep: Reputation: 30
Enabling direct rendering...


How do I get direct rendering to work?
Quote:
ed@edslaptop:~$ glxinfo | grep "direct rendering"
direct rendering: No
ed@edslaptop:~$
I have an onboard Ati M3 card. I have tried using the ati driver,
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
 
Old 08-28-2005, 01:00 PM   #2
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,274

Rep: Reputation: 63
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.
 
Old 08-28-2005, 02:39 PM   #3
Riddick
Member
 
Registered: May 2004
Location: Rome, Italy
Distribution: slackware-current
Posts: 454

Original Poster
Rep: Reputation: 30
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!

Last edited by Riddick; 08-28-2005 at 02:46 PM.
 
Old 08-28-2005, 02:49 PM   #4
Riddick
Member
 
Registered: May 2004
Location: Rome, Italy
Distribution: slackware-current
Posts: 454

Original Poster
Rep: Reputation: 30
Do I also need to install OpenGL - I don't think it is...
 
Old 08-28-2005, 03:16 PM   #5
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,274

Rep: Reputation: 63
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.
 
Old 08-28-2005, 03:39 PM   #6
Riddick
Member
 
Registered: May 2004
Location: Rome, Italy
Distribution: slackware-current
Posts: 454

Original Poster
Rep: Reputation: 30
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

Last edited by Riddick; 08-28-2005 at 03:46 PM.
 
Old 08-28-2005, 05:08 PM   #7
Riddick
Member
 
Registered: May 2004
Location: Rome, Italy
Distribution: slackware-current
Posts: 454

Original Poster
Rep: Reputation: 30
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
 
Old 08-28-2005, 05:29 PM   #8
Riddick
Member
 
Registered: May 2004
Location: Rome, Italy
Distribution: slackware-current
Posts: 454

Original Poster
Rep: Reputation: 30
...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
 
Old 08-28-2005, 05:48 PM   #9
voyciz
Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 425

Rep: Reputation: 40
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.
 
Old 08-28-2005, 05:50 PM   #10
voyciz
Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 425

Rep: Reputation: 40
...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?
 
Old 08-28-2005, 06:02 PM   #11
Riddick
Member
 
Registered: May 2004
Location: Rome, Italy
Distribution: slackware-current
Posts: 454

Original Poster
Rep: Reputation: 30
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
root@edslaptop:/home/ed# locate mesa
root@edslaptop:/home/ed# locate MESA
root@edslaptop:/home/ed# locate Mesa
root@edslaptop:/home/ed#
Help!

Last edited by Riddick; 08-28-2005 at 06:12 PM.
 
Old 08-29-2005, 06:28 AM   #12
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,274

Rep: Reputation: 63
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.
 
Old 08-29-2005, 07:15 AM   #13
Riddick
Member
 
Registered: May 2004
Location: Rome, Italy
Distribution: slackware-current
Posts: 454

Original Poster
Rep: Reputation: 30
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
make[1]: Entering directory `/home/ed/rage128-20050718-linux.i386/dripkg/drm/linux-core'
make -C /lib/modules/2.6.12.5/source  SUBDIRS=`pwd` DRMSRCDIR=`pwd` modules
make[2]: Entering directory `/usr/src/linux-2.6.12.5'
  Building modules, stage 2.
  MODPOST
make[2]: Leaving directory `/usr/src/linux-2.6.12.5'
make[1]: Leaving directory `/home/ed/rage128-20050718-linux.i386/dripkg/drm/linux-core'
FATAL: Error inserting r128 (/lib/modules/2.6.12.5/kernel/drivers/char/drm/r128.ko): Unknown symbol in module, or unknown parameter (see dmesg)
Dmesg says:

Code:
kobject_register failed for drm (-17)
 [<c0230259>] kobject_register+0x49/0x80
 [<c0131db5>] mod_sysfs_setup+0x55/0xb0
 [<c0132eb7>] load_module+0x7c7/0xa70
 [<c014cd68>] do_mmap_pgoff+0x468/0x770
 [<c013320a>] sys_init_module+0x7a/0x1a0
 [<c0103185>] syscall_call+0x7/0xb
r128: Unknown symbol drm_cleanup_pci
ed@edslaptop:~$
Thanks.
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

Last edited by Riddick; 08-29-2005 at 07:21 AM.
 
Old 08-29-2005, 08:15 AM   #14
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,274

Rep: Reputation: 63
I think I just found an important key to this puzzle from a SuSE forum:

Quote:
On Wednesday 24 September 2003 05:52, Nick LeRoy wrote:
> I have a Dell Inspiron 4000 with a Mobility M3, and, for the life of me, I
> can't get DRI working on it.

This chipset needs the GATOS driver. I don't know the status of the GATOS
driver support in 8.2, but I don't think it works out of the box. My Inspiron
5000 didn't get hardware acceleration out of the box with 8.1 or 8.2. I
applied the patches when I was running 8.1 and it worked fine. I didn't
bother when I updated that machine to 8.2.

Look here:

http://gatos.sourceforge.net/ati.2.php
I guess the rage package is not what your card needs. I wouldn't worry about the glxinfo output. Thats because the libGLU file is not there anymore. If that actually needs to be replaced find the mesa package on your install CD or get a binary package that you can extract from.

You did make sure your kernel has agp and drm didn't you?
 
Old 08-29-2005, 08:36 AM   #15
Riddick
Member
 
Registered: May 2004
Location: Rome, Italy
Distribution: slackware-current
Posts: 454

Original Poster
Rep: Reputation: 30
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?

Last edited by Riddick; 08-29-2005 at 09:13 AM.
 
  


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
Direct Rendering: No MegaByll Red Hat 7 10-20-2006 09:42 AM
Enabling Direct Rendering... BobCobb Linux - Hardware 2 09-28-2005 08:50 PM
Enabling direct rendering on an Intel 865G grpahics chipset. Eerath Linux - Hardware 1 09-01-2005 10:52 PM
Enabling Direct Rendering n3tw0rk Linux - Software 8 06-14-2004 02:01 AM
Direct Rendering jared Linux - General 6 06-05-2003 02:51 PM

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

All times are GMT -5. The time now is 10:38 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