http://nanonyme.dy.fi/mirrors/hvl/distfiles/xscreensaver/xscreensaver-5.03.tar.gz
[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 "20-Mar-2005 (4.21)" "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 GetViewPortIsFullOfLies\fP (class \fBBoolean\fP)
313 Set this to true if the xscreensaver window doesn't cover the whole screen.
314 This works around a longstanding XFree86 bug #421.  See the 
315 xscreensaver FAQ for details.
316 .TP 8
317 .B font\fP (class \fBFont\fP)
318 The font used for the stdout/stderr text, if \fBcaptureStderr\fP is true.
319 Default \fB*\-medium\-r\-*\-140\-*\-m\-*\fP (a 14 point fixed-width font.)
320 .TP 8
321 .B mode\fP (class \fBMode\fP)
322 Controls the behavior of xscreensaver.  Legal values are:
323 .RS 8
324 .TP 8
325 .B random
326 When blanking the screen, select a random display mode from among those
327 that are enabled and applicable.  This is the default.
328 .TP 8
329 .B random-same
330 Like \fIrandom\fP, but if there are multiple screens, each screen
331 will run the \fIsame\fP random display mode, instead of each screen
332 running a different one.
333 .TP 8
334 .B one
335 When blanking the screen, only ever use one particular display mode (the
336 one indicated by the \fIselected\fP setting.)
337 .TP 8
338 .B blank
339 When blanking the screen, just go black: don't run any graphics hacks.
340 .TP 8
341 .B off
342 Don't ever blank the screen, and don't ever allow the monitor to power down.
343
344 .RE
345 .TP 8
346 .B selected\fP (class \fBInteger\fP)
347 When \fImode\fP is set to \fIone\fP, this is the one, indicated by its
348 index in the \fIprograms\fP list.  You're crazy if you count them and
349 set this number by hand: let
350 .BR xscreensaver\-demo (1)
351 do it for you!
352 .TP 8
353 .B programs\fP (class \fBPrograms\fP)
354 The graphics hacks which \fIxscreensaver\fP runs when the user is idle.
355 The value of this resource is a multi-line string, one \fIsh\fP-syntax
356 command per line.  Each line must contain exactly one command: no
357 semicolons, no ampersands.
358
359 When the screensaver starts up, one of these is selected (according to
360 the \fBmode\fP setting), and run.  After the \fIcycle\fP period
361 expires, it is killed, and another is selected and run.
362
363 If a line begins with a dash (-) then that particular program is
364 disabled: it won't be selected at random (though you can still select
365 it explicitly using the
366 .BR xscreensaver\-demo (1)
367 program.)
368
369 If all programs are disabled, then the screen will just be made blank,
370 as when \fImode\fP is set to \fIblank\fP.
371
372 To disable a program, you must mark it as disabled with a dash instead
373 of removing it from the list.  This is because the system-wide (app-defaults)
374 and per-user (.xscreensaver) settings are merged together, and if a user
375 just \fIdeletes\fP an entry from their programs list, but that entry still
376 exists in the system-wide list, then it will come back.  However, if the
377 user \fIdisables\fP it, then their setting takes precedence.
378
379 If the display has multiple screens, then a different program will be run
380 for each screen.  (All screens are blanked and unblanked simultaneously.)
381
382 Note that you must escape the newlines; here is an example of how you
383 might set this in your \fI~/.xscreensaver\fP file:
384
385 .RS 8
386 .EX
387 programs:  \\
388        qix -root                          \\n\\
389        ico -r -faces -sleep 1 -obj ico    \\n\\
390        xdaliclock -builtin2 -root         \\n\\
391        xv -root -rmode 5 image.gif -quit  \\n
392 .EE
393 .RE
394 .RS 8
395 Make sure your \fB$PATH\fP environment variable is set up correctly
396 \fIbefore\fP xscreensaver is launched, or it won't be able to find the
397 programs listed in the \fIprograms\fP resource.
398
399 To use a program as a screensaver, two things are required: that that
400 program draw on the root window (or be able to be configured to draw on
401 the root window); and that that program understand ``virtual root''
402 windows, as used by virtual window managers such as
403 .BR tvtwm (1).
404 (Generally, this is accomplished by just including the \fI"vroot.h"\fP 
405 header file in the program's source.)
406
407 If there are some programs that you want to run only when using a color
408 display, and others that you want to run only when using a monochrome
409 display, you can specify that like this:
410 .EX
411        mono:   mono-program  -root        \\n\\
412        color:  color-program -root        \\n\\
413 .EE
414 .RE
415 .RS 8
416 More generally, you can specify the kind of visual that should be used for
417 the window on which the program will be drawing.  For example, if one 
418 program works best if it has a colormap, but another works best if it has
419 a 24-bit visual, both can be accommodated:
420 .EX
421        PseudoColor: cmap-program  -root   \\n\\
422        TrueColor:   24bit-program -root   \\n\\
423 .EE
424 .RE
425 .RS 8
426 In addition to the symbolic visual names described above (in the discussion
427 of the \fIvisualID\fP resource) one other visual name is supported in
428 the \fIprograms\fP list:
429 .RS 1
430 .TP 4
431 .B default-n
432 This is like \fBdefault\fP, but also requests the use of the default colormap,
433 instead of a private colormap.  (That is, it behaves as if 
434 the \fI\-no\-install\fP command-line option was specified, but only for
435 this particular hack.)  This is provided because some third-party programs
436 that draw on the root window (notably: 
437 .BR xv (1),
438 and
439 .BR xearth (1))
440 make assumptions about the visual and colormap of the root window: 
441 assumptions which xscreensaver can violate.
442
443 .RE
444 If you specify a particular visual for a program, and that visual does not
445 exist on the screen, then that program will not be chosen to run.  This
446 means that on displays with multiple screens of different depths, you can
447 arrange for appropriate hacks to be run on each.  For example, if one screen
448 is color and the other is monochrome, hacks that look good in mono can be 
449 run on one, and hacks that only look good in color will show up on the other.
450 .RE
451 .PP
452 .PP
453 You shouldn't ever need to change the following resources:
454 .PP
455 .TP 8
456 .B pointerPollTime\fP (class \fBTime\fP)
457 When server extensions are not in use, this controls how 
458 frequently \fIxscreensaver\fP checks to see if the mouse position or buttons
459 have changed.  Default 5 seconds.
460 .TP 8
461 .B pointerHysteresis\fP (class \fBInteger\fP)
462 If the mouse moves less than this-many pixels in a second, ignore it
463 (do not consider that to be "activity.")  This is so that the screen
464 doesn't un-blank (or fail to blank) just because you bumped the desk.
465 Default: 10 pixels.
466 .TP 8
467 .B windowCreationTimeout\fP (class \fBTime\fP)
468 When server extensions are not in use, this controls the delay between when 
469 windows are created and when \fIxscreensaver\fP selects events on them.
470 Default 30 seconds.
471 .TP 8
472 .B initialDelay\fP (class \fBTime\fP)
473 When server extensions are not in use, \fIxscreensaver\fP will wait this many
474 seconds before selecting events on existing windows, under the assumption that 
475 \fIxscreensaver\fP is started during your login procedure, and the window 
476 state may be in flux.  Default 0.  (This used to default to 30, but that was
477 back in the days when slow machines and X terminals were more common...)
478 .RE
479 .PP
480 There are a number of different X server extensions which can make
481 xscreensaver's job easier.  The next few resources specify whether these
482 extensions should be utilized if they are available.
483 .TP 8
484 .B sgiSaverExtension\fP (class \fBBoolean\fP)
485 This resource controls whether the SGI \fBSCREEN_SAVER\fP server extension
486 will be used to decide whether the user is idle.  This is the default 
487 if \fIxscreensaver\fP has been compiled with support for this 
488 extension (which is the default on SGI systems.).  If it is available, 
489 the \fBSCREEN_SAVER\fP method is faster and more reliable than what will
490 be done otherwise, so use it if you can.  (This extension is only available
491 on Silicon Graphics systems, unfortunately.)
492 .TP 8
493 .B mitSaverExtension\fP (class \fBBoolean\fP)
494 This resource controls whether the \fBMIT\-SCREEN\-SAVER\fP server extension
495 will be used to decide whether the user is idle.  However, the default for
496 this resource is \fIfalse\fP, because even if this extension is available,
497 it is flaky (and it also makes the \fBfade\fP option not work properly.)
498 Use of this extension is strongly discouraged.  Support for it will
499 probably be removed eventually.
500 .TP 8
501 .B xidleExtension\fP (class \fBBoolean\fP)
502 This resource controls whether the \fBXIDLE\fP server extension will be
503 used to decide whether the user is idle.  This is the default 
504 if \fIxscreensaver\fP has been compiled with support for this extension.
505 (This extension is only available for X11R4 and X11R5 systems, unfortunately.)
506 .TP 8
507 .B procInterrupts\fP (class \fBBoolean\fP)
508 This resource controls whether the \fB/proc/interrupts\fP file should be
509 consulted to decide whether the user is idle.  This is the default
510 if \fIxscreensaver\fP has been compiled on a system which supports this
511 mechanism (i.e., Linux systems.)  
512
513 The benefit to doing this is that \fIxscreensaver\fP can note that the user
514 is active even when the X console is not the active one: if the user is 
515 typing in another virtual console, xscreensaver will notice that and will
516 fail to activate.  For example, if you're playing Quake in VGA-mode, 
517 xscreensaver won't wake up in the middle of your game and start competing 
518 for CPU.
519
520 The drawback to doing this is that perhaps you \fIreally do\fP want idleness
521 on the X console to cause the X display to lock, even if there is activity
522 on other virtual consoles.  If you want that, then set this option to False.
523 (Or just lock the X console manually.)
524
525 The default value for this resource is True, on systems where it works.
526 .TP 8
527 .B overlayStderr\fP (class \fBBoolean\fP)
528 If \fBcaptureStderr\fP is True, and your server supports ``overlay'' visuals,
529 then the text will be written into one of the higher layers instead of into
530 the same layer as the running screenhack.  Set this to False to disable 
531 that (though you shouldn't need to.)
532 .TP 8
533 .B overlayTextForeground\fP (class \fBForeground\fP)
534 The foreground color used for the stdout/stderr text, if \fBcaptureStderr\fP
535 is true.  Default: Yellow.
536 .TP 8
537 .B overlayTextBackground\fP (class \fBBackground\fP)
538 The background color used for the stdout/stderr text, if \fBcaptureStderr\fP
539 is true.  Default: Black.
540 .TP 8
541 .B bourneShell\fP (class \fBBourneShell\fP)
542 The pathname of the shell that \fIxscreensaver\fP uses to start subprocesses.
543 This must be whatever your local variant of \fB/bin/sh\fP is: in particular,
544 it must not be \fBcsh\fP.
545 .SH COMMAND-LINE OPTIONS
546 .I xscreensaver
547 also accepts a few command-line options, mostly for use when debugging:
548 for normal operation, you should configure things via the \fI~/.xscreensaver\fP
549 file.
550 .TP 8
551 .B \-display \fIhost:display.screen\fP
552 The X display to use.  For displays with multiple screens, XScreenSaver
553 will manage all screens on the display simultaniously.
554 .TP 8
555 .B \-verbose
556 Same as setting the \fIverbose\fP resource to \fItrue\fP: print diagnostics
557 on stderr and on the xscreensaver window.
558 .TP 8
559 .B \-no-capture-stderr
560 Same as setting the \fIcaptureStderr\fP resource to \fIfalse\fP: do not
561 redirect the stdout and stderr streams to the xscreensaver window itself.
562 If xscreensaver is crashing, you might need to do this in order to see
563 the error message.
564 .SH HOW IT WORKS
565 When it is time to activate the screensaver, a full-screen black window is
566 created on each screen of the display.  Each window is created in such a way
567 that, to any subsequently-created programs, it will appear to be a ``virtual
568 root'' window.  Because of this, any program which draws on the root 
569 window (and which understands virtual roots) can be used as a screensaver.
570
571 When the user becomes active again, the screensaver windows are unmapped, and
572 the running subprocesses are killed by sending them \fBSIGTERM\fP.  This is 
573 also how the subprocesses are killed when the screensaver decides that it's
574 time to run a different demo: the old one is killed and a new one is launched.
575
576 Before launching a subprocess, \fIxscreensaver\fP stores an appropriate value
577 for \fB$DISPLAY\fP in the environment that the child will receive.  (This is
578 so that if you start \fIxscreensaver\fP with a \fI-display\fP argument, the
579 programs which \fIxscreensaver\fP launches will draw on the same display;
580 and so that the child will end up drawing on the appropriate screen of a
581 multi-headed display.)
582
583 When the screensaver turns off, or is killed, care is taken to restore 
584 the ``real'' virtual root window if there is one.  Because of this, it is
585 important that you not kill the screensaver process with \fIkill -9\fP if
586 you are running a virtual-root window manager.  If you kill it with \-9,
587 you may need to restart your window manager to repair the damage.  This
588 isn't an issue if you aren't running a virtual-root window manager.
589
590 For all the gory details, see the commentary at the top of xscreensaver.c.
591
592 You can control a running screensaver process by using the
593 .BR xscreensaver\-command (1)
594 program (which see.)
595 .SH POWER MANAGEMENT
596 Modern X servers contain support to power down the monitor after an idle
597 period.  If the monitor has powered down, then \fIxscreensaver\fP will
598 notice this (after a few minutes), and will not waste CPU by drawing 
599 graphics demos on a black screen.  An attempt will also be made to
600 explicitly power the monitor back up as soon as user activity is detected.
601
602 As of version 3.28 (Feb 2001), the \fI~/.xscreensaver\fP file controls the
603 configuration of your display's power management settings: if you have
604 used
605 .BR xset (1)
606 to change your power management settings, then xscreensaver will
607 override those changes with the values specified 
608 in \fI~/.xscreensaver\fP (or with its built-in defaults, if there
609 is no \fI~/.xscreensaver\fP file yet.)
610
611 To change your power management settings, run
612 .BR xscreensaver\-demo (1)
613 and change the various timeouts through the user interface.
614 Alternately, you can edit the \fI~/.xscreensaver\fP file directly.
615
616 If the power management section is grayed out in the
617 .BR xscreensaver\-demo (1)
618 window,  then that means that your X server does not support
619 the XDPMS extension, and so control over the monitor's power state
620 is not available.
621
622 If you're using a laptop, don't be surprised if changing the DPMS
623 settings has no effect: many laptops have monitor power-saving behavior
624 built in at a very low level that is invisible to Unix and X.  On such
625 systems, you can typically adjust the power-saving delays only by
626 changing settings in the BIOS in some hardware-specific way.
627
628 If DPMS seems not to be working with XFree86, make sure the "DPMS"
629 option is set in your \fI/etc/X11/XF86Config\fP file.  See the
630 .BR XF86Config (5)
631 manual for details.
632 .SH USING XDM(1)
633 You can run \fIxscreensaver\fP from your 
634 .BR xdm (1)
635 session, so that the screensaver will run even when nobody is logged 
636 in on the console.
637
638 The trick to using xscreensaver with \fIxdm\fP is this: keep in mind the 
639 two very different states in which xscreensaver will be running:
640 .RS 4
641 .TP 3
642 .B 1: Nobody logged in.
643
644 If you're thinking of running xscreensaver from XDM at all, then it's 
645 probably because you want graphics demos to be running on the console
646 when nobody is logged in there.  In this case, xscreensaver will function
647 only as a screen saver, not a screen locker: it doesn't make sense
648 for xscreensaver to lock the screen, since nobody is logged in yet!
649 The only thing on the screen is the XDM login prompt.
650 .TP 3
651 .B 2: Somebody logged in.
652
653 Once someone has logged in through the XDM login window, the situation is
654 very different.  For example: now it makes sense to lock the screen (and
655 prompt for the logged in user's password); and now xscreensaver should
656 consult that user's \fI~/.xscreensaver\fP file; and so on.
657 .RE
658
659 The difference between these two states comes down to a question of,
660 which user is the \fIxscreensaver\fP process running as?  For the first
661 state, it doesn't matter.  If you start \fIxscreensaver\fP in the usual
662 XDM way, then xscreensaver will probably end up running as root, which 
663 is fine for the first case (the ``nobody logged in'' case.)
664
665 However, once someone is logged in, running as root is no longer fine:
666 because xscreensaver will be consulting root's \fI.xscreensaver\fP file
667 instead of that of the logged in user, and won't be prompting for the
668 logged in user's password, and so on.  (This is not a security problem,
669 it's just not what you want.)
670
671 So, once someone has logged in, you want xscreensaver to be running as that
672 user.  The way to accomplish this is to kill the old xscreensaver process
673 and start a new one (as the new user.)
674
675 The simplest way to accomplish all of this is as follows:
676 .RS 4
677 .TP 3
678 .B 1: Launch xscreensaver before anyone logs in.
679
680 To the file \fI/usr/lib/X11/xdm/Xsetup\fP, add the lines
681 .EX
682 xhost +localhost
683 xscreensaver-command -exit
684 xscreensaver &
685 .EE
686 This will run xscreensaver as root, over the XDM login window.
687 Moving the mouse will cause the screen to un-blank, and allow the user
688 to type their password at XDM to log in.
689 .TP 3
690 .B 2: Restart xscreensaver when someone logs in.
691
692 Near the top of the file \fI/usr/lib/X11/xdm/Xsession\fP, add those same lines:
693 .EX
694 xscreensaver-command -exit
695 xscreensaver &
696 .EE
697 When someone logs in, this will kill off the existing (root) xscreensaver
698 process, and start a new one, running as the user who has just logged in.
699 If the user's .xscreensaver file requests locking, they'll get it.  They
700 will also get their own choice of timeouts, and graphics demos, and so on.
701
702 Alternately, each user could just put those lines in their 
703 personal \fI~/.xsession\fP files.
704 .RE
705
706 Make sure you have \fB$PATH\fP set up correctly in the \fIXsetup\fP 
707 and \fIXsession\fP scripts, or \fIxdm\fP won't be able to 
708 find \fIxscreensaver\fP, and/or \fIxscreensaver\fP won't be able to 
709 find its graphics demos.
710
711 (If your system does not seem to be executing the \fIXsetup\fP file, you
712 may need to configure it to do so: the traditional way to do this is
713 to make that file the value of the \fIDisplayManager*setup\fP resource
714 in the \fI/usr/lib/X11/xdm/xdm-config\fP file.  See the man page for
715 .BR xdm (1)
716 for more details.)
717
718 It is safe to run \fIxscreensaver\fP as root (as \fIxdm\fP is likely to do.)  
719 If run as root, \fIxscreensaver\fP changes its effective user and group ids 
720 to something safe (like \fI"nobody"\fP) before connecting to the X server
721 or launching user-specified programs.
722
723 An unfortunate side effect of this (important) security precaution is that
724 it may conflict with cookie-based authentication.
725
726 If you get "connection refused" errors when running \fIxscreensaver\fP
727 from \fIxdm\fP, then this probably means that you have
728 .BR xauth (1)
729 or some other security mechanism turned on.  One way around this is to
730 add \fB"xhost\ +localhost"\fP to \fIXsetup\fP, just before \fIxscreensaver\fP
731 is launched.  
732
733 Note that this will give access to the X server to anyone capable of logging
734 in to the local machine, so in some environments, this might not be 
735 appropriate.  If turning off file-system-based access control is not
736 acceptable, then running \fIxscreensaver\fP from the \fIXsetup\fP file
737 might not be possible, and xscreensaver will only work when running as
738 a normal, unprivileged user.
739
740 For more information on the X server's access control mechanisms, see the
741 man pages for
742 .BR X (1),
743 .BR Xsecurity (1),
744 .BR xauth (1),
745 and
746 .BR xhost (1).
747 .SH USING GDM(1)
748 Using xscreensaver with
749 .BR gdm (1)
750 is easy, because gdm has a configuration tool.  Just fire up
751 .BR gdmconfig (1)
752 and on the \fIBackground\fP page, type \fB"xscreensaver -nosplash"\fP into
753 the \fIBackground Program\fP field.  That will cause gdm to run xscreensaver
754 while nobody is logged in, and kill it as soon as someone does log in.
755 (The user will then be responsible for starting xscreensaver on their
756 own, if they want.)
757
758 Another way to accomplish the same thing is to edit the
759 file \fI/etc/X11/gdm/gdm.conf\fP to include:
760 .EX
761 BackgroundProgram=xscreensaver -nosplash
762 RunBackgroundProgramAlways=true
763 .EE
764 In this situation, the \fIxscreensaver\fP process will probably be running
765 as user \fIgdm\fP instead of \fIroot\fP.  You can configure the settings
766 for this nobody-logged-in state (timeouts, DPMS, etc.) by editing
767 the \fI~gdm/.xscreensaver\fP file.
768
769 To get gdm to run the BackgroundProgram, you may need to switch it from
770 the "Graphical Greeter" to the "Standard Greeter".
771 .SH USING KDE (K DESKTOP ENVIRONMENT)
772 I understand that KDE has invented their own wrapper around xscreensaver,
773 that is inferior to 
774 .BR xscreensaver-demo (1)
775 in any number of ways.  I've never actually seen it, but I'm told that
776 this is the way you disable it:
777 .RS 4
778 .TP 3
779 \fB1: Switch off KDE's screen saver.\fP
780 Open the ``\fIControl Center\fP'' and
781 select the ``\fIAppearance & Themes -> Screensaver\fP'' page.
782 Turn off the ``\fIStart Automatically\fP'' checkbox.
783 .TP 3
784 \fB2: Find your Autostart directory.\fP
785 Open the ``\fISystem Administration -> Paths\fP'' page,
786 and see what your ``Autostart path'' is set to: it will
787 probably be \fI~/.kde/Autostart/\fP or something similar.
788 .TP 3
789 \fB3: Make xscreensaver be an Autostart program.\fP
790 Create a .desktop file in your autostart directory 
791 called \fIxscreensaver.desktop\fP that contains the following five lines:
792 .EX
793 [Desktop Entry]
794 Exec=xscreensaver
795 Name=XScreensaver
796 Type=Application
797 X-KDE-StartupNotify=false
798 .EE
799 .TP 3
800 \fB4: Make the various "lock session" buttons call xscreensaver.\fP
801 Replace the file \fI/usr/bin/kdesktop_lock\fP (or 
802 possibly \fI/usr/kde/3.5/bin/kdesktop_lock\fP)
803 with these two lines:
804 .EX
805 #!/bin/sh
806 xscreensaver-command -lock
807 .EE
808 Make sure the file is executable (chmod a+x).
809 .RE
810 .PP
811 Now use xscreensaver normally, controlling it via the usual
812 .BR xscreensaver-demo (1)
813 and
814 .BR xscreensaver-command (1)
815 mechanisms.
816 .SH USING CDE (COMMON DESKTOP ENVIRONMENT)
817 The easiest way to use \fIxscreensaver\fP on a system with CDE is to simply
818 switch off the built-in CDE screensaver, and use \fIxscreensaver\fP instead;
819 and second, to tell the front panel to run 
820 .BR xscreensaver\-command (1)
821 with the \fI\-lock\fP option when the \fILock\fP icon is clicked.
822
823 To accomplish this involves five steps:
824 .RS 4
825 .TP 3
826 \fB1: Switch off CDE's locker\fP
827 Do this by turning off ``\fIScreen Saver and Screen Lock\fP'' in the
828 Screen section of the Style Manager.
829 .TP 3
830 \fB2: Edit sessionetc\fP
831 Edit the file \fI~/.dt/sessions/sessionetc\fP and add to it the line
832 .EX
833 xscreensaver &
834 .EE
835 And make sure the sessionetc file is executable.
836 This will cause \fIxscreensaver\fP to be launched when you log in.
837 (As always, make sure that xscreensaver and the graphics demos are on
838 your \fB$PATH\fP; the path needs to be set in \fI.cshrc\fP 
839 and/or \fI.dtprofile\fP, not \fI.login\fP.)
840 .TP 3
841 \fB3: Create XScreenSaver.dt\fP
842 Create a file called \fI~/.dt/types/XScreenSaver.dt\fP with the following
843 contents:
844 .EX
845 ACTION XScreenSaver
846 {
847   LABEL         XScreenSaver
848   TYPE          COMMAND
849   EXEC_STRING   xscreensaver-command -lock
850   ICON          Dtkey
851   WINDOW_TYPE   NO_STDIO
852 }
853 .EE
854 This defines a ``lock'' command for the CDE front panel, that knows how
855 to talk to \fIxscreensaver\fP.
856 .TP 3
857 \fB4: Create Lock.fp\fP
858 Create a file called \fI~/.dt/types/Lock.fp\fP with the following
859 contents:
860 .EX
861 CONTROL Lock
862 {
863   TYPE             icon
864   CONTAINER_NAME   Switch
865   CONTAINER_TYPE   SWITCH
866   POSITION_HINTS   1
867   ICON             Fplock
868   LABEL            Lock
869   PUSH_ACTION      XScreenSaver
870   HELP_TOPIC       FPOnItemLock
871   HELP_VOLUME      FPanel
872 }
873 .EE
874 This associates the CDE front panel ``Lock'' icon with the lock command
875 we just defined in step 3.
876 .TP 3
877 \fB5: Restart\fP
878 Select ``\fIRestart Workspace Manager\fP'' from the popup menu to make
879 your changes take effect.  If things seem not to be working, check the
880 file \fI~/.dt/errorlog\fP for error messages.
881 .RE
882 .SH USING HP VUE (VISUAL USER ENVIRONMENT)
883 Since CDE is a descendant of VUE, the instructions for using xscreensaver
884 under VUE are similar to the above:
885 .RS 4
886 .TP 3
887 \fB1: Switch off VUE's locker\fP
888 Open the ``\fIStyle Manager\fP'' and select ``\fIScreen\fP.''
889 Turn off ``\fIScreen Saver and Screen Lock\fP'' option.
890 .TP 3
891 \fB2: Make sure you have a Session\fP
892 Next, go to the Style Manager's, ``\fIStartup\fP'' page.
893 Click on ``\fISet Home Session\fP'' to create a session, then 
894 on ``\fIReturn to Home Session\fP'' to select this session each
895 time you log in.
896 .TP 3
897 \fB3: Edit vue.session\fP
898 Edit the file \fI~/.vue/sessions/home/vue.session\fP and add to it
899 the line
900 .EX
901 vuesmcmd -screen 0 -cmd "xscreensaver"
902 .EE
903 This will cause \fIxscreensaver\fP to be launched when you log in.
904 (As always, make sure that xscreensaver and the graphics demos are on
905 your \fB$PATH\fP; the path needs to be set in \fI.cshrc\fP
906 and/or \fI.profile\fP, not \fI.login\fP.)
907 .TP 3
908 \fB3: Edit vuewmrc\fP
909 Edit the file \fI~/.vue/vuewmrc\fP and add (or change) the Lock control:
910 .EX
911 CONTROL Lock
912 {
913   TYPE         button
914   IMAGE        lock
915   PUSH_ACTION  f.exec "xscreensaver-command -lock"
916   HELP_TOPIC   FPLock
917 }
918 .EE
919 This associates the VUE front panel ``Lock'' icon with the xscreensaver 
920 lock command.
921 .RE
922 .PP
923 .SH BUGS
924 Bugs?  There are no bugs.  Ok, well, maybe.  If you find one, please let
925 me know.  http://www.jwz.org/xscreensaver/bugs.html explains how to
926 construct the most useful bug reports.
927 .TP 8
928 .B Locking and XDM
929 If xscreensaver has been launched from 
930 .BR xdm (1)
931 before anyone has logged in, you will need to kill and then restart the
932 xscreensaver daemon after you have logged in, or you will be confused by
933 the results.  (For example, locking won't work, and your \fI~/.xscreensaver\fP
934 file will be ignored.)
935
936 When you are logged in, you want the \fIxscreensaver\fP daemon to be 
937 running under \fIyour\fP user id, not as root or some other user.
938
939 If it has already been started by \fIxdm\fP, you can kill it by sending
940 it the \fBexit\fP command, and then re-launching it as you, by putting
941 something like the following in your personal X startup script:
942 .EX
943 xscreensaver-command -exit
944 xscreensaver &
945 .EE
946 The ``\fIUsing XDM(1)\fP'' section, above, goes into more detail, and explains
947 how to configure the system to do this for all users automatically.
948 .TP 8
949 .B Locking and root logins
950 In order for it to be safe for xscreensaver to be launched by \fIxdm\fP,
951 certain precautions had to be taken, among them that xscreensaver never
952 runs as \fIroot\fP.  In particular, if it is launched as root (as \fIxdm\fP
953 is likely to do), xscreensaver will disavow its privileges, and switch 
954 itself to a safe user id (such as \fInobody\fP.)
955
956 An implication of this is that if you log in as \fIroot\fP on the console, 
957 xscreensaver will refuse to lock the screen (because it can't tell
958 the difference between \fIroot\fP being logged in on the console, and a
959 normal user being logged in on the console but xscreensaver having been 
960 launched by the
961 .BR xdm (1)
962 .I Xsetup
963 file.)
964
965 The solution to this is simple: you shouldn't be logging in on the console
966 as \fIroot\fP in the first place!  (What, are you crazy or something?)  
967
968 Proper Unix hygiene dictates that you should log in as yourself, and
969 .BR su (1)
970 to \fIroot\fP as necessary.  People who spend their day logged in
971 as \fIroot\fP are just begging for disaster.
972 .TP 8
973 .B XAUTH and XDM
974 For xscreensaver to work when launched by
975 .BR xdm (1),
976 programs running on the local machine as user \fI"nobody"\fP must be
977 able to connect to the X server.  This means that if you want to run
978 xscreensaver on the console while nobody is logged in, you may need
979 to disable cookie-based access control (and allow all users who can log
980 in to the local machine to connect to the display.)  
981
982 You should be sure that this is an acceptable thing to do in your
983 environment before doing it.  See the ``\fIUsing XDM(1)\fP'' section, 
984 above, for more details.
985 .TP 8
986 .B Passwords
987 If you get an error message at startup like ``couldn't get password
988 of \fIuser\fP'' then this probably means that you're on a system in which 
989 the
990 .BR getpwent (3)
991 library routine can only be effectively used by root.  If this is the case, 
992 then \fIxscreensaver\fP must be installed as setuid to root in order for
993 locking to work.  Care has been taken to make this a safe thing to do.  
994
995 It also may mean that your system uses shadow passwords instead of the standard
996 .BR getpwent (3)
997 interface; in that case, you may need to change some options 
998 with \fIconfigure\fP and recompile.
999
1000 If you change your password after xscreensaver has been launched, it will
1001 continue using your old password to unlock the screen until xscreensaver
1002 is restarted.  On some systems, it may accept \fIboth\fP your old and new
1003 passwords.  So, after you change your password, you'll have to do
1004 .EX
1005 xscreensaver-command -restart
1006 .EE
1007 to make \fIxscreensaver\fP notice.
1008 .TP 8
1009 .B PAM Passwords
1010 If your system uses PAM (Pluggable Authentication Modules), then in order
1011 for xscreensaver to use PAM properly, PAM must be told about xscreensaver.
1012 The xscreensaver installation process should update the PAM data (on Linux,
1013 by creating the file \fI/etc/pam.d/xscreensaver\fP for you, and on Solaris, 
1014 by telling you what lines to add to the \fI/etc/pam.conf\fP file.)  
1015
1016 If the PAM configuration files do not know about xscreensaver, then 
1017 you \fImight\fP be in a situation where xscreensaver will refuse to ever
1018 unlock the screen.
1019
1020 This is a design flaw in PAM (there is no way for a client to tell the
1021 difference between PAM responding ``I have never heard of your module,''
1022 and responding, ``you typed the wrong password.'')  As far as I can tell,
1023 there is no way for xscreensaver to automatically work around this, or
1024 detect the problem in advance, so if you have PAM, make sure it is
1025 configured correctly!
1026 .TP 8
1027 .B Colormap lossage: TWM
1028 The \fBinstallColormap\fP option doesn't work very well with the
1029 .BR twm (1)
1030 window manager and its descendants, on 8-bit screens.
1031
1032 There is a race condition between the screensaver and this window manager,
1033 which can result in the screensaver's colormap not getting installed
1034 properly, meaning the graphics hacks will appear in essentially random
1035 colors.  (If the screen goes white instead of black, this is probably why.)
1036
1037 The
1038 .BR mwm (1)
1039 and
1040 .BR olwm (1)
1041 window managers don't have this problem.  The race condition exists
1042 because X (really, ICCCM) does not provide a way for an OverrideRedirect 
1043 window to have its own colormap, short of grabbing the server (which is 
1044 neither a good idea, nor really possible with the current design.)  What 
1045 happens is that, as soon as xscreensaver installs its colormap, \fBtwm\fP 
1046 responds to the resultant \fBColormapNotify\fP event by re-installing the 
1047 default colormap.  Apparently, \fBtwm\fP doesn't \fIalways\fP do this; it 
1048 seems to do it regularly if the screensaver is activated from a menu item, 
1049 but seems to not do it if the screensaver comes on of its own volition, or 
1050 is activated from another console.  
1051 .RS 8
1052 .TP 4
1053 .B Attention, window manager authors!
1054 You should only call
1055 .BR XInstallColormap (3)
1056 in response to user events.  That is, it is appropriate to install a colormap
1057 in response to \fBFocusIn\fP, \fBFocusOut\fP, \fBEnterNotify\fP, 
1058 and \fBLeaveNotify\fP events; but it is not appropriate to call it in
1059 response to \fBColormapNotify\fP events.  If you install colormaps in
1060 response to \fIapplication\fP actions as well as in response to \fIuser\fP
1061 actions, then you create the situation where it is impossible for 
1062 override-redirect applications (such as xscreensaver) to display their
1063 windows in the proper colors.
1064 .RE
1065 .TP 8
1066 .B Colormap lossage: XV, XAnim, XEarth
1067 Some programs don't operate properly on visuals other than the default one,
1068 or with colormaps other than the default one.  See the discussion of the
1069 magic "default-n" visual name in the description of the \fBprograms\fP 
1070 resource in the \fIConfiguration\fP section.  When programs only work with
1071 the default colormap, you need to use a syntax like this:
1072 .EX
1073    default-n: xv -root image-1.gif -quit  \\n\\
1074    default-n: xearth -nostars -wait 0     \\n\\
1075 .EE
1076 It would also work to turn off the \fBinstallColormap\fP option altogether,
1077 but that would deny extra colors to those programs that \fIcan\fP take
1078 advantage of them.
1079 .TP 8
1080 .B Machine Load
1081 Although this program ``nices'' the subprocesses that it starts, 
1082 graphics-intensive subprograms can still overload the machine by causing
1083 the X server process itself (which is not ``niced'') to consume many
1084 cycles.  Care has been taken in all the modules shipped with xscreensaver
1085 to sleep periodically, and not run full tilt, so as not to cause
1086 appreciable load.
1087
1088 However, if you are running the OpenGL-based screen savers on a machine
1089 that does not have a video card with 3D acceleration, they \fIwill\fP
1090 make your machine slow, despite
1091 .BR nice (1).
1092
1093 Your options are: don't use the OpenGL display modes; or, collect the
1094 spare change hidden under the cushions of your couch, and use it to
1095 buy a video card manufactured after 1998.  (It doesn't even need to be
1096 \fIfast\fP 3D hardware: the problem will be fixed if there is any
1097 3D hardware \fIat all.\fP)
1098 .TP 8
1099 .B XFree86's Magic Keystrokes
1100 The XFree86 X server traps certain magic keystrokes before client programs ever
1101 see them.  Two that are of note are Ctrl+Alt+Backspace, which causes 
1102 the X server to exit; and Ctrl+Alt+F\fIn\fP, which switches virtual consoles.
1103 The X server will respond to these keystrokes even if xscreensaver has the
1104 screen locked.  Depending on your setup, you might consider this a problem.
1105
1106 Unfortunately, there is no way for xscreensaver itself to override the
1107 interpretation of these keys.  If you want to disable Ctrl+Alt+Backspace
1108 globally, you need to set the \fIDontZap\fP flag in 
1109 your \fI/etc/X11/XF86Config\fP file.  To globally disable VT switching,
1110 you can set the \fIDontVTSwitch\fP flag.  See the
1111 .BR XF86Config (5)
1112 manual for details.
1113 .TP 8
1114 .B MIT Extension and Fading
1115 The \fBMIT-SCREEN-SAVER\fP extension is junk.  Don't use it.
1116
1117 When using the \fBMIT-SCREEN-SAVER\fP extension in conjunction with 
1118 the \fBfade\fP option, you'll notice an unattractive flicker just before 
1119 the fade begins.  This is because the server maps a black window just before 
1120 it tells the \fIxscreensaver\fP process to activate.  The \fIxscreensaver\fP 
1121 process immediately unmaps that window, but this results in a flicker.  I 
1122 haven't figured a way  to get around this; it seems to be a fundamental
1123 property of the (mis-) design of this server extension.
1124
1125 It sure would be nice if someone would implement the \fBSGI SCREEN_SAVER\fP
1126 extension in XFree86; it's dead simple, and works far better than the
1127 over-engineered and broken \fBMIT-SCREEN-SAVER\fP extension.
1128 .TP 8
1129 .B Keyboard LEDs
1130 If \fIprocInterrupts\fP is on (which is the default on Linux systems) and
1131 you're using some program that toggles the state of your keyboard LEDs,
1132 xscreensaver won't work right: turning those LEDs on or off causes a 
1133 keyboard interrupt, which xscreensaver will interpret as user activity.
1134 So if you're using such a program, set the \fIprocInterrupts\fP resource
1135 to False.
1136 .TP 8
1137 .B Extensions
1138 If you are not making use of one of the server extensions (\fBXIDLE\fP,
1139 \fBSGI SCREEN_SAVER\fP, or \fBMIT-SCREEN-SAVER\fP), then it is possible, in 
1140 rare situations, for \fIxscreensaver\fP to interfere with event propagation 
1141 and make another X program malfunction.  For this to occur, that other
1142 application would need to \fInot\fP select \fBKeyPress\fP events on its 
1143 non-leaf windows within the first 30 seconds of their existence, but then 
1144 select for them later.  In this case, that client \fImight\fP fail to receive 
1145 those events.  This isn't very likely, since programs generally select a
1146 constant set of events immediately after creating their windows and then 
1147 don't change them, but this is the reason that it's a good idea to install 
1148 and use one of the server extensions instead, to work around this shortcoming
1149 in the X protocol.
1150
1151 In all these years, I've not heard of even a single case of this happening,
1152 but it is theoretically possible, so I'm mentioning it for completeness...
1153 .SH ENVIRONMENT
1154 .PP
1155 .TP 8
1156 .B DISPLAY
1157 to get the default host and display number, and to inform the sub-programs
1158 of the screen on which to draw.
1159 .TP 8
1160 .B PATH
1161 to find the sub-programs to run.
1162 .TP 8
1163 .B HOME
1164 for the directory in which to read the \fI.xscreensaver\fP file.
1165 .TP 8
1166 .B XENVIRONMENT
1167 to get the name of a resource file that overrides the global resources
1168 stored in the RESOURCE_MANAGER property.
1169 .SH UPGRADES
1170 The latest version of xscreensaver, an online version of this manual,
1171 and a FAQ can always be found at http://www.jwz.org/xscreensaver/
1172 .SH SEE ALSO
1173 .BR X (1),
1174 .BR Xsecurity (1),
1175 .BR xauth (1),
1176 .BR xdm (1),
1177 .BR gdm (1),
1178 .BR xhost (1),
1179 .BR xscreensaver\-demo (1),
1180 .BR xscreensaver\-command (1),
1181 .BR xscreensaver\-gl\-helper (1),
1182 .BR xscreensaver\-getimage (1),
1183 .BR xscreensaver\-text (1).
1184 .SH COPYRIGHT
1185 Copyright \(co 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
1186 2000, 2001, 2002, 2003, 2004, 2005 by Jamie Zawinski.  Permission to use,
1187 copy, modify, distribute, and sell this software and its documentation for
1188 any purpose is hereby granted without fee, provided that the above copyright
1189 notice appear in all copies and that both that copyright notice and this
1190 permission notice appear in supporting documentation.  No representations are
1191 made about the suitability of this software for any purpose.  It is provided
1192 "as is" without express or implied warranty.
1193 .SH AUTHOR
1194 Jamie Zawinski <jwz@jwz.org>.  Written in late 1991; version 1.0 posted
1195 to comp.sources.x on 17-Aug-1992.
1196
1197 Please let me know if you find any bugs or make any improvements.
1198 .SH ACKNOWLEDGEMENTS
1199 Thanks to Angela Goodman for the XScreenSaver logo.
1200
1201 Thanks to the many people who have contributed graphics demos to the package.
1202
1203 Thanks to David Wojtowicz for implementing \fIlockTimeout\fP.
1204
1205 Thanks to Martin Kraemer for adding support for shadow passwords and
1206 locking-disabled diagnostics.
1207
1208 Thanks to Patrick Moreau for the VMS port.
1209
1210 Thanks to Nat Lanza for the Kerberos support.
1211
1212 Thanks to Bill Nottingham for the initial PAM support.
1213
1214 And thanks to Jon A. Christopher for implementing the Athena dialog
1215 support, back in the days before Lesstif or Gtk were viable alternatives
1216 to Motif.