XScreenSaver
Screensaver software
From Wikipedia, the free encyclopedia
XScreenSaver is a free and open-source collection of 240+[3] screensavers for Unix, macOS, iOS and Android operating systems. It was created by Jamie Zawinski in 1992, with new releases coming out several times a year.[4]
| XScreenSaver | |
|---|---|
XScreenSaver-demo and the XMatrix hack | |
| Original author | Jamie Zawinski |
| Developer | Jamie Zawinski |
| Initial release | 17 August 1992 |
| Stable release | 6.14
/ January 15, 2026[1] |
| Written in | ANSI C, X11, OpenGL |
| Operating system | Unix, macOS, iOS, Android |
| Type | Screensaver |
| License | MIT License[2] |
| Website | www |
Platforms
The free software and open-source Unix-like operating systems running the X Window System (such as Linux and FreeBSD) use XScreenSaver almost exclusively.[citation needed] On those systems, there are several packages: one for the screen-saving and locking framework, and two or more for the display modes, divided somewhat arbitrarily.[5]
On Macintosh systems, XScreenSaver works with the built-in macOS screen saver.
On iOS systems, XScreenSaver is a stand-alone app that can run any of the hacks full-screen.
On Android systems, the XScreenSaver display modes work either as normal screen savers (which Android sometimes refers to as "Daydreams") or as live wallpapers.
There is no official version for Microsoft Windows, and the developer discourages anyone from porting it. The author considers Microsoft to be "a company with vicious, predatory, anti-competitive business practices"[6] and says that, as one of the original authors of Netscape Navigator, he holds a "personal grudge" against Microsoft because of its behavior during the First Browser War.
Software architecture
The XScreenSaver daemon is responsible for detecting idle-ness, blanking and locking the screen, and launching the display modes. The display modes (termed "hacks" from the historical usage "display hack") are each stand-alone programs.
This is an important security feature, in 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 unlock the screen).
It also means that 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.
For historical and portability reasons, the included hacks are all written in ANSI C. About half of them use the X11 API, and about half use the OpenGL 1.3 API.
Rather than cloning the code-base and re-writing the hacks to target different platforms, XScreenSaver contains a number of compatibility layers.
- To allow the X11-based hacks to run natively on macOS and iOS, XScreenSaver contains a complete implementation of the X11 API built on top of Cocoa ("jwxyz").[7]
- To allow the OpenGL 1.3-based hacks to run natively on iOS and Android systems, which only support OpenGL ES, XScreenSaver contains an implementation of the OpenGL 1.3 API built on top of OpenGL ES 1.0 ("jwzgles").[7]
- And to allow the X11-based hacks to run natively on iOS and Android, XScreenSaver also contains an implementation of the X11 API in terms of OpenGL ES 1.0.[8]