LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Slackware current 32 bits + ATI (http://www.linuxquestions.org/questions/slackware-14/slackware-current-32-bits-ati-744614/)

LordAnta 08-02-2009 05:36 PM

Slackware current 32 bits + ATI
 
I have installed the latest slackware-current (downloaded sunday 2nd august at 16:00 EET). My video card is:
Code:

01:05.0 VGA compatible controller: ATI Technologies Inc RC410 [Radeon Xpress 200M]
I have tried to install drivers from ati (every driver install finishes in error, even with the patch for ati driver 9.3), use radeon module, upgrade the packages according to rworkman, the radeonhd driver, but I can't start X (when i start x i remain with a blank screen and everything is frozen. Ctr+F* doesn't work, only using skinny elephants)

Has anyone been able to run or has suggestions on how to run slack-current with my video-card ? :confused:

Erik_FL 08-02-2009 07:19 PM

I was able to get my Radeon 4850 card working with kernel version 2.6.29. I'm using Slackware 13 RC1 (July 28) installed from the ISO image.

I downloaded the latest driver "ati-driver-installer-9-7-x86.x86_64.run" from the ATI web site and then used this patch.

http://www.linuxquestions.org/questi...ight=ati+patch

An error was reported at the end of the build where it tries to load and test the module. After I rebooted the module loaded with no problem and I was able to use the desktop 3D effects.

So far I haven't had any major problems. The "pager" seems to not remember changes to settings and always reverts to one row instead of anything else. The task bar sometimes turns black when it's maximized. I'm still testing RC1 on my computer but so far it looks very good.

BrZ 08-04-2009 01:23 PM

I have one RS485 (Xpress1100) on current64 using the open driver. Some trouble with few gl screensavers, but GLtron is faaaast...

C-Sniper 08-04-2009 01:30 PM

LordAnta, I have the same card in my laptop and it is no longer supported by ATi in Linux as of Catalyst 9.3+.

I would recommend just using the open driver as ATi has provided the specs to X.Org foundation for the drivers to help get them up to par.

LordAnta 08-06-2009 02:23 PM

@C-Sniper: I know that my card is not supported anymore, but the radeon module from the kernel or the radeonhd don't work for me. Where I can find this open driver ?

pokipoki08 08-06-2009 11:07 PM

I'm using RV380 (X600) on slackware64-current. Did you try using xorgsetup ?

LordAnta 08-09-2009 09:01 AM

I've been gone for a couple of days and I couldn't respond. I tried xorgsetup, no difference, same blank screen. I will try an update and see if it works.

pokipoki08 08-09-2009 10:06 AM

xorgsetup will configure X to use the open source radeon drivers. The ATI proprietary drivers won't work with the -current X servers (in my case, it was -64-current).

Got myself a nvidia card instead. Couldn't put up with ATI doing this every 2 years, removing support for products still in use by the masses.

Nvidia cards are good, 9800GT is much cheaper now and I get temperature monitoring with their utility. Yay!

LordAnta 08-09-2009 12:01 PM

After a fresh install of RC2 and a xorgsetup i got my X working. Thanks for the help guys!

dolphin77 08-18-2009 05:13 AM

slackware64-current (on Sony laptop with ATI HD3400)
Ati-9.8
https://a248.e.akamai.net/f/674/9206...x86.x86_64.run

it simply works....

# sh ati-driver-installer-9-8-x86.x86_64.run --buildpkg Slackware/All
# upgradepkg --install-new fglrx*
# aticonfig --initial


Opensource
something like this works (packages made with the attached scripts only tested with 2.6.31-rc6) but hangs up when some gtk window is going to be opened.
and this was added to xorg.conf:
Section "Device"
Identifier "Configured Video Device"
Driver "radeonhd"
Option "AccelMethod" "EXA"
Option "DRI"
EndSection


Section "DRI"
Mode 0666
EndSection

Hm upload doesn't work

libdrm:

get-libdrm.sh:

rm -rf libdrm
git clone git://anongit.freedesktop.org/~agd5f/drm

cd drm
git checkout -t -b r6xx-r7xx-3d origin/r6xx-r7xx-3d
cd ..
# package the source archive and clean up:
( cd drm ; find . -type d -name .git -exec rm -rf {} \; 2> /dev/null )
DATE=$(date +%Y%m%d)
mv drm libdrm-${DATE}_git
tar cjf libdrm-${DATE}_git.tar.bz2 libdrm-${DATE}_git
rm -rf libdrm-${DATE}_git

libdrm.Slackbuild:

PKGNAM=libdrm
VERSION=$(date +%Y%m%d)_git
ARCH=${ARCH:-x86_64}
NUMJOBS=${NUMJOBS:-" -j7 "}
BUILD=${BUILD:-1}

CWD=$(pwd)
TMP=${TMP:-/tmp}
PKG=$TMP/package-${PKGNAM}

if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
fi

rm -rf $PKG
mkdir -p $TMP $PKG
cd $TMP
rm -rf ${PKGNAM}-${VERSION}
tar xvf $CWD/${PKGNAM}-$VERSION.tar.bz2 || exit 1
cd ${PKGNAM}-$VERSION

# Make sure ownerships and permissions are sane:
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;

# Configure:
./autogen.sh
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--enable-udev \
--build=$ARCH-slackware-linux

# Build and install:
make $NUMJOBS || make || exit 1
make install DESTDIR=$PKG || exit 1

cd linux-core
make $NUMJOBS || make || exit 1
make install DESTDIR=$PKG || exit 1
cd ..
mkdir -p $PKG/lib/modules/2.6.31-rc6/extra/
mv /lib/modules/2.6.31-rc6/extra/* $PKG/lib/modules/2.6.31-rc6/extra/


# Strip binaries:
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null

# Compress and link manpages, if any:
if [ -d $PKG/usr/man ]; then
( cd $PKG/usr/man
for manpagedir in $(find . -type d -name "man*") ; do
( cd $manpagedir
for eachpage in $( find . -type l -maxdepth 1) ; do
ln -s $( readlink $eachpage ).gz $eachpage.gz
rm $eachpage
done
gzip -9 *.?
)
done
)
fi

# Compress info files, if any:
if [ -d $PKG/usr/info ]; then
( cd $PKG/usr/info
rm -f dir
gzip -9 *
)
fi

# Add a documentation directory:
mkdir -p $PKG/usr/doc/${PKGNAM}-$VERSION
cp -a \
README \
$PKG/usr/doc/${PKGNAM}-$VERSION

mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc

cd $TMP/package-${PKGNAM}
/sbin/makepkg -l y -c n $TMP/${PKGNAM}-$VERSION-$ARCH-$BUILD.txz


mesa
get-mesa.sh:
rm -rf mesa
git clone git://anongit.freedesktop.org/git/mesa/mesa
cd mesa
git checkout -t -b master origin/master
cd ..
# package the source archive and clean up:
( cd mesa ; find . -type d -name .git -exec rm -rf {} \; 2> /dev/null )
DATE=$(date +%Y%m%d)
mv mesa mesa-${DATE}_git
tar cjf mesa-${DATE}_git.tar.bz2 mesa-${DATE}_git
rm -rf mesa-${DATE}_git


mesa.Slackbuild:

PKGNAM=mesa
VERSION=$(date +%Y%m%d)_git
ARCH=${ARCH:-x86_64}
BUILD=${BUILD:-1}

# Be sure this list is up-to-date:
#DRI_DRIVERS="i810,i915,i965,mach64,mga,nouveau,r128,r200,r300,radeon,s3v,savage,sis,tdfx,trident,un ichrome,ffb,swrast"
DRI_DRIVERS="swrast,r600"

NUMJOBS=${NUMJOBS:--j8}

CWD=$(pwd)
TMP=${TMP:-/tmp}
PKG=$TMP/package-mesa

if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
fi

rm -rf $PKG
mkdir -p $TMP $PKG
cd $TMP
rm -rf mesa-${VERSION}
tar xvf $CWD/mesa-${VERSION}.tar.bz2 || exit 1
cd mesa-$VERSION

# Make sure ownerships and permissions are sane:
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;


./autogen.sh

CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--mandir=/usr/man \
--docdir=/usr/doc/mesa-$VERSION \
--with-dri-driverdir=/usr/lib${LIBDIRSUFFIX}/xorg/modules/dri \
--with-dri-drivers="$DRI_DRIVERS" \
--disable-gallium \
--enable-debug \
--build=$ARCH-slackware-linux

# Nobody else is enabling this. Seems like it's asking for trouble.
# --enable-xcb

make $NUMJOBS || make || exit 1
make install DESTDIR=$PKG || exit 1

# Install gears and glinfo manually, and make symlinks from the names
# of the deprecated similar programs to reduce confusion:
mkdir -p $PKG/usr/bin
cp -a progs/demos/gears $PKG/usr/bin/gears
cp -a progs/demos/glinfo $PKG/usr/bin/glinfo
( cd $PKG/usr/bin
ln -sf glinfo glxinfo
ln -sf gears glxgears
)

# Strip binaries:
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null

# Compress and link manpages, if any:
if [ -d $PKG/usr/man ]; then
( cd $PKG/usr/man
for manpagedir in $(find . -type d -name "man*") ; do
( cd $manpagedir
for eachpage in $( find . -type l -maxdepth 1) ; do
ln -s $( readlink $eachpage ).gz $eachpage.gz
rm $eachpage
done
gzip -9 *.?
)
done
)
fi

# Compress info files, if any:
if [ -d $PKG/usr/info ]; then
( cd $PKG/usr/info
rm -f dir
gzip -9 *
)
fi

mkdir -p $PKG/usr/doc/mesa-$VERSION/html
cp -a COPYING docs/relnotes-$VERSION.html $PKG/usr/doc/mesa-$VERSION
rm -f docs/relnotes*.html docs/RELNOTES*
cp -a docs/*.html $PKG/usr/doc/mesa-$VERSION/html

mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc

cd $PKG
/sbin/makepkg -l y -c n $TMP/${PKGNAM}-$VERSION-$ARCH-$BUILD.txz

forum1793 08-18-2009 07:34 AM

Keep in mind that the drm, mesa, etc, are still evolving. 3D still does not work well. Lots of development still occurring. No one should expect to have flawless or even good 3D with the r6xx+ cards.

Edit: If not clear this post mostly applies to the open source drivers, as implied by the modified slackbuild-ish script above. 3D works OK for many cards using fglrx (catalyst), and 3D with open source drivers, I think works OK with r5xx and lower. This post for amd/ati cards.

LordAnta 08-19-2009 07:47 AM

I solved the problem with an update. I don't need 3D acceleration on my laptop, I have a desktop with an NVIDIA card in it for that. I just wanted to be able to start X, so I can work when I am away on the road. Thanks for all your help guys.


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