LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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
 
LinkBack Search this Thread
Old 11-09-2003, 11:43 AM   #1
peyotl
LQ Newbie
 
Registered: Nov 2003
Location: poland
Distribution: Slackware-9.0
Posts: 22

Rep: Reputation: 15
GLX & DRI problems on XFree86 4.3 with RADEON 9200


Hey there

I got my RADEON 9200 card running on Slackware9.0 with 2.4.22 kernel
and Athlon XP 1700+.
for some strange reason I can't get DRI and GLX to work.
I'm using fglrx-glc22-4.3.0-3.2.8.i586.rpm downloaded from ATI site.

I get <86 frames in 5.0 seconds = 17.200 FPS> in glxgears

this is what I found in XFree log:
----------------
(II) fglrx(0): UMM area: 0xe0700000 (size=0x03900000)
(II) fglrx(0): driver needs XFree86 version: 4.3.x
(II) fglrx(0): detected XFree86 version: 4.3.0
(WW) fglrx(0): ***********************************************
(WW) fglrx(0): * DRI initialization failed! *
(WW) fglrx(0): * (maybe driver kernel module missing or bad) *
(WW) fglrx(0): * 2D acceleraton available (MMIO) *
(WW) fglrx(0): * no 3D acceleration available *
(WW) fglrx(0): ********************************************* *
(...)
(II) fglrx(0): Using XFree86 Acceleration Architecture (XAA)
Screen to screen bit blits
Solid filled rectangles
Solid Horizontal and Vertical Lines
Offscreen Pixmaps
Setting up tile and stipple cache:
32 128x128 slots
32 256x256 slots
16 512x512 slots
(II) fglrx(0): Acceleration enabled
(II) fglrx(0): Direct rendering disabled <---------
(...)
(EE) [GLX]: Failed to add GLX extension (NVIDIA XFree86 driver not found)
---------------

and my XF86Config-4 file:
---------------
Section "dri"
# Access to OpenGL ICD is allowed for all users:
Mode 0666
(...)
Section "Module"
Load "glx" # libglx.a
Load "dri" # libdri.a
(...)
Section "Device"
Identifier "ATI Graphics Adapter"
Driver "fglrx"
(...)
-----------------

I was trying to use internal and external agpgart, inserting and deleting modules,
recompiling kernel, ..., no results.

I know that the subject is not new, but somehow I haven't found a solution anywhere.
maybe it has something to do with that particular model RADEON 9200 ...

Does anyone know the solution?
thanx in advance
 
Old 11-10-2003, 06:12 AM   #2
hulkt
Member
 
Registered: Oct 2003
Posts: 172

Rep: Reputation: 30
try dri drivers (dri.sourceforge.net) but kinda hard to install though
 
Old 11-10-2003, 06:16 PM   #3
cyberia_2ooo
Member
 
Registered: Apr 2003
Posts: 53

Rep: Reputation: 15
emmm i just had the same problem

you are probably using the internal AGPGART module.

edit the XF86Config-4 file, and say no to internal agpgart.

now, if fglrx is loaded, unload it.
modprobe agpgart
and startx

now, it should work fine.....

if now, X won't load at all (giving you message about catching signal 8)

edit the XF86Config file again, and now say no to OpenGLOverlay option.

now, X should load up fine.
on my comp i still expirencing problems.... like game freeze up the entire machine when i press the start game option (the game when i run it, but when i do begin or start from the game menu, it freezes up)
 
Old 11-11-2003, 01:24 PM   #4
peyotl
LQ Newbie
 
Registered: Nov 2003
Location: poland
Distribution: Slackware-9.0
Posts: 22

Original Poster
Rep: Reputation: 15
Hello again,

I tried those dri.sourceforge drivers, bo they don't work.

from XFree86 logfile:
----
(II) Primary Device is: PCI 01:00:0
(II) ATI: Candidate "Device" section "ATI Graphics Adapter".
(--) Chipset ATI Radeon 9200 5961 (AGP) found
(...)
(II) Loading sub module "radeon"
(II) LoadModule: "radeon"
(II) Loading /usr/X11R6/lib/modules/drivers/radeon.o
(EE) LoadModule: Module radeon does not have a radeonModuleData data object.
(II) UnloadModule: "radeon"
(II) Unloading /usr/X11R6/lib/modules/drivers/radeon.o
(EE) Failed to load module "radeon" (invalid module, 0)
(EE) RADEON: Failed to load "radeon" module.
(II) UnloadModule: "ati"
(EE) No devices detected.

Fatal server error:
no screens found
----
so I switched back to fglrx driver. X is running,
but the problem remains (No DRI & GLX).

this is the last line of lspci output:
----
01:00.0 VGA compatible controller: ATI Technologies Inc: Unknown device 5961 (rev 01)
----

here is the result of dmesg:
----

(...)
Linux agpgart interface v0.99 (c) Jeff Hartmann
agpgart: Maximum main memory to use for agp memory: 321M
agpgart: Detected Via Apollo Pro KT266 chipset
agpgart: AGP aperture is 128M @ 0xd0000000
(...)
[fglrx] Maximum main memory to use for locked dma buffers: 315 MBytes.
[fglrx:firegl_stub_register] *ERROR* Fire GL kernel module has to be loaded prior to any other DRM kernel module!
----
and this is from glxinfo:
----
name of display: :0.0
display: :0 screen: 0
direct rendering: No
server glx vendor string: Brian Paul
server glx version string: 1.4 Mesa 5.0.1
(a few more lines here)
----
and one more thing: XFree86 logfile says something about unresolved symbol:
Symbol __glXActiveScreens from module /usr/X11R6/lib/modules/extensions/libdri.a is unresolved!
Symbol __glXActiveScreens from module /usr/X11R6/lib/modules/drivers/fglrx_drv.o is unresolved!

And... As I said before, I tried both agpgart: internal and external. The same results.
Saying 'no' to OpenGLOverlay didn't help either...

Do you have any other ideas?
Thank you all again!
 
Old 11-11-2003, 01:44 PM   #5
Obscure
Member
 
Registered: Apr 2003
Location: Milan
Distribution: Slackware 10 / FreeBSD 5.3
Posts: 175

Rep: Reputation: 31
If you want to use radeon driver yr xf86config is correct but you must load the driver adding :

/sbin/modprobe radeon

into yr /etc/rc.d/rc.local file

For ATI drivers.. sorry but I can't help you!
Try a search into slackware subforum here on linuxquestion
Bye
 
Old 11-11-2003, 04:04 PM   #6
peyotl
LQ Newbie
 
Registered: Nov 2003
Location: poland
Distribution: Slackware-9.0
Posts: 22

Original Poster
Rep: Reputation: 15
ok, I added
/sbin/modprobe radeon
to my startup script, changed driver in XFree86 config file to "radeon",
and got the same error in logfile:

(EE) LoadModule: Module radeon does not have a radeonModuleData data object.
(II) UnloadModule: "radeon"
(II) Unloading /usr/X11R6/lib/modules/drivers/radeon.o
(EE) Failed to load module "radeon" (invalid module, 0)

after changing driver to fglrx -> my previous post... no DRI.

maybe I should get a new card... anyone wants to buy ATI RADEON 9200 :///
(It's not an advertisment, I've just had enough)

all solutions are still welcome :)

Thank you for your help.
 
Old 11-11-2003, 05:11 PM   #7
Obscure
Member
 
Registered: Apr 2003
Location: Milan
Distribution: Slackware 10 / FreeBSD 5.3
Posts: 175

Rep: Reputation: 31
The 9200 works well with linux!! I got a 9100 and it works good too!!
It's a good thing to download the lastest version of dri drivers (dri.sourceforge.net)...
There's a script to install...but you need the kernel sources...I think they are on cd2 of slack 9.0...


Just a thing to control...If you type man radeon you will see that in the list of videocards the 9200 is missing....maybe is better if you check on the dri site if it is supported...
 
Old 11-11-2003, 05:56 PM   #8
peyotl
LQ Newbie
 
Registered: Nov 2003
Location: poland
Distribution: Slackware-9.0
Posts: 22

Original Poster
Rep: Reputation: 15
`man radeon' says that 9200 IS supported. (maybe your man version is 2 old ;-) )
I've already tried DRI drivers from sourceforge - the latest version and CVS.
And yes, I know that kernel sources are needed and I have them (2.4.22) since this is the kernel I'm currently running. Maybe I made a mistake during kernel configuration process...

I'll try to reinstall XFree86 (maybe nvidia left some garbage I can't delete easily - I used to have rivaTNT2) and then (probably) come here crying 4 help.

thanx again, have a good night.
 
Old 11-14-2003, 05:08 AM   #9
peyotl
LQ Newbie
 
Registered: Nov 2003
Location: poland
Distribution: Slackware-9.0
Posts: 22

Original Poster
Rep: Reputation: 15
Ok, it works

removing XFree86 before doing anything else was a good idea.
now with glxgears I get
616 frames in 5.0 seconds = 123.200 FPS

thanx for help
 
Old 11-29-2003, 01:16 AM   #10
newbie_100
LQ Newbie
 
Registered: Nov 2003
Distribution: slackware 9.1
Posts: 3

Rep: Reputation: 0
i have the same problem when i typed man radeon i got:
SUPPORTED HARDWARE
The radeon driver supports PCI and AGP video cards based on the following ATI chips

R100 Radeon 7200

RV100 Radeon 7000(VE), M6

RV200 Radeon 7500, M7

R200 Radeon 8500, 9100, FireGL 8800/8700

RV250 Radeon 9000, M9

R300 Radeon 9700PRO/9700/9500PRO/9500, FireGL X1/Z1

i have the radeon 9200 card....
why it isn't there?
 
Old 11-30-2003, 07:11 PM   #11
peyotl
LQ Newbie
 
Registered: Nov 2003
Location: poland
Distribution: Slackware-9.0
Posts: 22

Original Poster
Rep: Reputation: 15
What version of XFree you're using?
After installing XFree 4.3.99.12 (DRI trunk) from CVS you will see, that 9200 IS supported (new man pages are installed from CVS too). Try to install the latest XFree version. If you still have a problems with your 9200, send your XFree86 config file and the latest log.

good luck. 9200 really works
 
Old 12-02-2003, 07:37 AM   #12
newbie_100
LQ Newbie
 
Registered: Nov 2003
Distribution: slackware 9.1
Posts: 3

Rep: Reputation: 0
Quote:
Originally posted by peyotl
What version of XFree you're using?
After installing XFree 4.3.99.12 (DRI trunk) from CVS you will see, that 9200 IS supported (new man pages are installed from CVS too). Try to install the latest XFree version. If you still have a problems with your 9200, send your XFree86 config file and the latest log.

good luck. 9200 really works
i don't know how to do that
can you give me a good guide for installing that DRI ?
 
Old 12-02-2003, 05:02 PM   #13
peyotl
LQ Newbie
 
Registered: Nov 2003
Location: poland
Distribution: Slackware-9.0
Posts: 22

Original Poster
Rep: Reputation: 15
U can try to do it as follows: (use it at your own risk ;))

1. remove your XFree86 installation (remember to backup appropriate things);

2. install the following packages from Slackware CD:

XFree86-4.3.0,
XFree86-devel-4.3.0;

3. make sure you don't have DRI support enabled in your kernel configuration,
it must be DISABLED.

4. AGPGART support should be ENABLED (you can compile it as a module),

5. Download DRI-CVS

( how to do that? -> http://dri.sourceforge.net/doc/DRIcompile.html subsection 6.1 )

6. Compile it

- Make a built tree as it is written in subsection 8.1 of DRIcompile.html
- you may need to edit the ~/DRI-CVS/build/xc/config/cf/host.def file.
I had to add something like this: #define ProjectRoot pathToYourXFree86installation
(it's described in that document)
- follow the instruction in subsection 8.3
- go and have a coffee (it takes a bit)
- As I remember, I had to build the DRI kernel module by myself. I did it as follows:

cd ~/DRI-CVS/build/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel

you have to specify a full path to your CONFIGURED (disable DRI, enable AGPGART) kernel to make:
for example:

make TREE=/usr/src/linux-2.4.22 -f Makefile.linux

it will produce a few files, but you need only this one: radeon.o.
Copy this file to /lib/modules/2.4.x./kernel/drivers/char/drm/
(if the last subdirectory 'drm' doesn't exist, create it)


7. Install new XFree86 ->

cd ~/DRI-CVS/build/xc
make install

8. Edit your XFree86-Config-4 file.
-in section 'Module', make sure you have:
Load "dri"
Load "glx"
-in section 'Device', set Driver to "ati":

Identifier "Radeon"
Driver "ati"
...

remember, the Identifier ("Radeon" in my case) must match to Device in section 'Screen':

Section "Screen"
Identifier "Screen0"
Device "Radeon"
...


9. hope I didn't forget about anything.

Good luck!


-- INSERT
 
Old 12-02-2003, 07:59 PM   #14
LavaDevil94
Guru
 
Registered: Jul 2003
Distribution: Gentoo 2004.2: Who needs exmmpkg when you have emerge?
Posts: 1,795

Rep: Reputation: 46
you really should stick with the ati drivers, they give better performance, and they have s3tc texture support, which is VERY important, escpecially for gaming. if youre having trouble. i had almost the exact same problem that you have, except i have a radeon 9000. once it was installed and you ran fglrxconfig, did you go to /lib/modules/fglrx/build_mod and build and install the module? that worked for me...
 
Old 12-05-2003, 11:48 AM   #15
newbie_100
LQ Newbie
 
Registered: Nov 2003
Distribution: slackware 9.1
Posts: 3

Rep: Reputation: 0
Quote:
Originally posted by LavaDevil94
you really should stick with the ati drivers, they give better performance, and they have s3tc texture support, which is VERY important, escpecially for gaming. if youre having trouble. i had almost the exact same problem that you have, except i have a radeon 9000. once it was installed and you ran fglrxconfig, did you go to /lib/modules/fglrx/build_mod and build and install the module? that worked for me...
yes i built it and then i did fglrxconfig and i am using the new XF86Config-4 file that the fglrxconfig created...

i really don't want to reinstall the x server...


will
swaret --remove xfree86
and
swaret --install xfree86
do it ?
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
dri/glx radeon 7200/r100 Aura_Bleu Linux - Hardware 0 08-07-2005 02:57 PM
Radeon 9200 on Gentoo no DRI (there's no solution in any forum) nicolaslara Linux - Hardware 4 01-14-2005 03:22 PM
GLX/Xfree86/DRI/nvidia geforce 4 mx 420 problem asalford Linux - Hardware 3 04-01-2004 02:28 PM
Problems w/ Radeon 9200 & ati's binary drivers zen_guerrilla Linux - Hardware 4 10-11-2003 01:44 PM
Radeon 9600 Pro + GLX + DRI Slackware 9 wh1t3d3m0n Linux - Hardware 0 09-01-2003 02:09 PM


All times are GMT -5. The time now is 07:08 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration