LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   compiz and Slack 12? (https://www.linuxquestions.org/questions/slackware-14/compiz-and-slack-12-a-566969/)

urka58 10-27-2007 08:46 AM

Quote:

Originally Posted by mRgOBLIN (Post 2938611)
if you are runlevel 4 then you can also use "~/.xprofile"

Oh and a little tip so you don't have to jump through sed hoops...

Code:

ps ax |grep "[c]ompiz"

Nice tip, it works perfectly well, but you woken up my curiosity, how ?
Ciao

trebek 10-27-2007 10:15 AM

Quote:

Originally Posted by urka58 (Post 2938568)
So..you have many options. I'd say they should go in /usr/local/bin in order they are in your PATH.
Sorry, I don't know your level of skill, so I'm going to start from the very beginning...
- Copy the script compiz+emerald into your favourite text editor (ie Kwrite) and save as compiz_emerald
- Give execution perm to the file just saved by "chmod a+x compiz_emerald"
- su as root and change owner to compiz_emerald by "chown root:root compiz_emerald"
- stay root and move compiz_emerald to /usr/local/bin by "mv compiz_emerald /usr/local/bin"
Do the same for the remaining two scripts

Once done launch the script in a Virtual Terminal (ie Konsole).
If you like you can also add the scripts to your Kmenu and launch them from there..
Hope this helps
Ciao

PS: Compiz is a little tricky, so if you want to avoid to be started with KDE just do this:
Launch a session of kde with all programs you want to be started with (ie Kmix, Karamba...) but compiz.
Go to Control Center -> Kde Components -> Session manager -> Restore manually saved session.
From Kmenu - > save session.
This avoid compiz to be started when you lanch KDE

Thanks a lot. I also read somewhere that in order for compiz to be loaded during kde launch, i should be putting some scripts in .kde directory, should i remove them from there? I created them when attempting another manual before the one you suggested.

urka58 10-27-2007 04:03 PM

Is up to you...
Remove the old script from ~/user/.kde/Autostart as I beleive it won't work.
I'd suggest you run the script starting compiz (ie compiz_emerald) manually for a while. Once you see it works properly you can put it to ~/user/.kde/Autostart in order you get it started automatically.
Ciao

trebek 10-27-2007 04:09 PM

I got twinview working here, two monitors connected to the same card. I set up compiz and once i start it, i get a really weird desktop. I get the first screen normally with all the gadgets, but the second screen has a blank page like 3/4's across and the last quarter in black, at the end having like the start of the side face of the cube.

So, my question here is, is there another set of configuration lines i need to add to my xorg.conf file so that compiz works with two screens? Here's an output of the device section of my xorg.conf file so that you can have a clearer idea of what i mean.

Section "Device"
Identifier "VESA Framebuffer"
Driver "nvidia"
Option "TwinView"
Option "MetaModes" "1600x1200"
Option "TwinViewOrientation" "RigtOf"
Option "RenderAccel" "true"
Option "AllowGLXWithComposite" "true"
#VideoRam 4096
# Insert Clocks lines here if appropriate
EndSection

mRgOBLIN 10-27-2007 04:57 PM

Quote:

Originally Posted by urka58 (Post 2938678)
Nice tip, it works perfectly well, but you woken up my curiosity, how ?
Ciao

because ps doesn't do the shell expansion before displaying the command and displays it as you type it.

Look here.

Code:

mrgoblin@sonic:~> ps ax |grep "[g]rep"                     
17254 pts/8    S+    0:00 grep [g]rep


urka58 10-28-2007 06:12 AM

It took me a while to understand, but at last I got it ...I believe
Thank you
Ciao

ramskens 10-28-2007 01:41 PM

to install compiz-fusion 0.5.2 do i have to install gconf?, is any way to avoid that?

ramskens 10-28-2007 01:52 PM

to install compiz-fusion 0.5.2 do i have to install gconf?
and other question, i read that to install a new version of compiz i have to uninstall the old one (the one that came with slack 12), but, how do i do this?

SqdnGuns 10-28-2007 04:24 PM

Quote:

Originally Posted by ramskens (Post 2940014)
to install compiz-fusion 0.5.2 do i have to install gconf?
and other question, i read that to install a new version of compiz i have to uninstall the old one (the one that came with slack 12), but, how do i do this?

Run pkgtool and select compiz.

Sounds like you need to do some research on Slackware, it will pay off for you in the long run.

urka58 10-29-2007 01:03 PM

No, gconf is not required at all. The package from slacky.eu is compiled without gconf support.
Ciao

ramskens 10-30-2007 09:03 PM

ok, thanks, i have already installed the compiz 0.5.2 and fusion and the other stuff with the package of slacky.
But i still have the same problem before. After a while, and for no reason particurally (i dont know how does that word write, im from argentina..), the system hangs, its not a problem of hardware because before i enable composite that never happens. When i dont call compiz (i mean,, composite enable, but i dont activate "compiz -replace bla bla bla"), it takes a lot more to hang,, but, eventually it does...
Any suggestion?
And thanks for the previous answers

trebek 10-31-2007 02:56 PM

QUESTION!!!

Does anybody know why konqueror would not open when compiz is running? It hasn't opened since i enabled compiz. Every other application opens up just fine. When trying to open konqueror, be it home folder, the trash or konqueror itself, i just get the bouncy icon for like 20 seconds but nothing shows up. By the way, where would the error messages for this problem be in /var/log (dmesg, syslog)?

Thanks for the help.

urka58 10-31-2007 05:27 PM

Quote:

Originally Posted by ramskens (Post 2942915)
ok, thanks, i have already installed the compiz 0.5.2 and fusion and the other stuff with the package of slacky.
But i still have the same problem before. After a while, and for no reason particurally (i dont know how does that word write, im from argentina..), the system hangs, its not a problem of hardware because before i enable composite that never happens. When i dont call compiz (i mean,, composite enable, but i dont activate "compiz -replace bla bla bla"), it takes a lot more to hang,, but, eventually it does...
Any suggestion?
And thanks for the previous answers

Try editing the startup script this way

Start compiz+emerald

#!/bin/sh

export LIBGL_ALWAYS_INDIRECT=1 # add this

if ! ps ax | sed '/grep/ d' | grep compiz 1> /dev/null 2> /dev/null ; then
/usr/bin/compiz --replace ccp &
/usr/bin/emerald --replace &
else
/usr/bin/emerald --replace &
fi

Hope this helps
Ciao

ramskens 10-31-2007 10:42 PM

Try editing the startup script this way

Start compiz+emerald

#!/bin/sh

export LIBGL_ALWAYS_INDIRECT=1 # add this

if ! ps ax | sed '/grep/ d' | grep compiz 1> /dev/null 2> /dev/null ; then
/usr/bin/compiz --replace ccp &
/usr/bin/emerald --replace &
else
/usr/bin/emerald --replace &
fi

Hope this helps
Ciao

------------------------
well... it didnt work. the truth, i installed compiz0.5.2 with fusion, so i dont have emerald. The other thing,,i have that problem without running compiz.

Here is the last part of my xorg.conf

Section "Device"

#VideoRam 2048
# Insert Clocks lines here if appropriate
Identifier "* Generic VESA compatible"
Driver "nvidia"
EndSection
Section "Screen"
Identifier "Screen 1"
Device "* Generic VESA compatible"
Monitor "s"
DefaultDepth 24
Option "AllowGLXWithComposite" "true"
Option "TripleBuffer" "true"
Option "RenderAccel" "True"
Option "AddARGBGLXVisuals" "True"
Option "DisableGLXRootClipping" "True
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1024x768" "800x600" "640x480"
EndSubSection
EndSection

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

any suggestion?

urka58 11-01-2007 05:56 AM

So.. you have to install a window decorator (emerald, kde-window-decorator), otherwise no chances you can get compiz working.
Have you installed all packages I listed ?
If you don't like emerald, install at least kde-window-decorator and replace it into the script.
Your xorg.conf file looks fine, just try removing the line
Option "TripleBuffer" "true"
if your video card has less than 128 MB memory
Ciao


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