Magnar Strand Olsen wrote:
> After shutting down/restarting from KDE, Compiz continued to work great.
> After logging off and on again, however, I was greeted with the broken
> Compiz - no 3D, broken window decorations.
> 
> At last I found out that the *//usr/lib/libIndirectGL.so.1, which I had
> to remove as a step towards getting a working compiz, had somehow been
> restored.
> Removing this again was all it took to get compiz up and running again.
> 
> I don't know what restored this file/symlink, though...
> 
> Regards,
> Magnar
> /*

ldconfig will restore it each time yast or sax2 is run. I wrote a little
script just for that purpose:

#!/bin/bash
#
# This Script will configure SuSE 10.3 to use the fglrx driver and allow
# compiz fusion to be activated on a Toshiba P35 laptop with the ATI
# Mobility Radeon 9600/9700 series chipset
#
# Test if the ligGL.so.1.2 link is present, if not test to see if the file
# is present, if so move and save the original file, then create the proper
# link to /usr/X11R6/lib/libGL.so.1.2
#
if [ -h "/usr/lib/libGL.so.1.2" ]
    then
        echo -e The file "/usr/libGL.so.1.2" LINK is present! EXITING '\n'
        ls -al /usr/lib/libGL.so.1.2
        exit 1
    else
        if [ -a "/usr/lib/libGL.so.1.2" ]
            then
                echo -e The link /usr/lib/libGL.so.1.2 is NOT present,
but the file is - Move it! '\n'
                mv /usr/lib/libGL.so.1.2 /usr/lib/libGL.so.1.2.sav
                echo -e Creating the link ln -s
/usr/X11R6/lib/libGL.so.1.2 /usr/lib/libGL.so.1.2 '\n'
                ln -s /usr/X11R6/lib/libGL.so.1.2 /usr/lib/libGL.so.1.2
            else
                echo -e Neither the Link or the File is present EXITING '\n'
                exit 1
        fi
fi
#
# Test for and Remove /usr/lib/libIndirectGL.so.1 if present
#
if [ -h "/usr/lib/libIndirectGL.so.1" ]
    then
        echo -e Link "/usr/lib/libIndirectGL.so.1" is Present - Moving '\n'
        mv /usr/lib/libIndirectGL.so.1 /usr/lib/libIndirectGL.so.1.sav
    else
        echo -e Link "/usr/lib/libIndirectGL.so.1" is NOT Present -
Ignoring '\n'
fi
#
# Set the proper xorg.conf (your saved working copy)
#
echo -e Copying xorg.conf.compiz '\n'
cp /home/david/linux/ati-compiz/xorg.conf.compiz /etc/X11/xorg.conf
#
# Test Confirm that everything was done correctly
#
ls -al /usr/lib/libGL*
ls -al /usr/lib/libIn*
read -p "Strike and Key to See xorg.conf: " key
cat /etc/X11/xorg.conf

Great time saver....

-- 
David C. Rankin, J.D., P.E.
Rankin Law Firm, PLLC
510 Ochiltree Street
Nacogdoches, Texas 75961
Telephone: (936) 715-9333
Facsimile: (936) 715-9339
www.rankinlawfirm.com
-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to