You are not logged in.

#1 2006-10-06 03:37:01

silencer
Member
From: Buenos Aires / Argentina
Registered: 2006-09-01
Posts: 102
Website

compiz-git without xgl nor aiglx

Hi!,

does anyone knows how to (or if it's possible)  run compiz-git without xgl nor aiglx? (using the new nvidia drivers), I know this is possible with beryl, but compiz-git   won't run ok if xgl isn't loaded, it will show only a black screen with some white rectangles where the windows are supposed to be. sad

I love compiz-git, please help me tongue

thanks a lot! smile

silencer

Offline

#2 2006-10-08 18:02:34

delphinen
Member
Registered: 2006-10-02
Posts: 67

Re: compiz-git without xgl nor aiglx

bump.

Offline

#3 2006-10-08 23:44:04

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Re: compiz-git without xgl nor aiglx

You need the nVidia beta drivers with support for AIGLX, I think.

Offline

#4 2006-10-09 01:36:32

twiistedkaos
Member
Registered: 2006-05-20
Posts: 666

Re: compiz-git without xgl nor aiglx

well, no you do need AIGLX.

Offline

#5 2006-10-10 18:59:54

hussam
Member
Registered: 2006-03-26
Posts: 572
Website

Re: compiz-git without xgl nor aiglx

does anyone have a pkgbuild for compiz to be compiled against the nvidia drivers for aiglx?

Offline

#6 2006-10-11 02:23:35

delphinen
Member
Registered: 2006-10-02
Posts: 67

Re: compiz-git without xgl nor aiglx

This is a modified version of startxgl script I made to run compiz against Nvidia beta driver libs instead Xgl mesa

#!/bin/bash

USE_COLOR=1
msg() {
  if [ $USE_COLOR -eq 1 ]; then
    echo -e "33[1;32m==>33[1;0m 33[1;1m$133[1;0m" >&2
  else
    echo "==> $1" >&2
  fi
}

usage() {
  echo "Usage: startnv [display number] [window manager] [gfx]"
  echo
  echo "  Command line arguments are optional."
  echo "  Default [display number] is 1."
  echo "  [window manager] can be: 'gnome', 'xfce' (no session), 'xfce-svn' (no session), or 'xfce-session'. Default is 'gnome'."
  echo "  [gfx] values are 'ati', 'nvidia' or 'other'. Default is 'other'."
}

if [ "$1" = "-h" -o "$1" = "--help" ]; then
  usage
  exit 0
elif [ -z "$1" ]; then
  xgldisplay=1
else
  xgldisplay=$1
fi

xinit -- :0 &

sleep 3
msg "Starting Compiz (window and composite manager)"
DISPLAY=:$xgldisplay LD_LIBRARY_PATH=/usr/lib/ LD_PRELOAD=/usr/lib/libGL.so.1.0.9625 compiz --replace miniwin decoration transset state wobbly fade minimize cube rotate zoom scale move resize place switcher trailfocus water bs &

sleep 3
if [ "$2" = "xfce" ]; then
  msg "Starting xfce-mcs-manager"
  DISPLAY=:$xgldisplay xfce-mcs-manager
  msg "Starting gnome-window-decorator"
  DISPLAY=:$xgldisplay gnome-window-decorator &
  msg "Starting xftaskbar4, xfdesktop and xfce4-panel"
  DISPLAY=:$xgldisplay xftaskbar4 &
  DISPLAY=:$xgldisplay xfdesktop &
  DISPLAY=:$xgldisplay exec xfce4-panel
elif [ "$2" = "xfce-svn" ]; then
  msg "Starting xfce-mcs-manager"
  DISPLAY=:$xgldisplay xfce-mcs-manager
  msg "Starting gnome-window-decorator"
  DISPLAY=:$xgldisplay gnome-window-decorator &
  msg "Starting xfdesktop and xfce4-panel"
  DISPLAY=:$xgldisplay xfdesktop &
  DISPLAY=:$xgldisplay exec xfce4-panel
elif [ "$2" = "xfce-session" ]; then
  msg "Starting gnome-window-decorator"
  DISPLAY=:$xgldisplay gnome-window-decorator &
  msg "Starting xfce4-session"
  DISPLAY=:$xgldisplay exec xfce4-session
else
  msg "Starting gnome-window-decorator"
  DISPLAY=:$xgldisplay gnome-window-decorator &
  msg "Starting gnome-session"
  DISPLAY=:$xgldisplay exec gnome-session
fi

Save this bash script to a file like "startnv", chmod it to 755 and start your X session with "startnv 0"

For me, it doesnt work well, I get choppy windows and strange errors but at least its an easy way to get direct rendering working.

I dont know you guys but I cant run both Doom III and Quake 3 at the same time looking perfectly with compiz running on Xgl, but I can do it with Nvidia beta drivers now -although as I said, I have lot of windows bugs...
I wish someone could explain us more about using compiz-git --not beryl-- WITH OUT Xgl

screen4xm3.png

screen6fa5.png

Offline

#7 2006-10-11 11:35:19

aviad
Member
Registered: 2006-01-19
Posts: 22

Re: compiz-git without xgl nor aiglx

You don't need XGL anymore. All you have to do is to add this to xorg.conf.

Option "AddARGBGLXVisuals" "1"

and say goodbye to any ugly xgl startup scripts. your good old X (but only if it's the shiny new 7.1 wink)  will do the trick.

you might also want to try those options:

Option "DamageEvents" "1"
Option "DisableGLXRootClipping" "1"

the first could speed up your compositor of choice, and if you are using an old build of compiz (one that dosen't support the --use-cow option), you should add the second line.


Someday, I'll be a real boy!

Offline

#8 2006-10-11 15:50:39

Mikos
Member
From: Prague, Czech Republic
Registered: 2005-05-03
Posts: 228
Website

Re: compiz-git without xgl nor aiglx

"DamageEvents" are enabled by default on new NVIDIA drivers (it is only disabled if you are using MultiGPU or SLI).

Offline

#9 2006-10-11 19:42:19

delphinen
Member
Registered: 2006-10-02
Posts: 67

Re: compiz-git without xgl nor aiglx

aviad wrote:

You don't need XGL anymore. All you have to do is to add this to xorg.conf.

Option "AddARGBGLXVisuals" "1"

and say goodbye to any ugly xgl startup scripts. your good old X (but only if it's the shiny new 7.1 wink)  will do the trick.

you might also want to try those options:

Option "DamageEvents" "1"
Option "DisableGLXRootClipping" "1"

the first could speed up your compositor of choice, and if you are using an old build of compiz (one that dosen't support the --use-cow option), you should add the second line.

Thanks aviad. Could you tell how to launch compiz-git without startxgl script? because I get no window decoration launching compiz-git from an already running gnome-session.

Offline

#10 2006-10-12 15:52:25

aviad
Member
Registered: 2006-01-19
Posts: 22

Re: compiz-git without xgl nor aiglx

delphinen wrote:

Thanks aviad. Could you tell how to launch compiz-git without startxgl script? because I get no window decoration launching compiz-git from an already running gnome-session.

Have you ran gwd/yawd/cgwd/whatever-wd-you-have?

In case you did not, you should create a very simple file:

#!/bin/bash
compiz --replace --use-cow miniwin decoration transset state wobbly fade minimize cube rotate zoom scale move resize place switcher trailfocus water bs & 
gtk-window-decorator --replace

chmod it, and add it to gnome session.

Another option you have, is installing beryl (it can co-exist with compiz, AFAIK) and simply adding beryl-manager to run at startup.

Happy GLXing! wink


Someday, I'll be a real boy!

Offline

#11 2006-10-17 14:29:55

delphinen
Member
Registered: 2006-10-02
Posts: 67

Re: compiz-git without xgl nor aiglx

I made it work starting compiz in that way and configuring correctly xorg.conf, thanks aviad.

Another problem I have now, that I suppose its because the drivers are in beta stage, is that when I change to another terminal ( press ctrl + alt + F1 ) and then switch back to X ( ctrl + alt + F7 ) I get a blank screen with the cursor still running.

Offline

#12 2006-11-14 18:56:16

Xarturkhann
Member
From: Ankara
Registered: 2006-02-17
Posts: 55

Re: compiz-git without xgl nor aiglx

Yes same here.This is nvidia drivers bug sad

Offline

Board footer

Powered by FluxBB