LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 10-05-2003, 12:45 PM   #1
White R4bbit
Member
 
Registered: Aug 2003
Location: Italy
Distribution: Debian sid 2.6.1
Posts: 54

Rep: Reputation: 15
ATI Radeon 3D acceleration


Hi, I'm running Debian sid with kernel 2.4.22, compiled with drm support and agpgart&radeon modules, for my Radeon 8500LE.
DRI still doesn't work, I think it is because the kernel drm is for XFree86 4.1 and I've got a newer version.
I don't know what package should I download and install in order to make the direct rendering work.

Please help me, this is some maybe useful stuff:

XF86Config-4
XFree86.0.log
/etc/modules
lsmod output

Thanks in advance
 
Old 10-05-2003, 07:02 PM   #2
debbiedebbie
LQ Newbie
 
Registered: Sep 2003
Posts: 5

Rep: Reputation: 0
I'm using the 7500 but I got it to work by getting the recompiling the modules from here and copying the new radeon.o module over the one in /lib/modules/2.4.22/kernel/drivers/char/drm.

Hope that helps!

I know there is another way to do it that might be better but it is too complicated for a newbie like me. Basicly it involves recompiling the kernel using the XFree86 tree and enabling kernel hacking. How you would do that is way over my head though.

This and this might also be useful for you. Most of this is for the 7500 but maybe it applies to the 8500 as well.

BTW your links aren't working for me.
 
Old 10-05-2003, 08:48 PM   #3
LSD
Member
 
Registered: Jan 2003
Location: Northam, W.A., Australia
Distribution: Gentoo ~x86
Posts: 321

Rep: Reputation: 31
Remove all that DRM stuff from your kernel (but leave the AGPGART module in) and try these instead:

http://www.ati.com/support/products/...10&submit.y=10

They work great for me across Gentoo, Slackware and Debian and are light years ahead of the DRM drivers.
 
Old 10-08-2003, 01:16 PM   #4
White R4bbit
Member
 
Registered: Aug 2003
Location: Italy
Distribution: Debian sid 2.6.1
Posts: 54

Original Poster
Rep: Reputation: 15
I tried to copy the new radeon.o both by debbiedebbie's link and by xfree-drm-src package. Still doesn't work

I'd prefer not to use ATI official drivers because they're not free software and because I don't really need them (DRI on mandrake run very well); by the way, if I won't found any other solution, I'll try to install them.
It's just a deb package (obtained with alien) that I can remove whenever I'd like, that's true? I don't want it to f*ck my XFree86 config in some irreversible way

My links work, but you have to copy&paste the url or to reload the page, I don't know why but it seems to be some strange problems with Altervista.org's servers.

Last edited by White R4bbit; 10-08-2003 at 01:17 PM.
 
Old 10-08-2003, 07:50 PM   #5
slackskillz
LQ Newbie
 
Registered: Oct 2003
Location: California
Distribution: Slackware 9.1
Posts: 3

Rep: Reputation: 0
Radeon 7500 modprobe

Alright, I have a problem that I can't seem to solve on my own. I have done everything that people have said to do in this forum, and my Radeon still wont work; the problem I believe is with the module, somewhere... this is the error I get..

/lib/modules/2.4.22/kernel/drivers/char/drm/radeon.o: unresolved symbol cmpxchg
/lib/modules/2.4.22/kernel/drivers/char/drm/radeon.o: insmod /lib/modules/2.4.22/kernel/drivers/char/drm/radeon.o failed
/lib/modules/2.4.22/kernel/drivers/char/drm/radeon.o: insmod radeon failed


and this is from my XF log:

(==) RADEON(0): Write-combining range (0xe0000000,0x4000000)
drmOpenDevice: minor is 0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: Open failed
drmOpenDevice: minor is 0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: Open failed
[drm] failed to load kernel module "radeon"
(II) RADEON(0): [drm] drmOpen failed
(EE) RADEON(0): [dri] DRIScreenInit failed. Disabling DRI.
...
(II) RADEON(0): Acceleration enabled
(==) RADEON(0): Backing store disabled
(==) RADEON(0): Silken mouse enabled
(II) RADEON(0): Using hardware cursor (scanline 1026)
(II) RADEON(0): Largest offscreen area available: 1280 x 7161
(II) RADEON(0): Direct rendering disabled

The Radeon module I'm using is the one from:

http://www.xfree86.org/~alanh/

...If anyone could please help me out with this problem, I have no clue at all how to resolve the "Unresolved symbol cmpxchg" error. Any help is appreciated, thanks in advance.

Daren
 
Old 10-08-2003, 10:48 PM   #6
LSD
Member
 
Registered: Jan 2003
Location: Northam, W.A., Australia
Distribution: Gentoo ~x86
Posts: 321

Rep: Reputation: 31
tbph, free software or not, I wouldn't bother with the DRI radeon.o module. Even on XFree86 4.3.0 it's hopelessly out of date and as slow as a wet week. The ATi drivers work well enough, get decent framerates in 3D applications and are compatible with a wider range of late-model Radeons and FireGLs than the DRI drivers. slackskillz, there's a whole thread in the Slackware forum detailing how to get these drivers up and running and apart from a few gotchas (like Slackware 9 and probably 9.1 not installing the kernel source package by default) it's a relatively simple process.
 
Old 10-09-2003, 04:06 AM   #7
White R4bbit
Member
 
Registered: Aug 2003
Location: Italy
Distribution: Debian sid 2.6.1
Posts: 54

Original Poster
Rep: Reputation: 15
I know they're okay, but I also know that my video card is fully supported by DRI and I've already tried DRI on mandrake with eccelent results

I just wonder if I can install/uninstall ATI drivers without any tracks left on my system, I'm quite paranoid about keeping a clean linuxbox
 
Old 10-09-2003, 04:39 AM   #8
pe2338
Member
 
Registered: Dec 2002
Location: Bucharest,RO
Distribution: debian etch, sarge and sid
Posts: 407

Rep: Reputation: 30
maybe mandrake made some tweaking with the dri????

Just a thought said out loud...
 
Old 10-09-2003, 11:38 AM   #9
LSD
Member
 
Registered: Jan 2003
Location: Northam, W.A., Australia
Distribution: Gentoo ~x86
Posts: 321

Rep: Reputation: 31
Nah, Mandrake haven't tweaked the DRI, the latest versions (ie not those included with the release builds of XFree86) actually work fairly well except for the fact they're as slow as balls in 3D stuff (I only get a few hundred fps in glxgears on a 9500 Pro and I can almost see it update each frame in MAME they're that slow) and look like crap. The difference the official ATi drivers make are like night and day. If you're going to rely on the DRI drivers you may as well just sell your current card and buy a cheap, second hand 1Mb or 2Mb PCI card and use that instead you'll be crippling it that much.

If you install the ATi drivers as laid out in the thread in the Slackware forum (converting the RPM to a .tar.gz and extracting that tarball into the root directory) you can track where everything goes by comparing the contents of the tarball to your system so they shouldn't be that hard to remove should the need arise.
 
Old 10-09-2003, 04:13 PM   #10
White R4bbit
Member
 
Registered: Aug 2003
Location: Italy
Distribution: Debian sid 2.6.1
Posts: 54

Original Poster
Rep: Reputation: 15
This is from ATI's readme file

Code:
Some notes for debian users: 

The debian Linux distribution in most cases does not come with the 
ability to handle rpm packages with the rpm tool. But there is a 
tool called "alien" which allows you to convert rpm files into the 
debian supported *.deb package format. Please consult your debian 
documentation on how to operate this tool. 

A typcial debian installation commandline will look like this: 

dpkg -i <ati_package_name>.deb 

In order to override complaints (which might be caused by an already 
installed package "xlibmesa3" that also provides the file libGL.so.1.2) 
please use this installation command line: 

dpkg -i --force-overwrite <ati_package_name>.deb
It seems easy and secure... do you think it would be better converting rpm to tar.gz than to deb package?

Must I disable drm from the kernel to make this drivers work?

 
Old 10-09-2003, 05:33 PM   #11
code_noc
LQ Newbie
 
Registered: Sep 2003
Location: Atlanta, GA
Distribution: Slackware 9, FreeBSD 5.1
Posts: 22

Rep: Reputation: 15
from slackware to Debian

oh my goodness. today i installed debian on my hp ze5385 and there were absolutely no conflicts or errors. I tried installing slackware for a total of three days with no success (constant hangs, kernel panics, etc...)

But with debian the installation was flawless. I wish i had known debian was so user-friendly while still avoiding being labeled as a windows-clone like redhat or mandrake.

I am truly impressed.
 
Old 10-10-2003, 12:14 AM   #12
LSD
Member
 
Registered: Jan 2003
Location: Northam, W.A., Australia
Distribution: Gentoo ~x86
Posts: 321

Rep: Reputation: 31
Quote:
Originally posted by White R4bbit
This is from ATI's readme file

Code:
<snip>
It seems easy and secure... do you think it would be better converting rpm to tar.gz than to deb package?

Must I disable drm from the kernel to make this drivers work?

I honestly don't know. I converted the RPM to a .tar.gz for a couple of reasons. Mainly because I was following the guide in the Slackware forum but also because I didn't have the tools for the conversion to .deb installed (or even knew it was possible to install them, I did the actual conversion in Slackware and copied the converted file over to Debian which was loaded via chroot).

Thinking about it though, I wouldn't really trust the conversion to .deb as it'll most likely install the precompiled binary module which, being compiled for Red Hat, Mandrake et al may or may not work reliably with Debian. So even though I know it's possible to achive what I did natively in Debian wth Debian tools, I'd still do the conversion to .tar.gz and compile the module myself as that way I'd know 100% that it would work with my set up.

edit: Forgot to mention that disbling DRM in the kernel isn't strictly required but it's recommended. Not only is it not used when then ATi drivers are in use, if you load the DRI module while the fglrx module is still loaded (as I've done on a couple of occasions) at best you can hang your system up, at worst you'll hose it completely requiring a reinstall (as I did on both of the aforementioned occasions). Personally, I'd recommend you remove it if only to make sure that the latter situation is never given a chance to occur.

Quote:
Originally posted by code_noc
oh my goodness. today i installed debian on my hp ze5385 and there were absolutely no conflicts or errors. I tried installing slackware for a total of three days with no success (constant hangs, kernel panics, etc...)

But with debian the installation was flawless. I wish i had known debian was so user-friendly while still avoiding being labeled as a windows-clone like redhat or mandrake.

I am truly impressed.
heh, that's the exact reverse of my experience. I spent over a week trying to get Debian up and running on my nForce2-based box and only met with limited success. I got everything working eventually hardware-wise but the methods I used left me without such things as a usable graphical environment and making a usable system out of what I had wasn't worth the effort.

Slackware, on the other hand, was great. It's 2.4.20 (I was installing version 9.0) innstallation kernels detected my ATA133 controller (a Silicon Image SiI680) and even let me install the OS on to an XFS partition I'd set aside for the purpose. I had to upgrade the kernel fairly quickly as past experience told me that the XFS modules and the XFS kernel were mismatched but even if they weren't, I still had to upgrade the kernel to support stuff like AGPGART. That was relatively painless as well. The biggest problem I had with Slackware was finding oppurtunities to upgrade it to 9.1-current using Swaret and installing the Dropline GNOME 2.4 packages.

Last edited by LSD; 10-10-2003 at 12:25 AM.
 
Old 10-10-2003, 04:36 PM   #13
White R4bbit
Member
 
Registered: Aug 2003
Location: Italy
Distribution: Debian sid 2.6.1
Posts: 54

Original Poster
Rep: Reputation: 15
Last try with DRI; I recompiled the kernel, recompiled the XFree86 4.3 radeon.o driver, and put it in drm subdirectory of /lib/modules/2.4.22
Still no direct rendering.

These are updated files:
Xfree86.0.log
XF86Config-4
 
Old 10-11-2003, 09:46 AM   #14
nirvanix
Member
 
Registered: May 2003
Location: Calgary, Canada
Distribution: Arch Linux
Posts: 194

Rep: Reputation: 30
Hey White R4bit, listen to LSD! With DRI you can't even come close to the performance of the ATI drivers. I used the DRI radeon module at first, but when the ATI 3.2.5 drivers came out in August I switched, and enjoyed a 250% frame rate boost and increased stability. I'm running it on Slackware 9.1 with a Radeon 8500LE - no problems. I followed their instructions to do a kernel module compile for 2.4.22 and it was straight forward. ATI is trying to support their hardware on Linux and we need to get on board with them. And yes, you can back everything out if you are not satisfied with their driver. Just back up your current /usr/X11R6 directory for a start, and put it back in place if you're not happy. Besides that, I think ATI just puts a /lib/modules/fglrx folder in your system which you can remove.
 
Old 10-11-2003, 03:52 PM   #15
White R4bbit
Member
 
Registered: Aug 2003
Location: Italy
Distribution: Debian sid 2.6.1
Posts: 54

Original Poster
Rep: Reputation: 15
I finally figured that out by installing the r200 package found in dri.sf.net
Now I have direct rendering enabled.

I'll keep in mind your words about ATI official drivers and I'm going to try them one day
 
  


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
ati radeon 7000 3d acceleration thugbot3oo5 Linux - Hardware 61 06-27-2006 03:06 PM
ATI (not hw acceleration!) radeon 9700 mimithebrain Linux - Hardware 4 11-05-2005 12:56 PM
no 3d acceleration with my ATI Radeon 9600 XT elf-assassin Linux - Newbie 18 06-08-2004 11:29 AM
3D Acceleration with ATI Radeon 9600 jawaking00 Linux - Hardware 2 03-06-2004 06:41 PM
No 3d Acceleration with ATI Radeon 9600 debian junkie Linux - Hardware 12 01-29-2004 04:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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