Comment 13 for bug 173517

Revision history for this message
marriouss (marriouss) wrote :

Fix: To make compiz work fine with dual head on Hardy

1. Create compiz-dual.sh script that looks like:

for screenName in :0.0 :0.1 :1.0 :1.1
do
    xdpyinfo -display $screenName > /dev/null 2>&1
    if [ $? -eq 0 ]
    then
        DISPLAY=$screenName compiz --only-current-screen &
        sleep 3
        # DISPLAY=$screenName avant-window-navigator &
    fi
done

Add execute flag to this script: chmod +x compiz-dual.sh
What this script basically does is running separate compiz sessions for each screen. The AWN start is optional (if you need AWN to start on each screen then remove the # from the script above).
xdpyinfo command tells if a screen is available.

2. Add compiz-dual.sh to Gnome startup (System->Preferences->Sessions)

3. Disable visual efects: Appearance->Visual effects - Set to None.