LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 01-18-2006, 11:56 AM   #1
ilpadrino
Member
 
Registered: Oct 2003
Location: Spain
Distribution: Fedora
Posts: 104

Rep: Reputation: 15
ATI drivers fakes- Impossible to run 3D on ATI Radeon 9550


Hi guys:

I've passed last 10 days trying to configure my graphic card to be able to have 3D acceleration and I am going to give up now.

My system hardware:

CPU: AMD Semprom 2600+
Motherboard: Asus K8V-X SE (Chipset V8237R - K8T800)
Graphic Card: ATI Radeon 9550 (256 Mb - AGP 8x)

My system OS:

Fedora Core 3 (Kernel 2.6.10)
Xorg 6.8

Well, first of all I have to say that the classical driver 'radeon' has not yet support for cards newer than 9500 version, so I could not use it to enable 3D acceleration.

So I decided to use ATI linux driver which are ATI propietary. So the first thing I did was to recomile my kernel with the following options:

CONFIG_MODULES=y
CONFIG_MODULE_UNLOAD=y
CONFIG_KMOD=y
CONFIG_MTRR=y
CONFIG_AGP=m
CONFIG_AGP_chipset=m
CONFIG_DRM=y
CONFIG_DRM_RADEON=m
CONFIG_FB is not set
CONFIG_TMPFS=y



After that, I installed the ATI drivers which I downloaded from ATI official website:

ati-driver-installer-8.18.6-i386.run



This build the fglrx driver and the fglrx-kernel module for the xorg version I am using (6.8.1).

Then I configured my xorg.conf file as follow (related with the problem):

Section "Module"
...
Load "GLcore"
Load "glx"
Load "dri"



Section "Device"
Identifier "ATI"
Driver "fglrx"
Option "VideoOverlay" "on"
Option "OpenGLOverlay" "off"
Option "UseInternalAGPGART" "no"
BusID (PCI:1:0:0)
EndSection



Well, then I load the fglrx module with 'modprobe fglrx' without problems but seems to be not used as I can guess after lsmod. Of course agpgart and amd64_agp modules have been previosly loaded and seems to be used properly. Then I reboot my X and the system always crash when X server try to start.

I have tried different versions of the ATI drivers (8.16, 8,18 , 8.20. I have tried with different kernel versions (2.4.20, 2.4.23, 2.4.32 (seems AGP 8x doesn't work on 2.4 versions), 2.6.9-667 and 2.6.10 with same results. I have tried compiling the agp as module and built-in with same results. It seems fglrx module has a conflict with the kernel agpgart (built-in or module).

Anyone has a idea?

Thanks in advance
 
Old 01-19-2006, 07:16 AM   #2
shamrock_uk
Member
 
Registered: Dec 2003
Distribution: Debian 3.1, Ubuntu Breezy, Ubuntu Dapper
Posts: 30

Rep: Reputation: 15
I've found this to be highly distro-dependent - consider a switch. I've only ever managed it in Mandriva LE 2005 and in Ubuntu. In the latter it was as simple as doing
Code:
apt-get install xorg-drivers-fglrx
and re-running
Code:
dpkg-reconfigure xserver-xorg
to select the fglrx driver. The restricted kernel modules were already installed for me.

I could never get it working in non-paid Mandriva, Debian pure, Slackware, FC etc etc. I've never managed to do it with ATI's own installer/rpm's outside of Mandriva, even when they claim to have successfully installed.

Unless you're firmly attached to FC, then why not hunt around for a distro that you find easier for this? That's the beauty of Linux

Last edited by shamrock_uk; 01-19-2006 at 07:20 AM.
 
Old 01-19-2006, 04:38 PM   #3
ilpadrino
Member
 
Registered: Oct 2003
Location: Spain
Distribution: Fedora
Posts: 104

Original Poster
Rep: Reputation: 15
Thanks for the reply. I am not sure if the problem is related with the kernel version, and consequently with the agpgart module, or related with ati driver (fglrx kernel module). Since I have tested under red hat 9.0 with Xfree86 4.3 instead of Xorg and the problem continues being the same: system crash when try to start the X server.

I have read in another post very similar to this, that the problem could be a conflict with the libGL of the Mesa package or could be related to the kernel version. Since I have amd64_agp, I don't know if a I have to apply a patch to the firegl_public.c file before building the fglrx kernel module.

But I cannot undestand why disabling the agpgart module (Linux kernel), loading the fglrx-module and enabling the option 'UseInternalAGPGART', the problem continues being present. Because with this configuration, the 3D rendering is supposed to run using the ati driver agpgart module and not interfering with any other modules of the distro.

Now I am waiting for a official reply from ATI Customer Care section.

Tomorrow I will test 2.6.15 kernel version and will post the results.

Thanks and bye.
 
Old 01-19-2006, 05:47 PM   #4
43r05p4c3
Member
 
Registered: Mar 2005
Location: Ontario, Canada
Distribution: Mandrake 10.0/XP Dual Boot Desktop & Gentoo 2005.1 Laptop
Posts: 79

Rep: Reputation: 15
Be sure to post the result of fglrxinfo when you post the results. Also,
the output of mount | grep "shm" may be helpful.
These will ensure the driver installed correctly.

However, from what I read, the problem looks like the same problem I have (although it could just be showing the same issues). If the only problem is that the X server doesn't start on boot, it may be a problem with your desktop manager not playing nice with ATI. To check, try booting in runlevel 3 and running the command startx. If your desktop loads properly, with proper 3d support, then this is definately a problem with the desktop manager. (Unfortunately I still have this problem, and don't know how to solve it)

Good luck,

Steve
 
Old 01-20-2006, 11:25 AM   #5
webterractive
Member
 
Registered: Apr 2004
Location: Richmond, Canada
Distribution: Mandriva 2006/XPSP2
Posts: 265

Rep: Reputation: 30
I have the same problems thats why I have Windows on a drive, I will never buy another ATI product again.
 
Old 01-21-2006, 12:48 PM   #6
ilpadrino
Member
 
Registered: Oct 2003
Location: Spain
Distribution: Fedora
Posts: 104

Original Poster
Rep: Reputation: 15
OK, here are my new dissapointing results:

For 43r05p4c3:

I have disabled my desktop manager so I boot directly into runlevel 3 and execute 'startx' manually with the same result: X server crash and system freeze.

The result of mount | grep "shm" is 'tmpfs on /dev/shm type tmpfs (rw)'.

Then I downloaded 2.6.15-1 kernel, compiled it with the options commented above, compile the fglrx driver and kernel module again, load agpgart, amd64_agp and fglrx, and modified the xorg.conf as shown before. The result: system crash when starting the X.

But what I am really surprised is that the 'fglrxinfo' always give me the same result, like if ATI driver was not installed, or this driver conflicts with the mesa package that comes with the xorg enviroment. This is the fglrxinfo output:

OpenGL vendor string: Mesa project: www.mesa3d.org
OpenGL renderer string: Mesa GLX Indirect
OpenGL version string: 1.2 (1.5 Mesa 6.1)


The fact is that if I try to install the ati driver from the rpm package, it gives me a warning about the conflict I have mentioned, although the driver build process goes OK as I can guess in fglrx-install.log:

LD [M] /lib/modules/fglrx/build_mod/firegl_agpgart/fglrx_agp.o
Building modules, stage 2.
MODPOST
*** Warning: "verify_area" [/lib/modules/fglrx/build_mod/firegl_agpgart/fglrx_agp.ko] undefined!
CC /lib/modules/fglrx/build_mod/firegl_agpgart/fglrx_agp.mod.o
LD [M] /lib/modules/fglrx/build_mod/firegl_agpgart/fglrx_agp.ko
make[1]: Leaving directory `/usr/src/linux-2.6.15.1'
AGPGART build succeeded with return value 0
finished compiling for fglrx_agp
duplicating results into driver repository...
done.
==============================
- creating symlink
- recreating module dependency list
- trying a sample load of the kernel modules
done.



For shamrock_uk:

I have always used Red Hat or Fedora, but I have no problem to test another distros. The reason why I am angry for is that ATI doesn't attack the problem. They receive the money and give you the back.


For webterractive:

I agree with you. I will never by an ATI product again.

Anyway, thanks to all.

Last edited by ilpadrino; 01-21-2006 at 01:03 PM.
 
Old 01-22-2006, 04:40 PM   #7
ilpadrino
Member
 
Registered: Oct 2003
Location: Spain
Distribution: Fedora
Posts: 104

Original Poster
Rep: Reputation: 15
Definetely is a conflict with the DRI kernel module. If a disable the option 'Load "dri" of the 'Modules' Section in the xorg.conf file, The X server start (without 3d Rendering). If the module is loaded, the system crash.

Any ideas of how to upgrade this module?

Thanks
 
Old 01-22-2006, 06:17 PM   #8
webterractive
Member
 
Registered: Apr 2004
Location: Richmond, Canada
Distribution: Mandriva 2006/XPSP2
Posts: 265

Rep: Reputation: 30
No More Problems

Well at least you were able to compile the fglrx_agp module my installation wouldn't even give me that. After having to download a new kernel (2.6.15.1) and then compile and download and install the ati-drivers I just decided to go to Windows again, everything works and its all good. When using the drivers my X just hung it was so pathetic thatjust running fglrxinfo froze X, and shutting down the computer meant pressing the reset button. And trying to use the internal GART module for the drivers was next to impossible because it won't compile for me so screw it, I am playing games on Windows without having to wast time compiling.

Asrock P4VM800
ATI 9600 PRO AIW
Mandriva 2006
Kernel 2.6.15.1
Xorg 6.9
KDE 3.4/3.5

I had to use kernel 2.6.15.1 because its the only one that supports my P4M800 CE chipsets on AGPGART but I would stay with the stock 2.6.12-15mdk kernel if the fglrx would compile the fglrx_agp but lord knows thats a one in a million thing. I am not going to purchase a new motherboard to use one videocard.

Last edited by webterractive; 01-22-2006 at 06:20 PM.
 
Old 01-25-2006, 04:48 PM   #9
ilpadrino
Member
 
Registered: Oct 2003
Location: Spain
Distribution: Fedora
Posts: 104

Original Poster
Rep: Reputation: 15
Finally what is really incredible is that after applying a patch to the 'firegl_public.c' file (patch: line 2624 -> replace #IF 0 by #IF LINUX_VERSION_CODE >= 02060f ), compile and install, the results appears to be the same except that the system is not frozen. So I decided to access to the Xorg.log file through SSH from another computer when the system appears to be frozen, and the AGP was running!, but I cannot see anything cause I have no X server running (black screen). This is my log:

(II) fglrx(0): [drm] DRM interface version 1.0
(II) fglrx(0): [drm] created "fglrx" driver at busid "PCI:1:0:0"
(II) fglrx(0): [drm] added 8192 byte SAREA at 0x22935000
(II) fglrx(0): [drm] mapped SAREA 0x22935000 to 0xf6d11000
(II) fglrx(0): [drm] framebuffer handle = 0xd0000000
(II) fglrx(0): [drm] added 1 reserved context for kernel
(II) fglrx(0): DRIScreenInit done
(II) fglrx(0): Kernel Module Version Information:
(II) fglrx(0): Name: fglrx
(II) fglrx(0): Version: 8.20.8
(II) fglrx(0): Date: Dec 6 2005
(II) fglrx(0): Desc: ATI FireGL DRM kernel module
(II) fglrx(0): Kernel Module version matches driver.
(II) fglrx(0): Kernel Module Build Time Information:
(II) fglrx(0): Build-Kernel UTS_RELEASE: 2.6.9-1.667
(II) fglrx(0): Build-Kernel MODVERSIONS: yes
(II) fglrx(0): Build-Kernel __SMP__: no
(II) fglrx(0): Build-Kernel PAGE_SIZE: 0x1000
(II) fglrx(0): [drm] register handle = 0xfbe00000
(II) fglrx(0): [agp] Mode=0x1f000a1a bridge: 0x1106/0x3188
(II) fglrx(0): [agp] AGP v1/2 disable mask 0x00000000
(II) fglrx(0): [agp] AGP v3 disable mask 0x00000000
(II) fglrx(0): [agp] enabling AGP with mode=0x1f000b1a
(II) fglrx(0): [agp] AGP protocol is enabled for graphics board. (cmd=0x1f000312)
(II) fglrx(0): [agp] graphics chipset has AGP v3.0 (native mode)
(II) fglrx(0): [drm] ringbuffer size = 0x00100000 bytes
(II) fglrx(0): [drm] DRM buffer queue setup: nbufs = 100 bufsize = 65536
(II) fglrx(0): [drm] texture shared area handle = 0x22d81000
(II) fglrx(0): shared FSAAScale=1
(II) fglrx(0): DRI initialization successfull!
(II) fglrx(0): FBADPhys: 0xd0000000 FBMappedSize: 0x00501000
(II) fglrx(0): Splitting WC range: base: 0xd0000000, size: 0x501000
(II) fglrx(0): Splitting WC range: base: 0xd0400000, size: 0x101000
(==) fglrx(0): Write-combining range (0xd0500000,0x1000)
(==) fglrx(0): Write-combining range (0xd0400000,0x101000)
(==) fglrx(0): Write-combining range (0xd0000000,0x501000)
(II) fglrx(0): FBMM initialized for area (0,0)-(1024,1281)
(II) fglrx(0): FBMM auto alloc for area (0,0)-(1024,768) (front color buffer - assumption)
(==) fglrx(0): Backing store disabled
(==) fglrx(0): Silken mouse enabled
(==) fglrx(0): Using hardware cursor (scanline 768)
(II) fglrx(0): Largest offscreen area available: 1024 x 505
(**) Option "dpms"
(**) fglrx(0): DPMS enabled
(II) fglrx(0): Using XFree86 Acceleration Architecture (XAA)
Screen to screen bit blits
Solid filled rectangles
8x8 mono pattern filled rectangles
Solid Lines
Dashed Lines
Offscreen Pixmaps
Setting up tile and stipple cache:
24 128x128 slots
(II) fglrx(0): Acceleration enabled
(II) fglrx(0): X context handle = 0x00000001
(II) fglrx(0): [DRI] installation complete
840,1 Final

So now, I cannot understand anything.
 
Old 01-26-2006, 03:39 PM   #10
43r05p4c3
Member
 
Registered: Mar 2005
Location: Ontario, Canada
Distribution: Mandrake 10.0/XP Dual Boot Desktop & Gentoo 2005.1 Laptop
Posts: 79

Rep: Reputation: 15
Quote:
OpenGL vendor string: Mesa project: www.mesa3d.org
OpenGL renderer string: Mesa GLX Indirect
OpenGL version string: 1.2 (1.5 Mesa 6.1)
ok, this means the ATI drivers didn't install at all. It's a very common problem. It's not actually ATI's fault so much as the default drivers. MESA simply refuses to move out of the way for ATI. I've heard some very creative methods for doing so, but the simplest way is to use the --force option with the rpm. You'll want to install from the rpm again, but this time:

rpm -Uh --force ./ati_installer_whatever_it's_called.rpm

If all goes well that should take care of the MESA drivers. again, check with fglrxinfo. (Also make sure you have kernel source, gcc, and POSIX shared memory; these are common issues mentioned on the ATI website)

Having said that, it's not clear whether it's the DRI problem screwing up the ATI drivers, or the ATI drivers screwing up the DRI module.

Steve
 
Old 01-26-2006, 04:08 PM   #11
den15
Member
 
Registered: Oct 2005
Distribution: zenwalk
Posts: 88

Rep: Reputation: 15
i think you should disable Direct Rendering Manager support in kenrel. i had to do so.

i use radeon x 600 pro -256 MB (only 128 Mb are recognized - no support for pro version i belive) and kernel 2.6.14.5

with fgl_glx gears i get:
denis@den:~$ fgl_glxgears
Using GLX_SGIX_pbuffer
2188 frames in 5.0 seconds = 437.600 FPS
2532 frames in 5.0 seconds = 506.400 FPS
2537 frames in 5.0 seconds = 507.400 FPS
2537 frames in 5.0 seconds = 507.400 FPS

and with glxgears

denis@den:~$ glxgears
10780 frames in 5.0 seconds = 2156.000 FPS
12984 frames in 5.0 seconds = 2596.800 FPS
12984 frames in 5.0 seconds = 2596.800 FPS
13109 frames in 5.0 seconds = 2621.800 FPS
 
Old 01-27-2006, 07:10 AM   #12
ilpadrino
Member
 
Registered: Oct 2003
Location: Spain
Distribution: Fedora
Posts: 104

Original Poster
Rep: Reputation: 15
I have also used the option of installing from the rpm package using the --force option but it seems cannot override Mesa dri drivers.

How can I replace them?
 
Old 01-27-2006, 08:07 PM   #13
43r05p4c3
Member
 
Registered: Mar 2005
Location: Ontario, Canada
Distribution: Mandrake 10.0/XP Dual Boot Desktop & Gentoo 2005.1 Laptop
Posts: 79

Rep: Reputation: 15
oh dear.

When MESA refuses to leave like this, the bottom line is this: I hope you enjoy the time you spend at your computer unsure of what's going on. You'll probably get it eventually, but either with somthing ridiculously comlex or something ridiculously simple. Having said that, let's see if we can't take care of the problem.

First, take care of the "basics". i.e. Make sure ATI is finding what it wants.

POSIX shared memory:

Quote:
To enable POSIX Shared Memory on your system, perform the following as root:

1. Add the following line to /etc/fstab (if it isn't there already): tmpfs /dev/shm tmpfs defaults 0 0
2. Mount shared memory as follows: mount /dev/shm
3. Issue the following command to check that it mounted properly: mount | grep "shm"

If the mount was successful, then the following output (or similar) should appear:
tmpfs on /dev/shm type tmpfs (rw)
--ATI website

AGP modules:
(As I understand it, your AGP issues extend beyond this solution, and you've probably already tried, but I'm including it anyways.. This could well be the reason MESA won't leave, but I don't know for sure)

Quote:
This issue can be worked around as follows:

1. First make sure that agpgart is loading properly.
2. To find out which AGP controller your motherboard uses, issue the following command: lspci | grep AGP
3. To find a list of AGP related kernel modules installed on your machine, issue the following command and look for a module (*.ko file) that suits your AGP Controller: ls /lib/modules/`uname -r`/kernel/drivers/char/agp
4. Use the modprobe command (as root) to load the module. For example: On a motherboard using a VIAŽ AGP Controller, you would load the via-agp.ko using modprobe as follows (notice that the trailing .ko is omitted): modprobe via-agp

Check the modprobe manpage for more information on loading kernel modules.

5. To verify that the AGP module is already loaded, run lsmod as root. With the X server running and the connection established, the usage count of this module must be greater than zero.
--ATI website (again)

Kernel Source and gcc:

I group these two because the fix is generally the same. Make sure you have the appropriate packages installed. And update gcc if necessary

Next, assuming that didn't help any, we're going to try to remove MESA.

Remove any MESA rpms:

Ok, I'm not highly familiar with the rpm command, as most of my package work is done with RpmDrake. Obviously, FC does things different than Mandrake. If you have some GUI to check for any MESA packages, do so. Otherwise, check the man page for rpm to look up the command to find any packages.

Once you've found the appropriate package (if it exists as such) the following command will hopefully remove it. Immediately after, install the ati driver.

rpm -e xorg-x11-Mesa-libGL-6.8.1-12

Obviously changing the package name as appropriate.

If things are going to be remotely friendly, this will have worked to remove MESA (possibly leaving/creating numerous other problems, but taking care of the existance of MESA

Remove MESA Manually:

If you reach this point, then I feel for you. I'm not entirely sure how to do this properly, but I recall reading a post once where someone found and deleted all the MESA related files (probably altering some too). I'm going to search for it now .................

Ok, not the post I read before, but this thread offers a suggestion (for an older ATI driver, but the goal is still to remove MESA...

http://www.linuxquestions.org/questi...ly+remove+mesa

If it still refuses to budge, prehaps you'll be more successful in searching for the appropriate post.

Hopefully this takes care of things, although those AGP issues you mentioned may cause other problems.

Good Luck,

Steve
 
Old 01-28-2006, 08:15 AM   #14
Amon_Re
LQ Newbie
 
Registered: Jan 2006
Posts: 3

Rep: Reputation: 0
I've got some bad news for the other person with the ASUS K8V-X SE motherboard.

The problem isn't the ATI card, nor the ATI software, it's an imcompability with the motherboard itself.

I've been trying to solve this issue for 2 months or so now, with no success sofar.

What i do know, and can tell you, is that the problem stems from the AGPGART not being able to access the AGP card itself properly, you can see for yourself with the following command:

dmesg | grep "agp"

You will notice, that, regardless of your AGP settings in your BIOS, that the aperture size is reported as 32M, instead of the value specified in the BIOS.

Furthermore, running agpgart testcode produces failures all over the place.

I filed a bugreport about this with the ubuntu fellas (since that's what i'm using) but i also tried solving it through gentoo.

I also did tests with NVidia cards and ATI cards (Rage 128, wich uses FOSS drivers) and they all have the same result.

Bottom line is, eighter we find the bug, or we buy a new mobo

*link to bugreport: https://launchpad.net/distros/ubuntu....15/+bug/29813
 
Old 01-29-2006, 11:34 AM   #15
ilpadrino
Member
 
Registered: Oct 2003
Location: Spain
Distribution: Fedora
Posts: 104

Original Poster
Rep: Reputation: 15
To 43r05p4c3:

First of all I have to say thanks all of you for your interest in my post and your help.

In reply to your suggestions:

I have checked that POSIX memory is enabled and mounted as tmpfs /dev/shm... in fstab and checked later with 'mount | grep 'shm''.

I have checked which ids my AGP chipset. As I can get from lspci is:

VT8385 (AGP K8T800). But the module amd64_agp is the only module that load itself on booting. Then I am not sure if this is the module I have to use. I have not beeing able to find if this is the rigth one. Any idea ?

I have also tried to uninstall mesa driver with thr rpm command, but there are a lot of dependencies, so I don't know if this is going to work forcing uninstall.


To Amon_Re:

I am not sure that you are right. As you can see the output from dmesg:

Linux agpgart interface v0.101 (c) Dave Jones
agpgart: Detected AGP bridge 0
agpgart: AGP aperture is 64M @ 0xcc000000


AGP aperture is exactly the same as the BIOS is set. I am going to run the script 'testagpgart.c' and will post the results.

Thanks in advance.
 
  


Reply



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
8.6.20 ATI Drivers and ATI Radeon XPress 200M ltracy Linux - Hardware 8 04-28-2006 07:52 PM
ATI Radeon 9550 / NO acelleration at all... amobius Linux - Hardware 2 09-29-2005 05:35 PM
ATI Radeon 9550, QT panel not loaded majtekst Fedora 0 02-18-2005 02:22 AM
ATI Radeon 9550 driver installed, but... burrough Linux - Hardware 6 10-29-2004 09:26 AM
TV out impossible for videos on a ATI radeon 9600?? Braveheart1980 Linux - General 3 03-18-2004 05:15 PM

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

All times are GMT -5. The time now is 09:28 PM.

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