LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Compiz +kde +nvidia (Slackware-current) (http://www.linuxquestions.org/questions/slackware-14/compiz-kde-nvidia-slackware-current-541473/)

XGizzmo 03-28-2007 09:19 PM

Compiz +kde +nvidia (Slackware-current)
 
This is just a quick how to for getting compiz working with a nvidia card and kde on slackware current.It is not meant to be an exhaustive how to and it maybe totally wrong but works for me. :)

Install the nvidia driver if you have not yet done so.
Quote:

sh NVIDIA-xxx.run --x-prefix=/usr --x-module-path=/usr/lib/xorg/modules
Edit your xorg.conf and add the following lines.

In section device.
Section "Device"
Identifier "Nvidia"
Driver "nvidia"
>--add these lines--<
Code:


        Option        "RenderAccel" "true"
        Option        "AllowGLXWithComposite" "true"

>-----stop----------<
EndSection
In section screen.
Section "Screen"
>--add these lines--<
Code:

        Option        "AddARGBGLXVisuals" "true"
        Option        "DisableGLXRootClipping" "true"

>-----stop----------<
Create a new Extentions section.
>--add these lines--<
Code:

Section "Extensions"
    Option        "Composite" "Enable"
EndSection

>-----stop----------<
restart X
Open a termnal and run the following commands.
Code:

compiz --replace decoration wobbly fade minimize cube switcher move resize place rotate zoom scale &
kde-window-decorator --replace &

The list after compiz --replace is a list of plugins to load edit it to your liking there are more. :)

NOTE: If you can't run the kde-window-decorator --replace command.
Make sure you are using compiz-0.3.6-i486-2.tgz or higher the first build of it did not have kde-window-decorator.

You may see and error like this but don't worry about it.
compiz: Failed to load slide: freedesktop <-- this error is not critical

EDIT: Thanks erklaerbaer

If it works then you can have it auto load when kde starts by creating a script and adding it to ~/.kde

Name it startcompiz.sh

Code:

#!/bin/sh
compiz --replace dbus png svg decoration wobbly fade minimize cube switcher move resize place rotate zoom scale
kde-window-decorator --replace

Make sure you make it executable chmod +x startcompiz.sh
And now make a second script in ~/.kde/env named compizwm.sh
mkdir ~/.kde/env if you do not have a ~/.kde/env directory

Code:

#!/bin/sh
KDEWM=$HOME/.kde/startcompiz.sh
export KDEWM

Hope this helps.

nadroj 03-28-2007 10:12 PM

you know what? i _just_ screwed up my slackware 11 install (prior to reading this--not your fault!)

ive become very disappointed at the visual performance (crashes) and appearance (choppy) of kde. i found out just yesterday that compiz is included in slackware-current. so i installed slapt-get (and using -current repo.), ran 'slapt-get --update' and 'slapt-get --upgrade' and it screwed up the install, due to dependencies for gcc.

i did a fresh reinstall and after 'slapt-get --update' i just installed compiz via 'slapt-get --install compiz', couldnt get it to work.
ive read it needs the newer Xorg 7.1+, so i tried to install all xorg packages from 'slapt-get --search xorg' then X broke! :D

as you have it working, did you upgrade _everything_ to -current? i assume this would work with slackware 11, as long as compiz is installed, nvidia driver is installed, and the appropriate Xorg version is installed. do you have the X-server stuff from -current as well?

willysr 03-28-2007 10:25 PM

well, i guess he's using compiz included in -current and that would depend on new Xorg which is on -current also

nadroj 03-28-2007 10:37 PM

yes i was afraid of that. when i tried to update it it ruined my system.

XGizzmo, is there anything special you did to successfully update your Xorg?

XGizzmo 03-28-2007 10:45 PM

This is a full install of slackware current from a slackware-current dvd. Upgrading to -current right now is a tricky deal you must read and follow http://slackware.osuosl.org/slackwar..._AND_HINTS.TXT.

You cant mix and match slackware -11.0 and -current packages due to new gcc, glibc, and a ton of others and X11 and kde changing paths, current is all or nothing right now.

willysr 03-28-2007 10:52 PM

yup, i also had some problems when i upgraded to -current, but now it's fixed :D
here's my post on my blog : http://willysr.blogspot.com/2007/03/...e-current.html

XGizzmo: What packages needed to run compiz? is it enough to install all packages in x directory? (besides NVIdia driver)

willysr 03-28-2007 10:53 PM

yup, i also had some problems when i upgraded to -current, but now it's fixed :D
here's my post on my blog : http://willysr.blogspot.com/2007/03/...e-current.html

XGizzmo: What packages needed to enable compiz? is it enough to install all packages in x directory? (besides NVIdia driver)

nadroj 03-28-2007 10:53 PM

yes im not very familiar with following instructions that long! but i will try and follow it so i can enjoy compiz.
thanks for your time and ill try and update before the weekend.

XGizzmo 03-29-2007 06:54 AM

Quote:

Originally Posted by willysr
XGizzmo: What packages needed to run compiz? is it enough to install all packages in x directory? (besides NVIdia driver)

All of x series and freetype,fontconfig, with the xf86-video* and xf86-input* drivers you don't need removed is a safe bet.

thugic 03-31-2007 07:01 PM

Does anyone know how to configure compiz? Looks like it has no any other way except gconf2 (which installation on slack is somehow tricky and useless except for this kind of things). I read that there is a new plugin called "ini" which allows compiz configuration through a flat-file, but can't seem to find it. Anyone?

crin 03-31-2007 08:11 PM

Hey XGizzmo thanks for the great walk through, one question though. Compiz is working although I loose all my window borders, I'm suspecting it has something to do with the kde-window-decorator portion of the command. I did a clean install and a full one. What package did you install for this prob?

Thanks,
C-rin

XGizzmo 04-01-2007 03:10 AM

Quote:

Originally Posted by crin
Hey XGizzmo thanks for the great walk through, one question though. Compiz is working although I loose all my window borders, I'm suspecting it has something to do with the kde-window-decorator portion of the command. I did a clean install and a full one. What package did you install for this prob?

Make sure you are using compiz-0.3.6-i486-2.tgz the first build of it did not have kde-window-decorator.

erklaerbaer 04-01-2007 02:25 PM

Quote:

If it works then you can have it auto load when kde starts by creating a startup script and adding it to ~/.kde/Autostart
better: make a small script,that starts compiz and kde-window-decorator and make a file "set-compiz-as-windowmanager.sh" in $HOME/.kde/env/ with this content:
Code:

#!/bin/sh
KDEWM=$$HOME/bin/mysript
export KDEWM

have a look at the startkde script, if you want to know why ;)

crin 04-01-2007 10:30 PM

Thanks ran slackpkg update and updated my compiz pack and all is good.

Thanks again!!!!
C-rin

newsbot 04-02-2007 11:59 AM

Hi, i think that i'm on the good post because you'll all seems to be very good with Nvidia !

So this is my trouble :

I've a laptop with nvidia 6800 i install the last nvidia out of X the 9755 ... the installation works well
after i start X ... the Nvidia screeshot appear and the kde appear on 1440x900 (the good screen definition)
after i want to restart ... and at this time ... my screen burn in white & black ... the computer restart well
like nothing appen and i start again X ... all thing right but just to see if i had a bad dream i restart again and, again, my
screen seems to burn in black & white at the moment of X fall down just before the computer restart !

I'm a bit affraid.


All times are GMT -5. The time now is 01:20 PM.