Comment 5 for bug 173517

Revision history for this message
huiii (a00ps) wrote :

well, i followed your comment above (update1, the weird part) and this will not work for me... so, my second screen stays "useless", unless i switch off compiz.
it means: with metacity, gtk-window-decorator enabled and compiz disabled, everything works perfect...

/ubuntu/7.10/nvidia/6600go/laptop

to at least (with two xscreens) have primary screen work nice with compiz and emerald, menus working normal etc I wrote a "script" :) that goes on gdm start-up :

#!/bin/bash
#switch between compiz 2 screens or 1 screen

VIDEOCARD1=`/bin/cat /var/log/Xorg.0.log |grep -c TV-0`
VIDEOCARD2=`/bin/cat /var/log/Xorg.0.log |grep -c CRT-0`
if [ "$VIDEOCARD1" = 0 ] && [ "$VIDEOCARD2" = 0 ]; then
sleep 0
else
TWINVIEW=`/bin/cat /etc/X11/xorg.conf |grep -c TWINVIEW`
fi
if [ "$TWINVIEW" = 0 ]; then
sleep 3
compiz --replace --only-current-screen &
emerald --replace &
else
sleep 0
fi

basically what it does is: checks if any second monitor is attached to my laptop.
than if not, nothing happens, if yes, it checks if i have a xorg.conf for twinview.
if so: nothing happens cause there, compiz works fine on both screens.
if not twinview xorg.conf, than it will do this:

compiz --replace --only-current-screen &
emerald --replace &

this two little lines i found in the ubuntu forum.
when applying them, first screen works fine, but second screen not.
well, at least i can use now the second screen to watch a film on the TV-monitor, while first screen behaves normal.
but to perform with veejay i have to switch off compiz, as i need the keyboard to control video on second screen.
i dont use twinview for video on second screen, as the quality gets bad there: the well-known horizontal split-line in the middle of the screen;
xscreen-setup in xorg allows me to pass an exact modeline for PAL-TV, witch makes video look correct again (no horizontal split).
to be honest, i dont care if compiz works when I'm performing with live video, but it would be schick, of course, to show off, 0-o
perhaps all this information helps!?