CentOS Icon CentOS Logo
CentOS Text
   
  
www.centos.org Forum Index
   CentOS 4 - Hardware Support
  How To install ATI fglrx

 

 Bottom   Previous Topic   Next Topic
  •  Rate Thread
      Rate this Thread
      Excellent
      Good
      Average
      Bad
      Terrible
Poster Thread Rated:  27 Votes
  •  yyagol
      yyagol
How To install ATI fglrx
#1
Professional Board Member
Joined: 2006/6/10
From
Posts: 889
This How To is for installing the ati's fglrx driver on a i686/i386 system using a none custome kernel
it was tested on CentOS 4.3 and 4.4 using an ATI RADEON 9200SE card.
in order to install it properly you will need some adittional file to install. you can use RPM or yum just
make shoure you install them : kernel-devel , gcc , gcc-c++ , make .
The magor problem with installing the fglrx is the conflict with Mesa project this is what its all about
how to remove and install everything clean and working. all steps execpt 1st one should be done as root in
a none X enviermant ( no xserver at all ) .

1. The first step is to download the latest ATI driver from http://www.ati.com

2. Next we need to install the adittional packeges , i used yum to install the packeges i needed :

$su -
password:
# yum install kernel-devel
# yum install gcc
# yum install gcc-c++
# yum install make


3. This is the part whare we disable Mesa libGL . using rpm command we find witch files to delete
do not uninstall xorg-x11-Mesa-libGL other services depends on it, just delete the files

# rpm -qa | grep Mesa
xorg-x11-Mesa-libGLU-6.8.2-1.EL.13.37.2
xorg-x11-Mesa-libGL-6.8.2-1.EL.13.37.2
# rpm -ql xorg-x11-Mesa-libGL-6.8.2-1.EL.13.37.2
/usr/X11R6/lib/libGL.so.1
/usr/X11R6/lib/libGL.so.1.2
/usr/lib/libGL.so.1


now delete the files :

 
# rm -vf /usr/X11R6/lib/libGL.so*
# rm -vf /usr/lib/libGL.so.1


4. Now to the fun part , installing the fglrx driver.
cd to whare you saved the ati driver . i am using the 8.28.8 driver version here.
but first we need to remove the old module that was on running , in my case RADEON.

#  modprobe -r radeon
# chmod u+x ati-driver-installer-8.28.8.run
# ./ati-driver-installer-8.28.8.run


5. Change the xorg.conf using your favorit editor ( vi, nano .. ) to load the new fglrx driver
and the Options needed to run it.
This is the part in my xorg.conf .yours can be difrant , just make shoure to change the Driver to fglrx and th Options :

Section "Device"
 Identifier  "Videocard0"
 Driver      "fglrx"
 VendorName  "Videocard vendor"
 BoardName   "ATI Radeon 9200SE"
        Option      "VideoOverlay" "of"
        Option      "OpenGLOverlay" "off"
        Option      "UseInternalAGPGART"   "no"
EndSection


some people use the aticonfig command but i dont like unwanted script to corapt my
config files, but feel free to use it . if you used the above donot do this part !

# aticonfig --initial
# aticonfig --overlay-type=Xv


6. Remember we delete th libGL files ? well now we will link the files again
but they will link to the the new ati files and not to Mesa, this way when typing fglrxinfo
you will get the fglrx and not Mesa .

# cd /usr/lib
# rm libGL.so.1
# ln -s /usr/X11R6/lib/libGL.so.1 libGL.so.1
# cd /usr/X11R6/lib/
# chmod +x libGL.so.1.2


7. startx

8. Check to see if it workes :

$ fglrxinfo
display: :0.0  screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: RADEON 9250/9200 Series DDR Generic
OpenGL version string: 1.3.1091 (X4.3.0-8.28.8)
$
$
$ glxinfo | grep direct
direct rendering: Yes


thats it
_________________
P Save a tree...please don't print this unless you really need to
Posted on: 2006/9/16 13:15
Create PDF from Post Print
Top
  •  yyagol
      yyagol
Re: How To install ATI fglrx
#2
Professional Board Member
Joined: 2006/6/10
From
Posts: 889
In order to keep your fglrx from breaking while upgrading your system
there is a trick that is ugly but works. simply disable any changes to the xorg-x11-Mesa-libGL files
the easy way is to change attribute:

# chattr +i  /usr/X11R6/lib/libGL.so.1.2
#
#
# lsattr /usr/X11R6/lib/libGL.so.1.2
----i-------- /usr/X11R6/lib/libGL.so.1.2
#
# rm -vf /usr/X11R6/lib/libGL.so.1.2
rm: cannot remove `/usr/X11R6/lib/libGL.so.1.2': Operation not permitted

Now when you upgrade the xorg-x11-Mesa-libGL it will try to remove the file but will fail
and the links that its going to make will be the same links as before, so no harm done to your fglrx .
_________________
P Save a tree...please don't print this unless you really need to
Posted on: 2006/10/9 19:27
Create PDF from Post Print
Top
  •  var32
      var32
Re: How To install ATI fglrx
#3
Newbie
Joined: 2006/11/9
From
Posts: 10
OK.

It works but i think you can skip this part
after you compile the fglrx it makes this files then
ther is no need to relink or delete any of them, worked for me like charm without it

Quote:

yyagol wrote:
# cd /usr/lib
# rm libGL.so.1
# ln -s /usr/X11R6/lib/libGL.so.1 libGL.so.1
# cd /usr/X11R6/lib/

Posted on: 2006/11/9 19:57
Create PDF from Post Print
Top
  •  doronunu
      doronunu
Re: How To install ATI fglrx
#4
Newbie
Joined: 2006/8/30
From
Posts: 2
Quote:

var32 wrote:
OK.

It works but i think you can skip this part
after you compile the fglrx it makes this files then
ther is no need to relink or delete any of them, worked for me like charm without it

Quote:

yyagol wrote:
# cd /usr/lib
# rm libGL.so.1
# ln -s /usr/X11R6/lib/libGL.so.1 libGL.so.1
# cd /usr/X11R6/lib/



Yes, the new drivers r making the links automatically.

You also forgot to mention 2 things :

1. The chattr command is for ext2 and ext3 file systems only.
2. When you download the kernel-devel Plz download YOUR kernel devel. If u got smp u need to download kernel-smp-devel.
Posted on: 2007/1/6 18:06
Create PDF from Post Print
Top
  •  along
      along
Re: How To install ATI fglrx
#5
Newbie
Joined: 2007/1/10
From
Posts: 7
I just tried this to no avail. The system still locks. Anyone have any other suggestions. CentOS 4.4, Radeon 9200 Pro. (Sorry for the post to new thread, I lost track of this one.)
Posted on: 2007/1/10 2:56
Create PDF from Post Print
Top
  •  along
      along
Re: How To install ATI fglrx
#6
Newbie
Joined: 2007/1/10
From
Posts: 7
Now, after another reboot, all is working. The ATI control "fireglcontrolpanel" does not function, but that's a detail I can live without. Thanks for the instructions.
Posted on: 2007/1/10 12:17
Create PDF from Post Print
Top
  •  yyagol
      yyagol
Re: How To install ATI fglrx
#7
Professional Board Member
Joined: 2006/6/10
From
Posts: 889
Hi,

the ATI control panel is very limited and lame if you ask me comparing to
Nvidia control panel. and as for the driver it is too not perfect at all. i did not try playing games
with this machine . to test your rendering you can run this command :

glxgears 


if you get more then 1000 FPS then you got the 3D working.
but don't expect too match from fglrx :(
_________________
P Save a tree...please don't print this unless you really need to
Posted on: 2007/1/14 15:46
Create PDF from Post Print
Top
  •  chebi
      chebi
Re: How To install ATI fglrx
#8
Peeking in the Member Window
Joined: 2007/3/7
From Montevideo, Uruguay
Posts: 17
Hi,

The first tie i tried isntalling the ati driver for a X1300 i did it with the instructions from the web, didn`t work. So how can i rollback and do it the way you explain in this thread???

Also its in a x86_64 installation....

thanks in advance
Chebi
Posted on: 2007/3/17 2:55
Create PDF from Post Print
Top
  •  yyagol
      yyagol
Re: How To install ATI fglrx
#9
Professional Board Member
Joined: 2006/6/10
From
Posts: 889
chebi ,

My instructions are for x86 , i do not know if it will work under x86_64 .
but if it will then please let us know ,so it maybe added to the wiki pages.
as for your question , first check if its already installed or if you got any error during the process ?

cat /usr/share/fglrx/fglrx-install.log

If no errors where find then the installation was successful, and you can redo it
just the same as the instructions . if you do have errors then fallow the gcc errors on fixing it.
paste your errors here if you got any , we can help you with it.
In order to remove the previous install you can run

/usr/share/fglrx/fglrx-uninstall.sh
_________________
P Save a tree...please don't print this unless you really need to
Posted on: 2007/3/18 7:02
Create PDF from Post Print
Top
  •  chebi
      chebi
Re: How To install ATI fglrx
#10
Peeking in the Member Window
Joined: 2007/3/7
From Montevideo, Uruguay
Posts: 17
yyagol, i will try to install it again and post the results here, thanks for the tip about uninstalling
Posted on: 2007/3/26 21:00
Create PDF from Post Print
Top
 Top   Previous Topic   Next Topic

 


 You cannot start a new topic.
 You can view topic.
 You cannot reply to posts.
 You cannot edit your posts.
 You cannot delete your posts.
 You cannot add new polls.
 You cannot vote in polls.
 You cannot attach files to posts.
 You cannot post without approval.




"Linux" is a registered trademark of Linus Torvalds. | All other trademarks are property of their respective owners. | All other content is Copyright @ 2004-2009 by the CentOS Project or "each individual contributor (forums, comments, etc.) unless otherwise assigned".| Theme based on a theme by 7dana.com