50e403c4a85a84fc724feeb1f733213b74ef1377
[xscreensaver] / driver / xscreensaver.man
1 .de EX          \"Begin example
2 .ne 5
3 .if n .sp 1
4 .if t .sp .5
5 .nf
6 .in +.5i
7 ..
8 .de EE
9 .fi
10 .in -.5i
11 .if n .sp 1
12 .if t .sp .5
13 ..
14 .TH XScreenSaver 1 "12-May-2004 (4.16)" "X Version 11"
15 .SH NAME
16 xscreensaver - extensible screen saver framework, plus locking
17 .SH SYNOPSIS
18 .B xscreensaver
19 [\-display \fIhost:display.screen\fP] \
20 [\-verbose] \
21 [\-no\-capture\-stderr] \
22 [\-no\-splash]
23 .SH DESCRIPTION
24 The \fIxscreensaver\fP program waits until the keyboard and mouse have been 
25 idle for a period, and then runs a graphics demo chosen at random.  It 
26 turns off as soon as there is any mouse or keyboard activity.
27
28 This program can lock your terminal in order to prevent others from using it,
29 though its default mode of operation is merely to display pretty pictures on
30 your screen when it is not in use.
31
32 It also provides configuration and control of your monitor's power-saving
33 features.
34 .SH GETTING STARTED
35 For the impatient, try this:
36 .EX
37 xscreensaver &
38 xscreensaver-demo
39 .EE
40 The
41 .BR xscreensaver-demo (1)
42 program pops up a dialog box that lets you configure the screen saver,
43 and experiment with the various display modes.
44
45 .B Note:
46 unlike
47 .BR xlock (1),
48 xscreensaver has a client-server model: the \fIxscreensaver\fP program is a
49 daemon that runs in the background; it is controlled by the foreground
50 .BR xscreensaver-demo (1)
51 and
52 .BR xscreensaver-command (1)
53 programs.
54 .SH CONFIGURATION
55 The easiest way to configure \fIxscreensaver\fP is to simply run the
56 .BR xscreensaver-demo (1)
57 program, and change the settings through the GUI.  The rest of this
58 manual page describes lower level ways of changing settings.
59
60 I'll repeat that because it's important:
61
62 .RS 4
63 The easy way to configure xscreensaver is to run the 
64 .BR xscreensaver-demo (1)
65 program.  You shouldn't need to know any of the stuff described 
66 in \fIthis\fP manual unless you are trying to do something tricky,
67 like customize xscreensaver for site-wide use or something.
68 .RE
69
70 Options to \fIxscreensaver\fP are stored in one of two places: in 
71 a \fI.xscreensaver\fP file in your home directory; or in the X resource
72 database.  If the \fI.xscreensaver\fP file exists, it overrides any settings
73 in the resource database.  
74
75 The syntax of the \fI.xscreensaver\fP file is similar to that of
76 the \fI.Xdefaults\fP file; for example, to set the \fItimeout\fP paramter
77 in the \fI.xscreensaver\fP file, you would write the following:
78 .EX
79 timeout: 5
80 .EE
81 whereas, in the \fI.Xdefaults\fP file, you would write
82 .EX
83 xscreensaver.timeout: 5
84 .EE
85 If you change a setting in the \fI.xscreensaver\fP file while xscreensaver
86 is already running, it will notice this, and reload the file.  (The file will
87 be reloaded the next time the screen saver needs to take some action, such as
88 blanking or unblanking the screen, or picking a new graphics mode.)
89
90 If you change a setting in your X resource database, or if you want
91 xscreensaver to notice your changes immediately instead of the next time
92 it wakes up, then you will need to reload your \fI.Xdefaults\fP file,
93 and then tell the running xscreensaver process to restart itself, like so:
94 .EX
95 xrdb < ~/.Xdefaults
96 xscreensaver-command -restart
97 .EE
98 If you want to set the system-wide defaults, then make your edits to
99 the xscreensaver app-defaults file, which should have been installed
100 when xscreensaver itself was installed.  The app-defaults file will
101 usually be named /usr/lib/X11/app-defaults/XScreenSaver, but different
102 systems might keep it in a different place (for example,
103 /usr/openwin/lib/app-defaults/XScreenSaver on Solaris.)
104
105 When settings are changed in the Preferences dialog box (see above)
106 the current settings will be written to the \fI.xscreensaver\fP file.
107 (The \fI.Xdefaults\fP file and the app-defaults file will never be
108 written by xscreensaver itself.)
109 .PP
110 .TP 8
111 .B timeout\fP (class \fBTime\fP)
112 The screensaver will activate (blank the screen) after the keyboard and
113 mouse have been idle for this many minutes.  Default 10 minutes.
114 .TP 8
115 .B cycle\fP (class \fBTime\fP)
116 After the screensaver has been running for this many minutes, the currently
117 running graphics-hack sub-process will be killed (with \fBSIGTERM\fP), and a
118 new one started.  If this is 0, then the graphics hack will never be changed:
119 only one demo will run until the screensaver is deactivated by user activity.
120 Default 10 minutes.
121 .TP 8
122 .B lock\fP (class \fBBoolean\fP)
123 Enable locking: before the screensaver will turn off, it will require you 
124 to type the password of the logged-in user (really, the person who ran
125 xscreensaver), or the root password.  (\fBNote:\fP this doesn't work if the
126 screensaver is launched by
127 .BR xdm (1)
128 because it can't know the user-id of the logged-in user.  See 
129 the ``\fIUsing XDM(1)\fP'' section, below.
130 .TP 8
131 .B lockTimeout\fP (class \fBTime\fP)
132 If locking is enabled, this controls the length of the ``grace period''
133 between when the screensaver activates, and when the screen becomes locked.
134 For example, if this is 5, and \fI\-timeout\fP is 10, then after 10 minutes,
135 the screen would blank.  If there was user activity at 12 minutes, no password
136 would be required to un-blank the screen.  But, if there was user activity
137 at 15 minutes or later (that is, \fI\-lock\-timeout\fP minutes after 
138 activation) then a password would be required.  The default is 0, meaning
139 that if locking is enabled, then a password will be required as soon as the 
140 screen blanks.
141 .TP 8
142 .B passwdTimeout\fP (class \fBTime\fP)
143 If the screen is locked, then this is how many seconds the password dialog box
144 should be left on the screen before giving up (default 30 seconds.)  This
145 should not be too large: the X server is grabbed for the duration that the
146 password dialog box is up (for security purposes) and leaving the server 
147 grabbed for too long can cause problems.
148 .TP 8
149 .B dpmsEnabled\fP (class \fBBoolean\fP)
150 Whether power management is enabled.
151 .TP 8
152 .B dpmsStandby\fP (class \fBTime\fP)
153 If power management is enabled, how long until the monitor goes solid black.
154 .TP 8
155 .B dpmsSuspend\fP (class \fBTime\fP)
156 If power management is enabled, how long until the monitor goes into
157 power-saving mode.
158 .TP 8
159 .B dpmsOff\fP (class \fBTime\fP)
160 If power management is enabled, how long until the monitor powers down
161 completely.  Note that these settings will have no effect unless both
162 the X server and the display hardware support power management; not 
163 all do.  See the \fIPower Management\fP section, below, for more 
164 information.
165 .TP 8
166 .B visualID\fP (class \fBVisualID\fP)
167 Specify which X visual to use by default.  (Note carefully that this resource
168 is called \fBvisualID\fP, not merely \fBvisual\fP; if you set the \fBvisual\fP
169 resource instead, things will malfunction in obscure ways for obscure reasons.)
170
171 Legal values for the \fBVisualID\fP resource are:
172 .RS 8
173 .TP 8
174 .B default
175 Use the screen's default visual (the visual of the root window.)  
176 This is the default.
177 .TP 8
178 .B best
179 Use the visual which supports the most colors.  Note, however, that the
180 visual with the most colors might be a TrueColor visual, which does not
181 support colormap animation.  Some programs have more interesting behavior
182 when run on PseudoColor visuals than on TrueColor.
183 .TP 8
184 .B mono
185 Use a monochrome visual, if there is one.
186 .TP 8
187 .B gray
188 Use a grayscale or staticgray visual, if there is one and it has more than
189 one plane (that is, it's not monochrome.)
190 .TP 8
191 .B color
192 Use the best of the color visuals, if there are any.
193 .TP 8
194 .B GL
195 Use the visual that is best for OpenGL programs.  (OpenGL programs have
196 somewhat different requirements than other X programs.)
197 .TP 8
198 .I class
199 where \fIclass\fP is one of \fBStaticGray\fP, \fBStaticColor\fP, 
200 \fBTrueColor\fP, \fBGrayScale\fP, \fBPseudoColor\fP, or \fBDirectColor\fP.
201 Selects the deepest visual of the given class.
202 .TP 8
203 .I number
204 where \fInumber\fP (decimal or hex) is interpreted as a visual id number, 
205 as reported by the
206 .BR xdpyinfo (1)
207 program; in this way you can have finer control over exactly which visual
208 gets used, for example, to select a shallower one than would otherwise
209 have been chosen.
210
211 .RE
212 .RS 8
213 Note that this option specifies only the \fIdefault\fP visual that will
214 be used: the visual used may be overridden on a program-by-program basis.
215 See the description of the \fBprograms\fP resource, below.
216 .RE
217 .TP 8
218 .B installColormap\fP (class \fBBoolean\fP)
219 On PseudoColor (8-bit) displays, install a private colormap while the
220 screensaver is active, so that the graphics hacks can get as many
221 colors as possible.  This is the default.  (This only applies when the
222 screen's default visual is being used, since non-default visuals get
223 their own colormaps automatically.)  This can also be overridden on a
224 per-hack basis: see the discussion of the \fBdefault\-n\fP name in the
225 section about the \fBprograms\fP resource.
226
227 This does nothing if you have a TrueColor (16-bit or deeper) display.
228 .TP 8
229 .B verbose\fP (class \fBBoolean\fP)
230 Whether to print diagnostics.  Default false.
231 .TP 8
232 .B timestamp\fP (class \fBBoolean\fP)
233 Whether to print the time of day along with any other diagnostic messages.
234 Default true.
235 .TP 8
236 .B splash\fP (class \fBBoolean\fP)
237 Whether to display a splash screen at startup.  Default true.
238 .TP 8
239 .B splashDuration\fP (class \fBTime\fP)
240 How long the splash screen should remain visible; default 5 seconds.
241 .TP 8
242 .B quad\fP (class \fBBoolean\fP)
243 If true, then \fIfour\fP screensavers will be run on each monitor.
244 Use at your own risk!
245 .TP 8
246 .B helpURL\fP (class \fBURL\fP)
247 The splash screen has a \fIHelp\fP button on it.  When you press it, it will
248 display the web page indicated here in your web browser.
249 .TP 8
250 .B loadURL\fP (class \fBLoadURL\fP)
251 This is the shell command used to load a URL into your web browser.
252 The default setting will load it into Mozilla/Netscape if it is already
253 running, otherwise, will launch a new browser looking at the \fIhelpURL\fP.
254 .TP 8
255 .B demoCommand\fP (class \fBDemoCommand\fP)
256 This is the shell command run when the \fIDemo\fP button on the splash window
257 is pressed.  It defaults to
258 .BR xscreensaver\-demo (1).
259 .TP 8
260 .B prefsCommand\fP (class \fBPrefsCommand\fP)
261 This is the shell command run when the \fIPrefs\fP button on the splash window
262 is pressed.  It defaults to \fIxscreensaver\-demo\ \-prefs\fP.
263 .TP 8
264 .B nice\fP (class \fBNice\fP)
265 The sub-processes created by \fIxscreensaver\fP will be ``niced'' to this
266 level, so that they are given lower priority than other processes on the
267 system, and don't increase the load unnecessarily.  The default is 10.  
268
269 (Higher numbers mean lower priority; see 
270 .BR nice (1)
271 for details.)
272 .TP 8
273 .B fade\fP (class \fBBoolean\fP)
274 If this is true, then when the screensaver activates, the current contents
275 of the screen will fade to black instead of simply winking out.  This only
276 works on certain systems.  A fade will also be done when switching graphics
277 hacks (when the \fIcycle\fP timer expires.)  Default: true.  
278 .TP 8
279 .B unfade\fP (class \fBBoolean\fP)
280 If this is true, then when the screensaver deactivates, the original contents
281 of the screen will fade in from black instead of appearing immediately.  This
282 only works on certain systems, and if \fIfade\fP is true as well.
283 Default false.
284 .TP 8
285 .B fadeSeconds\fP (class \fBTime\fP)
286 If \fIfade\fP is true, this is how long the fade will be in 
287 seconds (default 3 seconds.)
288 .TP 8
289 .B fadeTicks\fP (class \fBInteger\fP)
290 If \fIfade\fP is true, this is how many times a second the colormap will
291 be changed to effect a fade.  Higher numbers yield smoother fades, but
292 may make the fades take longer than the specified \fIfadeSeconds\fP if
293 your server isn't fast enough to keep up.  Default 20.
294 .TP 8
295 .B captureStderr\fP (class \fBBoolean\fP)
296 Whether \fIxscreensaver\fP should redirect its stdout and stderr streams to
297 the window itself.  Since its nature is to take over the screen, you would not
298 normally see error messages generated by xscreensaver or the sub-programs it
299 runs; this resource will cause the output of all relevant programs to be
300 drawn on the screensaver window itself, as well as being written to the
301 controlling terminal of the screensaver driver process.  Default true.
302 .TP 8
303 .B ignoreUninstalledPrograms\fP (class \fBBoolean\fP)
304 There may be programs in the list that are not installed on the system,
305 yet are marked as "enabled."  If this preference is true, then such 
306 programs will simply be ignored.  If false, then a warning will be printed
307 if an attempt is made to run the nonexistent program.  Also, the
308 .BR xscreensaver-demo (1)
309 program will suppress the non-existent programs from the list if this
310 is true.  Default: false.
311 .TP 8
312 .B font\fP (class \fBFont\fP)
313 The font used for the stdout/stderr text, if \fBcaptureStderr\fP is true.
314 Default \fB*\-medium\-r\-*\-140\-*\-m\-*\fP (a 14 point fixed-width font.)
315 .TP 8
316 .B mode\fP (class \fBMode\fP)
317 Controls the behavior of xscreensaver.  Legal values are:
318 .RS 8
319 .TP 8
320 .B random
321 When blanking the screen, select a random display mode from among those
322 that are enabled and applicable.  This is the default.
323 .TP 8
324 .B one
325 When blanking the screen, only ever use one particular display mode (the
326 one indicated by the \fIselected\fP setting.)
327 .TP 8
328 .B blank
329 When blanking the screen, just go black: don't run any graphics hacks.
330 .TP 8
331 .B off
332 Don't ever blank the screen, and don't ever allow the monitor to power down.
333
334 .RE
335 .TP 8
336 .B selected\fP (class \fBInteger\fP)
337 When \fImode\fP is set to \fIone\fP, this is the one, indicated by its
338 index in the \fIprograms\fP list.  You're crazy if you count them and
339 set this number by hand: let
340 .BR xscreensaver\-demo (1)
341 do it for you!
342 .TP 8
343 .B programs\fP (class \fBPrograms\fP)
344 The graphics hacks which \fIxscreensaver\fP runs when the user is idle.
345 The value of this resource is a multi-line string, one \fIsh\fP-syntax
346 command per line.  Each line must contain exactly one command: no
347 semicolons, no ampersands.
348
349 When the screensaver starts up, one of these is selected (according to
350 the \fBmode\fP setting), and run.  After the \fIcycle\fP period
351 expires, it is killed, and another is selected and run.
352
353 If a line begins with a dash (-) then that particular program is
354 disabled: it won't be selected at random (though you can still select
355 it explicitly using the
356 .BR xscreensaver\-demo (1)
357 program.)
358
359 If all programs are disabled, then the screen will just be made blank,
360 as when \fImode\fP is set to \fIblank\fP.
361
362 To disable a program, you must mark it as disabled with a dash instead
363 of removing it from the list.  This is because the system-wide (app-defaults)
364 and per-user (.xscreensaver) settings are merged together, and if a user
365 just \fIdeletes\fP an entry from their programs list, but that entry still
366 exists in the system-wide list, then it will come back.  However, if the
367 user \fIdisables\fP it, then their setting takes precedence.
368
369 If the display has multiple screens, then a different program will be run
370 for each screen.  (All screens are blanked and unblanked simultaniously.)
371
372 Note that you must escape the newlines; here is an example of how you
373 might set this in your \fI~/.xscreensaver\fP file:
374
375 .RS 8
376 .EX
377 programs:  \\
378        qix -root                          \\n\\
379        ico -r -faces -sleep 1 -obj ico    \\n\\
380        xdaliclock -builtin2 -root         \\n\\
381        xv -root -rmode 5 image.gif -quit  \\n
382 .EE
383 .RE
384 .RS 8
385 Make sure your \fB$PATH\fP environment variable is set up correctly
386 \fIbefore\fP xscreensaver is launched, or it won't be able to find the
387 programs listed in the \fIprograms\fP resource.
388
389 To use a program as a screensaver, two things are required: that that
390 program draw on the root window (or be able to be configured to draw on
391 the root window); and that that program understand ``virtual root''
392 windows, as used by virtual window managers such as
393 .BR tvtwm (1).
394 (Generally, this is accomplished by just including the \fI"vroot.h"\fP 
395 header file in the program's source.)
396
397 If there are some programs that you want to run only when using a color
398 display, and others that you want to run only when using a monochrome
399 display, you can specify that like this:
400 .EX
401        mono:   mono-program  -root        \\n\\
402        color:  color-program -root        \\n\\
403 .EE
404 .RE
405 .RS 8
406 More generally, you can specify the kind of visual that should be used for
407 the window on which the program will be drawing.  For example, if one 
408 program works best if it has a colormap, but another works best if it has
409 a 24-bit visual, both can be accommodated:
410 .EX
411        PseudoColor: cmap-program  -root   \\n\\
412        TrueColor:   24bit-program -root   \\n\\
413 .EE
414 .RE
415 .RS 8
416 In addition to the symbolic visual names described above (in the discussion
417 of the \fIvisualID\fP resource) one other visual name is supported in
418 the \fIprograms\fP list:
419 .RS 1
420 .TP 4
421 .B default-n
422 This is like \fBdefault\fP, but also requests the use of the default colormap,
423 instead of a private colormap.  (That is, it behaves as if 
424 the \fI\-no\-install\fP command-line option was specified, but only for
425 this particular hack.)  This is provided because some third-party programs
426 that draw on the root window (notably: 
427 .BR xv (1),
428 and
429 .BR xearth (1))
430 make assumptions about the visual and colormap of the root window: 
431 assumptions which xscreensaver can violate.
432
433 .RE
434 If you specify a particular visual for a program, and that visual does not
435 exist on the screen, then that program will not be chosen to run.  This
436 means that on displays with multiple screens of different depths, you can
437 arrange for appropriate hacks to be run on each.  For example, if one screen
438 is color and the other is monochrome, hacks that look good in mono can be 
439 run on one, and hacks that only look good in color will show up on the other.
440 .RE
441 .PP
442 .PP
443 You shouldn't ever need to change the following resources:
444 .PP
445 .TP 8
446 .B pointerPollTime\fP (class \fBTime\fP)
447 When server extensions are not in use, this controls how 
448 frequently \fIxscreensaver\fP checks to see if the mouse position or buttons
449 have changed.  Default 5 seconds.
450 .TP 8
451 .B windowCreationTimeout\fP (class \fBTime\fP)
452 When server extensions are not in use, this controls the delay between when 
453 windows are created and when \fIxscreensaver\fP selects events on them.
454 Default 30 seconds.
455 .TP 8
456 .B initialDelay\fP (class \fBTime\fP)
457 When server extensions are not in use, \fIxscreensaver\fP will wait this many
458 seconds before selecting events on existing windows, under the assumption that 
459 \fIxscreensaver\fP is started during your login procedure, and the window 
460 state may be in flux.  Default 0.  (This used to default to 30, but that was
461 back in the days when slow machines and X terminals were more common...)
462 .RE
463 .PP
464 There are a number of different X server extensions which can make
465 xscreensaver's job easier.  The next few resources specify whether these
466 extensions should be utilized if they are available.
467 .TP 8
468 .B sgiSaverExtension\fP (class \fBBoolean\fP)
469 This resource controls whether the SGI \fBSCREEN_SAVER\fP server extension
470 will be used to decide whether the user is idle.  This is the default 
471 if \fIxscreensaver\fP has been compiled with support for this 
472 extension (which is the default on SGI systems.).  If it is available, 
473 the \fBSCREEN_SAVER\fP method is faster and more reliable than what will
474 be done otherwise, so use it if you can.  (This extension is only available
475 on Silicon Graphics systems, unfortunately.)
476 .TP 8
477 .B mitSaverExtension\fP (class \fBBoolean\fP)
478 This resource controls whether the \fBMIT\-SCREEN\-SAVER\fP server extension
479 will be used to decide whether the user is idle.  However, the default for
480 this resource is \fIfalse\fP, because even if this extension is available,
481 it is flaky (and it also makes the \fBfade\fP option not work properly.)
482 Use of this extension is not recommended.
483 .TP 8
484 .B xidleExtension\fP (class \fBBoolean\fP)
485 This resource controls whether the \fBXIDLE\fP server extension will be
486 used to decide whether the user is idle.  This is the default 
487 if \fIxscreensaver\fP has been compiled with support for this extension.
488 (This extension is only available for X11R4 and X11R5 systems, unfortunately.)
489 .TP 8
490 .B procInterrupts\fP (class \fBBoolean\fP)
491 This resource controls whether the \fB/proc/interrupts\fP file should be
492 consulted to decide whether the user is idle.  This is the default
493 if \fIxscreensaver\fP has been compiled on a system which supports this
494 mechanism (i.e., Linux systems.)  
495
496 The benefit to doing this is that \fIxscreensaver\fP can note that the user
497 is active even when the X console is not the active one: if the user is 
498 typing in another virtual console, xscreensaver will notice that and will
499 fail to activate.  For example, if you're playing Quake in VGA-mode, 
500 xscreensaver won't wake up in the middle of your game and start competing 
501 for CPU.
502
503 The drawback to doing this is that perhaps you \fIreally do\fP want idleness
504 on the X console to cause the X display to lock, even if there is activity
505 on other virtual consoles.  If you want that, then set this option to False.
506 (Or just lock the X console manually.)
507
508 The default value for this resource is True, on systems where it works.
509 .TP 8
510 .B overlayStderr\fP (class \fBBoolean\fP)
511 If \fBcaptureStderr\fP is True, and your server supports ``overlay'' visuals,
512 then the text will be written into one of the higher layers instead of into
513 the same layer as the running screenhack.  Set this to False to disable 
514 that (though you shouldn't need to.)
515 .TP 8
516 .B overlayTextForeground\fP (class \fBForeground\fP)
517 The foreground color used for the stdout/stderr text, if \fBcaptureStderr\fP
518 is true.  Default: Yellow.
519 .TP 8
520 .B overlayTextBackground\fP (class \fBBackground\fP)
521 The background color used for the stdout/stderr text, if \fBcaptureStderr\fP
522 is true.  Default: Black.
523 .TP 8
524 .B bourneShell\fP (class \fBBourneShell\fP)
525 The pathname of the shell that \fIxscreensaver\fP uses to start subprocesses.
526 This must be whatever your local variant of \fB/bin/sh\fP is: in particular,
527 it must not be \fBcsh\fP.
528 .SH COMMAND-LINE OPTIONS
529 .I xscreensaver
530 also accepts a few command-line options, mostly for use when debugging:
531 for normal operation, you should configure things via the \fI~/.xscreensaver\fP
532 file.
533 .TP 8
534 .B \-display \fIhost:display.screen\fP
535 The X display to use.  For displays with multiple screens, XScreenSaver
536 will manage all screens on the display simultaniously.
537 .TP 8
538 .B \-verbose
539 Same as setting the \fIverbose\fP resource to \fItrue\fP: print diagnostics
540 on stderr and on the xscreensaver window.
541 .TP 8
542 .B \-no-capture-stderr
543 Same as setting the \fIcaptureStderr\fP resource to \fIfalse\fP: do not
544 redirect the stdout and stderr streams to the xscreensaver window itself.
545 If xscreensaver is crashing, you might need to do this in order to see
546 the error message.
547 .SH HOW IT WORKS
548 When it is time to activate the screensaver, a full-screen black window is
549 created on each screen of the display.  Each window is created in such a way
550 that, to any subsequently-created programs, it will appear to be a ``virtual
551 root'' window.  Because of this, any program which draws on the root 
552 window (and which understands virtual roots) can be used as a screensaver.
553
554 When the user becomes active again, the screensaver windows are unmapped, and
555 the running subprocesses are killed by sending them \fBSIGTERM\fP.  This is 
556 also how the subprocesses are killed when the screensaver decides that it's
557 time to run a different demo: the old one is killed and a new one is launched.
558
559 Before launching a subprocess, \fIxscreensaver\fP stores an appropriate value
560 for \fB$DISPLAY\fP in the environment that the child will receive.  (This is
561 so that if you start \fIxscreensaver\fP with a \fI-display\fP argument, the
562 programs which \fIxscreensaver\fP launches will draw on the same display;
563 and so that the child will end up drawing on the appropriate screen of a
564 multi-headed display.)
565
566 When the screensaver turns off, or is killed, care is taken to restore 
567 the ``real'' virtual root window if there is one.  Because of this, it is
568 important that you not kill the screensaver process with \fIkill -9\fP if
569 you are running a virtual-root window manager.  If you kill it with \-9,
570 you may need to restart your window manager to repair the damage.  This
571 isn't an issue if you aren't running a virtual-root window manager.
572
573 For all the gory details, see the commentary at the top of xscreensaver.c.
574
575 You can control a running screensaver process by using the
576 .BR xscreensaver\-command (1)
577 program (which see.)
578 .SH POWER MANAGEMENT
579 Modern X servers contain support to power down the monitor after an idle
580 period.  If the monitor has powered down, then \fIxscreensaver\fP will
581 notice this (after a few minutes), and will not waste CPU by drawing 
582 graphics demos on a black screen.  An attempt will also be made to
583 explicitly power the monitor back up as soon as user activity is detected.
584
585 As of version 3.28 (Feb 2001), the \fI~/.xscreensaver\fP file controls the
586 configuration of your display's power management settings: if you have
587 used
588 .BR xset (1)
589 to change your power management settings, then xscreensaver will
590 override those changes with the values specified 
591 in \fI~/.xscreensaver\fP (or with its built-in defaults, if there
592 is no \fI~/.xscreensaver\fP file yet.)
593
594 To change your power management settings, run
595 .BR xscreensaver\-demo (1)
596 and change the various timeouts through the user interface.
597 Alternately, you can edit the \fI~/.xscreensaver\fP file directly.
598
599 If the power management section is grayed out in the
600 .BR xscreensaver\-demo (1)
601 window,  then that means that your X server does not support
602 the XDPMS extension, and so control over the monitor's power state
603 is not available.
604
605 If you're using a laptop, don't be surprised if changing the DPMS
606 settings has no effect: many laptops have monitor power-saving behavior
607 built in at a very low level that is invisible to Unix and X.  On such
608 systems, you can typically adjust the power-saving delays only by
609 changing settings in the BIOS in some hardware-specific way.
610
611 If DPMS seems not to be working with XFree86, make sure the "DPMS"
612 option is set in your \fI/etc/X11/XF86Config\fP file.  See the
613 .BR XF86Config (5)
614 manual for details.
615 .SH USING XDM(1)
616 You can run \fIxscreensaver\fP from your 
617 .BR xdm (1)
618 session, so that the screensaver will run even when nobody is logged 
619 in on the console.
620
621 The trick to using xscreensaver with \fIxdm\fP is this: keep in mind the 
622 two very different states in which xscreensaver will be running:
623 .RS 4
624 .TP 3
625 .B 1: Nobody logged in.
626
627 If you're thinking of running xscreensaver from XDM at all, then it's 
628 probably because you want graphics demos to be running on the console
629 when nobody is logged in there.  In this case, xscreensaver will function
630 only as a screen saver, not a screen locker: it doesn't make sense
631 for xscreensaver to lock the screen, since nobody is logged in yet!
632 The only thing on the screen is the XDM login prompt.
633 .TP 3
634 .B 2: Somebody logged in.
635
636 Once someone has logged in through the XDM login window, the situation is
637 very different.  For example: now it makes sense to lock the screen (and
638 prompt for the logged in user's password); and now xscreensaver should
639 consult that user's \fI~/.xscreensaver\fP file; and so on.
640 .RE
641
642 The difference between these two states comes down to a question of,
643 which user is the \fIxscreensaver\fP process running as?  For the first
644 state, it doesn't matter.  If you start \fIxscreensaver\fP in the usual
645 XDM way, then xscreensaver will probably end up running as root, which 
646 is fine for the first case (the ``nobody logged in'' case.)
647
648 However, once someone is logged in, running as root is no longer fine:
649 because xscreensaver will be consulting root's \fI.xscreensaver\fP file
650 instead of that of the logged in user, and won't be prompting for the
651 logged in user's password, and so on.  (This is not a security problem,
652 it's just not what you want.)
653
654 So, once someone has logged in, you want xscreensaver to be running as that
655 user.  The way to accomplish this is to kill the old xscreensaver process
656 and start a new one (as the new user.)
657
658 The simplest way to accomplish all of this is as follows:
659 .RS 4
660 .TP 3
661 .B 1: Launch xscreensaver before anyone logs in.
662
663 To the file \fI/usr/lib/X11/xdm/Xsetup\fP, add the lines
664 .EX
665 xhost +localhost
666 xscreensaver-command -exit
667 xscreensaver &
668 .EE
669 This will run xscreensaver as root, over the XDM login window.
670 Moving the mouse will cause the screen to un-blank, and allow the user
671 to type their password at XDM to log in.
672 .TP 3
673 .B 2: Restart xscreensaver when someone logs in.
674
675 Near the top of the file \fI/usr/lib/X11/xdm/Xsession\fP, add those same lines:
676 .EX
677 xscreensaver-command -exit
678 xscreensaver &
679 .EE
680 When someone logs in, this will kill off the existing (root) xscreensaver
681 process, and start a new one, running as the user who has just logged in.
682 If the user's .xscreensaver file requests locking, they'll get it.  They
683 will also get their own choice of timeouts, and graphics demos, and so on.
684
685 Alternately, each user could just put those lines in their 
686 personal \fI~/.xsession\fP files.
687 .RE
688
689 Make sure you have \fB$PATH\fP set up correctly in the \fIXsetup\fP 
690 and \fIXsession\fP scripts, or \fIxdm\fP won't be able to 
691 find \fIxscreensaver\fP, and/or \fIxscreensaver\fP won't be able to 
692 find its graphics demos.
693
694 (If your system does not seem to be executing the \fIXsetup\fP file, you
695 may need to configure it to do so: the traditional way to do this is
696 to make that file the value of the \fIDisplayManager*setup\fP resource
697 in the \fI/usr/lib/X11/xdm/xdm-config\fP file.  See the man page for
698 .BR xdm (1)
699 for more details.)
700
701 It is safe to run \fIxscreensaver\fP as root (as \fIxdm\fP is likely to do.)  
702 If run as root, \fIxscreensaver\fP changes its effective user and group ids 
703 to something safe (like \fI"nobody"\fP) before connecting to the X server
704 or launching user-specified programs.
705
706 An unfortunate side effect of this (important) security precaution is that
707 it may conflict with cookie-based authentication.
708
709 If you get "connection refused" errors when running \fIxscreensaver\fP
710 from \fIxdm\fP, then this probably means that you have
711 .BR xauth (1)
712 or some other security mechanism turned on.  One way around this is to
713 add \fB"xhost\ +localhost"\fP to \fIXsetup\fP, just before \fIxscreensaver\fP
714 is launched.  
715
716 Note that this will give access to the X server to anyone capable of logging
717 in to the local machine, so in some environments, this might not be 
718 appropriate.  If turning off file-system-based access control is not
719 acceptable, then running \fIxscreensaver\fP from the \fIXsetup\fP file
720 might not be possible, and xscreensaver will only work when running as
721 a normal, unprivileged user.
722
723 For more information on the X server's access control mechanisms, see the
724 man pages for
725 .BR X (1),
726 .BR Xsecurity (1),
727 .BR xauth (1),
728 and
729 .BR xhost (1).
730 .SH USING GDM(1)
731 Using xscreensaver with
732 .BR gdm (1)
733 is easy, because gdm has a configuration tool.  Just fire up
734 .BR gdmconfig (1)
735 and on the \fIBackground\fP page, type \fB"xscreensaver -nosplash"\fP into
736 the \fIBackground Program\fP field.  That will cause gdm to run xscreensaver
737 while nobody is logged in, and kill it as soon as someone does log in.
738 (The user will then be responsible for starting xscreensaver on their
739 own, if they want.)
740
741 Another way to accomplish the same thing is to edit the
742 file \fI/etc/X11/gdm/gdm.conf\fP to include:
743 .EX
744 BackgroundProgram=xscreensaver -nosplash
745 RunBackgroundProgramAlways=true
746 .EE
747 In this situation, the \fIxscreensaver\fP process will probably be running
748 as user \fIgdm\fP instead of \fIroot\fP.  You can configure the settings
749 for this nobody-logged-in state (timeouts, DPMS, etc.) by editing
750 the \fI~gdm/.xscreensaver\fP file.
751 .SH USING KDE (K DESKTOP ENVIRONMENT)
752 I understand that KDE has invented their own wrapper around xscreensaver,
753 that is inferior to 
754 .BR xscreensaver-demo (1)
755 in any number of ways.  I've never actually seen it, but I'm told that
756 this is the way you disable it:
757 .RS 4
758 .TP 3
759 \fB1: Switch off KDE's screen saver.\fP
760 Open the ``\fIControl Center\fP'' and
761 select the ``\fILook and Feel / Screensaver\fP'' page.
762 Turn off the ``\fIEnable Screensaver\fP'' checkbox.
763 .TP 3
764 \fB2: Find your Autostart directory.\fP
765 Open the ``\fILook and Feel / Desktop / Paths\fP'' page,
766 and see what your ``Autostart'' directory is set to: it will
767 probably be \fI~/.kde3/Autostart/\fP or something similar.
768 .TP 3
769 \fB3: Make xscreensaver be an Autostart program.\fP
770 Create a file in your autostart directory 
771 called \fIxscreensaver.desktop\fP that contains the following five lines:
772 .EX
773 [Desktop Entry]
774 Exec=xscreensaver
775 Name=XScreensaver
776 Type=Application
777 X-KDE-StartupNotify=false
778 .EE
779 .RE
780 .PP
781 Now use xscreensaver normally, controlling it via the usual
782 .BR xscreensaver-demo (1)
783 and
784 .BR xscreensaver-command (1)
785 mechanisms.
786 .SH USING CDE (COMMON DESKTOP ENVIRONMENT)
787 The easiest way to use \fIxscreensaver\fP on a system with CDE is to simply
788 switch off the built-in CDE screensaver, and use \fIxscreensaver\fP instead;
789 and second, to tell the front panel to run 
790 .BR xscreensaver\-command (1)
791 with the \fI\-lock\fP option when the \fILock\fP icon is clicked.
792
793 To accomplish this involves five steps:
794 .RS 4
795 .TP 3
796 \fB1: Switch off CDE's locker\fP
797 Do this by turning off ``\fIScreen Saver and Screen Lock\fP'' in the
798 Screen section of the Style Manager.
799 .TP 3
800 \fB2: Edit sessionetc\fP
801 Edit the file \fI~/.dt/sessions/sessionetc\fP and add to it the line
802 .EX
803 xscreensaver &
804 .EE
805 And make sure the sessionetc file is executable.
806 This will cause \fIxscreensaver\fP to be launched when you log in.
807 (As always, make sure that xscreensaver and the graphics demos are on
808 your \fB$PATH\fP; the path needs to be set in \fI.cshrc\fP 
809 and/or \fI.dtprofile\fP, not \fI.login\fP.)
810 .TP 3
811 \fB3: Create XScreenSaver.dt\fP
812 Create a file called \fI~/.dt/types/XScreenSaver.dt\fP with the following
813 contents:
814 .EX
815 ACTION XScreenSaver
816 {
817   LABEL         XScreenSaver
818   TYPE          COMMAND
819   EXEC_STRING   xscreensaver-command -lock
820   ICON          Dtkey
821   WINDOW_TYPE   NO_STDIO
822 }
823 .EE
824 This defines a ``lock'' command for the CDE front panel, that knows how
825 to talk to \fIxscreensaver\fP.
826 .TP 3
827 \fB4: Create Lock.fp\fP
828 Create a file called \fI~/.dt/types/Lock.fp\fP with the following
829 contents:
830 .EX
831 CONTROL Lock
832 {
833   TYPE             icon
834   CONTAINER_NAME   Switch
835   CONTAINER_TYPE   SWITCH
836   POSITION_HINTS   1
837   ICON             Fplock
838   LABEL            Lock
839   PUSH_ACTION      XScreenSaver
840   HELP_TOPIC       FPOnItemLock
841   HELP_VOLUME      FPanel
842 }
843 .EE
844 This associates the CDE front panel ``Lock'' icon with the lock command
845 we just defined in step 3.
846 .TP 3
847 \fB5: Restart\fP
848 Select ``\fIRestart Workspace Manager\fP'' from the popup menu to make
849 your changes take effect.  If things seem not to be working, check the
850 file \fI~/.dt/errorlog\fP for error messages.
851 .RE
852 .SH USING HP VUE (VISUAL USER ENVIRONMENT)
853 Since CDE is a descendant of VUE, the instructions for using xscreensaver
854 under VUE are similar to the above:
855 .RS 4
856 .TP 3
857 \fB1: Switch off VUE's locker\fP
858 Open the ``\fIStyle Manager\fP'' and select ``\fIScreen\fP.''
859 Turn off ``\fIScreen Saver and Screen Lock\fP'' option.
860 .TP 3
861 \fB2: Make sure you have a Session\fP
862 Next, go to the Style Manager's, ``\fIStartup\fP'' page.
863 Click on ``\fISet Home Session\fP'' to create a session, then 
864 on ``\fIReturn to Home Session\fP'' to select this session each
865 time you log in.
866 .TP 3
867 \fB3: Edit vue.session\fP
868 Edit the file \fI~/.vue/sessions/home/vue.session\fP and add to it
869 the line
870 .EX
871 vuesmcmd -screen 0 -cmd "xscreensaver"
872 .EE
873 This will cause \fIxscreensaver\fP to be launched when you log in.
874 (As always, make sure that xscreensaver and the graphics demos are on
875 your \fB$PATH\fP; the path needs to be set in \fI.cshrc\fP
876 and/or \fI.profile\fP, not \fI.login\fP.)
877 .TP 3
878 \fB3: Edit vuewmrc\fP
879 Edit the file \fI~/.vue/vuewmrc\fP and add (or change) the Lock control:
880 .EX
881 CONTROL Lock
882 {
883   TYPE         button
884   IMAGE        lock
885   PUSH_ACTION  f.exec "xscreensaver-command -lock"
886   HELP_TOPIC   FPLock
887 }
888 .EE
889 This associates the VUE front panel ``Lock'' icon with the xscreensaver 
890 lock command.
891 .RE
892 .PP
893 .SH BUGS
894 Bugs?  There are no bugs.  Ok, well, maybe.  If you find one, please let
895 me know.  http://www.jwz.org/xscreensaver/bugs.html explains how to
896 construct the most useful bug reports.
897 .TP 8
898 .B Locking and XDM
899 If xscreensaver has been launched from 
900 .BR xdm (1)
901 before anyone has logged in, you will need to kill and then restart the
902 xscreensaver daemon after you have logged in, or you will be confused by
903 the results.  (For example, locking won't work, and your \fI~/.xscreensaver\fP
904 file will be ignored.)
905
906 When you are logged in, you want the \fIxscreensaver\fP daemon to be 
907 running under \fIyour\fP user id, not as root or some other user.
908
909 If it has already been started by \fIxdm\fP, you can kill it by sending
910 it the \fBexit\fP command, and then re-launching it as you, by putting
911 something like the following in your personal X startup script:
912 .EX
913 xscreensaver-command -exit
914 xscreensaver &
915 .EE
916 The ``\fIUsing XDM(1)\fP'' section, above, goes into more detail, and explains
917 how to configure the system to do this for all users automatically.
918 .TP 8
919 .B Locking and root logins
920 In order for it to be safe for xscreensaver to be launched by \fIxdm\fP,
921 certain precautions had to be taken, among them that xscreensaver never
922 runs as \fIroot\fP.  In particular, if it is launched as root (as \fIxdm\fP
923 is likely to do), xscreensaver will disavow its privileges, and switch 
924 itself to a safe user id (such as \fInobody\fP.)
925
926 An implication of this is that if you log in as \fIroot\fP on the console, 
927 xscreensaver will refuse to lock the screen (because it can't tell
928 the difference between \fIroot\fP being logged in on the console, and a
929 normal user being logged in on the console but xscreensaver having been 
930 launched by the
931 .BR xdm (1)
932 .I Xsetup
933 file.)
934
935 The solution to this is simple: you shouldn't be logging in on the console
936 as \fIroot\fP in the first place!  (What, are you crazy or something?)  
937
938 Proper Unix hygiene dictates that you should log in as yourself, and
939 .BR su (1)
940 to \fIroot\fP as necessary.  People who spend their day logged in
941 as \fIroot\fP are just begging for disaster.
942 .TP 8
943 .B XAUTH and XDM
944 For xscreensaver to work when launched by
945 .BR xdm (1),
946 programs running on the local machine as user \fI"nobody"\fP must be
947 able to connect to the X server.  This means that if you want to run
948 xscreensaver on the console while nobody is logged in, you may need
949 to disable cookie-based access control (and allow all users who can log
950 in to the local machine to connect to the display.)  
951
952 You should be sure that this is an acceptable thing to do in your
953 environment before doing it.  See the ``\fIUsing XDM(1)\fP'' section, 
954 above, for more details.
955 .TP 8
956 .B Passwords
957 If you get an error message at startup like ``couldn't get password
958 of \fIuser\fP'' then this probably means that you're on a system in which 
959 the
960 .BR getpwent (3)
961 library routine can only be effectively used by root.  If this is the case, 
962 then \fIxscreensaver\fP must be installed as setuid to root in order for
963 locking to work.  Care has been taken to make this a safe thing to do.  
964
965 It also may mean that your system uses shadow passwords instead of the standard
966 .BR getpwent (3)
967 interface; in that case, you may need to change some options 
968 with \fIconfigure\fP and recompile.
969
970 If you change your password after xscreensaver has been launched, it will
971 continue using your old password to unlock the screen until xscreensaver
972 is restarted.  On some systems, it may accept \fIboth\fP your old and new
973 passwords.  So, after you change your password, you'll have to do
974 .EX
975 xscreensaver-command -restart
976 .EE
977 to make \fIxscreensaver\fP notice.
978 .TP 8
979 .B PAM Passwords
980 If your system uses PAM (Pluggable Authentication Modules), then in order
981 for xscreensaver to use PAM properly, PAM must be told about xscreensaver.
982 The xscreensaver installation process should update the PAM data (on Linux,
983 by creating the file \fI/etc/pam.d/xscreensaver\fP for you, and on Solaris, 
984 by telling you what lines to add to the \fI/etc/pam.conf\fP file.)  
985
986 If the PAM configuration files do not know about xscreensaver, then 
987 you \fImight\fP be in a situation where xscreensaver will refuse to ever
988 unlock the screen.
989
990 This is a design flaw in PAM (there is no way for a client to tell the
991 difference between PAM responding ``I have never heard of your module,''
992 and responding, ``you typed the wrong password.'')  As far as I can tell,
993 there is no way for xscreensaver to automatically work around this, or
994 detect the problem in advance, so if you have PAM, make sure it is
995 configured correctly!
996 .TP 8
997 .B Colormap lossage: TWM
998 The \fBinstallColormap\fP option doesn't work very well with the
999 .BR twm (1)
1000 window manager and its descendants, on 8-bit screens.
1001
1002 There is a race condition between the screensaver and this window manager,
1003 which can result in the screensaver's colormap not getting installed
1004 properly, meaning the graphics hacks will appear in essentially random
1005 colors.  (If the screen goes white instead of black, this is probably why.)
1006
1007 The
1008 .BR mwm (1)
1009 and
1010 .BR olwm (1)
1011 window managers don't have this problem.  The race condition exists
1012 because X (really, ICCCM) does not provide a way for an OverrideRedirect 
1013 window to have its own colormap, short of grabbing the server (which is 
1014 neither a good idea, nor really possible with the current design.)  What 
1015 happens is that, as soon as xscreensaver installs its colormap, \fBtwm\fP 
1016 responds to the resultant \fBColormapNotify\fP event by re-instaling the 
1017 default colormap.  Apparently, \fBtwm\fP doesn't \fIalways\fP do this; it 
1018 seems to do it regularly if the screensaver is activated from a menu item, 
1019 but seems to not do it if the screensaver comes on of its own volition, or 
1020 is activated from another console.  
1021 .RS 8
1022 .TP 4
1023 .B Attention, window manager authors!
1024 You should only call
1025 .BR XInstallColormap (3)
1026 in response to user events.  That is, it is appropriate to install a colormap
1027 in response to \fBFocusIn\fP, \fBFocusOut\fP, \fBEnterNotify\fP, 
1028 and \fBLeaveNotify\fP events; but it is not appropriate to call it in
1029 response to \fBColormapNotify\fP events.  If you install colormaps in
1030 response to \fIapplication\fP actions as well as in response to \fIuser\fP
1031 actions, then you create the situation where it is impossible for 
1032 override-redirect applications (such as xscreensaver) to display their
1033 windows in the proper colors.
1034 .RE
1035 .TP 8
1036 .B Colormap lossage: XV, XAnim, XEarth
1037 Some programs don't operate properly on visuals other than the default one,
1038 or with colormaps other than the default one.  See the discussion of the
1039 magic "default-n" visual name in the description of the \fBprograms\fP 
1040 resource in the \fIConfiguration\fP section.  When programs only work with
1041 the default colormap, you need to use a syntax like this:
1042 .EX
1043    default-n: xv -root image-1.gif -quit  \\n\\
1044    default-n: xearth -nostars -wait 0     \\n\\
1045 .EE
1046 It would also work to turn off the \fBinstallColormap\fP option altogether,
1047 but that would deny extra colors to those programs that \fIcan\fP take
1048 advantage of them.
1049 .TP 8
1050 .B Machine Load
1051 Although this program ``nices'' the subprocesses that it starts, 
1052 graphics-intensive subprograms can still overload the machine by causing
1053 the X server process itself (which is not ``niced'') to consume many
1054 cycles.  Care has been taken in all the modules shipped with xscreensaver
1055 to sleep periodically, and not run full tilt, so as not to cause
1056 appreciable load.
1057
1058 However, if you are running the OpenGL-based screen savers on a machine
1059 that does not have a video card with 3D acceleration, they \fIwill\fP
1060 make your machine slow, despite
1061 .BR nice (1).
1062
1063 Your options are: don't use the OpenGL display modes; or, collect the
1064 spare change hidden under the cushions of your couch, and use it to
1065 buy a video card manufactured after 1998.  (It doesn't even need to be
1066 \fIfast\fP 3D hardware: the problem will be fixed if there is any
1067 3D hardware \fIat all.\fP)
1068 .TP 8
1069 .B XFree86's Magic Keystrokes
1070 The XFree86 X server traps certain magic keystrokes before client programs ever
1071 see them.  Two that are of note are Ctrl+Alt+Backspace, which causes 
1072 the X server to exit; and Ctrl+Alt+F\fIn\fP, which switches virtual consoles.
1073 The X server will respond to these keystrokes even if xscreensaver has the
1074 screen locked.  Depending on your setup, you might consider this a problem.
1075
1076 Unfortunately, there is no way for xscreensaver itself to override the
1077 interpretation of these keys.  If you want to disable Ctrl+Alt+Backspace
1078 globally, you need to set the \fIDontZap\fP flag in 
1079 your \fI/etc/X11/XF86Config\fP file.  To globally disable VT switching,
1080 you can set the \fIDontVTSwitch\fP flag.  See the
1081 .BR XF86Config (5)
1082 manual for details.
1083 .TP 8
1084 .B MIT Extension and Fading
1085 The \fBMIT-SCREEN-SAVER\fP extension is junk.  Don't use it.
1086
1087 When using the \fBMIT-SCREEN-SAVER\fP extension in conjunction with 
1088 the \fBfade\fP option, you'll notice an unattractive flicker just before 
1089 the fade begins.  This is because the server maps a black window just before 
1090 it tells the \fIxscreensaver\fP process to activate.  The \fIxscreensaver\fP 
1091 process immediately unmaps that window, but this results in a flicker.  I 
1092 haven't figured a way  to get around this; it seems to be a fundamental
1093 property of the (mis-) design of this server extension.
1094
1095 It sure would be nice if someone would implement the \fBSGI SCREEN_SAVER\fP
1096 extension in XFree86; it's dead simple, and works far better than the
1097 overengineered and broken \fBMIT-SCREEN-SAVER\fP extension.
1098 .TP 8
1099 .B Keyboard LEDs
1100 If \fIprocInterrupts\fP is on (which is the default on Linux systems) and
1101 you're using some program that toggles the state of your keyboard LEDs,
1102 xscreensaver won't work right: turning those LEDs on or off causes a 
1103 keyboard interrupt, which xscreensaver will interpret as user activity.
1104 So if you're using such a program, set the \fIprocInterrupts\fP resource
1105 to False.
1106 .TP 8
1107 .B Extensions
1108 If you are not making use of one of the server extensions (\fBXIDLE\fP,
1109 \fBSGI SCREEN_SAVER\fP, or \fBMIT-SCREEN-SAVER\fP), then it is possible, in 
1110 rare situations, for \fIxscreensaver\fP to interfere with event propagation 
1111 and make another X program malfunction.  For this to occur, that other
1112 application would need to \fInot\fP select \fBKeyPress\fP events on its 
1113 non-leaf windows within the first 30 seconds of their existence, but then 
1114 select for them later.  In this case, that client \fImight\fP fail to receive 
1115 those events.  This isn't very likely, since programs generally select a
1116 constant set of events immediately after creating their windows and then 
1117 don't change them, but this is the reason that it's a good idea to install 
1118 and use one of the server extensions instead, to work around this shortcoming
1119 in the X protocol.
1120
1121 In all these years, I've not heard of even a single case of this happening,
1122 but it is theoretically possible, so I'm mentioning it for completeness...
1123 .SH ENVIRONMENT
1124 .PP
1125 .TP 8
1126 .B DISPLAY
1127 to get the default host and display number, and to inform the sub-programs
1128 of the screen on which to draw.
1129 .TP 8
1130 .B PATH
1131 to find the sub-programs to run.
1132 .TP 8
1133 .B HOME
1134 for the directory in which to read the \fI.xscreensaver\fP file.
1135 .TP 8
1136 .B XENVIRONMENT
1137 to get the name of a resource file that overrides the global resources
1138 stored in the RESOURCE_MANAGER property.
1139 .SH UPGRADES
1140 The latest version of xscreensaver, an online version of this manual,
1141 and a FAQ can always be found at http://www.jwz.org/xscreensaver/
1142 .SH SEE ALSO
1143 .BR X (1),
1144 .BR Xsecurity (1),
1145 .BR xauth (1),
1146 .BR xscreensaver\-demo (1),
1147 .BR xscreensaver\-command (1),
1148 .BR xscreensaver\-gl\-helper (1),
1149 .BR xscreensaver\-getimage (1),
1150 .BR xdm (1),
1151 .BR gdm (1),
1152 .BR xset (1),
1153 .BR xhost (1).
1154 .BR anemone (1),
1155 .BR ant (1),
1156 .BR apollonian (1),
1157 .BR atlantis (1),
1158 .BR attraction (1),
1159 .BR barcode (1),
1160 .BR blaster (1),
1161 .BR blitspin (1),
1162 .BR bouboule (1),
1163 .BR boxed (1),
1164 .BR braid (1),
1165 .BR bsod (1),
1166 .BR bubble3d (1),
1167 .BR bubbles (1),
1168 .BR bumps (1),
1169 .BR cage (1),
1170 .BR ccurve (1),
1171 .BR circuit (1),
1172 .BR compass (1),
1173 .BR coral (1),
1174 .BR cosmos (1),
1175 .BR critical (1),
1176 .BR crystal (1),
1177 .BR cubenetic (1),
1178 .BR cynosure (1),
1179 .BR dangerball (1),
1180 .BR decayscreen (1),
1181 .BR deco (1),
1182 .BR deluxe (1),
1183 .BR demon (1),
1184 .BR discrete (1),
1185 .BR distort (1),
1186 .BR drift (1),
1187 .BR electricsheep (1),
1188 .BR endgame (1),
1189 .BR engine (1),
1190 .BR epicycle (1),
1191 .BR eruption (1),*
1192 .BR euler2d (1),
1193 .BR extrusion (1),
1194 .BR fadeplot (1),
1195 .BR flag (1),
1196 .BR flame (1),
1197 .BR flipscreen3d (1),
1198 .BR flow (1),
1199 .BR fluidballs (1),
1200 .BR flurry (1),
1201 .BR forest (1),
1202 .BR galaxy (1),
1203 .BR gears (1),
1204 .BR gflux (1),
1205 .BR glblur (1),
1206 .BR glforestfire (1),
1207 .BR glplanet (1),
1208 .BR glsnake (1),
1209 .BR gltext (1),
1210 .BR goban (1),
1211 .BR goop (1),
1212 .BR grav (1),
1213 .BR greynetic (1),
1214 .BR halftone (1),
1215 .BR halo (1),
1216 .BR helix (1),
1217 .BR hopalong (1),
1218 .BR hyperball (1),
1219 .BR hypercube (1),
1220 .BR ifs (1),
1221 .BR imsmap (1),
1222 .BR interference (1),
1223 .BR jigsaw (1),
1224 .BR juggle (1),
1225 .BR julia (1),
1226 .BR kaleidescope (1),
1227 .BR kumppa (1),
1228 .BR lament (1),
1229 .BR laser (1),
1230 .BR lavalite (1),
1231 .BR lightning (1),
1232 .BR lisa (1),
1233 .BR lissie (1),
1234 .BR lmorph (1),
1235 .BR loop (1),
1236 .BR maze (1),
1237 .BR menger (1),
1238 .BR metaballs (1),
1239 .BR moebius (1),
1240 .BR moire (1),
1241 .BR moire2 (1),
1242 .BR molecule (1),
1243 .BR morph3d (1),
1244 .BR mountain (1),
1245 .BR munch (1),
1246 .BR nerverot (1),
1247 .BR noseguy (1),
1248 .BR pedal (1),
1249 .BR penetrate (1),
1250 .BR penrose (1),
1251 .BR petri (1),
1252 .BR phosphor (1),
1253 .BR pipes (1),
1254 .BR polyominoes (1),
1255 .BR popsquares (1),
1256 .BR pulsar (1),
1257 .BR pyro (1),
1258 .BR qix (1),
1259 .BR queens (1),
1260 .BR rd-bomb (1),
1261 .BR ripples (1),
1262 .BR rocks (1),
1263 .BR rorschach (1),
1264 .BR rotor (1),
1265 .BR rotzoomer (1),
1266 .BR rubik (1),
1267 .BR sballs (1),
1268 .BR shadebobs (1),
1269 .BR sierpinski (1),
1270 .BR sierpinski3d (1),
1271 .BR slidescreen (1),
1272 .BR slip (1),
1273 .BR sonar (1),
1274 .BR speedmine (1),
1275 .BR sphere (1),
1276 .BR sphereEversion (1),
1277 .BR spheremonics (1),
1278 .BR spiral (1),
1279 .BR spotlight (1),
1280 .BR sproingies (1),
1281 .BR squiral (1),
1282 .BR ssystem (1),
1283 .BR stairs (1),
1284 .BR starfish (1),
1285 .BR starwars (1),
1286 .BR stonerview (1),
1287 .BR strange (1),
1288 .BR superquadrics (1),
1289 .BR swirl (1),
1290 .BR t3d (1),
1291 .BR thornbird (1),
1292 .BR triangle (1),
1293 .BR truchet (1),
1294 .BR twang (1),
1295 .BR vermiculate (1),
1296 .BR vidwhacker (1),
1297 .BR vines (1),
1298 .BR wander (1),
1299 .BR webcollage (1),
1300 .BR whirlwindwarp (1),
1301 .BR whirlygig (1),
1302 .BR worm (1),
1303 .BR xaos (1),
1304 .BR xdaliclock (1),
1305 .BR xearth (1),
1306 .BR xfishtank (1),
1307 .BR xflame (1),
1308 .BR xjack (1),
1309 .BR xlyap (1),
1310 .BR xmatrix (1),
1311 .BR xmountains (1),
1312 .BR xrayswarm (1),
1313 .BR xsnow (1),
1314 .BR xspirograph (1),
1315 .BR xteevee (1),
1316 .BR zoom (1)
1317 .SH COPYRIGHT
1318 Copyright \(co 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
1319 2000, 2001, 2002, 2003, 2004 by Jamie Zawinski.  Permission to use, copy,
1320 modify, distribute, and sell this software and its documentation for
1321 any purpose is hereby granted without fee, provided that the above
1322 copyright notice appear in all copies and that both that copyright
1323 notice and this permission notice appear in supporting documentation.
1324 No representations are made about the suitability of this software for
1325 any purpose.  It is provided "as is" without express or implied
1326 warranty.
1327 .SH AUTHOR
1328 Jamie Zawinski <jwz@jwz.org>.  Written in late 1991; version 1.0 posted
1329 to comp.sources.x on 17-Aug-1992.
1330
1331 Please let me know if you find any bugs or make any improvements.
1332 .SH ACKNOWLEDGEMENTS
1333 Thanks to Angela Goodman for the XScreenSaver logo.
1334
1335 Thanks to the many people who have contributed graphics demos to the package.
1336
1337 Thanks to David Wojtowicz for implementing \fIlockTimeout\fP.
1338
1339 Thanks to Martin Kraemer for adding support for shadow passwords and
1340 locking-disabled diagnostics.
1341
1342 Thanks to Patrick Moreau for the VMS port.
1343
1344 Thanks to Nat Lanza for the Kerberos support.
1345
1346 Thanks to Bill Nottingham for the initial PAM support.
1347
1348 And thanks to Jon A. Christopher for implementing the Athena dialog
1349 support, back in the days before Lesstif or Gtk were viable alternatives
1350 to Motif.