Sunday, May 21, 2006

Compiz Usage

Usage: compiz [--display DISPLAY] [--bg-image PNG] [--refresh-rate RATE]
[--fast-filter] [--indirect-rendering] [--strict-binding] [--test-mode]
[--replace] [--sm-disable] [--sm-save-file] [--sm-client-id] [--version]
[--help] [PLUGIN]...

XGL Usage

Xgl [:] [option]

-a # mouse acceleration (pixels)
-ac disable access control restrictions
-audit int set audit trail level
-auth file select authorization file
bc enable bug compatibility
-br create root window with black background
+bs enable any backing store support
-bs disable any backing store support
-c turns off key-click
c # key-click volume (0-100)
-cc int default color visual class
-co file color database file
-core generate core dump on fatal error
-dpi int screen resolution in dots per inch
dpms enables VESA DPMS monitor control
-dpms disables VESA DPMS monitor control
-deferglyphs [none|all|16] defer loading of [no|all|16-bit] glyphs
-f # bell base (0-100)
-fc string cursor font
-fn string default font name
-fp string default font path
-help prints message with these options
-I ignore all remaining arguments
-ld int limit data space to N Kb
-lf int limit number of open files to N
-ls int limit stack space to N Kb
-nolock disable the locking mechanism
-logo enable logo in screen saver
nologo disable logo in screen saver
-nolisten string don't listen on protocol
-noreset don't reset after last client exists
-reset reset after last client exists
-p # screen-saver pattern duration (minutes)
-pn accept failure to listen on all ports
-nopn reject failure to listen on all ports
-r turns off auto-repeat
r turns on auto-repeat
-render [default|mono|gray|color] set render color alloc policy
-s # screen-saver timeout (minutes)
-sp file security policy file
-su disable any save under support
-t # mouse threshold (pixels)
-terminate terminate at server reset
-to # connection time out
-tst disable testing extensions
ttyxx server started from init on /dev/ttyxx
v video blanking for screen-saver
-v screen-saver without video blanking
-wm WhenMapped default backing-store
-x string loads named extension at init time
-maxbigreqsize set maximal bigrequest size
+xinerama Enable XINERAMA extension
-xinerama Disable XINERAMA extension
-dumbSched Disable smart scheduling, enable old behavior
-schedInterval int Set scheduler interval in msec
+extension name Enable extension
-extension name Disable extension
-query host-name contact named host for XDMCP
-broadcast broadcast for XDMCP
-multicast [addr [hops]] IPv6 multicast for XDMCP
-indirect host-name contact named host for indirect XDMCP
-port port-num UDP port number to send messages to
-from local-address specify the local address to connect from
-once Terminate server after one session
-class display-class specify display class to send in manage
-cookie xdm-auth-bits specify the magic cookie for XDMCP
-displayID display-id manufacturer display ID for request
-kb disable the X Keyboard Extension
+kb enable the X Keyboard Extension
[+-]accessx [ timeout [ timeout_mask [ feedback [ options_mask] ] ] ]
enable/disable accessx key sequences
-ardelay set XKB autorepeat delay
-arinterval set XKB autorepeat interval
-xkbmap XKB keyboard description to load on startup

Xgl usage:
-ddx module specify ddx module
-noglx don't load glx extension
-glxlog file glx extension log file
-vertextype [short|float] set vertex data type
-yinverted Y is upside-down
-lines accelerate lines that are not vertical or horizontal
-noyuv turns off hardware color-space conversion of YUV data
-xvfilter [nearest|linear] set xvideo filter
-vbo use vertex buffer objects for streaming of vertex data
-pbomask [1|4|8|16|32] set bpp's to use with pixel buffer objects
-accel TYPE[@WIDTH[/MIN]xHEIGHT[/MIN]][:METHOD] offscreen acceleration

Xglx usage:
-screen WIDTH[/WIDTHMM]xHEIGHT[/HEIGHTMM] specify screen characteristics
-fullscreen run fullscreen
-display string display name of the real server
-softcursor force software cursor

Xorg usage:
-config file specify configuration file, relative to the
Xorg config search path, only root can use absolute
-probeonly probe for devices, then exit
-scanpci execute the scanpci module and exit
-verbose [n] verbose startup messages
-logverbose [n] verbose log messages
-quiet minimal startup messages
-depth n set colour depth. Default: 8
-gamma f set gamma value (0.1 < f < 10.0) Default: 1.0
-rgamma f set gamma value for red phase
-ggamma f set gamma value for green phase
-bgamma f set gamma value for blue phase
-layout name specify the ServerLayout section name
-screen name specify the Screen section name
-keyboard name specify the core keyboard InputDevice name
-pointer name specify the core pointer InputDevice name
-nosilk disable Silken Mouse
-disableModInDev disable dynamic modification of input device settings
-allowMouseOpenFail start server even if the mouse can't be initialized
-bestRefresh choose modes with the best refresh rate
-ignoreABI make module ABI mismatches non-fatal
-isolateDevice bus_id restrict device resets to bus_id (PCI only)
vtXX use the specified VT number
-keeptty don't detach controlling tty (for debugging only)
-novtswitch don't immediately switch to new VT
-sharevts share VTs with another X server
-xorgAc disable access control restrictions
-xorgProgram server program
-xorgDisplay server display
-xorgVersion show the server version


Version: GnuPG v1.4.3 (GNU/Linux)


Friday, May 19, 2006

Howto install Compiz and Xgl on Fedora Core 5

Xgl is an Xserver that uses OpenGL for its drawing operations. Together with compiz, an opengl compositing and window manager, it allows for some cool desktop effects. Xgl relies on an extension to mesa, GLX_EXT_texture_from_pixmap, that is present only in CVS mesa.

Demonstration Videos:
A torrent with a collection of videos is available from: (164.8 MiB)
Here a nice video recorded by David Reveman (included in the above torrent):

Hardware Prerequisites
See HARDWARE Video Card Support Under XGL on the gentoo documentation wiki.

Sofware Prerequisites

Installed 3D driver:
Follow the intructions provided in the Fedora FAQ.
Below links are for FC5.

Package list to install:
  • compiz OR compiz-quinn
  • xorg-x11-server-Xgl
  • fedora-xgl-settings
  • gset-compiz
  • xgl-hardware-list
  • glitz
  • libsvg-cairo
  • libsvg
Import RPMS GPG key:
rpm --import
Install the xgl repository:
rpm -ivh
Install the packages:
yum install compiz xorg-x11-server-Xgl

Configure the system:

Check your system capability:

This command must return, it's like that:
G nVidia Corporation
1 kmod-nvidia is not installed for the kernel release 1.2111_FC5
1 -accel glx:pbuffer -accel xv

Explanation the return of gnome-xgl-info:

First line is:

CardStatus [CardName]
where CardStatus is: G(ood), B(ad), S(low), or U(nknown)

Second line is:
3DStatus [Missing or installed Packages]
where 3DStatus is 0 or 1

Third line is:
XglStatus [RecommendedOptions]
where XglStatus is 0 or 1 and RecommendedOptions is set if the hardware is detected as compatible.

Enable Xgl:
gnome-xgl-switch --enable-xgl --auto

When the script ask you for applying the modifications, say (y)es.

If xgl doesn't start, see troubleshooting links below:
On the opensuse website:
On the gentoo wiki:

Configure Compiz:
gset-compiz is a very good tool to configure compiz, it was wrot by gerd kohlberger.
This software can also manage the configuration of the Quinn Storm compiz version.