|This article relies on references to primary sources. (July 2008)|
XScreenSaver-demo and the XMatrix hack
|Original author(s)||Jamie Zawinski|
|Stable release||5.28 / 4 June 2014|
The free software and open source Unix-like operating systems running the X Window System (such as Linux and FreeBSD) use XScreenSaver almost exclusively. On those systems, there are two parts to XScreenSaver: the collection of screen savers; and the framework for blanking and locking the screen.
In recent years, some Linux distributions have been using the gnome-screensaver or kscreensaver screen-blanking frameworks by default instead of the framework included with XScreenSaver. They still depend on the XScreenSaver collection of screen savers, which is over 90% of the package, with the exception of gnome-screensaver version 3 and onward, which has dropped support for screensavers completely, supporting only simple screen blanking.
XScreenSaver is released under the terms of the X11 License.
One reason for XScreenSaver's popularity is the modularity of its design, which makes it easy to add new display modes. The display modes (termed "hacks" from the historical usage "display hack") are each stand-alone programs invoked by the xscreensaver daemon. In this way, a third-party screen saver can be written in any language or with any graphics library, so long as it is capable of rendering onto an externally provided window.
An important feature of the xscreensaver daemon's design is that the display modes are sandboxed into a separate process from the screen locking framework. This means that a programming error in one of the graphical display modes cannot compromise the screen locker itself (e.g., a crash in a display mode will not un-lock the screen).
On Unix systems, running the hacks from the command line will cause them to open their own non-full-screen window.
For testing purposes GLMatrix was ported to Wayland. The author choose GLMatrix because it renders with OpenGL and the ones that do not, render with Xlib, and the author did not want to port such to Cairo.
The included hacks are highly varied, ranging from simple 2D psychedelia, to 3D demonstrations of complex mathematical principles, to simulations of other computer systems, to re-creations of artifacts and effects from movies.
Though many of the newer hacks take full advantage of the power of modern computers, the age of the project means that some of the older hacks may look dated to modern eyes, as they were originally written for much less powerful computers.
Popular hacks include:
- Atlantis – an OpenGL animation showing whales and dolphins.
- BSOD – shows fake fatal screen of death variants from many computer systems, including Microsoft Windows Blue Screen of Death, a Linux kernel panic, a Darwin crash, an Amiga "Guru Meditation" error, a sad Mac, and more.
- Apple2 – simulates an Apple II computer, showing a user entering a simple BASIC program and running it. When run from the command-line, it is a fully functional terminal emulator (as is Phosphor.)
- Barcode – a number of coloured barcodes scroll across the screen.
- Flow – a 3D display of strange attractors.
- Flying toasters – 3D toasters fly around, inspired by the classic After Dark screensaver.
- Gears – an OpenGL animation of intermeshing gears and planetary gears.
- GLMatrix – an OpenGL animation similar to the "digital rain" title sequence seen in the Matrix trilogy.
- Molecule – an OpenGL animation showing space-filling or ball-and-stick models of a series of common drugs and other molecules.
- Penrose – tiles the screen aperiodically with coloured Penrose tiles.
- Spotlight – puts a moving spotlight across the desktop in the style of the James Bond film opening sequences.
- Sproingies – an animation in the style of the video game Q*bert.
- Webcollage – creates collages out of random images found on the Web.
- XAnalogTV – simulates an analog cathode ray tube television set, including visual artifacts and reception issues.
- XPlanet – draws planets and other celestial bodies that update in real time.
- XMatrix – animations similar to the "digital rain" sequence seen in the Matrix trilogy.
- Boing – based on the 1984 program regarded as the first Amiga demo ever, showing the bouncing red and white ball.
- Bumps – an implementation of full-screen 2D bumpmapping.
- MetaBalls – another common demo effect.
- Moire2 – moving interference circles similar to those common in older Amiga demos.
- ShadeBobs – another effect common in older Amiga demos.
- XFlame – the filter-based fire effect, also known as flame effect.
Media related to XScreenSaver at Wikimedia Commons
- "List of screen savers included in the XScreenSaver collection". 2008-12-27. Retrieved 2012-09-10.
- "XScreenSaver release history". 2008-12-27. Retrieved 2009-04-17.
- "XScreenSaver FAQ regarding KDE/Gnome". Retrieved 2009-09-11.
- "XScreenSaver source code distribution". 2008-12-27. Retrieved 2009-02-28.
- "a Wayland screensaver". 2011-11-23.
- "Integrate wscreensaver into Weston". freedesktop.org. 2011-12-08.