Mailinglist Archive: opensuse (3627 mails)

< Previous Next >
Re: [SLE] More Nvidia Fun
  • From: Ben Rosenberg <ben@xxxxxxxxx>
  • Date: Sat, 2 Jun 2001 02:46:58 -0700
  • Message-id: <20010602024658.B25604@xxxxxxxxx>
* Brian Dunaway (brian@xxxxxxxxxxxxxxx) [010602 02:40]:
->> The latest drivers need to be 'activated' for 3D. The file tells you to
->> install them in a particular order and then run the
->> "switch2nvidia.glx"(sp?) file to activate the 3D.
->
->I have tried it two ways both on fresh installs. I installed 7.2 personal
->edition straight out of the box and downloaded the drivers from Nvidia
->following their intructions. I get OpenGL support in my games no
->problem...but my GL screensavers and Blender both look for Mesa drivers. I
->also tried getting the software update from the Yast Control Center before I
->installed the Nvidia drivers from Nvidia....I get the same bugginess before
->and after I install the Nvidia drivers from Nvidia's site.
->
->> I did what it said and mine works fine on a very similar system to your own
->> (V550, AMD450). Without the switch-file being run I got about 50fps in
->> 'gears', afterwards I got over 400. (Just type "gears" in the console and
->> that should run it - it prints the FPS in the console window so you can see
->> if your 3D accel is working)
->
->I ran gears and I get a little more than 600 FPS.

Ok..it wouldn't look for the Mesa drivers if you installed nVidia's GLX
and run the modified 'switch2nv_glx' script I've posted twice. It really
does work. I just ran the pipes GL screen saver in KDE2 in order to
check.. :)

Here ya go...


--
Ben Rosenberg
mailto:ben@xxxxxxxxx
-----
If two men agree on everything, you can
be sure that only one of them is doing
the thinking.
#!/bin/sh

DIR=`dirname $0`
OPTION=$1

if test "$OPTION" != "-test" -a "`echo $UID`" != "0"; then
echo "You must be root to use this program!"
exit 0
fi

function readlink()
{
ls -l $1|awk '{print $NF}'
}

pushd $DIR > /dev/null; BINDIR=`pwd`; popd > /dev/null

# only remove the symbolic links if they do not point to other OpenGL
# libraries, which do exist; switch to mesasoft if the package is
# installed

if test "$OPTION" == "-removelinks"; then
( cd $DIR/../../lib
if test `readlink libGL.so.1`; then
if test `readlink libGL.so.1` == "GL/libGL.so.1.2.nv_glx"; then
rm -f libGL.so.1 libMesaGL.so.3
test -x $BINDIR/switch2mesasoft && $BINDIR/switch2mesasoft
elif ! test -f `readlink libGL.so.1`; then
rm -f libGL.so.1 libMesaGL.so.3
test -x $BINDIR/switch2mesasoft && $BINDIR/switch2mesasoft
fi
fi
if test `readlink libGLcore.so.1`; then
if test `readlink libGLcore.so.1` == "libGLcore.so.1.0.5.nv_glx"; then
rm -f libGLcore.so.1
else
test -f `readlink libGLcore.so.1` || rm -f libGLcore.so.1
fi
fi
)
( cd $DIR/../lib/modules/extensions
if test `readlink libglx.so`; then
if test `readlink libglx.so` == "libglx.so.1.0.5.nv_glx"; then
rm -f libglx.so
else
test -f `readlink libglx.so` || rm -f libglx.so
fi
fi
)

elif test "$OPTION" == "-test"; then
pushd $DIR/../../lib > /dev/null
test -L libGL.so.1 || exit 1
test `readlink libGL.so.1` || exit 1
test `readlink libGL.so.1` == "GL/libGL.so.1.2.nv_glx" || exit 1
test -L libGLcore.so.1 || exit 1
test `readlink libGLcore.so.1` || exit 1
test `readlink libGLcore.so.1` == "libGLcore.so.1.0.5.nv_glx" || exit 1
popd > /dev/null
pushd $DIR/../lib/modules/extensions > /dev/null
test -L libglx.so || exit 1
test `readlink libglx.so` || exit 1
test `readlink libglx.so` == "libglx.so.1.0.5.nv_glx" || exit 1
test -e libglx.a && exit 1
test -e libGLcore.a && exit 1
popd > /dev/null
exit 0

else
( cd $DIR/../../lib
ln -sf libGL.so.1.0.1251 libGL.so.1
ln -sf libGL.so.1 libMesaGL.so.3
ln -sf libGLcore.so.1.0.1251 libGLcore.so.1
)
( cd $DIR/../lib/modules/extensions
ln -sf libglx.so.1.0.1251 libglx.so
rm -f libglx.a libGLcore.a
)
fi
< Previous Next >
Follow Ups
References