LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 03-28-2007, 09:19 PM   #1
XGizzmo
Member
 
Registered: Mar 2007
Distribution: Slackware
Posts: 264

Rep: Reputation: 68
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.

Last edited by XGizzmo; 04-01-2007 at 06:39 PM.
 
Old 03-28-2007, 10:12 PM   #2
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 58
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!

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?

Last edited by nadroj; 03-28-2007 at 10:13 PM.
 
Old 03-28-2007, 10:25 PM   #3
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 2,569

Rep: Reputation: 426Reputation: 426Reputation: 426Reputation: 426Reputation: 426
well, i guess he's using compiz included in -current and that would depend on new Xorg which is on -current also
 
Old 03-28-2007, 10:37 PM   #4
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 58
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?
 
Old 03-28-2007, 10:45 PM   #5
XGizzmo
Member
 
Registered: Mar 2007
Distribution: Slackware
Posts: 264

Original Poster
Rep: Reputation: 68
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.
 
Old 03-28-2007, 10:52 PM   #6
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 2,569

Rep: Reputation: 426Reputation: 426Reputation: 426Reputation: 426Reputation: 426
yup, i also had some problems when i upgraded to -current, but now it's fixed
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)
 
Old 03-28-2007, 10:53 PM   #7
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 2,569

Rep: Reputation: 426Reputation: 426Reputation: 426Reputation: 426Reputation: 426
yup, i also had some problems when i upgraded to -current, but now it's fixed
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)
 
Old 03-28-2007, 10:53 PM   #8
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 58
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.
 
Old 03-29-2007, 06:54 AM   #9
XGizzmo
Member
 
Registered: Mar 2007
Distribution: Slackware
Posts: 264

Original Poster
Rep: Reputation: 68
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.
 
Old 03-31-2007, 07:01 PM   #10
thugic
Member
 
Registered: Dec 2004
Distribution: Slackware 10.2
Posts: 51

Rep: Reputation: 15
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?
 
Old 03-31-2007, 08:11 PM   #11
crin
LQ Newbie
 
Registered: Aug 2003
Location: superior,wi.
Distribution: J.A.M.D Linux 0.0.6
Posts: 3

Rep: Reputation: 0
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
 
Old 04-01-2007, 03:10 AM   #12
XGizzmo
Member
 
Registered: Mar 2007
Distribution: Slackware
Posts: 264

Original Poster
Rep: Reputation: 68
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.
 
Old 04-01-2007, 02:25 PM   #13
erklaerbaer
Member
 
Registered: Mar 2006
Posts: 381

Rep: Reputation: 30
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
 
Old 04-01-2007, 10:30 PM   #14
crin
LQ Newbie
 
Registered: Aug 2003
Location: superior,wi.
Distribution: J.A.M.D Linux 0.0.6
Posts: 3

Rep: Reputation: 0
Thanks ran slackpkg update and updated my compiz pack and all is good.

Thanks again!!!!
C-rin
 
Old 04-02-2007, 11:59 AM   #15
newsbot
LQ Newbie
 
Registered: Feb 2007
Location: Corsica
Distribution: Slackware
Posts: 28

Rep: Reputation: 15
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tv Out on Nvidia Ti200 and Slackware Current 180906 fdahl_009 Slackware 13 04-13-2007 03:12 PM
Wootness! Etch + KDE + Xgl + Compiz + NVIDIA working! pda_h4x0r Debian 12 11-06-2006 06:26 PM
kde 3.5.1 in Slackware/current BCarey Slackware 2 02-26-2006 06:57 PM
slackware-current and nVidia drivers... X won't start mattlacey Slackware 9 05-31-2005 02:32 PM
slackware current and NVIDIA drivers Xavius Slackware 13 11-13-2004 03:59 PM


All times are GMT -5. The time now is 11:41 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration