-   Slackware (
-   -   Running fglrx with -current (

cathectic 03-20-2010 09:08 AM

Running fglrx with -current
For anyone who is interested in doing so (e.g. if, like me, you have an HD5000/ Evergreen card) , ATI have given a pre-release of fglrx that works with X Server 1.7 to Ubuntu.

With a bit of recycling and some patches from Arch on top for 2.6.33 support, I've turned that into a working Slackbuild here:

See the README.TXT for the URL to obtain the Ubuntu source tarball.

Obviously, it works for me, so YMMV, etc (I'm running this on Slackware64 -current - I don't have Slackware 32 bit around to test with)

hajatvrc 03-20-2010 01:58 PM

I can't tell you how much easier this made my life.

Worked perfectly, thanks for this post.

gauchao 03-21-2010 03:31 PM

Thanks for sharing, cathectic. Do you know if this works with a double head Radeon 3870x2 ?

cathectic 03-22-2010 03:45 AM

No idea. I imagine it does, but ATI haven't put out any release notes for this snapshot that confirm either way.

vdemuth 03-22-2010 02:04 PM

Running your slackbuild errors out as below. Any idea why?


./fglrx.SlackBuild: line 47: cd: fglrx-installer-8.660: No such file or directory

cathectic 03-22-2010 03:02 PM


Originally Posted by vdemuth (Post 3907783)
Running your slackbuild errors out as below. Any idea why?


./fglrx.SlackBuild: line 47: cd: fglrx-installer-8.660: No such file or directory

Looks like you have the wrong tarball - the script is expecting 8.721

vdemuth 03-22-2010 03:46 PM

Got the tarball from the link in your readme. Noticed it was a different tarball so just edited the slackbuild to change that No.only. Wouldn't have thought that would make a great deal of difference. But just in case, do you have a link to version 8.721

cathectic 03-22-2010 04:25 PM


Originally Posted by vdemuth (Post 3907895)
But just in case, do you have a link to version 8.721

Yes - I've fixed the README now.

vdemuth 03-23-2010 03:18 AM

Work with the new link, but had to adjust the slackbuild a little for it to build. Probably just my box causing that. Thanks for the great job.

gtludwig 03-29-2010 10:44 AM

not working here

The SlackBuild builds and installs OK, but it doesn't works. At ##slackware I got help from adamk75 and got up to:

fglrx builds and installs, as can be seen here.


# modprobe fglrx
FATAL: Error inserting fglrx (/lib/modules/2.6.33/drivers/char/drm/fglrx.ko): Invalid module format

I pastebin my -current kernel .config here, /var/log/Xorg.0.log here, and here's my dmesg output.

Thanks in advance,

whizje 03-29-2010 06:07 PM

Got it working with with slackware-32 with a little patch to the patch from


#if defined(__i386__)
 #ifndef do_div
@@ -1470,7 +1478,18 @@
    return __fgl_cmpxchg(ptr,old,new,size);
-    return __cmpxchg(ptr,old,new,size);
+    /* expanding __cmpxchg macro causes a reference on an undefined symbol
+    * when used with non-constant size */
+    switch (size) {
+    case 1: { volatile u8 *_ptr = ptr; return cmpxchg(_ptr, old, new); }
+    case 2: { volatile u16 *_ptr = ptr; return cmpxchg(_ptr, old, new); }
+    case 4: { volatile u32 *_ptr = ptr; return cmpxchg(_ptr, old, new); }
+#ifdef __x86_64__
+    case 8: { volatile u64 *_ptr = ptr; return cmpxchg(_ptr, old, new); }
+    default:
+        return old;
+    }


mlpa 04-02-2010 09:15 PM

It work's for Ati HD5730 mobility?

mlpa 04-03-2010 07:34 AM

I installed Slackware64 -current, and the slackbuild of fglrx.
I have to run the command

aticonfig --initial
but then it work like a charm.

My thanks to you.
I sugeston, can you put you script in slackbuild? And try to maintain it?

Its a big help for all slackers that use ati.

gtludwig 04-05-2010 08:15 AM


which driver you used?
how did you applied the patch?

I couldn't get this working yet... so frustrating...

mlpa 04-05-2010 06:29 PM

I will put my steps here, hope will help:
1. - I download the files in this post
2. - download the driver from here:
3. - I put all the files in a folder:
3.1 - Ati Driver
|-> fglrx-2.6.33.patch
|-> fglrx.SlackBuild
|-> slack-desc
|-> fglrx-installer_8.721.orig.tar.gz
4. - Then inside the folder in a terminal you run

sudo sh fglrx.SlackBuild
5. - You see the output, when it ends you just run in the terminal

sudo installpkg /tmp/fglrx*.tgz
6. - At this time the driver is installed, I recomend reboot the box
7. - Finaly you just have to run

aticonfig --initial
to update your xorg.conf
8. - Start X server and run


if the commands work correctly the driver is installed and functioning.

All times are GMT -5. The time now is 03:12 AM.