How to install ATI Radeon fglrx drivers?
Posts: 131
Hi, how do I install the radeon fglrx drivers on Mepis?
I've done it loads of times before on other distros - but in debian I have no clue where to start.
GJ
That's very handy to know tha
Posts: 131
That's very handy to know thank you. Not so alien from what I'm used to. 
Thanks again.
GJ
SimplyMEPIS2 and fglrx can't get it to work
Posts: 2
I've installed SimplyMepis2 to the hard drive and I've been trying to get the ATI driver working.
Anybody have any luck? I'm running into a problem with compiling, perhaps because of different kernel-sources and headers?
regards.
Having trouble, too.
Posts: 39
When I enter the ./make.sh command,??I get this:
ATI module generator V 2.0
==========================
initializing...
kernel includes at /usr/src/linux/include not found or incomplete
file: /usr/src/linux/include/linux/version.h
SimplyMEPIS 2004.01, using the 2.6.7 kernel.?? Any ideas where I goofed up?
troubles...
Posts: 137
Hi!
I got a question: is that fglrx any better than the one that comes with mepis?
solution to the question abowe should be something like:
1) download http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.7.tar.bz2
into /usr/src
2) cd /usr/src
3) mv linux-2.6.7 old-linux-2.6.7
4) tar jxf linux-2.6.7.tar.bz2
5) ln -s linux-2.6.7 linux
6) cd linux
7) make oldconfig
make
9) ln -s /usr/src/linux-2.6.7 /lib/modules/2.6.7/build
now proceed to compile the ati thing again.
not 100% sure that this is all it needs. i got ipw2100 driver upgraded like that, but i have not tried the fglrx for ati since last time i tried it i could not notice any difference with the driver supplied by mepis 2004.01.
npaad
I got it working with out recompiling, DLing, or installing
Posts: 3
I have a radeon 7500 m running on mepis 2004.02 -kernal 2.6.7, and 3d work just fine. I you have to do is go into kpakage and uninstall anything that is for nvidia. just search for pakages with nvidia in the name, uninstall then all and reboot! tux racer/cart runs flawlessly and i get 1500fps in glxgears
hope this helps
Liberating the world... one Tug at a time.
So close...
Posts: 39
Made the most progress following npaad's instructions before compiling (though I have the nagging suspicion that I wasn't supposed to see so many error messages during steps 7 and 8 on the list), but the process bogged down at the last two steps.?? I've included those bits in the hope of someone of greater experience than I (which covers just about everyone on this board, I guess :mrgreen: ) spotting where I fell into error.
root@0[build_mod]# ./make.sh
ATI module generator V 2.0
==========================
initializing...
cleaning...
patching 'highmem.h'...
skipping patch for 'drmP.h', not needed
skipping patch for 'drm_os_linux.h', not needed
assuming new VMA API since we do have kernel 2.6.x...
doing Makefile based build for kernel 2.6.x and higher
make -C /lib/modules/2.6.7/build SUBDIRS=/lib/modules/fglrx/build_mod/2.6.x modules
make[1]: Entering directory `/usr/src/linux-2.6.7'
Makefile:434: .config: No such file or directory
?? CC [M]?? /lib/modules/fglrx/build_mod/2.6.x/agp3.o
In file included from /lib/modules/fglrx/build_mod/2.6.x/agp3.c:58:
include/linux/config.h:4:28: linux/autoconf.h: No such file or directory
In file included from include/asm/thread_info.h:16,
???????????????????????????????? from include/linux/thread_info.h:21,
???????????????????????????????? from include/linux/spinlock.h:12,
???????????????????????????????? from include/linux/capability.h:45,
???????????????????????????????? from include/linux/sched.h:7,
???????????????????????????????? from include/linux/module.h:10,
???????????????????????????????? from /lib/modules/fglrx/build_mod/2.6.x/agp3.c:60:
include/asm/processor.h:67: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
include/asm/processor.h:67: error: requested alignment is not a constant
In file included from include/linux/list.h:7,
???????????????????????????????? from include/linux/wait.h:14,
???????????????????????????????? from include/asm/semaphore.h:41,
???????????????????????????????? from include/linux/sched.h:18,
???????????????????????????????? from include/linux/module.h:10,
???????????????????????????????? from /lib/modules/fglrx/build_mod/2.6.x/agp3.c:60:
include/linux/prefetch.h: In function `prefetch_range':
include/linux/prefetch.h:64: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared (first use in this function)
include/linux/prefetch.h:64: error: (Each undeclared identifier is reported only once
include/linux/prefetch.h:64: error: for each function it appears in.)
In file included from include/linux/module.h:23,
???????????????????????????????? from /lib/modules/fglrx/build_mod/2.6.x/agp3.c:60:
include/asm/module.h:54:2: #error unknown processor family
make[2]: *** [/lib/modules/fglrx/build_mod/2.6.x/agp3.o] Error 1
make[1]: *** [_module_/lib/modules/fglrx/build_mod/2.6.x] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.7'
make: *** [kmod_build] Error 2
build succeeded with return value 0
ln: `./fglrx.ko': File exists
duplicating results into driver repository...
cp: cannot stat `fglrx.ko': No such file or directory
done.
==============================
You must change your working directory to /lib/modules/fglrx
and then call ./make_install.sh in order to install the built module.
==============================
root@0[build_mod]# cd /lib/modules/fglrx
root@0[fglrx]# ./make_install.sh
*** WARNING ***
Tailored kernel module for fglrx not present in your system.
You must go to /lib/modules/fglrx/build_mod subdir
and execute './make.sh' to build a fully customed kernel module.
Afterwards go to /lib/modules/fglrx and run './make_install.sh'
in order to install the module into your kernel's module repository.
(see readme.txt for more details.)
As of now you can still run your XServer in 2D, but hardware acclerated
OpenGL will not work and 2D graphics will lack performance.
failed.
why?
Posts: 137
Hi!
I can try to install ati fglrx driver today and see what needs to be done exactly. But why do you need the fglrx driver the radeon module that comes with SimplyMepis and 2.6.7 works just as good as the fglrx driver. At least I could not see any difference.
You could show your lspci and we could try to get 3d working with existing modules in most cases.
Npaad
Becasuse there is no native s
Posts: 131
Becasuse there is no native support for 3D in X for most newer (r300+ based) cards. 2D works but not 3D. Because too ATI's drivers are faster - even in 2D
Would it be too much to ask......
Posts: 250
to have boot cheatcodes for ATI and NVIDIA? You enter the code at boot depending on your card and it is auto configured? To??me, that would be optimal.
But, I don't know if it would be possible.
Chris
What do you mean cheatcode?
Posts: 131
Do you mean like at boot when you boot your OS you can say something like xdrvr=nvidia or xdrvr=fglrx?
Why would you need this?
I don't think it's possible as Nvidia drivers and ATI drivers require that you set up X appropriately for both.
This can be done very quickly and easily by hand. For ATI ellomena's original excellent answer to my initial query should be enough for everyone. Reading it carefully and following it to the letter will get 3D up and running in no time. For Nvidia, search the forum - there are undoubtedly just as good answers there how to achieve this too.
GJ
ati driver
Posts: 137
Hi!
I compared them on my computer. I got
0000:01:00.0 VGA compatible controller: ATI Technologies Inc Radeon R250 Lf [Radeon Mobility 9000 M9] (rev 01)
and ati driver is slower 800-900fps, and the radeon driver that comes with mepis is 1400-1500.
But... to get the ati driver built...
1) mv /usr/src/linux-2.6.7 /usr/src/old-2.6.7
2) download and unpack into /usr/src 2.6.7 kernel
3) ln -s /usr/src/linux-2.6.7 /usr/src/linux
4) cd /usr/src/linux
5) make oldconfig
6) make
7) download the driver from ati site (for xfree 4.3.0)
alien it to deb
9) install it with
dpkg -i --force-overwrite fglrx
10) build the driver
cd /lib/modules/fglrx/build_mod
chmod +x make.sh
./make.sh
11) quit X
ctrl+alt+f1
/etc/init.d/kdm stop
12) unload radeon module
rmmod radeon
13) install the fglrx module
cd /lib/modules/fglrx
chmod +x make_install.sh
./make_install.sh
dpkg-divert --package fglrx --add /usr/X11R6/lib/libGL.so.1.2
15) edit XF86Config-4
vi /etc/X11/XF86Config-4
in section Device change Driver "radeon" into Driver "fglrx"
in section Screen make sure that DefaultColorDepth is 24
16) restart X
/etc/init.d/kdm start
Should be it. Might need some playing with modules depending on your chipsets on motherboard...
Npaad
explain
Posts: 5
Hi.
Can you explain better points 1) to 6) ?
Thanks.
Giving up for now.
Posts: 39
Well, something's obviously up, since while meauto does detect my card during startup, I've got zip for 3D acceleration.?? Repeated attempts to install the fglrx drivers have resulted in failure, so maybe it's just time for me to sit down and admit that I don't have the chops for this.
Guess I should just wait for .03 to show up at linuxcd.org and order that.?? Hopefully that'll do the trick.
I don't see where your proble
Posts: 131
I don't see where your problem is. It is basically no more than copying and pasting.. I just did it and was half asleep.
GJ
You have a R250 chip. I have
Posts: 131
You have a R250 chip. I have an R350 9800XT.
ATI were barely involved in Linux driver development around R250. R250 is not by any measure a performance chip anyway - but up until then r200 250 it was better supported by Xfree than ATI.
So it depends on your chip.
GJ

Yes, I'm getting 1630+fps wit
Posts: 627
Yes, I'm getting 1630+fps with the Mepis radeon driver on my 8500. Not worth the the effort to install the ATI propritary stuff. With the new ATI drivers being released this may change, but, only for the newer cards and only if you run a lot of 3d stuff.
As others have said, just remove all the nvida.
-------
"People who like this sort of thing will find this the sort of thing they like."
Abraham Lincoln (1809 - 1865), in a book review
Tried removing the nvidia stuff.
Posts: 39
That didn't work, either.
In the spirit of SimplyMepis....
Posts: 250
this is why I suggested the cheatcodes. The distro is designed for the user to simply get a working desktop up and going. Since 3d support is very common it just seems to make sense to not have to drop to the commandline to accomplish this feat. While some of us can do this, for others it will just be a reminder that linux??appears to still be??beyond them.??By initiating a cheatcode, the process of setting up 3d for??nvidia or ati??could be completely automated.??In PRO MEPIS you can use the commandline if you like. I just think that SimplyMEPIS would be best with a way to automate the process.
Just my $.02
Chris??
Here is another way to get 3d working in ATI Radeon Cards
Posts: 1296
http://mepislovers.com/modules/newbb/viewtopic.php?topic_id=789&forum=4
I followed the instructions on this page and Tuxracer and Tuxcart run great for me now and my GL screensavers run great too.
I tried that last one.
Posts: 39
Everything was going great until??I tried to reboot and my monitor crapped out on me.?? Damn.?? I wasn't getting any error messages, and the radeon module loaded.?? Maybe it's my monitor driver.?? Anyone know where I can get a driver for a DEC PCXCV-DW?
Yeah, yeah, it's old, I know.?? But the price was right:?? Free. :mrgreen:
Edit:?? Okay, forget all that noise.?? I configured my monitor (thanks again, cblue) and found the same problem.?? It seems to happen when I change the driver from "vesa" to "radeon" in the Device section of /etc/X11/XF86Config-4
Any ideas, anyone?
What is the setup in xf86config-4
Posts: 1296
for your video card? Post it here.
Here's the wee bugger now...
Posts: 39
I set it back to the way I found it (i.e. the configuration that still works):
Section "Device"
??#Option "sw_cursor" # needed for some ati cards
??#Option "hw_cursor"
??#Option "NoAccel"
??#Option "ShowCache"
??#Option "ShadowFB"
??#Option "UseFBDev"
??#Option "Rotate"
??#Option "NoUseBios" # needed for some Savage cards
# nvidia special options, use with care
?? Option "CursorShadow" "1"
?? Option "CursorShadowAlpha" "63"
?? Option "CursorShadowYOffset" "2"
?? Option "CursorShadowXOffset" "4"
?? Option "FlatPanelProperties" "Scaling = native"
?? Option "NoLogo" "false"
?? Option "IgnoreEdid" "true" # needs to be true for some nvidia cards
?? Identifier?? "Card0"
?? Driver "vesa"
?? BoardName "unknown"
??#BusID?? "PCI:1:0:0"
EndSection
Okay here is what mine looks like
Posts: 1296
Section "Module"
Load "GLcore"
Load "bitmap"
Load "dbe"
Load "ddc"
Load "dri"
Load "extmod"
Load "freetype"
Load "glx"
Load "int10"
Load "record"
Load "speedo"
Load "type1"
Load "vbe"
EndSection
Section "Device"
Identifier "Videocard0"
Driver "radeon"
VendorName "Videocard vendor"
BoardName "ATI Radeon 9000"
VideoRam 65536
EndSection
I don't think you need all the stuff that you currently have listed for your video card (I think it's nvidia settings). My video works great with these settings and the ati drivers that I installed from that other post I made above.
It didn't work.
Posts: 39
Dammit, this piece of junk computer??is going to drive me insane...
Okay, after all of this and still no 3D...
Posts: 39
... is it worth my while to obtain the .03 release??? While I know that there are no guarantees, does it improve my chances of getting some performance out of my peesa#$&@ computer?
Link Correction to a post I made
Posts: 1296
http://mepislovers.com/modules/newbb/viewtopic.php?viewmode=flat&topic_id=789&forum=11
This link is the one with easy instructions on how to install ati-drivers.
Not the http://mepislovers.com/modules/newbb/viewtopic.php?topic_id=789&forum=4 one. I've had to move some topics around for better organization.
further problems with xlibmesa-gl
Posts: 2
Hi,
I have installed Mepis on my desktop just a few days ago and I could do it only thanks to your instructions.
Everything worked fine until I tried to install some other package with a graphical interface (gnuplot, gqview, ...). I always have the same error and I don't know what to do.
This is the typical error line:
...
xlibmesa-gl-dev: Depends: xlibmesa-gl (= 4.3.0.dfsg.1-13) but 4.3.0.dfsg.1-12.0.1 is to be installed
...
I have tried to install xlibmesa-gl_4.3.0.dfsg.1-13_i386 but here is what I get, the error seems to be connected to the diversion on libGL:
Reading Package Lists... Done
Building Dependency Tree... Done
Correcting dependencies... Done
The following extra packages will be installed:
xlibmesa-gl
The following packages will be upgraded:
xlibmesa-gl
1 upgraded, 0 newly installed, 0 to remove and 13 not upgraded.
89 not fully installed or removed.
Need to get 0B/282kB of archives.
After unpacking 49.2kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 83839 files and directories currently installed.)
Preparing to replace xlibmesa-gl 4.3.0.dfsg.1-12.0.1 (using .../xlibmesa-gl_4.3.0.dfsg.1-13_i386.deb) ...
Unpacking replacement xlibmesa-gl ...
dpkg: error processing /var/cache/apt/archives/xlibmesa-gl_4.3.0.dfsg.1-13_i386.deb (--unpack):
trying to overwrite `/usr/X11R6/lib/libGL.so.1.2', which is also in package fglrx-4-3-0
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/xlibmesa-gl_4.3.0.dfsg.1-13_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
RESULT=100
Any idea of what I could do to solve this problem? I am new to Mepis and I am surely not an expert of the tools for dealing with its packages.
Thanks for the help,
Cris

ATI fglx
Posts: 33
I had the same problems when I first tried Mepis. I run a Xtasy ATI 9600
with 256mb ram. Had minor problems with 2.8 ie Tux Racer was very jerky some games wouldn't run at all.
When I finally got 3.3 everything worked like a charm after I got the updates. Synaptic Package Manager rocks for updating packages and is part of 3.3. It is much easier to work with than Kpackage manager at least for me. I am on dial up so I have been picking packages to install rather than just a blanket upgrade.
hope this helps
simplify...simplify
now it works
Posts: 2
Thanks for the help. In the end it works.
It was a little tricky, though, because I had some strange conflict that did not allow me to upgrade xlibmesa to version 4.3.0.dfsg.1-13, thus I could not install anything that depended on it, like gnuplot, and some packages, like synaptic, did not work properly anymore ... Anyway, I had to manually remove the diversion for the package fglrx (deleting three lines from the file /var/lib/dpkg/diversions) and then executed
dpkg --purge fglrx-4-3-0
Then, I tried to install one of the packages that previously I could not install (gnuplot). It worked and, as a side effect, also xlibmesa was upgraded (I could have directly upgraded this but I started with gnuplot and it came along).
After this, I dowloaded and installed the driver (fglrx-driver_8.12.10-1_i386.deb) available here:
http://www.togaware.com/linux/survivor/ATI_Radeon.shtml
and followed the instructions (the installation was done by means of wajig). At last, I upgraded the whole system.
I am not sure that this procedure is orthodox but now everything works fine 
First download the relevant
Posts: 680
First download the relevant source for whatever kernel you're using (e.g. 2.6.7) and unpack it to /usr/src/linux-2.6.7 and use the command ln -s /usr/src/linux-2.6.7 /usr/src/linux (or linux-2.4.26). Download the fglrx package from the ATI website and run alien fglrx_4.3.0-<version>.i386.rpm followed by dpkg -i --force-overwrite fglrx_4.3.0-<version>.i386.deb (the --force-overwrite switch is needed to overwrite libGL.so from the xlibmesa-gl package). Next compile the fglrx modules:
cd /lib/modules/fglrx/build_mod
chmod +x make.sh
./make.sh
cd ..
rmmod radeon
chmod +x make_install.sh
./make_install.sh
dpkg-divert --package fglrx --add /usr/X11R6/lib/libGL.so.1.2
The dpkg-divert will ensure that the xlibmesa-gl packages don't cause problems when being upgraded in future. Edit your /etc/X11/Xfree86Config-4 so that it used Driver "fglrx" instead of Driver "radeon". You'll also want to ensure that the default bit depth is 24, since the fglrx drivers don't provide 3D acceleration at any other depth.