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

RPMS GPG key

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.3 (GNU/Linux)

mQGiBERucYcRBADWyRKKv6bghhqtG+WCRkTZf8ycRFe5DRCJQcgWAoQsLj4/xaX6
VdOylnY1kIFpQ/pMoCoYWXW4qq9JWUnqwugn/ixK9xUgp1opq3uuvs3Bxl73GSr/
NSlX3FhLc7soODh3ru+vGfwmll+X12CHqK5r9BnayJvAN6bU7bbQZWrPKwCgnNpM
5sxiIORY6azsX1lhZ5fkHjkD/0CSDmoUjmzv5pXGqWd1o9g+DJcv11q3sz6SLaHE
K9fptIrY/gwX4EYhxDjJexJpnVX6E1QnjUXhrr5F/yNrWeIOdKkNY3Vw5vVqlsxx
VxE6f8UvCdBtvA5DOcAEWV7sbGXEo+Ok+JcKC1kLOXE0CU4rJzWGtZvKwjLCGBvD
zPtgA/400QVqjyZyVpdVfaPme23x/vjyuaHuetehh+Sy6FC9L/EpfD8ALGaf1nCX
vz6lp9SLtyi6OE5qbTCTVYc32oYPFz3i73JMUU2WTbF68z7S3Ppmha2oQ3AtZqm/
I8p7V0vXQN/G7ZtnOEg6HidHJiZJ3ACxZiTzsWhBSXuParjy5bQoQWxwaG9uc2Ug
VmFuIEFzc2NoZSA8YWxjYXBjb21AZ21haWwuY29tPohgBBMRAgAgBQJEbnGHAhsD
BgsJCAcDAgQVAggDBBYCAwECHgECF4AACgkQ/sZiYjxOgtrHCgCfaWXDcgZgZVM/
mdE/QkE44xFRyUgAoJmNqWtlm2RIRmIeKUVXJxnBpNUMuQINBERucbsQCACgiL64
JpesiFNVqvPb0+EAozQaP9Awy8pAqjCFH5HOCAMicPI52IYJRELaf+49roP/A0jQ
8JnZe4ad35V3IgjBUNWa5t/lxjPN/4M3V4bUHuhD1xxtZN6XXW1+AcXF2aR8bV6l
qK3bKd9yV3gOid8JZNfbey6W29InRt04azPf/zgdxZNIOPgS4UFvceRvlb0F0SFv
KcX7VFxKUK5KMx0YqVNXnLnQijGf3Zz0GfX5x2t3GBgDz6U0urpJLLBB6B6O5y3u
x0Hdyq5/2P2TgEQ8z3bnYVzLPeMjXFIf/anDp0vTatIUZg75nWO7mkDzJWwCax/r
EZaettGl0eKouXzvAAMFB/96OedwftFHFjbV4E9WuLgSTSf+UYP+Q6J3m2FMi+XE
LPLhpbHhT0NYpkqE33F3spjFAqPkZPssXX6mQ5wVf5XBgnDuMUiDaT8LbkhF9Tpd
DYiw9CtJi6134IpnKLHwOKm/9aeXcJP3Vd5hXLoi9k07xuWZDsD5eyIgm//I2WGR
5EhioFodMAifJwGBoG1d54nbyK81LukCu0qhGdw8ZvFwt0oQ1iEsX+GSF+3TMRx7
bFA68A9AVf2G1K6/LwpJaheKP3eBQ65kXy6lWD6C/xg4UwEPck9jUw65sARKGr0n
qf8rLVyCoUj56tc65alc6AIbAYPdGMT32mB+HZ4odz5piEkEGBECAAkFAkRucbsC
GwwACgkQ/sZiYjxOgtr+fACfXgTSZBzPu4+cwFncC6Qc4/KtYWoAnimoZ1FS/9kJ
dLUFWtiSKJxNPW0Q
=VFKg
-----END PGP PUBLIC KEY BLOCK-----

Friday, May 19, 2006

Howto install Compiz and Xgl on Fedora Core 5

Introduction:
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: http://bdiddy.rty.ca/xgl-vids.torrent (164.8 MiB)
Here a nice video recorded by David Reveman (included in the above torrent): http://www.freedesktop.org/~davidr/xgl-demo1.xvid.avi

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 http://users.telenet.be/quenta/RPM-GPG-KEY-AL-CAPCOM
Install the xgl repository:
rpm -ivh http://users.telenet.be/quenta/xgl-repository-1.0-1.noarch.rpm
Install the packages:
yum install compiz xorg-x11-server-Xgl

Configure the system:

Check your system capability:

gnome-xgl-info
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: http://en.opensuse.org/Xgl_Troubleshooting
On the gentoo wiki: http://gentoo-wiki.com/HOWTO_XGL/Troubleshooting

Configure Compiz:
gset-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.