You are not logged in.

#1126 2009-12-18 15:27:20

Vi0L0
Member
From: Poland
Registered: 2009-06-24
Posts: 1,349
Website

Re: The AMD/ATI Bar & Grill

This is also important:
to simply test if your opencl support is working just:

$ cd /home/Vi0L0/ati-stream-sdk-v2.0-beta4-lnx64/samples/cal/bin/x86_64/   #you have got lots of cal samples in here for x86_64
$ ./FindNumDevices
Supported CAL Runtime Version: 1.3.185
Found CAL Runtime Version: 1.4.515
Use -? for help
CAL initialized.
Finding out number of devices :-
Device Count = 1
CAL shutdown successful.

Press enter to exit...

If Device Count is equal 1 or more then opencl support is working, and you can start to learn opencl or just be happy smile

If you wanna to allow other users to connect to x-server from other hosts (to compile/run some opencl projects) you may simply use dirty command "xhost +"

Edit: I have prepared some AUR package for hotfix catalyst with opencl support here http://aur.archlinux.org/packages.php?ID=32968
Edit: Today (08 Feb 2010) package catalyst-opencl shall be removed from AUR, please use catalyst package which also supports opencl

Last edited by Vi0L0 (2010-02-08 14:00:25)

Offline

#1127 2009-12-18 20:06:08

Vi0L0
Member
From: Poland
Registered: 2009-06-24
Posts: 1,349
Website

Re: The AMD/ATI Bar & Grill

with this "nopat" kernel option - XvBa seems to work fine with this 9.12 hotfix, just like on 9.10

Offline

#1128 2009-12-18 22:02:58

miromanyth
Member
Registered: 2008-05-18
Posts: 25

Re: The AMD/ATI Bar & Grill

So the catalyst-opencl in the aur works with 2.6.32 now but not with Xorg 1.7, correct?

Also, will this XvBA give me smooth HD video playback? Such as x264 720/1080p videos. The only problem I have had with the catalyst driver is terrible tearing and such with high-def video.

Last edited by miromanyth (2009-12-18 22:04:05)

Offline

#1129 2009-12-18 22:57:10

Vi0L0
Member
From: Poland
Registered: 2009-06-24
Posts: 1,349
Website

Re: The AMD/ATI Bar & Grill

miromanyth wrote:

So the catalyst-opencl in the aur works with 2.6.32 now but not with Xorg 1.7, correct?

correct, we need to wait for xorg-server 1.7 support a little longer
Please noticed that catalyst-opencl is (according to release notes) catalyst 9.12 with opencl support. So if you are not gonna use opencl its safier to use normal catalyst. I belive it has same features (except opencl ofcourse), just never tested it with "nopat" kernel argument.

miromanyth wrote:

Also, will this XvBA give me smooth HD video playback? Such as x264 720/1080p videos. The only problem I have had with the catalyst driver is terrible tearing and such with high-def video.

For me the quality of FullHD movies isn't quiet right on XvBa, also the colors seems to be different, unnatural (got hd 4850), and some features like subtitles doesnt work for me, i had same problems with XvBa on catalyst 9.10. Some people dont have this problems (except subtitles - it has never worked, but it looks like nobody really tested 9.12 XvBa, cuz it looks like nobodys add "nopat" before), so maybe you need to test it by yourself, few pages ago Neuro writes how to turn XvBa on.
I recomend using opengl as video output, if you have  some problems with it you need to try it out on different players (vlc works for me better with opengl than smplayer). Also dont forget to enable vsync via amdcccle or aticonfig.

I have also noticed that this tearing is much more annoying on gnome. As for me and my kde4 - im using xv rendering and im not complaining. Maybe im watching too less action movies wink

Last edited by Vi0L0 (2009-12-18 23:02:56)

Offline

#1130 2009-12-19 01:03:41

miromanyth
Member
Registered: 2008-05-18
Posts: 25

Re: The AMD/ATI Bar & Grill

Thank you for the information!
I think I'm going to go the open-source xf86-video-ati direction for now. I get smooth as silk HD playback using that driver but I cannot run some games. But, I watch more movies than I play games so there you go.

Offline

#1131 2009-12-19 10:11:27

Kariddi
Member
Registered: 2009-03-12
Posts: 45

Re: The AMD/ATI Bar & Grill

Kariddi wrote:

With Catalyst 9.12 I can't run the Control Center  , it says:

[hades@artemis ~]$ amdcccle
Errore di virgola mobile
[hades@artemis ~]$

Translated into english means : "Floating-point error"

Someone else with the problem?

I correct myself. Sometimes I can run the control center fine, sometimes gives this error at loading ... very strange

Offline

#1132 2009-12-19 11:28:58

Neuro
Member
From: Poland
Registered: 2005-10-12
Posts: 352

Re: The AMD/ATI Bar & Grill

Well, I've tried the catalyst-opencl-9.12 version after switching from 9.10. 9.11 didn't really work for me (tearing issues)

I've got a Radeon Mobility 3450 (RV620) in Lenovo U330. Kernel 2.6.31.

What's broken with this release:
- kwin's present windows bug is back (was fixed in 9.10). After the windows are presented, it causes X to use 50% of CPU until compositing is turned off.
- suspend to ram stopped working
- XvBA works, but the colours are still wrong just like in 9.10.

As for OpenCL, I don't think it'll run on my 3450.

Edit: Does anyone know if the 2.6.32 patch (adding singnal) that's being applied to 9.12 will work with 9.10? Couls womeone with kdrnel 2.6.32 check that, please? I'd liek to update to kernel 2.6.32 but, I wouldn't like to be forced to 9.12.

Last edited by Neuro (2009-12-19 13:05:12)

Offline

#1133 2009-12-19 13:31:28

Vi0L0
Member
From: Poland
Registered: 2009-06-24
Posts: 1,349
Website

Re: The AMD/ATI Bar & Grill

Neuro wrote:

- kwin's present windows bug is back (was fixed in 9.10). After the windows are presented, it causes X to use 50% of CPU until compositing is turned off.

Strange... i don't have this problem with 9.12 hotfix, althought it occur in 9.11

Neuro wrote:

Edit: Does anyone know if the 2.6.32 patch (adding singnal) that's being applied to 9.12 will work with 9.10? Couls womeone with kdrnel 2.6.32 check that, please? I'd liek to update to kernel 2.6.32 but, I wouldn't like to be forced to 9.12.

9.10 is working well with that patch, tested on 2.6.32.1-ck

Edit: PKGBUILD 9.10 + 2.6.32 patch

_kernver=`uname -r`

pkgname=catalyst
pkgver=9.10
pkgrel=1
pkgdesc="AMD/ATI beta drivers for Radeon brand cards. Stock kernel"
arch=('i686' 'x86_64')
url="http://www.ati.amd.com"
license=('custom')
depends=('xorg-server<1.7.0' 'kernel26>=2.6.29' 'kernel26<=2.6.32' 'netkit-bsd-finger' 'libstdc++5' 'libxrandr' 'libsm' 'fontconfig' 'libxcursor' 'libxi' 'gcc-libs')

[ "${_kernver}" == "2.6.32-ARCH" ] && depends+=('kernel26-headers')

conflicts=('catalyst' 'catalyst-utils' 'nvidia' 'libgl' 'catalyst-leaked')
provides=('catalyst' 'libgl')
install=catalyst.install
source=(http://www2.ati.com/drivers/linux/ati-driver-installer-${pkgver/./-}-x86.x86_64.run
    catalyst.sh amdcccle.desktop atieventsd.sh patch.kcl_io.c)
md5sums=('c79bed0ec7e96a11105922a70aea7a9c'
     'bdafe749e046bfddee2d1c5e90eabd83'
         '4efa8414a8fe9eeb50da38b5522ef81d'
         'f729bf913613f49b0b9759c246058a87'
     '8fe0f67e65b05fd484fd1ed30824ca4a')

build() {
/bin/sh ./ati-driver-installer-${pkgver/./-}-x86.x86_64.run --extract archive_files

##Build kernel modules

if [ "${CARCH}" = "x86_64" ]; then
BUILDARCH=x86_64
_archdir=x86_64
fi
if [ "${CARCH}" = "i686" ]; then
BUILDARCH=i386
_archdir=x86
fi

## patching for 2.6.32, thanks m3thodic
if [ ${_kernver%-*} == "2.6.32" ]; then
patch -Np0 -i ${srcdir}/patch.kcl_io.c || return 1
fi


cd "${srcdir}/archive_files/common/lib/modules/fglrx/build_mod"
cp "${srcdir}/archive_files/arch/${_archdir}/lib/modules/fglrx/build_mod/libfglrx_ip.a.GCC4" . || return 1
cp 2.6.x/Makefile . || return 1

make -C /lib/modules/${_kernver}/build SUBDIRS="`pwd`" ARCH=${BUILDARCH} modules || return 1

install -m755 -d "${pkgdir}/lib/modules/${_kernver}/video/"
install -m644 fglrx.ko "${pkgdir}/lib/modules/${_kernver}/video/" || return 1
install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"

sed -i -e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/" $startdir/*.install

##Install catalyst utilities

# Create directories
install -m755 -d "${pkgdir}/etc/ati"
install -m755 -d "${pkgdir}/etc/rc.d"
install -m755 -d "${pkgdir}/etc/profile.d"
install -m755 -d "${pkgdir}/etc/acpi/events"

install -m755 -d "${pkgdir}/usr/lib/xorg/modules/dri"
install -m755 -d "${pkgdir}/usr/lib/xorg/modules/drivers"
install -m755 -d "${pkgdir}/usr/lib/xorg/modules/extensions"
install -m755 -d "${pkgdir}/usr/lib/xorg/modules/linux"

install -m755 -d "${pkgdir}/usr/bin"
install -m755 -d "${pkgdir}/usr/sbin"

install -m755 -d "${pkgdir}/usr/include/X11/extensions"
install -m755 -d "${pkgdir}/usr/include/GL"

install -m755 -d "${pkgdir}/usr/share/applications"
install -m755 -d "${pkgdir}/usr/share/ati/amdcccle"
install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
install -m755 -d "${pkgdir}/usr/share/man/man8"
install -m755 -d "${pkgdir}/usr/share/pixmaps"

# X driver installation
if [ "${CARCH}" = "i686" ]; then
cd "${srcdir}/archive_files/x740/usr/X11R6/lib/modules" || return 1
elif [ "${CARCH}" = "x86_64" ]; then
cd "${srcdir}/archive_files/x740_64a/usr/X11R6/lib64/modules" || return 1
fi

install -m644 *.a "${pkgdir}/usr/lib/xorg/modules/" || return 1
install -m755 *.so "${pkgdir}/usr/lib/xorg/modules/" || return 1
install -m755 drivers/*.so "${pkgdir}/usr/lib/xorg/modules/drivers/" || return 1
install -m755 linux/*.so "${pkgdir}/usr/lib/xorg/modules/linux/" || return 1
install -m755 extensions/libglx.so "${pkgdir}/usr/lib/xorg/modules/extensions/" || return 1
install -m755 extensions/libdri.so "${pkgdir}/usr/lib/xorg/modules/extensions/libdri.ati" || return 1

# Controlcenter / library installation
if [ "${CARCH}" = "i686" ]; then
cd "${srcdir}/archive_files/arch/x86/usr" || return 1
_lib=lib
elif [ "${CARCH}" = "x86_64" ]; then
cd "${srcdir}/archive_files/arch/x86_64/usr" || return 1
_lib=lib64
fi

install -m755 X11R6/bin/* "${pkgdir}/usr/bin/" || return 1
install -m755 sbin/* "${pkgdir}/usr/sbin/" || return 1
install -m755 X11R6/${_lib}/*.so* "${pkgdir}/usr/lib/" || return 1
install -m644 X11R6/${_lib}/*.a "${pkgdir}/usr/lib/" || return 1 # really needed?
install -m644 X11R6/${_lib}/*.cap "${pkgdir}/usr/lib/" || return 1
install -m755 X11R6/${_lib}/modules/dri/*.so "${pkgdir}/usr/lib/xorg/modules/dri/" || return 1
install -m755 ${_lib}/*.so "${pkgdir}/usr/lib/" || return 1

ln -sf /usr/lib/xorg/modules/dri ${pkgdir}/usr/lib/dri
ln -sf libfglrx_dm.so.1.0 "${pkgdir}/usr/lib/libfglrx_dm.so.1"
ln -sf libfglrx_pp.so.1.0 "${pkgdir}/usr/lib/libfglrx_pp.so.1"
ln -sf libfglrx_tvout.so.1.0 "${pkgdir}/usr/lib/libfglrx_tvout.so.1"
ln -sf libfglrx_gamma.so.1.0 "${pkgdir}/usr/lib/libfglrx_gamma.so.1"
ln -sf libGL.so.1.2 "${pkgdir}/usr/lib/libGL.so.1"
ln -sf libGL.so.1.2 "${pkgdir}/usr/lib/libGL.so"

cd "${srcdir}"/archive_files/common
install -m644 etc/ati/* "${pkgdir}/etc/ati/" || return 1
chmod 755 "${pkgdir}/etc/ati/authatieventsd.sh" || return 1

install -m644 usr/X11R6/include/X11/extensions/*.h "${pkgdir}/usr/include/X11/extensions/" || return 1
install -m644 usr/X11R6/bin/amdupdaterandrconfig "${pkgdir}/usr/bin/" || return 1
install -m644 usr/include/GL/*.h "${pkgdir}/usr/include/GL/" || return 1
install -m755 usr/sbin/*.sh "${pkgdir}/usr/sbin/" || return 1
install -m644 usr/share/ati/amdcccle/* "${pkgdir}/usr/share/ati/amdcccle/" || return 1 # ? what are these files for?
# install -m644 usr/share/gnome/apps/amdcccle.desktop "${pkgdir}/usr/share/applications/" || return 1
install -m644 usr/share/icons/*.xpm "${pkgdir}/usr/share/pixmaps/" || return 1
install -m644 usr/share/man/man8/*.8 "${pkgdir}/usr/share/man/man8/" || return 1
install -m644 "${srcdir}/amdcccle.desktop" "${pkgdir}/usr/share/applications/" || return 1

# ACPI example files
install -m755 usr/share/doc/fglrx/examples/etc/acpi/*.sh "${pkgdir}/etc/acpi/" || return 1
sed -i -e 's/usr\/X11R6/usr/g' "${pkgdir}/etc/acpi/ati-powermode.sh" || return 1
install -m644 usr/share/doc/fglrx/examples/etc/acpi/events/* "${pkgdir}/etc/acpi/events/" || return 1

# Add ATI Events Daemon launcher
install -m755 "${srcdir}/atieventsd.sh" "${pkgdir}/etc/rc.d/atieventsd" || return 1

# thanks to cerebral, we dont need that damned symlink
install -m755 "${srcdir}/catalyst.sh" "${pkgdir}/etc/profile.d/" || return 1

# License
install -m644 "${srcdir}/archive_files/ATI_LICENSE.TXT" "${pkgdir}/usr/share/licenses/${pkgname}/" || return 1
}

Last edited by Vi0L0 (2009-12-19 13:42:53)

Offline

#1134 2009-12-19 20:22:32

Neuro
Member
From: Poland
Registered: 2005-10-12
Posts: 352

Re: The AMD/ATI Bar & Grill

Dzieki VI0LO za PKGBUILD'a smile

The problem with kwin and 9.12 is present in 2.6.31. I'll check with 2.6.32 later tomorrow.

Still, there's one feature request for your PKGBUILDs I'd like to make. You see, I have a two card system: Ati 3460 (RV620) and Intel 4500MHD. I can set the card to use in BIOS and on bootup I switch between cards. While the xorg conf file can be common for both cards, I need to alter between DRI/GLX extensions and GL libraries of Mesa and FGLRX.

Each time I download your PKGBUILD I need to alter the names of FGLRX files to end with .ati. My package tarball contains:

catalyst /usr/lib/xorg/modules/extensions/libdri.ati
catalyst /usr/lib/xorg/modules/extensions/libdri.so (in-pacakge symlink to libdri.ati)
catalyst /usr/lib/xorg/modules/extensions/libglx.ati
catalyst /usr/lib/xorg/modules/extensions/libglx.so (in-package symlink to libglx.ati)
catalyst /usr/lib/libGL.so (in-package symlink to libGL.so.1)
catalyst /usr/lib/libGL.so.1 (in-package symlink to libGL.so.1.2)
catalyst /usr/lib/libGL.so.1.2 (in-package symlink to libGL.so.1.2.ati)
catalyst /usr/lib/libGL.so.1.2.ati

Could your PKGBUILD be altered a bit to allow it to install FGLRX files alongside mesa ones, with just symlinks pointing to appropriate files? Of course this is just a wish, if I'd be too much hussle, please ignore it smile

My lib-switching code.

#!/bin/bash

XE_PATH=/usr/lib/xorg/modules/extensions
LIB_PATH=/usr/lib


if [[ "$1" != "fglrx" && "$1" != "mesa" ]]; then
    echo "First argument must be either 'fglrx' or 'mesa'" >&2
    exit 1
fi
target=$1

if [[ ! -f $XE_PATH/libglx.xorg || \
      ! -f $XE_PATH/libglx.ati ]]; then
    echo "Couldn't find libglx.xorg and libglx.ati in $XE_PATH" >&2
    exit 1
fi

if [[ ! -f $LIB_PATH/libGL.so.1.2.mesa || \
      ! -f $LIB_PATH/libGL.so.1.2.ati ]]; then
    echo "Couldn't find libGL.so.1.2.mesa and libGL.so.1.2.ati in $LIB_PATH" >&2
    exit 1
fi

function link_libglx() {
    name=$1
    ln -vsf libglx.$name $XE_PATH/libglx.so
}

function link_libgl() {
    name=$1
    ln -vsf libGL.so.1.2.$name $LIB_PATH/libGL.so.1.2
    ln -vsf libGL.so.1.2 $LIB_PATH/libGL.so.1
    ln -vsf libGL.so.1.2 $LIB_PATH/libGL.so
}

if [[ "$target" == "mesa" ]]; then
    link_libglx "xorg"
    link_libgl "mesa"
    if [[ -L $XE_PATH/libdri.so ]]; then
        rm $XE_PATH/libdri.so
    fi
elif [[ "$target" == "fglrx" ]]; then
    ln -svf libdri.ati $XE_PATH/libdri.so
    link_libglx "ati"
    link_libgl "ati"
fi

Offline

#1135 2009-12-20 02:09:41

Vi0L0
Member
From: Poland
Registered: 2009-06-24
Posts: 1,349
Website

Re: The AMD/ATI Bar & Grill

@Neuro:
spoczko, im pretty sure how to do this, in fact its looking rather easy. But please write an email to me (cuz i dont have your email addr, and i dont like sending emails via forum site :>), so we can test in on the backstage smile

Last edited by Vi0L0 (2009-12-20 02:20:25)

Offline

#1136 2009-12-20 19:37:18

Vi0L0
Member
From: Poland
Registered: 2009-06-24
Posts: 1,349
Website

Re: The AMD/ATI Bar & Grill

@Neuro:
ok, i did it smile. It should work good, but test it please, and maybe give me some additional information.

PKGBUILD is now creating:
- libglx.ati instead of libglx.so
- libdri.ati instead of libdri.so was there previously
- libGL.so.1.2.ati instead of libGL.so.1.2 (and theres no symlinks to libGL.so.* now)

catalyst.install is creating symlinks and making some checks, if you have time please read it carefully, and confirm its good, im gonna update those files on AUR - with this solution no important xorg libs will be lost (hope so)

This PKGBUILD is for 9.12, so simply change pkgver and md5sum for whatever version you like.

PKGBUILD:

# Maintainer: Vi0L0 <vi0l093@gmail.com>

_kernver=`uname -r`

pkgname=catalyst
pkgver=9.12
pkgrel=1
pkgdesc="AMD/ATI drivers for Radeon brand cards. Stock kernel"
arch=('i686' 'x86_64')
url="http://www.ati.amd.com"
license=('custom')
depends=('xorg-server<1.7.0' 'kernel26>=2.6.29' 'kernel26<=2.6.32' 'netkit-bsd-finger' 'libstdc++5' 'libxrandr' 'libsm' 'fontconfig' 'libxcursor' 'libxi' 'gcc-libs')

[ "${_kernver}" == "2.6.32-ARCH" ] && depends+=('kernel26-headers')

conflicts=('catalyst' 'catalyst-utils' 'nvidia' 'libgl' 'catalyst-leaked')
provides=('catalyst' 'libgl')
install=catalyst.install
source=(http://www2.ati.com/drivers/linux/ati-driver-installer-${pkgver/./-}-x86.x86_64.run
    catalyst.sh amdcccle.desktop atieventsd.sh patch.kcl_io.c)
md5sums=('a6b2b52921add6f39c3bfa9d366d8820'
     'bdafe749e046bfddee2d1c5e90eabd83'
         '4efa8414a8fe9eeb50da38b5522ef81d'
         'f729bf913613f49b0b9759c246058a87'
         '8fe0f67e65b05fd484fd1ed30824ca4a')

build() {
/bin/sh ./ati-driver-installer-${pkgver/./-}-x86.x86_64.run --extract archive_files

##Build kernel modules

if [ "${CARCH}" == "x86_64" ]; then
BUILDARCH=x86_64
_archdir=x86_64
fi
if [ "${CARCH}" == "i686" ]; then
BUILDARCH=i386
_archdir=x86
fi

# patching for 2.6.32, thanks m3thodic
if [ ${_kernver%-*} == "2.6.32" ]; then
patch -Np0 -i ${srcdir}/patch.kcl_io.c || return 1
fi

cd "${srcdir}/archive_files/common/lib/modules/fglrx/build_mod"
cp "${srcdir}/archive_files/arch/${_archdir}/lib/modules/fglrx/build_mod/libfglrx_ip.a.GCC4" . || return 1
cp 2.6.x/Makefile . || return 1

make -C /lib/modules/${_kernver}/build SUBDIRS="`pwd`" ARCH=${BUILDARCH} modules || return 1

install -m755 -d "${pkgdir}/lib/modules/${_kernver}/video/"
install -m644 fglrx.ko "${pkgdir}/lib/modules/${_kernver}/video/" || return 1
install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"

sed -i -e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/" $startdir/*.install

##Install catalyst utilities

# Create directories
install -m755 -d "${pkgdir}/etc/ati"
install -m755 -d "${pkgdir}/etc/rc.d"
install -m755 -d "${pkgdir}/etc/profile.d"
install -m755 -d "${pkgdir}/etc/acpi/events"

install -m755 -d "${pkgdir}/usr/lib/xorg/modules/dri"
install -m755 -d "${pkgdir}/usr/lib/xorg/modules/drivers"
install -m755 -d "${pkgdir}/usr/lib/xorg/modules/extensions"
install -m755 -d "${pkgdir}/usr/lib/xorg/modules/linux"

install -m755 -d "${pkgdir}/usr/bin"
install -m755 -d "${pkgdir}/usr/sbin"

install -m755 -d "${pkgdir}/usr/include/X11/extensions"
install -m755 -d "${pkgdir}/usr/include/GL"

install -m755 -d "${pkgdir}/usr/share/applications"
install -m755 -d "${pkgdir}/usr/share/ati/amdcccle"
install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
install -m755 -d "${pkgdir}/usr/share/man/man8"
install -m755 -d "${pkgdir}/usr/share/pixmaps"

# X driver installation
if [ "${CARCH}" = "i686" ]; then
cd "${srcdir}/archive_files/x740/usr/X11R6/lib/modules" || return 1
elif [ "${CARCH}" = "x86_64" ]; then
cd "${srcdir}/archive_files/x740_64a/usr/X11R6/lib64/modules" || return 1
fi

install -m644 *.a "${pkgdir}/usr/lib/xorg/modules/" || return 1
install -m755 *.so "${pkgdir}/usr/lib/xorg/modules/" || return 1
install -m755 drivers/*.so "${pkgdir}/usr/lib/xorg/modules/drivers/" || return 1
install -m755 linux/*.so "${pkgdir}/usr/lib/xorg/modules/linux/" || return 1
install -m755 extensions/libglx.so "${pkgdir}/usr/lib/xorg/modules/extensions/libglx.ati" || return 1  ####
install -m755 extensions/libdri.so "${pkgdir}/usr/lib/xorg/modules/extensions/libdri.ati" || return 1

# Controlcenter / library installation
if [ "${CARCH}" = "i686" ]; then
cd "${srcdir}/archive_files/arch/x86/usr" || return 1
_lib=lib
elif [ "${CARCH}" = "x86_64" ]; then
cd "${srcdir}/archive_files/arch/x86_64/usr" || return 1
_lib=lib64
fi

install -m755 X11R6/bin/* "${pkgdir}/usr/bin/" || return 1
install -m755 sbin/* "${pkgdir}/usr/sbin/" || return 1
install -m755 X11R6/${_lib}/*.so* "${pkgdir}/usr/lib/" || return 1
install -m644 X11R6/${_lib}/*.a "${pkgdir}/usr/lib/" || return 1 # really needed?
install -m644 X11R6/${_lib}/*.cap "${pkgdir}/usr/lib/" || return 1
install -m755 X11R6/${_lib}/modules/dri/*.so "${pkgdir}/usr/lib/xorg/modules/dri/" || return 1
install -m755 ${_lib}/*.so "${pkgdir}/usr/lib/" || return 1

mv "${pkgdir}/usr/lib/libGL.so.1.2" "${pkgdir}/usr/lib/libGL.so.1.2.ati" || return 1            ####

ln -sf /usr/lib/xorg/modules/dri ${pkgdir}/usr/lib/dri
ln -sf libfglrx_dm.so.1.0 "${pkgdir}/usr/lib/libfglrx_dm.so.1"
ln -sf libfglrx_pp.so.1.0 "${pkgdir}/usr/lib/libfglrx_pp.so.1"
ln -sf libfglrx_tvout.so.1.0 "${pkgdir}/usr/lib/libfglrx_tvout.so.1"
ln -sf libfglrx_gamma.so.1.0 "${pkgdir}/usr/lib/libfglrx_gamma.so.1"


cd "${srcdir}"/archive_files/common
install -m644 etc/ati/* "${pkgdir}/etc/ati/" || return 1
chmod 755 "${pkgdir}/etc/ati/authatieventsd.sh" || return 1

install -m644 usr/X11R6/include/X11/extensions/*.h "${pkgdir}/usr/include/X11/extensions/" || return 1
install -m644 usr/X11R6/bin/amdupdaterandrconfig "${pkgdir}/usr/bin/" || return 1
install -m644 usr/include/GL/*.h "${pkgdir}/usr/include/GL/" || return 1
install -m755 usr/sbin/*.sh "${pkgdir}/usr/sbin/" || return 1
install -m644 usr/share/ati/amdcccle/* "${pkgdir}/usr/share/ati/amdcccle/" || return 1 # ? what are these files for?
# install -m644 usr/share/gnome/apps/amdcccle.desktop "${pkgdir}/usr/share/applications/" || return 1
install -m644 usr/share/icons/*.xpm "${pkgdir}/usr/share/pixmaps/" || return 1
install -m644 usr/share/man/man8/*.8 "${pkgdir}/usr/share/man/man8/" || return 1
install -m644 "${srcdir}/amdcccle.desktop" "${pkgdir}/usr/share/applications/" || return 1

# ACPI example files
install -m755 usr/share/doc/fglrx/examples/etc/acpi/*.sh "${pkgdir}/etc/acpi/" || return 1
sed -i -e 's/usr\/X11R6/usr/g' "${pkgdir}/etc/acpi/ati-powermode.sh" || return 1
install -m644 usr/share/doc/fglrx/examples/etc/acpi/events/* "${pkgdir}/etc/acpi/events/" || return 1

# Add ATI Events Daemon launcher
install -m755 "${srcdir}/atieventsd.sh" "${pkgdir}/etc/rc.d/atieventsd" || return 1

# thanks to cerebral, we dont need that damned symlink
install -m755 "${srcdir}/catalyst.sh" "${pkgdir}/etc/profile.d/" || return 1

# License
install -m644 "${srcdir}/archive_files/ATI_LICENSE.TXT" "${pkgdir}/usr/share/licenses/${pkgname}/" || return 1
}

catalyst.install:

KERNEL_VERSION=`uname -r`

pre_install() {
  # making backup of important files

  if [ -e /usr/lib/xorg/modules/extensions/libdri.so ] && [ ! -e /usr/lib/xorg/modules/extensions/libdri.xorg ]; then
    cp -d /usr/lib/xorg/modules/extensions/libdri.so /usr/lib/xorg/modules/extensions/libdri.back
  fi

  if [ -e /usr/lib/xorg/modules/extensions/libglx.so ] && [ ! -e /usr/lib/xorg/modules/extensions/libglx.xorg ]; then
    cp -d /usr/lib/xorg/modules/extensions/libglx.so /usr/lib/xorg/modules/extensions/libglx.back
  fi

  if [ -e /usr/lib/libGL.so.1.2 ];then
    cp -d /usr/lib/libGL.so.1.2 usr/lib/libGL.so.1.2.back
  fi
}

post_install() {
  depmod $KERNEL_VERSION
  rm -f /usr/lib/xorg/modules/extensions/libdri.so
  ln -sf libdri.ati /usr/lib/xorg/modules/extensions/libdri.so

  rm -f /usr/lib/xorg/modules/extensions/libglx.so
  ln -sf libglx.ati /usr/lib/xorg/modules/extensions/libglx.so

  rm -f /usr/lib/libGL.so
  rm -f /usr/lib/libGL.so.1
  rm -f /usr/lib/libGL.so.1.2
  ln -sf libGL.so.1.2.ati usr/lib/libGL.so.1.2
  ln -sf /usr/lib/libGL.so.1.2 usr/lib/libGL.so.1
  ln -sf /usr/lib/libGL.so.1 usr/lib/libGL.so

  echo "--------------------------------------------------------------"
  echo "You can use the tool 'aticonfig' to generate an xorg.conf file."
  echo "Remember to add fglrx to the MODULES list in /etc/rc.conf."
  echo "--------------------------------------------------------------"
}

post_upgrade() {
  depmod $KERNEL_VERSION
  rm -f /usr/lib/xorg/modules/extensions/libdri.so
  ln -sf libdri.ati /usr/lib/xorg/modules/extensions/libdri.so

  rm -f /usr/lib/xorg/modules/extensions/libglx.so
  ln -sf libglx.ati /usr/lib/xorg/modules/extensions/libglx.so

  rm -f /usr/lib/libGL.so
  rm -f /usr/lib/libGL.so.1
  rm -f /usr/lib/libGL.so.1.2
  ln -sf libGL.so.1.2.ati /usr/lib/libGL.so.1.2
  ln -sf /usr/lib/libGL.so.1.2 /usr/lib/libGL.so.1
  ln -sf /usr/lib/libGL.so.1 /usr/lib/libGL.so
}

post_remove() {
  depmod $KERNEL_VERSION
  # restoring previous libs / backup

  if [ ! -e /usr/lib/xorg/modules/extensions/libdri.so ] && [ -e /usr/lib/xorg/modules/extensions/libdri.xorg ] ; then
    rm -f /usr/lib/xorg/modules/extensions/libdri.so
    ln -sf /usr/lib/xorg/modules/extensions/libdri.xorg /usr/lib/xorg/modules/extensions/libdri.so
  fi

  if [ ! -e /usr/lib/xorg/modules/extensions/libdri.so ] && [ -e /usr/lib/xorg/modules/extensions/libdri.back ] ; then
    rm -f /usr/lib/xorg/modules/extensions/libdri.so
    cp -df /usr/lib/xorg/modules/extensions/libdri.back /usr/lib/xorg/modules/extensions/libdri.so
  fi


  if [ ! -e /usr/lib/xorg/modules/extensions/libglx.so ] && [ -e /usr/lib/xorg/modules/extensions/libglx.xorg ] ; then
    rm -f /usr/lib/xorg/modules/extensions/libglx.so
    ln -sf /usr/lib/xorg/modules/extensions/libglx.xorg /usr/lib/xorg/modules/extensions/libglx.so
  fi

  if [ ! -e /usr/lib/xorg/modules/extensions/libglx.so ] && [ -e /usr/lib/xorg/modules/extensions/libglx.back ] ; then
    rm -f /usr/lib/xorg/modules/extensions/libglx.so
    cp -df /usr/lib/xorg/modules/extensions/libglx.back /usr/lib/xorg/modules/extensions/libglx.so
  fi

  rm -f /usr/lib/xorg/modules/extensions/libdri.back
  rm -f /usr/lib/xorg/modules/extensions/libglx.back

  rm -f /usr/lib/libGL.so
  rm -f /usr/lib/libGL.so.1
  rm -f /usr/lib/libGL.so.1.2
  if [ -e /usr/lib/libGL.so.1.2.back ];then
    cp -df /usr/lib/libGL.so.1.2.back /usr/lib/libGL.so.1.2
    rm -f /usr/lib/libGL.so.1.2.back
  fi
  ln -sf /usr/lib/libGL.so.1.2 /usr/lib/libGL.so.1
  ln -sf /usr/lib/libGL.so.1 /usr/lib/libGL.so



  echo "NOTE: Don't forget to recover your original xorg.conf file."
}

Last edited by Vi0L0 (2009-12-20 19:47:18)

Offline

#1137 2009-12-20 19:44:42

Vi0L0
Member
From: Poland
Registered: 2009-06-24
Posts: 1,349
Website

Re: The AMD/ATI Bar & Grill

Can somebody please check my PKGBUILD and catalyst.install placed in my previous post? Is it writen good? I mean i know it is working, but maybe you can notice something new/bad with it.

Thank you Neuro for your wish, which is in fact good idea - looks like with it we gonna save some files.

If someone has any other wishes/ideas please write it down.

Last edited by Vi0L0 (2009-12-20 20:00:48)

Offline

#1138 2009-12-20 20:23:13

Vi0L0
Member
From: Poland
Registered: 2009-06-24
Posts: 1,349
Website

Re: The AMD/ATI Bar & Grill

Just noticed something wrong with catalyst.install posted above.
Heres new one
catalyst.install:

KERNEL_VERSION=`uname -r`


pre_install() {
  # making backup of important files

  if [ -e /usr/lib/xorg/modules/extensions/libdri.so ]; then
    cp -d /usr/lib/xorg/modules/extensions/libdri.so /usr/lib/xorg/modules/extensions/libdri.back
  fi

  if [ -e /usr/lib/xorg/modules/extensions/libglx.so ]; then
    cp -d /usr/lib/xorg/modules/extensions/libglx.so /usr/lib/xorg/modules/extensions/libglx.back
  fi

  if [ -e /usr/lib/libGL.so.1.2 ];then
    cp -d /usr/lib/libGL.so.1.2 usr/lib/libGL.so.1.2.back
  fi
}

post_install() {
  depmod $KERNEL_VERSION
  rm -f /usr/lib/xorg/modules/extensions/libdri.so
  ln -sf libdri.ati /usr/lib/xorg/modules/extensions/libdri.so

  rm -f /usr/lib/xorg/modules/extensions/libglx.so
  ln -sf libglx.ati /usr/lib/xorg/modules/extensions/libglx.so

  rm -f /usr/lib/libGL.so
  rm -f /usr/lib/libGL.so.1
  rm -f /usr/lib/libGL.so.1.2
  ln -sf libGL.so.1.2.ati usr/lib/libGL.so.1.2
  ln -sf /usr/lib/libGL.so.1.2 usr/lib/libGL.so.1
  ln -sf /usr/lib/libGL.so.1 usr/lib/libGL.so

  echo "--------------------------------------------------------------"
  echo "You can use the tool 'aticonfig' to generate an xorg.conf file."
  echo "Remember to add fglrx to the MODULES list in /etc/rc.conf."
  echo "--------------------------------------------------------------"
}

post_upgrade() {
  depmod $KERNEL_VERSION
  rm -f /usr/lib/xorg/modules/extensions/libdri.so
  ln -sf libdri.ati /usr/lib/xorg/modules/extensions/libdri.so

  rm -f /usr/lib/xorg/modules/extensions/libglx.so
  ln -sf libglx.ati /usr/lib/xorg/modules/extensions/libglx.so

  rm -f /usr/lib/libGL.so
  rm -f /usr/lib/libGL.so.1
  rm -f /usr/lib/libGL.so.1.2
  ln -sf libGL.so.1.2.ati /usr/lib/libGL.so.1.2
  ln -sf /usr/lib/libGL.so.1.2 /usr/lib/libGL.so.1
  ln -sf /usr/lib/libGL.so.1 /usr/lib/libGL.so
}

post_remove() {
  depmod $KERNEL_VERSION
  # restoring previous libs / backup

  if [ ! -e /usr/lib/xorg/modules/extensions/libdri.so ] && [ -e /usr/lib/xorg/modules/extensions/libdri.xorg ] ; then
    rm -f /usr/lib/xorg/modules/extensions/libdri.so
    ln -sf /usr/lib/xorg/modules/extensions/libdri.xorg /usr/lib/xorg/modules/extensions/libdri.so
  fi

  if [ ! -e /usr/lib/xorg/modules/extensions/libdri.so ] && [ ! -e /usr/lib/xorg/modules/extensions/libdri.xorg ] ; then
    rm -f /usr/lib/xorg/modules/extensions/libdri.so
    cp -df /usr/lib/xorg/modules/extensions/libdri.back /usr/lib/xorg/modules/extensions/libdri.so
  fi


  if [ ! -e /usr/lib/xorg/modules/extensions/libglx.so ] && [ -e /usr/lib/xorg/modules/extensions/libglx.xorg ] ; then
    rm -f /usr/lib/xorg/modules/extensions/libglx.so
    ln -sf /usr/lib/xorg/modules/extensions/libglx.xorg /usr/lib/xorg/modules/extensions/libglx.so
  fi

  if [ ! -e /usr/lib/xorg/modules/extensions/libglx.so ] && [ ! -e /usr/lib/xorg/modules/extensions/libglx.xorg ] ; then
    rm -f /usr/lib/xorg/modules/extensions/libglx.so
    cp -df /usr/lib/xorg/modules/extensions/libglx.back /usr/lib/xorg/modules/extensions/libglx.so
  fi

  rm -f /usr/lib/xorg/modules/extensions/libdri.back
  rm -f /usr/lib/xorg/modules/extensions/libglx.back

  rm -f /usr/lib/libGL.so
  rm -f /usr/lib/libGL.so.1
  rm -f /usr/lib/libGL.so.1.2
  if [ -e /usr/lib/libGL.so.1.2.back ];then
    cp -df /usr/lib/libGL.so.1.2.back /usr/lib/libGL.so.1.2
    rm -f /usr/lib/libGL.so.1.2.back
  fi
  ln -sf /usr/lib/libGL.so.1.2 /usr/lib/libGL.so.1
  ln -sf /usr/lib/libGL.so.1 /usr/lib/libGL.so



  echo "NOTE: Don't forget to recover your original xorg.conf file."
}

Offline

#1139 2009-12-21 08:24:17

Neuro
Member
From: Poland
Registered: 2005-10-12
Posts: 352

Re: The AMD/ATI Bar & Grill

Yep, thank you Vi0L0 for the PKGBUILDs smile

I'll check them out right after I finish my today's round of christmass shopping smile

Cheers,
N

Offline

#1140 2009-12-27 21:32:08

bmentink
Member
From: New Zealand
Registered: 2009-08-23
Posts: 442

Re: The AMD/ATI Bar & Grill

Perry3D wrote:

With the latest updates 3D Acceleration with the xf86-video-ati-git is a lot faster. glxgears is now running with 600fps (instead of 30 tongue). Compiz is quite usable. But there are still some artifacts.

@descendent87:
I have build the following packages:
- libdrm-git from AUR
- mesa-git from AUR (dep for glproto-git dri2proto-git)
- libgl-git from http://www.file-upload.net/download-181 … ar.gz.html
- ati-dri-r6xx-r7xx from AUR (has dependency for the kernel module)
- xf86-video-ati-git from AUR


Or try Demons metapackage instead of mesa-git, libgl-git and ati-dri-r6xx-r7xx (then don't forget to install the kernel modules: http://aur.archlinux.org/packages.php?ID=28981)

Where do I get libgl-git from ... that link seems to be down.

Thanks.

Offline

#1141 2009-12-28 00:06:59

Vi0L0
Member
From: Poland
Registered: 2009-06-24
Posts: 1,349
Website

Re: The AMD/ATI Bar & Grill

bmentink wrote:

Where do I get libgl-git from ... that link seems to be down.
Thanks.

From AUR smile

Also check that forum http://bbs.archlinux.org/viewtopic.php?id=79509&p=1 i have seen some nightly repo with all needed packages out there around 17th page.... ouuu here it is http://bbs.archlinux.org/viewtopic.php? … 77#p674377

Offline

#1142 2009-12-28 19:04:05

Vi0L0
Member
From: Poland
Registered: 2009-06-24
Posts: 1,349
Website

Re: The AMD/ATI Bar & Grill

"ATI Stream SDK v2.0 (production) with OpenCL™ 1.0 support is now live on the website! http://bit.ly/uMtYP " - says CatalystMaker few days ago.
Dont forget to install catalyst 9.12 hotfix, since its only supported (by new sdk) catalyst http://aur.archlinux.org/packages.php?ID=32968
The installation of production sdk is same to beta sdk installation, the only different is that you need to create /usr/lib/OpenCL/vendors directory and make symlink similar to this (for x86_64 arch):
ln -sf /home/Vi0L0/ati-stream-sdk-v2.0-lnx64/lib/x86_64/libatiocl64.so /usr/lib/OpenCL/vendors/libatiocl64.so
Otherwise you may have problems in running opencl code ( Error: clGetPlatformIDs failed. )

Well some time ago i have noticed poor performance of my hd 4850 with some openCL code... with poor i mean that my quad 2.4GHz was like 3x faster... Yesterday after sdk 2.0 installation I have found why this occur:
http://techreport.com/discussions.x/18201
So this mean that devs need to write opencl code in different way... only for 4xxx cards... yeah - i can see how hard they work to do that... c'mon they wont do that - that means IF in about year or two some bigger openCL applications (or games or whatever) will appear - you may just throw your radeon hd 4xxx to the trash can... Yeah - i havent buy my hd 4850 for openCL support, i did it for some games smile... but it hurts so much that i cannot and wont use even 50% of card speed for openCL!
<funeral march here please>

radeon hd >= 57xx is way better buy for now than hd 48xx

oouuu - have you noticed nVidia's Tesla (builded on Fermi architecture) specification? It will cost > $2500 with only 10% better than hd 5870 performance. This price is normall for that kind of high-end card (look at 3-6 GB of ram), but i thought that performance will be better... Anyway you can compile/run programs written in c++ on that! LOL, nice!

I was searching for some rumours about catalyst 10.1 but except 3d movies support i havent noticed anything...
aahhh... no comments here...
I have also seen an article on phoronix about nvidia's development on their linux drivers in 2009... and... yeahh - they did it right and they did it well... very well

But ok ok, STOP! I still love my hd 4850 smile and i still can see that ati works on their linux drivers pretty hard. Hope the new year will be better! big_smile

Last edited by Vi0L0 (2009-12-28 19:15:09)

Offline

#1143 2009-12-28 22:58:56

flamelab
Member
From: Athens, Hellas (Greece)
Registered: 2007-12-26
Posts: 2,160

Re: The AMD/ATI Bar & Grill

Vi0L0 wrote:

and i still can see that ati works on their linux drivers pretty hard.

I guess you are joking big_smile They are doing the exact opposite neutral

Offline

#1144 2009-12-29 14:12:44

Vi0L0
Member
From: Poland
Registered: 2009-06-24
Posts: 1,349
Website

Re: The AMD/ATI Bar & Grill

flamelab wrote:
Vi0L0 wrote:

and i still can see that ati works on their linux drivers pretty hard.

I guess you are joking big_smile They are doing the exact opposite neutral

You mean the fact they havent add one short line into 9.12 to add support of 2.6.32 is some kind of... lazy working? wink

Well yesterday ive installed and tested wine. I havent done this for a half of year, maybe more. Then the tests results were in bad shape -  most of games havent run.
Now i can play in "The Witcher" at medium details without lags, and with fun. I have installed wine in same way and with same ads (with winetricks) like before. Im still impressed Witcher is working so well with x86_64 architecture. COD4 and GRID got some lags, also i cannot bypass menu in UT3. But im still impressed. So maybe ati is doing something...

Ofcourse its not kind of hard work, and not kind of nVidia's good job wink

Offline

#1145 2009-12-29 22:49:50

P3808
Member
From: Austria
Registered: 2009-11-02
Posts: 28

Re: The AMD/ATI Bar & Grill

i wonna use 3d effects. now kernel2.6.32 is in core and with the nightly-repo i want to install libdrm-git, libgl-git, mesa-git, ati-dri-git, xf86-video-ati-git and from extra xf86-video-radeonhd ... Is this correct? Is a package forgotten?
Or is it better to use catalyst from AUR instead of the free-drivers?

i use a ATI Mobility Radeon HD 4350
thx for infos wink

Last edited by P3808 (2009-12-29 22:51:51)

Offline

#1146 2009-12-29 22:52:54

flamelab
Member
From: Athens, Hellas (Greece)
Registered: 2007-12-26
Posts: 2,160

Re: The AMD/ATI Bar & Grill

Read the ATi wiki wink

Offline

#1147 2010-01-03 14:57:14

a1ex
Member
From: Germany
Registered: 2007-02-16
Posts: 91

Re: The AMD/ATI Bar & Grill

Did someone using radeonhd with a R700 chip try to play quakelive recently? If that works well enough I could finally move on to xorg-1.7...

Offline

#1148 2010-01-03 22:24:03

McDuck
Member
Registered: 2007-03-07
Posts: 41

Re: The AMD/ATI Bar & Grill

I don't use radeonhd

But I did a quick try with the radeon driver (xf86-video-ati) on my laptop with hd3200 (rs780m).
It worked well, didn't see any drawing error and performance was acceptable.

Offline

#1149 2010-01-04 03:56:30

hunterthomson
Member
Registered: 2008-06-22
Posts: 794
Website

Re: The AMD/ATI Bar & Grill

Vary Cool to have OpenCL smile Thanks
OpenCL is vary cool.

Last edited by hunterthomson (2010-01-04 04:18:17)


OpenBSD-current Thinkpad X230, i7-3520M, 16GB CL9 Kingston, Samsung 830 256GB
Contributor: linux-grsec

Offline

#1150 2010-01-05 00:42:13

Ultraman
Member
Registered: 2009-12-24
Posts: 242

Re: The AMD/ATI Bar & Grill

a1ex wrote:

Did someone using radeonhd with a R700 chip try to play quakelive recently? If that works well enough I could finally move on to xorg-1.7...

I've never played it, but i'm willing to give it a try to confirm what McDuck is saying.
I'm not using radeonhd tho, i'm using xf86-video-ati with a R700 card (HD4850).

It's installing atm...

[Edit]
Skill Test runs great. Moving on...

[Edit]
Actual game also runs super smile

Last edited by Ultraman (2010-01-05 00:59:20)

Offline

Board footer

Powered by FluxBB