PDA

View Full Version : Compiz in xnest? Or other "safe" way to start comp


RYX
April 15th, 2007, 11:51 AM
Hi! Does anyone know if it is possible to run compiz within an xnest? Or is there another safe way of coding compiz-plugins (especially wrapping handleEvent) without facing the risk of entirely locking up the desktop? I wrote a small script which should kill compiz after 30 seconds but it doesn't always work - I am still forced to reset from time to time.

I am open for any ideas ... :)

mikedee
April 15th, 2007, 11:59 AM
http://forum.compiz.org/viewtopic.php?t=35&start=0&postdays=0&postorder=asc&highlight=

This might help, personally I just set up a script to start kwin after 10 seconds if I am debugging. Otherwise you can switch to another VT and restart compiz.

RYX
April 15th, 2007, 12:51 PM
Thanks, I forgot the forum-search :oops:

I tried most of all methods described there (except gdb over ssh). I also tried using Xephyr instead of Xnest which supports a lot of the "modern" extensions. But with Xephyr I get "compiz: Root visual is not a GL visual" ... Would it work to launch Xgl within xephyr and then launch compiz on Xgl within the Xepyhr-nest? Obviously a lot of overhead, but I don't want to do this the whole day, it is only for testing critical parts like actions in handleEvent (I rebooted about 50 times within the last 24 hours).

:)

julio
April 16th, 2007, 11:42 AM
You can launch Xgl without the --fullscreen option, it'll work just as Xnest...

Azrael Nightwalker
April 21st, 2007, 10:44 AM
I have a script which runs XGL in a window with Gnome (though you can substitute it with whatever you like).
#!/bin/sh
Xgl :1 -ac -accel glx:pbuffer -accel xv:pbuffer -screen 1024x720 &
# you can adjust the resolution. I use 1024x720 to see FVWM-Crystal panels while running XGL in a window
DISPLAY=:1
exec gnome-session

If you use Gnome, KDE or Xfce then you will have to run this script from Fluxbox or Fvwm (which don't check for other DEs) because Gnome/KDE/Xfce won't allow you to run 2 instances of it nor will they allow you to run another desktop enviroment.
I read somewhere that this other desktop enviroment detection can be bypassed but I forgot what it was and where I read about it.
Running this script from fvwm-crystal was enough for my needs.