View previous topic :: View next topic |
Author |
Message |
olger901 l33t
Joined: 17 Mar 2005 Posts: 625
|
Posted: Thu Apr 13, 2006 8:56 am Post subject: Unofficial ati-drivers-8.24.8.ebuild |
|
|
Hi all,
I saw that the new ati-drivers were released and add support for the Ati Radeon X1k cards (Though I am a nvidia card owner and a nvidia videocard fan, I tought I'd help the poor ati users on the board ) but that no ebuild is available yet. Thats why I created an unofficial ebuild for the drivers.
Note: that this ebuild is created quickly, and I have been unable to test it yet because I am not at home and do not have access to a linux machine at the moment, so it might not work.
1 Grab the ebuild here: http://www.linux4dummies.org/ati-drivers-8.24.8.ebuild
2 Put the ebuild in: /usr/portage/x11-drivers/ati-drivers
3 Run: ebuild /usr/portage/x11-drivers/ati-drivers/ati-drivers-8.24.8.ebuild digest
4 Allow the unstable drivers to be installed using ACCEPT_KEYWORDS or by editing your package.keywords
[EDIT]
5 Go to ati's website, download the drivers and put them in /usr/portage/distfiles
[/EDIT]
6 Emerge the ati-drivers
Last edited by olger901 on Thu Apr 13, 2006 1:20 pm; edited 1 time in total |
|
Back to top |
|
|
mordredP Apprentice
Joined: 17 Oct 2005 Posts: 155 Location: bari.italy.€urope.earth
|
Posted: Thu Apr 13, 2006 11:14 am Post subject: Re: Unofficial ati-drivers-8.24.8.ebuild |
|
|
olger901 wrote: | Hi all,
I saw that the new ati-drivers were released and add support for the Ati Radeon X1k cards (Though I am a nvidia card owner and a nvidia videocard fan, I tought I'd help the poor ati users on the board ) but that no ebuild is available yet. Thats why I created an unofficial ebuild for the drivers.
Note: that this ebuild is created quickly, and I have been unable to test it yet because I am not at home and do not have access to a linux machine at the moment, so it might not work.
1 Grab the ebuild here: http://www.linux4dummies.org/ati-drivers-8.24.8.ebuild
2 Put the ebuild in: /usr/portage/x11-drivers/ati-drivers
3 Run: ebuild /usr/portage/x11-drivers/ati-drivers/ati-drivers-8.24.8.ebuild digest
4 Allow the unstable drivers to be installed using ACCEPT_KEYWORDS or by editing your package.keywords
5 Emerge the ati-drivers |
great, i'll try this as soon as possible! Finally the drivers for my mobility radeon x1600! _________________ People fall into 10 groups: those who know binary and those who don't
dosmary.netsons.org
01010110 |
|
Back to top |
|
|
mordredP Apprentice
Joined: 17 Oct 2005 Posts: 155 Location: bari.italy.€urope.earth
|
Posted: Thu Apr 13, 2006 12:34 pm Post subject: |
|
|
it does not work, unfortunately..
Code: | excalibur mordred # ebuild /usr/portage/x11-drivers/ati-drivers/ati-drivers-8.24.8.ebuild digest
: command not foundivers/ati-drivers/ati-drivers-8.24.8.ebuild: line 4:
: command not foundivers/ati-drivers/ati-drivers-8.24.8.ebuild: line 6:
.eclass: No such file or directoryne 1524: /usr/portage/eclass/toolchain-funcs
!!! ERROR: x11-drivers/ati-drivers-8.24.8 failed.
!!! Function inherit, Line 1525, Exitcode 1
.eclass in inherit()sr/portage/eclass/toolchain-funcs
!!! If you need support, post the topmost build error, NOT this status message.
aux_get(): (0) Error in x11-drivers/ati-drivers-8.24.8 ebuild. (1)
Check for syntax error or corruption in the ebuild. (--debug)
: command not foundivers/ati-drivers/ati-drivers-8.24.8.ebuild: line 4:
: command not foundivers/ati-drivers/ati-drivers-8.24.8.ebuild: line 6:
.eclass: No such file or directoryne 1524: /usr/portage/eclass/toolchain-funcs
!!! ERROR: x11-drivers/ati-drivers-8.24.8 failed.
!!! Function inherit, Line 1525, Exitcode 1
.eclass in inherit()sr/portage/eclass/toolchain-funcs
!!! If you need support, post the topmost build error, NOT this status message.
aux_get(): (0) Error in x11-drivers/ati-drivers-8.24.8 ebuild. (1)
Check for syntax error or corruption in the ebuild. (--debug)
Traceback (most recent call last):
File "/usr/sbin/ebuild", line 71, in ?
a = portage.doebuild(ebuild, arg, portage.root, tmpsettings, debug=debug, cleanup=("noauto" not in portage.features), tree=mytree)
File "/usr/lib/portage/pym/portage.py", line 2435, in doebuild
eapi = db[root][tree].dbapi.aux_get(mycpv, ["EAPI"])[0]
File "/usr/lib/portage/pym/portage.py", line 5407, in aux_get
raise KeyError
KeyError
|
_________________ People fall into 10 groups: those who know binary and those who don't
dosmary.netsons.org
01010110 |
|
Back to top |
|
|
vincent_bachelier Tux's lil' helper
Joined: 26 Sep 2004 Posts: 96
|
Posted: Thu Apr 13, 2006 1:01 pm Post subject: |
|
|
just do after load the file, dos2unix on it,
it should work _________________ Shaolan Oji
Blog : http://ilwg.blogspot.com [ Gentoo Fan Blog Site ]
Project:
vbwallpapers: http://vbwallpapers.berlios.de [ get random wallpapers for your desktop ] |
|
Back to top |
|
|
mordredP Apprentice
Joined: 17 Oct 2005 Posts: 155 Location: bari.italy.€urope.earth
|
Posted: Thu Apr 13, 2006 1:07 pm Post subject: |
|
|
thanks, it works now.. but it tries to download the digest from many mirrors without finding it.
Code: | excalibur ati-drivers # emerge ati-drivers
Calculating dependencies ...done!
>>> emerge (1 of 1) x11-drivers/ati-drivers-8.24.8 to /
>>> Downloading http://distfiles.gentoo.org/distfiles/ati-driver-installer-8.24.8-i386.run
--15:08:02-- http://distfiles.gentoo.org/distfiles/ati-driver-installer-8.24.8-i386.run
=> `/usr/portage/distfiles/ati-driver-installer-8.24.8-i386.run'
Resolving distfiles.gentoo.org... 156.56.247.195, 216.165.129.135, 64.50.236.52, ...
Connecting to distfiles.gentoo.org|156.56.247.195|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
15:08:03 ERROR 404: Not Found.
No digest file available and download failed. |
i am a real newbie for what it concerns how portage works..
Is there a way to solve this problem?
Should i download something, rename it and put it in distfiles? _________________ People fall into 10 groups: those who know binary and those who don't
dosmary.netsons.org
01010110 |
|
Back to top |
|
|
olger901 l33t
Joined: 17 Mar 2005 Posts: 625
|
Posted: Thu Apr 13, 2006 1:17 pm Post subject: |
|
|
mordredP wrote: | thanks, it works now.. but it tries to download the digest from many mirrors without finding it.
Code: | excalibur ati-drivers # emerge ati-drivers
Calculating dependencies ...done!
>>> emerge (1 of 1) x11-drivers/ati-drivers-8.24.8 to /
>>> Downloading http://distfiles.gentoo.org/distfiles/ati-driver-installer-8.24.8-i386.run
--15:08:02-- http://distfiles.gentoo.org/distfiles/ati-driver-installer-8.24.8-i386.run
=> `/usr/portage/distfiles/ati-driver-installer-8.24.8-i386.run'
Resolving distfiles.gentoo.org... 156.56.247.195, 216.165.129.135, 64.50.236.52, ...
Connecting to distfiles.gentoo.org|156.56.247.195|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
15:08:03 ERROR 404: Not Found.
No digest file available and download failed. |
i am a real newbie for what it concerns how portage works..
Is there a way to solve this problem?
Should i download something, rename it and put it in distfiles? |
Sorry forgot to mention that step.
Go to ati's website download the drivers and put them in /usr/portage/distfiles
Also for the error above, it might be occuring because the ebuild was edited in wordpad, because as I mentioned, I do not have a linux workstation where I am at right now. |
|
Back to top |
|
|
vincent_bachelier Tux's lil' helper
Joined: 26 Sep 2004 Posts: 96
|
Posted: Thu Apr 13, 2006 1:32 pm Post subject: |
|
|
well it's because this package aren't in portage ... so mirror server doesn't have it
you should download x86 and x64 version of drivers, cause ebuild support both
after digest should work
and otherwise, look for PORTAGE_OVERLAY, because after "emerge sync" you will loose your personal ebuild ...
For short, you should indicated in /etc/make.conf the directory of your OVERLAY,
PORTAGE_OVERLAY=/usr/local/portage (for example)
after create in this directory x11-drivers/ati-drivers
load ebuild in it,
do dos2unix
load drivers from ati (x86 and x64 version), and put it in /usr/portage/distfiles
then, do ebuild digest of your ebuild
after just do emerge ati-drivers
( you should add ~x86 for ati-drivers in your package.use )
just add:
x11-drivers/ati-drivers
in /etc/portage/package.keywords
have fun _________________ Shaolan Oji
Blog : http://ilwg.blogspot.com [ Gentoo Fan Blog Site ]
Project:
vbwallpapers: http://vbwallpapers.berlios.de [ get random wallpapers for your desktop ] |
|
Back to top |
|
|
vincent_bachelier Tux's lil' helper
Joined: 26 Sep 2004 Posts: 96
|
|
Back to top |
|
|
mark_alec Bodhisattva
Joined: 11 Sep 2004 Posts: 6066 Location: Melbourne, Australia
|
Posted: Thu Apr 13, 2006 1:56 pm Post subject: |
|
|
Moved from Kernel & Hardware to Unsupported Software. |
|
Back to top |
|
|
mordredP Apprentice
Joined: 17 Oct 2005 Posts: 155 Location: bari.italy.€urope.earth
|
Posted: Thu Apr 13, 2006 3:16 pm Post subject: |
|
|
ok, i installed the drivers and they work well.. I am finally able to use 1280x800.
Just a problem when i run glxgears:
Code: |
libGL error: failed to open DRM: Operation not permitted
libGL error: reverting to (slow) indirect renderin |
i have not tried any other 3d software.. what could it be? _________________ People fall into 10 groups: those who know binary and those who don't
dosmary.netsons.org
01010110 |
|
Back to top |
|
|
vincent_bachelier Tux's lil' helper
Joined: 26 Sep 2004 Posts: 96
|
Posted: Thu Apr 13, 2006 3:21 pm Post subject: |
|
|
this version work at great at last version
so when I run with DRM activated, useFASTTLS set to 0, 1 or 2, when I unload X11 the drivers crash
I have the 2.6.15 version of kernel ... no idea ? _________________ Shaolan Oji
Blog : http://ilwg.blogspot.com [ Gentoo Fan Blog Site ]
Project:
vbwallpapers: http://vbwallpapers.berlios.de [ get random wallpapers for your desktop ] |
|
Back to top |
|
|
olger901 l33t
Joined: 17 Mar 2005 Posts: 625
|
Posted: Fri Apr 14, 2006 8:59 am Post subject: |
|
|
mordredP wrote: | ok, i installed the drivers and they work well.. I am finally able to use 1280x800.
Just a problem when i run glxgears:
Code: |
libGL error: failed to open DRM: Operation not permitted
libGL error: reverting to (slow) indirect renderin |
i have not tried any other 3d software.. what could it be? |
Some suggestions:
1. Make sure you compiled xorg with the opengl USE flag (in case of xorg-6.8.x) or with the dri USE flag (in case of xorg-7.0.x)
2. Make sure you added your user to the video group, otherwise you are not allowed to use 3D acceleration (gpasswd -a username video) |
|
Back to top |
|
|
mordredP Apprentice
Joined: 17 Oct 2005 Posts: 155 Location: bari.italy.€urope.earth
|
Posted: Fri Apr 14, 2006 9:56 am Post subject: |
|
|
olger901 wrote: | mordredP wrote: | ok, i installed the drivers and they work well.. I am finally able to use 1280x800.
Just a problem when i run glxgears:
Code: |
libGL error: failed to open DRM: Operation not permitted
libGL error: reverting to (slow) indirect renderin |
i have not tried any other 3d software.. what could it be? |
Some suggestions:
1. Make sure you compiled xorg with the opengl USE flag (in case of xorg-6.8.x) or with the dri USE flag (in case of xorg-7.0.x)
2. Make sure you added your user to the video group, otherwise you are not allowed to use 3D acceleration (gpasswd -a username video) |
yes, i had managed to solve that.. it was a permission problem.. thanks _________________ People fall into 10 groups: those who know binary and those who don't
dosmary.netsons.org
01010110 |
|
Back to top |
|
|
f0x_ n00b
Joined: 28 Dec 2003 Posts: 33 Location: Matera
|
Posted: Fri Apr 14, 2006 8:41 pm Post subject: |
|
|
I installed the new ati drivers but...
when i play a video (mplayer -vo xv, not with -vo x11)
i see too many block pixels...it seems like there is no video filter...
i don't know exactly how explain it...
the video quality is really poor (ati x1600)...
anyone with the same problem? |
|
Back to top |
|
|
Pitr- n00b
Joined: 15 May 2003 Posts: 18 Location: Sweden
|
Posted: Sat Apr 15, 2006 3:51 am Post subject: |
|
|
These new drivers seem to compile without trouble but from my experience it seems like they hate kernel 2.6.16, it causes a total freeze on my system. And under kernel 2.6.14 all I get is a white-screen with some garbled black graphics at the mouse-cursor.
Perhaps that's just a conflict with x11 7.0 or something but I've tried every option there is to change with the fglrx-driver.
I'm running xorg-x11 7.0-r1, and unofficial 8.24.8 with iommu-patch and like I said, I've tried with both 2.6.14-r7 and 2.6.16 and none is actually useable but hey, I suppose I deserv this shit for buying this X1900XT-card
Edit: Or perhaps it's because this is a 512MB card although I don't have an SLI-board and from what I've read that problem is only supposed to occur on those. |
|
Back to top |
|
|
darkninja n00b
Joined: 15 Apr 2006 Posts: 5
|
Posted: Sat Apr 15, 2006 1:18 pm Post subject: |
|
|
Thanks for the ebuild! Unfortunately the kernel module won't load for people who are running the 2.6.16-* kernel without some patches, which means no 3d accel.
Here is an updated ebuild which uses some older driver patches to make it work with 2.6.16, It's running perfectly on my x1400 laptop, though I guess there is a risk of some incompatabilites. It SHOULD work fine
Code: |
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-drivers/ati-drivers/ati-drivers-8.24.8.ebuild,v 1.5 2006/04/13 12:38:49 chrb Exp $
IUSE="opengl"
inherit eutils rpm multilib linux-mod linux-info toolchain-funcs
DESCRIPTION="Ati precompiled drivers for r350, r300, r250 and r200 chipsets"
HOMEPAGE="http://www.ati.com"
SRC_URI="x86? ( mirror://gentoo/ati-driver-installer-${PV}-x86.run )"
LICENSE="ATI"
KEYWORDS="~amd64 ~x86"
RDEPEND="|| ( x11-base/xorg-server virtual/x11 )
app-admin/eselect-opengl
|| ( sys-libs/libstdc++-v3 =sys-devel/gcc-3.3* )"
DEPEND=">=virtual/linux-sources-2.4
${RDEPEND}"
PROVIDE="virtual/opengl"
ATIBIN="${D}/opt/ati/bin"
RESTRICT="nostrip multilib-pkg-force stricter"
MODULE_NAMES="fglrx(video:${WORKDIR}/common/lib/modules/fglrx/build_mod)"
choose_driver_paths() {
ARCH_DIR="${WORKDIR}/arch"
COMMON_DIR="${WORKDIR}/common"
#new modular X paths, 0 is a workaround.
if has_version "x11-base/xorg-server"; then
BASE_DIR="${WORKDIR}/x690"
xlibdir="xorg"
else
BASE_DIR="${WORKDIR}/x$(get_version_component_range 1 ${X11_IMPLEM_V})"
xlibdir=""
# Determine if we are facing X.org 6.8.99 aka 6.9
if [ "$(get_version_component_range 1 ${X11_IMPLEM_V})" = 6 ] && [ "$(get_version_component_range 2 ${X11_IMPLEM_V})" = 8 ] && [ "$(get_version_component_range 3 ${X11_IMPLEM_V})" = 99 ]
then
BASE_DIR="${BASE_DIR}90"
else
BASE_DIR="${BASE_DIR}$(get_version_component_range 2 ${X11_IMPLEM_V})0"
fi
fi
if use amd64 ; then
BASE_DIR="${BASE_DIR}_64a"
ARCH_DIR="${ARCH_DIR}/x86_64"
else
ARCH_DIR="${ARCH_DIR}/x86"
fi
}
pkg_setup(){
#check kernel and sets up KV_OBJ
linux-mod_pkg_setup
local agp
ebegin "Checking for MTRR support enabled"
linux_chkconfig_present MTRR
eend $?
if [[ $? -ne 0 ]] ; then
ewarn "You don't have MTRR support enabled, the direct rendering"
ewarn "will not work."
fi
ebegin "Checking for AGP support enabled"
linux_chkconfig_present AGP
eend $?
if [[ $? -ne 0 ]] ; then
ebegin "Checking for PCI Express support enabled"
linux_chkconfig_present PCIEPORTBUS
eend $?
if [[ $? -ne 0 ]] ; then
ewarn "If you don't have either AGP or PCI Express support enabled, direct rendering"
ewarn "could work only using the internal support."
fi
fi
ebegin "Checking for DRM support disabled"
! linux_chkconfig_builtin DRM
eend $?
if [[ $? -ne 0 ]] ; then
ewarn "You have DRM support enabled builtin, the direct rendering"
ewarn "will not work."
fi
# Set up X11 implementation
if has_version "x11-base/xorg-server"; then
X11_IMPLEM=xorg-x11
elif has_version "<x11-base/xorg-x11-6.8.99"; then
X11_IMPLEM=xorg-x11
X11_IMPLEM_V="$(best_version x11-base/xorg-x11)"
X11_IMPLEM_V="${X11_IMPLEM_V/${X11_IMPLEM}-/}"
X11_IMPLEM_V="${X11_IMPLEM_V##*\/}"
else
X11_IMPLEM_P="$(best_version virtual/x11)"
X11_IMPLEM="${X11_IMPLEM_P%-[0-9]*}"
X11_IMPLEM="${X11_IMPLEM##*\/}"
X11_IMPLEM_V="${X11_IMPLEM_P/${X11_IMPLEM}-/}"
X11_IMPLEM_V="${X11_IMPLEM_V##*\/}"
fi
einfo "X11 implementation is ${X11_IMPLEM}."
choose_driver_paths
}
src_unpack() {
local OLDBIN="/usr/X11R6/bin"
ebegin "Unpacking Ati drivers"
sh ${DISTDIR}/${A} --extract ${WORKDIR} &> /dev/null
eend $? || die "unpack failed"
rm -rf ${ARCH_DIR}/usr/X11R6/bin/{fgl_glxgears,fireglcontrolpanel}
cd ${WORKDIR}/common/lib/modules/fglrx/build_mod
# remove intermodule calls for 2.6.16
if kernel_is 2 6 16; then
epatch ${FILESDIR}/ati-drivers-8.22.5-intermodule.patch
epatch "${FILESDIR}/ati-drivers-8.23.7-noiommu.patch"
# epatch ${FILESDIR}/${PN}-8.22.5-intermodule.patch
# epatch "${FILESDIR}/${P}-noiommu.patch"
fi
}
src_compile() {
einfo "Building the DRM module..."
cd ${WORKDIR}/common/lib/modules/fglrx/build_mod
ln -s \
${ARCH_DIR}/lib/modules/fglrx/build_mod/libfglrx_ip.a.GCC$(gcc-major-version) \
|| die "cannot find precompiled core"
if kernel_is 2 6
then
set_arch_to_kernel
addwrite "/usr/src/${FK}"
cp 2.6.x/Makefile .
export _POSIX2_VERSION="199209"
if use_m ;
then
make -C ${KV_DIR} M="`pwd`" GCC_VER_MAJ=$(gcc-major-version) \
modules || ewarn "DRM module not built"
else
make -C ${KV_DIR} SUBDIRS="`pwd`" GCC_VER_MAJ=$(gcc-major-version) \
modules || ewarn "DRM module not built"
fi
set_arch_to_portage
else
export _POSIX2_VERSION="199209"
# That is the dirty way to avoid the id -u check
sed -e 's:`id -u`:0:' \
-e "s:\`uname -r\`:${KV_FULL}:" \
-i make.sh
chmod +x make.sh
./make.sh || ewarn "DRM module not built"
fi
}
pkg_preinst() {
# Clean the dynamic libGL stuff's home to ensure
# we don't have stale libs floating around ...
if [ -d "${ROOT}/usr/lib/opengl/ati" ]
then
rm -rf ${ROOT}/usr/lib/opengl/ati/*
fi
}
src_install() {
local ATI_LIBGL_PATH=""
cd ${WORKDIR}/common/lib/modules/fglrx/build_mod
linux-mod_src_install
cd ${WORKDIR}
local native_dir
use x86 && native_dir="lib"
use amd64 && native_dir="lib64"
# Install the libs
# MULTILIB-CLEANUP: Fix this when FEATURES=multilib-pkg is in portage
local MLTEST=$(type dyn_unpack)
if [ "${MLTEST/set_abi/}" = "${MLTEST}" ] && has_multilib_profile; then
local OABI=${ABI}
for ABI in $(get_install_abis); do
src_install-libs
done
ABI=${OABI}
unset OABI
elif has_multilib_profile; then
src_install-libs
elif use amd64; then
src_install-libs lib $(get_multilibdir)
src_install-libs lib64 $(get_libdir)
else
src_install-libs
fi &> /dev/null
#apps
exeinto /opt/ati/bin
doexe ${ARCH_DIR}/usr/X11R6/bin/*
#ati custom stuff
insinto /usr
doins -r ${WORKDIR}/common/usr/include
#env.d entry
cp ${FILESDIR}/09ati ${T}/
#Work around hardcoded path in 32bit libGL.so on amd64, bug 101539
if has_multilib_profile && [ $(get_abi_LIBDIR x86) = "lib32" ] ; then
ATI_LIBGL_PATH="/usr/lib32/${xlibdir}/modules/dri/:/usr/$(get_libdir)/${xlibdir}/modules/dri"
fi
cat >>${T}/09ati <<EOF
LIBGL_DRIVERS_PATH="$ATI_LIBGL_PATH"
EOF
doenvd ${T}/09ati
}
src_install-libs() {
local pkglibdir=lib
local inslibdir="$(get_libdir)/${xlibdir}"
ATI_LIBGL_PATH="${ATI_LIBGL_PATH}:/usr/$(get_libdir)/${xlibdir}/modules/dri"
if [ ${#} -eq 2 ]; then
pkglibdir=${1}
inslibdir=${2}
elif has_multilib_profile && [ "${ABI}" == "amd64" ]; then
pkglibdir=lib64
fi
einfo "${pkglibdir} -> ${inslibdir}"
local ATI_ROOT="/usr/$(get_libdir)/opengl/ati"
# The GLX libraries
exeinto ${ATI_ROOT}/lib
doexe ${ARCH_DIR}/usr/X11R6/${pkglibdir}/libGL.so.1.2
dosym libGL.so.1.2 ${ATI_ROOT}/lib/libGL.so.1
dosym libGL.so.1.2 ${ATI_ROOT}/lib/libGL.so
# Don't do this... see bug #47598
#dosym libGL.so.1.2 ${ATI_ROOT}/lib/libMesaGL.so
# same as the xorg implementation
dosym ../${X11_IMPLEM}/extensions ${ATI_ROOT}/extensions
#Workaround
if use opengl ; then
sed -e "s:libdir=.*:libdir=${ATI_ROOT}/lib:" \
/usr/$(get_libdir)/opengl/${X11_IMPLEM}/lib/libGL.la \
> $D/${ATI_ROOT}/lib/libGL.la
dosym ../${X11_IMPLEM}/include ${ATI_ROOT}/include
fi
# X and DRI driver
if has_version "<x11-base/xorg-x11-6.8.0-r4"
then
local X11_DIR="/usr/X11R6/"
else
local X11_DIR="/usr/"
fi
local X11_LIB_DIR="${X11_DIR}${inslibdir}"
exeinto ${X11_LIB_DIR}/modules/drivers
# In X.org 6.8.99 / 6.9 this is a .so
doexe ${BASE_DIR}/usr/X11R6/${pkglibdir}/modules/drivers/fglrx_drv.*o
exeinto ${X11_LIB_DIR}/modules/dri
doexe ${ARCH_DIR}/usr/X11R6/${pkglibdir}/modules/dri/fglrx_dri.so
doexe ${ARCH_DIR}/usr/X11R6/${pkglibdir}/modules/dri/atiogl_a_dri.so
exeinto ${X11_LIB_DIR}/modules/linux
# In X.org 6.8.99 / 6.9 this is a .so
if has_version ">=x11-base/xorg-x11-6.8.99" || \
has_version "x11-base/xorg-server"
then
doexe ${BASE_DIR}/usr/X11R6/${pkglibdir}/modules/linux/libfglrxdrm.so
else
doexe ${BASE_DIR}/usr/X11R6/${pkglibdir}/modules/linux/libfglrxdrm.a
fi
if has_version ">=x11-base/xorg-x11-6.8.99" || \
has_version "x11-base/xorg-server"
then
cp -pPR ${ARCH_DIR}/usr/X11R6/${pkglibdir}/lib{fglrx_*,aticonfig} \
${D}/usr/$(get_libdir)
else
cp -pPR ${ARCH_DIR}/usr/X11R6/${pkglibdir}/lib{fglrx_*,aticonfig.a} \
${D}/usr/$(get_libdir)
fi
#Not the best place
insinto ${X11_DIR}/include/X11/extensions
doins ${COMMON_DIR}/usr/X11R6/include/X11/extensions/fglrx_gamma.h
dodir /etc
cp -pPR ${COMMON_DIR}/etc/* ${D}/etc/
}
pkg_postinst() {
/usr/bin/eselect opengl set --use-old ati
echo
einfo "To switch to ATI OpenGL, run \"eselect opengl set ati\""
einfo "To change your xorg.conf you can use the bundled \"aticonfig\""
if use !opengl ; then
ewarn "You don't have the opengl useflag enabled, you won't be able to build"
ewarn "opengl applications nor use opengl driver features, if that isn't"
ewarn "the intended behaviour please add opengl to your useflag and issue"
ewarn "# emerge -Nu ati-drivers"
fi
echo
einfo "If you experience unexplained segmentation faults and kernel crashes"
einfo "with this driver and multi-threaded applications such as wine,"
einfo "set UseFastTLS in xorg.conf to either 0 or 1, but not 2."
# DRM module
linux-mod_pkg_postinst
}
pkg_postrm() {
linux-mod_pkg_postrm
/usr/bin/eselect opengl set --use-old xorg-x11
}
|
|
|
Back to top |
|
|
midsand n00b
Joined: 11 Apr 2006 Posts: 2
|
Posted: Sat Apr 15, 2006 2:42 pm Post subject: Composite? |
|
|
If anyone has managed to get them working, do they allow the use of the composite X.org extension? I won't mess up with them if they don't include any significant changes (I'm using a Mobility Radeon 9700 (rv350)).
Thanks and regards, Roger. |
|
Back to top |
|
|
f0x_ n00b
Joined: 28 Dec 2003 Posts: 33 Location: Matera
|
Posted: Sun Apr 16, 2006 8:53 am Post subject: |
|
|
With Composite enabled,
there's no DRI acceleration. |
|
Back to top |
|
|
Eventreur n00b
Joined: 16 Apr 2006 Posts: 6
|
Posted: Sun Apr 16, 2006 1:38 pm Post subject: |
|
|
Hi,
I have a little problem with my Mobility X1400 so I'm posting there to have some help.
Here is the problem :
I'm trying to have the drivers 8.24.8 running on my modular X and when I'm doing startx, X crashs and displays :
Quote: | (EE) module ABI major version (0) doesn't match the server's version (1)
(EE) Failed to load module "fglrx" (module requirement mismatch, 0)
(EE) No drivers available. |
I've been looking in the log file for more informations but there is nothing in it that is helping to find out what is making X crash on the fglrx module. Here is the portion of the file that is relative to that bug :
Quote: | (II) Module fglrx: vendor="FireGL - ATI Technologies Inc."
compiled for 6.8.99.8, module version = 8.24.8
Module class: X.Org Video Driver
ABI class: X.Org Video Driver, version 0.7
(EE) module ABI major version (0) doesn't match the server's version (1)
(II) UnloadModule: "fglrx" |
If you have an idea about how to fix my problem, it would be very nice to help me fix it. Thanks a lot for the time that you would spend to fix my problem. |
|
Back to top |
|
|
stiwi Apprentice
Joined: 20 Mar 2003 Posts: 266 Location: hamburg - germany
|
Posted: Mon Apr 17, 2006 10:47 am Post subject: |
|
|
i installed the driver und now i get an error:
(EE) fglrx(0): Chipset 0x71c4 is not recognized
why that? it is an v5200 mobility an it is the same chip like the x1600 mobility.
anyone an idea?
i will install it on my new ibm t60p.
the problem was discused in that mac os on ibm thinkpad forum. you have to add the hardware id of your v5200 in the ati driver. but where is that unter linux? i can not find the position.
http://forum.osx86project.org/index.php?showtopic=10956&st=20 |
|
Back to top |
|
|
Admiral_Trigger_Happy Guru
Joined: 05 Sep 2004 Posts: 337 Location: Australia
|
Posted: Mon Apr 17, 2006 11:13 am Post subject: |
|
|
Running these with the original ebuild posted on the gentoo-sources-2.6.14 with Xgl and Compiz just fine.
I am want to upgrade my kernel, but all the old driver versions didn't seem to like 2.6.15 on my box, has anyone had any success with gentoo-sources past 2.6.15 with this new one? _________________ Admiral Trigger Happy
-------------------------------
www.kiba-dock.org |
|
Back to top |
|
|
tzachar n00b
Joined: 25 Dec 2005 Posts: 11
|
Posted: Mon Apr 17, 2006 3:22 pm Post subject: |
|
|
Eventreur wrote: | Hi,
I have a little problem with my Mobility X1400 so I'm posting there to have some help.
Here is the problem :
I'm trying to have the drivers 8.24.8 running on my modular X and when I'm doing startx, X crashs and displays :
Quote: | (EE) module ABI major version (0) doesn't match the server's version (1)
(EE) Failed to load module "fglrx" (module requirement mismatch, 0)
(EE) No drivers available. |
I've been looking in the log file for more informations but there is nothing in it that is helping to find out what is making X crash on the fglrx module. Here is the portion of the file that is relative to that bug :
Quote: | (II) Module fglrx: vendor="FireGL - ATI Technologies Inc."
compiled for 6.8.99.8, module version = 8.24.8
Module class: X.Org Video Driver
ABI class: X.Org Video Driver, version 0.7
(EE) module ABI major version (0) doesn't match the server's version (1)
(II) UnloadModule: "fglrx" |
If you have an idea about how to fix my problem, it would be very nice to help me fix it. Thanks a lot for the time that you would spend to fix my problem. |
same problem here.
no idea what the problem is, though.. maybe the binary blob of the drivers is not compatible with newer
(modular) Xorg servers?? (runing 1.0.99.901 here)
any advice? |
|
Back to top |
|
|
kovvu n00b
Joined: 16 Mar 2006 Posts: 17
|
Posted: Mon Apr 17, 2006 5:22 pm Post subject: |
|
|
I have the same module mismatch problem. I think its due to a change in the latest xorg-server. I had to downgrade to an older version 1.0.2-r3 to get it to work. I believe the new xorg-server tries to ensure the driver is compiled for the specific version of xorg-x11, if not it fails. Older xorg-server versions just go alone happily despite the ati-driver having been compiled for an older version of xorg-x11 (<7.0.0) |
|
Back to top |
|
|
tzachar n00b
Joined: 25 Dec 2005 Posts: 11
|
Posted: Tue Apr 18, 2006 6:13 am Post subject: |
|
|
kovvu wrote: | I have the same module mismatch problem. I think its due to a change in the latest xorg-server. I had to downgrade to an older version 1.0.2-r3 to get it to work. I believe the new xorg-server tries to ensure the driver is compiled for the specific version of xorg-x11, if not it fails. Older xorg-server versions just go alone happily despite the ati-driver having been compiled for an older version of xorg-x11 (<7.0.0) |
ok, so is there another solution other than downgrading X, or waiting for ati to
release something more sane???? |
|
Back to top |
|
|
tzachar n00b
Joined: 25 Dec 2005 Posts: 11
|
Posted: Tue Apr 18, 2006 8:20 am Post subject: |
|
|
Quote: |
ok, so is there another solution other than downgrading X, or waiting for ati to
release something more sane???? |
i think i found a solution. just pass -ignoreABI to X .
i'll check it in a few hours and report back. |
|
Back to top |
|
|
|