dfb21d6722946ae8cb88d0e278fe4843deb0e53a
[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\-splash] \
22 [\-no\-capture\-stderr] \
23 [\-log \fIfilename\fP]
24 .SH DESCRIPTION
25 The \fIxscreensaver\fP program waits until the keyboard and mouse have been 
26 idle for a period, and then runs a graphics demo chosen at random.  It 
27 turns off as soon as there is any mouse or keyboard activity.
28
29 This program can lock your terminal in order to prevent others from using it,
30 though its default mode of operation is merely to display pretty pictures on
31 your screen when it is not in use.
32
33 It also provides configuration and control of your monitor's power-saving
34 features.
35 .SH GETTING STARTED
36 For the impatient, try this:
37 .EX
38 xscreensaver &
39 xscreensaver-demo
40 .EE
41 The
42 .BR xscreensaver-demo (1)
43 program pops up a dialog box that lets you configure the screen saver,
44 and experiment with the various display modes.
45
46 .B Note that xscreensaver has a client-server model:
47 the \fIxscreensaver\fP program is a daemon that runs in the background;
48 it is controlled by the foreground
49 .BR xscreensaver-demo (1)
50 and
51 .BR xscreensaver-command (1)
52 programs.
53 .SH CONFIGURATION
54 The easiest way to configure \fIxscreensaver\fP is to simply run the
55 .BR xscreensaver-demo (1)
56 program, and change the settings through the GUI.  The rest of this
57 manual page describes lower level ways of changing settings.
58
59 I'll repeat that because it's important:
60
61 .RS 4
62 The easy way to configure xscreensaver is to run the 
63 .BR xscreensaver-demo (1)
64 program.  You shouldn't need to know any of the stuff described 
65 in \fIthis\fP manual unless you are trying to do something tricky,
66 like customize xscreensaver for site-wide use or something.
67 .RE
68
69 Options to \fIxscreensaver\fP are stored in one of two places: in 
70 a \fI.xscreensaver\fP file in your home directory; or in the X resource
71 database.  If the \fI.xscreensaver\fP file exists, it overrides any settings
72 in the resource database.  
73
74 The syntax of the \fI.xscreensaver\fP file is similar to that of
75 the \fI.Xdefaults\fP file; for example, to set the \fItimeout\fP paramter
76 in the \fI.xscreensaver\fP file, you would write the following:
77 .EX
78 timeout: 5
79 .EE
80 whereas, in the \fI.Xdefaults\fP file, you would write
81 .EX
82 xscreensaver.timeout: 5
83 .EE
84 If you change a setting in the \fI.xscreensaver\fP file while xscreensaver
85 is already running, it will notice this, and reload the file.  (The file will
86 be reloaded the next time the screen saver needs to take some action, such as
87 blanking or unblanking the screen, or picking a new graphics mode.)
88
89 If you change a setting in your X resource database, or if you want
90 xscreensaver to notice your changes immediately instead of the next time
91 it wakes up, then you will need to reload your \fI.Xdefaults\fP file,
92 and then tell the running xscreensaver process to restart itself, like so:
93 .EX
94 xrdb < ~/.Xdefaults
95 xscreensaver-command -restart
96 .EE
97 If you want to set the system-wide defaults, then make your edits to
98 the xscreensaver app-defaults file, which should have been installed
99 when xscreensaver itself was installed.  The app-defaults file will
100 usually be named /usr/lib/X11/app-defaults/XScreenSaver, but different
101 systems might keep it in a different place (for example,
102 /usr/openwin/lib/app-defaults/XScreenSaver on Solaris.)
103
104 When settings are changed in the Preferences dialog box (see above)
105 the current settings will be written to the \fI.xscreensaver\fP file.
106 (The \fI.Xdefaults\fP file and the app-defaults file will never be
107 written by xscreensaver itself.)
108 .SH COMMAND-LINE OPTIONS
109 .I xscreensaver
110 also accepts a few command-line options, mostly for use when debugging:
111 for normal operation, you should configure things via the \fI~/.xscreensaver\fP
112 file.
113 .TP 8
114 .B \-display \fIhost:display.screen\fP
115 The X display to use.  For displays with multiple screens, XScreenSaver
116 will manage all screens on the display simultaniously.
117 .TP 8
118 .B \-verbose
119 Same as setting the \fIverbose\fP resource to \fItrue\fP: print diagnostics
120 on stderr and on the xscreensaver window.
121 .TP 8
122 .B \-no-capture-stderr
123 Do not redirect the stdout and stderr streams to the xscreensaver window
124 itself.  If xscreensaver is crashing, you might need to do this in order
125 to see the error message.
126 .TP 8
127 .B \-log \fIfilename\fP
128 This is exactly the same as redirecting stdout and stderr to the given
129 file (for append).  This is useful when reporting bugs.
130 .SH HOW IT WORKS
131 When it is time to activate the screensaver, a full-screen black window is
132 created on each screen of the display.  Each window is created in such a way
133 that, to any subsequently-created programs, it will appear to be a ``virtual
134 root'' window.  Because of this, any program which draws on the root 
135 window (and which understands virtual roots) can be used as a screensaver.
136 The various graphics demos are, in fact, just standalone programs that
137 know how to draw on the provided window.
138
139 When the user becomes active again, the screensaver windows are unmapped, and
140 the running subprocesses are killed by sending them \fBSIGTERM\fP.  This is 
141 also how the subprocesses are killed when the screensaver decides that it's
142 time to run a different demo: the old one is killed and a new one is launched.
143
144 You can control a running screensaver process by using the
145 .BR xscreensaver\-command (1)
146 program (which see.)
147 .SH POWER MANAGEMENT
148 Modern X servers contain support to power down the monitor after an idle
149 period.  If the monitor has powered down, then \fIxscreensaver\fP will
150 notice this (after a few minutes), and will not waste CPU by drawing 
151 graphics demos on a black screen.  An attempt will also be made to
152 explicitly power the monitor back up as soon as user activity is detected.
153
154 The \fI~/.xscreensaver\fP file controls the configuration of your
155 display's power management settings: if you have used
156 .BR xset (1)
157 to change your power management settings, then xscreensaver will
158 override those changes with the values specified 
159 in \fI~/.xscreensaver\fP (or with its built-in defaults, if there
160 is no \fI~/.xscreensaver\fP file yet.)
161
162 To change your power management settings, run
163 .BR xscreensaver\-demo (1)
164 and change the various timeouts through the user interface.
165 Alternately, you can edit the \fI~/.xscreensaver\fP file directly.
166
167 If the power management section is grayed out in the
168 .BR xscreensaver\-demo (1)
169 window,  then that means that your X server does not support
170 the XDPMS extension, and so control over the monitor's power state
171 is not available.
172
173 If you're using a laptop, don't be surprised if changing the DPMS
174 settings has no effect: many laptops have monitor power-saving behavior
175 built in at a very low level that is invisible to Unix and X.  On such
176 systems, you can typically adjust the power-saving delays only by
177 changing settings in the BIOS in some hardware-specific way.
178
179 If DPMS seems not to be working with XFree86, make sure the "DPMS"
180 option is set in your \fI/etc/X11/XF86Config\fP file.  See the
181 .BR XF86Config (5)
182 manual for details.
183 .SH USING GNOME
184 For many years, GNOME shipped \fIxscreensaver\fP as-is, and
185 everything just worked out of the box.  Recently, however, they've
186 been re-inventing the wheel again in the form of "gnome-screensaver".
187
188 To replace gnome-screensaver with xscreensaver:
189 .RS 4
190 .TP 3
191 \fB1: Turn off gnome-screensaver.\fP
192 Open ``System / Preferences / Screensaver'' and uncheck both boxes.
193 .TP 3
194 \fB2: Stop gnome-screensaver from launching at login.\fP
195 Run the command:
196 .EX
197 gconftool-2 --type boolean -s \\
198 /apps/gnome_settings_daemon/screensaver/start_screensaver \\
199 false
200 .EE
201 Or, just uninstall the "gnome-screensaver" package entirely.
202 .TP 3
203 \fB3: Launch xscreensaver at login.\fP
204 Open ``System / Preferences / Sessions / Startup Programs''.
205 Click ``Add'' and type ``xscreensaver''.
206 .TP 3
207 \fB4: Tell Preferences to use the xscreensaver configurator.\fP
208 Edit \fI/usr/share/applications/gnome-screensaver-preferences.desktop\fP
209 and change the \fIExec=\fP line to say
210     Exec=xscreensaver-demo
211 .TP 3
212 \fB5: Make ``System / Quit / Lock Screen'' use xscreensaver.\fP
213 Run the command:
214 .EX
215 sudo ln -sf /usr/bin/xscreensaver-command \\
216             /usr/bin/gnome-screensaver-command
217 .EE
218 .SH USING KDE
219 KDE also has invented their own screen saver framework instead of
220 simply using xscreensaver.  To replace the KDE screen saver with
221 xscreensaver, do the following:
222 .RS 4
223 .TP 3
224 \fB1: Turn off KDE's screen saver.\fP
225 Open the ``\fIControl Center\fP'' and
226 select the ``\fIAppearance & Themes / Screensaver\fP'' page.
227 Un-check ``\fIStart Automatically\fP''.
228 .TP 3
229 \fB2: Find your Autostart directory.\fP
230 Open the ``\fISystem Administration -> Paths\fP'' page,
231 and see what your ``Autostart path'' is set to: it will
232 probably be \fI~/.kde/Autostart/\fP or something similar.
233 .TP 3
234 \fB3: Make xscreensaver be an Autostart program.\fP
235 Create a .desktop file in your autostart directory 
236 called \fIxscreensaver.desktop\fP that contains the following five lines:
237 .EX
238 [Desktop Entry]
239 Exec=xscreensaver
240 Name=XScreenSaver
241 Type=Application
242 X-KDE-StartupNotify=false
243 .EE
244 .TP 3
245 \fB4: Make the various "lock session" buttons call xscreensaver.\fP
246 Replace the file \fIkdesktop_lock\fP or \fIkrunner_lock\fP
247 in \fI/usr/bin/\fP (or possibly \fI/usr/kde/3.5/bin/\fP
248 or \fI/usr/lib/kde4/libexec/\fP) with these two lines:
249 .EX
250 #!/bin/sh
251 xscreensaver-command -lock
252 .EE
253 Make sure the file is executable (chmod a+x).
254 .RE
255 .PP
256 Now use xscreensaver normally, controlling it via the usual
257 .BR xscreensaver-demo (1)
258 and
259 .BR xscreensaver-command (1)
260 mechanisms.
261 .SH USING GDM
262 You can run \fIxscreensaver\fP from your 
263 .BR gdm (1)
264 session, so that the screensaver will run even when nobody is logged 
265 in on the console.  To do this, run
266 .BR gdmconfig (1)
267 and on the \fIBackground\fP page, type the 
268 command \fB"xscreensaver -nosplash"\fP into the \fIBackground Program\fP
269 field.  That will cause gdm to run xscreensaver while nobody is logged
270 in, and kill it as soon as someone does log in.  (The user will then
271 be responsible for starting xscreensaver on their own, if they want.)
272
273 Another way to accomplish the same thing is to edit the
274 file \fI/etc/X11/gdm/gdm.conf\fP to include:
275 .EX
276 BackgroundProgram=xscreensaver -nosplash
277 RunBackgroundProgramAlways=true
278 .EE
279 In this situation, the \fIxscreensaver\fP process will probably be running
280 as user \fIgdm\fP instead of \fIroot\fP.  You can configure the settings
281 for this nobody-logged-in state (timeouts, DPMS, etc.) by editing
282 the \fI~gdm/.xscreensaver\fP file.
283
284 To get gdm to run the BackgroundProgram, you may need to switch it from
285 the "Graphical Greeter" to the "Standard Greeter".
286
287 It is safe to run \fIxscreensaver\fP as root (as \fIxdm\fP is likely to do.)
288 If run as root, \fIxscreensaver\fP changes its effective user and group ids 
289 to something safe (like \fI"nobody"\fP) before connecting to the X server
290 or launching user-specified programs.
291
292 An unfortunate side effect of this (important) security precaution is that
293 it may conflict with cookie-based authentication.
294
295 If you get "connection refused" errors when running \fIxscreensaver\fP
296 from \fIgdm\fP, then this probably means that you have
297 .BR xauth (1)
298 or some other security mechanism turned on.  For information on the
299 X server's access control mechanisms, see the man pages for
300 .BR X (1),
301 .BR Xsecurity (1),
302 .BR xauth (1),
303 and
304 .BR xhost (1).
305 .SH BUGS
306 Bugs?  There are no bugs.  Ok, well, maybe.  If you find one, please let
307 me know.  http://www.jwz.org/xscreensaver/bugs.html explains how to
308 construct the most useful bug reports.
309 .TP 8
310 .B Locking and XDM
311 If xscreensaver has been launched from 
312 .BR xdm (1)
313 before anyone has logged in, you will need to kill and then restart the
314 xscreensaver daemon after you have logged in, or you will be confused by
315 the results.  (For example, locking won't work, and your \fI~/.xscreensaver\fP
316 file will be ignored.)
317
318 When you are logged in, you want the \fIxscreensaver\fP daemon to be 
319 running under \fIyour\fP user id, not as root or some other user.
320
321 If it has already been started by \fIxdm\fP, you can kill it by sending
322 it the \fBexit\fP command, and then re-launching it as you, by putting
323 something like the following in your personal X startup script:
324 .EX
325 xscreensaver-command -exit
326 xscreensaver &
327 .EE
328 The ``\fIUsing XDM(1)\fP'' section, above, goes into more detail, and explains
329 how to configure the system to do this for all users automatically.
330 .TP 8
331 .B Locking and root logins
332 In order for it to be safe for xscreensaver to be launched by \fIxdm\fP,
333 certain precautions had to be taken, among them that xscreensaver never
334 runs as \fIroot\fP.  In particular, if it is launched as root (as \fIxdm\fP
335 is likely to do), xscreensaver will disavow its privileges, and switch 
336 itself to a safe user id (such as \fInobody\fP.)
337
338 An implication of this is that if you log in as \fIroot\fP on the console, 
339 xscreensaver will refuse to lock the screen (because it can't tell
340 the difference between \fIroot\fP being logged in on the console, and a
341 normal user being logged in on the console but xscreensaver having been 
342 launched by the
343 .BR xdm (1)
344 .I Xsetup
345 file.)
346
347 The solution to this is simple: you shouldn't be logging in on the console
348 as \fIroot\fP in the first place!  (What, are you crazy or something?)  
349
350 Proper Unix hygiene dictates that you should log in as yourself, and
351 .BR su (1)
352 to \fIroot\fP as necessary.  People who spend their day logged in
353 as \fIroot\fP are just begging for disaster.
354 .TP 8
355 .B XAUTH and XDM
356 For xscreensaver to work when launched by
357 .BR xdm (1),
358 programs running on the local machine as user \fI"nobody"\fP must be
359 able to connect to the X server.  This means that if you want to run
360 xscreensaver on the console while nobody is logged in, you may need
361 to disable cookie-based access control (and allow all users who can log
362 in to the local machine to connect to the display.)  
363
364 You should be sure that this is an acceptable thing to do in your
365 environment before doing it.  See the ``\fIUsing XDM(1)\fP'' section, 
366 above, for more details.
367 .TP 8
368 .B Passwords
369 If you get an error message at startup like ``couldn't get password
370 of \fIuser\fP'' then this probably means that you're on a system in which 
371 the
372 .BR getpwent (3)
373 library routine can only be effectively used by root.  If this is the case, 
374 then \fIxscreensaver\fP must be installed as setuid to root in order for
375 locking to work.  Care has been taken to make this a safe thing to do.  
376
377 It also may mean that your system uses shadow passwords instead of the standard
378 .BR getpwent (3)
379 interface; in that case, you may need to change some options 
380 with \fIconfigure\fP and recompile.
381
382 If you change your password after xscreensaver has been launched, it will
383 continue using your old password to unlock the screen until xscreensaver
384 is restarted.  On some systems, it may accept \fIboth\fP your old and new
385 passwords.  So, after you change your password, you'll have to do
386 .EX
387 xscreensaver-command -restart
388 .EE
389 to make \fIxscreensaver\fP notice.
390 .TP 8
391 .B PAM Passwords
392 If your system uses PAM (Pluggable Authentication Modules), then in order
393 for xscreensaver to use PAM properly, PAM must be told about xscreensaver.
394 The xscreensaver installation process should update the PAM data (on Linux,
395 by creating the file \fI/etc/pam.d/xscreensaver\fP for you, and on Solaris, 
396 by telling you what lines to add to the \fI/etc/pam.conf\fP file.)  
397
398 If the PAM configuration files do not know about xscreensaver, then 
399 you \fImight\fP be in a situation where xscreensaver will refuse to ever
400 unlock the screen.
401
402 This is a design flaw in PAM (there is no way for a client to tell the
403 difference between PAM responding ``I have never heard of your module,''
404 and responding, ``you typed the wrong password.'')  As far as I can tell,
405 there is no way for xscreensaver to automatically work around this, or
406 detect the problem in advance, so if you have PAM, make sure it is
407 configured correctly!
408 .TP 8
409 .B Machine Load
410 Although this program ``nices'' the subprocesses that it starts, 
411 graphics-intensive subprograms can still overload the machine by causing
412 the X server process itself (which is not ``niced'') to consume many
413 cycles.  Care has been taken in all the modules shipped with xscreensaver
414 to sleep periodically, and not run full tilt, so as not to cause
415 appreciable load.
416
417 However, if you are running the OpenGL-based screen savers on a machine
418 that does not have a video card with 3D acceleration, they \fIwill\fP
419 make your machine slow, despite
420 .BR nice (1).
421
422 Your options are: don't use the OpenGL display modes; or, collect the
423 spare change hidden under the cushions of your couch, and use it to
424 buy a video card manufactured after 1998.  (It doesn't even need to be
425 \fIfast\fP 3D hardware: the problem will be fixed if there is any
426 3D hardware \fIat all.\fP)
427 .TP 8
428 .B XFree86's Magic Keystrokes
429 The XFree86 X server traps certain magic keystrokes before client programs ever
430 see them.  Two that are of note are Ctrl+Alt+Backspace, which causes 
431 the X server to exit; and Ctrl+Alt+F\fIn\fP, which switches virtual consoles.
432 The X server will respond to these keystrokes even if xscreensaver has the
433 screen locked.  Depending on your setup, you might consider this a problem.
434
435 Unfortunately, there is no way for xscreensaver itself to override the
436 interpretation of these keys.  If you want to disable Ctrl+Alt+Backspace
437 globally, you need to set the \fIDontZap\fP flag in 
438 your \fI/etc/X11/XF86Config\fP file.  To globally disable VT switching,
439 you can set the \fIDontVTSwitch\fP flag.  See the
440 .BR XF86Config (5)
441 manual for details.
442 .SH X RESOURCES
443 These are the X resources use by the \fIxscreensaver\fP program.
444 You probably won't need to change these manually (that's what the
445 .BR xscreensaver\-demo (1)
446 program is for).
447 .TP 8
448 .B timeout\fP (class \fBTime\fP)
449 The screensaver will activate (blank the screen) after the keyboard and
450 mouse have been idle for this many minutes.  Default 10 minutes.
451 .TP 8
452 .B cycle\fP (class \fBTime\fP)
453 After the screensaver has been running for this many minutes, the currently
454 running graphics-hack sub-process will be killed (with \fBSIGTERM\fP), and a
455 new one started.  If this is 0, then the graphics hack will never be changed:
456 only one demo will run until the screensaver is deactivated by user activity.
457 Default 10 minutes.
458 .TP 8
459 .B lock\fP (class \fBBoolean\fP)
460 Enable locking: before the screensaver will turn off, it will require you 
461 to type the password of the logged-in user (really, the person who ran
462 xscreensaver), or the root password.  (\fBNote:\fP this doesn't work if the
463 screensaver is launched by
464 .BR xdm (1)
465 because it can't know the user-id of the logged-in user.  See 
466 the ``\fIUsing XDM(1)\fP'' section, below.
467 .TP 8
468 .B lockTimeout\fP (class \fBTime\fP)
469 If locking is enabled, this controls the length of the ``grace period''
470 between when the screensaver activates, and when the screen becomes locked.
471 For example, if this is 5, and \fI\-timeout\fP is 10, then after 10 minutes,
472 the screen would blank.  If there was user activity at 12 minutes, no password
473 would be required to un-blank the screen.  But, if there was user activity
474 at 15 minutes or later (that is, \fI\-lock\-timeout\fP minutes after 
475 activation) then a password would be required.  The default is 0, meaning
476 that if locking is enabled, then a password will be required as soon as the 
477 screen blanks.
478 .TP 8
479 .B passwdTimeout\fP (class \fBTime\fP)
480 If the screen is locked, then this is how many seconds the password dialog box
481 should be left on the screen before giving up (default 30 seconds.)  This
482 should not be too large: the X server is grabbed for the duration that the
483 password dialog box is up (for security purposes) and leaving the server 
484 grabbed for too long can cause problems.
485 .TP 8
486 .B dpmsEnabled\fP (class \fBBoolean\fP)
487 Whether power management is enabled.
488 .TP 8
489 .B dpmsStandby\fP (class \fBTime\fP)
490 If power management is enabled, how long until the monitor goes solid black.
491 .TP 8
492 .B dpmsSuspend\fP (class \fBTime\fP)
493 If power management is enabled, how long until the monitor goes into
494 power-saving mode.
495 .TP 8
496 .B dpmsOff\fP (class \fBTime\fP)
497 If power management is enabled, how long until the monitor powers down
498 completely.  Note that these settings will have no effect unless both
499 the X server and the display hardware support power management; not 
500 all do.  See the \fIPower Management\fP section, below, for more 
501 information.
502 .TP 8
503 .B visualID\fP (class \fBVisualID\fP)
504 Specify which X visual to use by default.  (Note carefully that this resource
505 is called \fBvisualID\fP, not merely \fBvisual\fP; if you set the \fBvisual\fP
506 resource instead, things will malfunction in obscure ways for obscure reasons.)
507
508 Legal values for the \fBVisualID\fP resource are:
509 .RS 8
510 .TP 8
511 .B default
512 Use the screen's default visual (the visual of the root window.)  
513 This is the default.
514 .TP 8
515 .B best
516 Use the visual which supports the most colors.  Note, however, that the
517 visual with the most colors might be a TrueColor visual, which does not
518 support colormap animation.  Some programs have more interesting behavior
519 when run on PseudoColor visuals than on TrueColor.
520 .TP 8
521 .B mono
522 Use a monochrome visual, if there is one.
523 .TP 8
524 .B gray
525 Use a grayscale or staticgray visual, if there is one and it has more than
526 one plane (that is, it's not monochrome.)
527 .TP 8
528 .B color
529 Use the best of the color visuals, if there are any.
530 .TP 8
531 .B GL
532 Use the visual that is best for OpenGL programs.  (OpenGL programs have
533 somewhat different requirements than other X programs.)
534 .TP 8
535 .I class
536 where \fIclass\fP is one of \fBStaticGray\fP, \fBStaticColor\fP, 
537 \fBTrueColor\fP, \fBGrayScale\fP, \fBPseudoColor\fP, or \fBDirectColor\fP.
538 Selects the deepest visual of the given class.
539 .TP 8
540 .I number
541 where \fInumber\fP (decimal or hex) is interpreted as a visual id number, 
542 as reported by the
543 .BR xdpyinfo (1)
544 program; in this way you can have finer control over exactly which visual
545 gets used, for example, to select a shallower one than would otherwise
546 have been chosen.
547
548 .RE
549 .RS 8
550 Note that this option specifies only the \fIdefault\fP visual that will
551 be used: the visual used may be overridden on a program-by-program basis.
552 See the description of the \fBprograms\fP resource, below.
553 .RE
554 .TP 8
555 .B installColormap\fP (class \fBBoolean\fP)
556 On PseudoColor (8-bit) displays, install a private colormap while the
557 screensaver is active, so that the graphics hacks can get as many
558 colors as possible.  This is the default.  (This only applies when the
559 screen's default visual is being used, since non-default visuals get
560 their own colormaps automatically.)  This can also be overridden on a
561 per-hack basis: see the discussion of the \fBdefault\-n\fP name in the
562 section about the \fBprograms\fP resource.
563
564 This does nothing if you have a TrueColor (16-bit or deeper) display.
565 .TP 8
566 .B verbose\fP (class \fBBoolean\fP)
567 Whether to print diagnostics.  Default false.
568 .TP 8
569 .B timestamp\fP (class \fBBoolean\fP)
570 Whether to print the time of day along with any other diagnostic messages.
571 Default true.
572 .TP 8
573 .B splash\fP (class \fBBoolean\fP)
574 Whether to display a splash screen at startup.  Default true.
575 .TP 8
576 .B splashDuration\fP (class \fBTime\fP)
577 How long the splash screen should remain visible; default 5 seconds.
578 .TP 8
579 .B helpURL\fP (class \fBURL\fP)
580 The splash screen has a \fIHelp\fP button on it.  When you press it, it will
581 display the web page indicated here in your web browser.
582 .TP 8
583 .B loadURL\fP (class \fBLoadURL\fP)
584 This is the shell command used to load a URL into your web browser.
585 The default setting will load it into Mozilla/Netscape if it is already
586 running, otherwise, will launch a new browser looking at the \fIhelpURL\fP.
587 .TP 8
588 .B demoCommand\fP (class \fBDemoCommand\fP)
589 This is the shell command run when the \fIDemo\fP button on the splash window
590 is pressed.  It defaults to
591 .BR xscreensaver\-demo (1).
592 .TP 8
593 .B prefsCommand\fP (class \fBPrefsCommand\fP)
594 This is the shell command run when the \fIPrefs\fP button on the splash window
595 is pressed.  It defaults to \fIxscreensaver\-demo\ \-prefs\fP.
596 .TP 8
597 .B nice\fP (class \fBNice\fP)
598 The sub-processes created by \fIxscreensaver\fP will be ``niced'' to this
599 level, so that they are given lower priority than other processes on the
600 system, and don't increase the load unnecessarily.  The default is 10.  
601
602 (Higher numbers mean lower priority; see 
603 .BR nice (1)
604 for details.)
605 .TP 8
606 .B fade\fP (class \fBBoolean\fP)
607 If this is true, then when the screensaver activates, the current contents
608 of the screen will fade to black instead of simply winking out.  This only
609 works on certain systems.  A fade will also be done when switching graphics
610 hacks (when the \fIcycle\fP timer expires.)  Default: true.  
611 .TP 8
612 .B unfade\fP (class \fBBoolean\fP)
613 If this is true, then when the screensaver deactivates, the original contents
614 of the screen will fade in from black instead of appearing immediately.  This
615 only works on certain systems, and if \fIfade\fP is true as well.
616 Default false.
617 .TP 8
618 .B fadeSeconds\fP (class \fBTime\fP)
619 If \fIfade\fP is true, this is how long the fade will be in 
620 seconds (default 3 seconds.)
621 .TP 8
622 .B fadeTicks\fP (class \fBInteger\fP)
623 If \fIfade\fP is true, this is how many times a second the colormap will
624 be changed to effect a fade.  Higher numbers yield smoother fades, but
625 may make the fades take longer than the specified \fIfadeSeconds\fP if
626 your server isn't fast enough to keep up.  Default 20.
627 .TP 8
628 .B captureStderr\fP (class \fBBoolean\fP)
629 Whether \fIxscreensaver\fP should redirect its stdout and stderr streams to
630 the window itself.  Since its nature is to take over the screen, you would not
631 normally see error messages generated by xscreensaver or the sub-programs it
632 runs; this resource will cause the output of all relevant programs to be
633 drawn on the screensaver window itself, as well as being written to the
634 controlling terminal of the screensaver driver process.  Default true.
635 .TP 8
636 .B ignoreUninstalledPrograms\fP (class \fBBoolean\fP)
637 There may be programs in the list that are not installed on the system,
638 yet are marked as "enabled."  If this preference is true, then such 
639 programs will simply be ignored.  If false, then a warning will be printed
640 if an attempt is made to run the nonexistent program.  Also, the
641 .BR xscreensaver-demo (1)
642 program will suppress the non-existent programs from the list if this
643 is true.  Default: false.
644 .TP 8
645 .B GetViewPortIsFullOfLies\fP (class \fBBoolean\fP)
646 Set this to true if the xscreensaver window doesn't cover the whole screen.
647 This works around a longstanding XFree86 bug #421.  See the 
648 xscreensaver FAQ for details.
649 .TP 8
650 .B font\fP (class \fBFont\fP)
651 The font used for the stdout/stderr text, if \fBcaptureStderr\fP is true.
652 Default \fB*\-medium\-r\-*\-140\-*\-m\-*\fP (a 14 point fixed-width font.)
653 .TP 8
654 .B mode\fP (class \fBMode\fP)
655 Controls the behavior of xscreensaver.  Legal values are:
656 .RS 8
657 .TP 8
658 .B random
659 When blanking the screen, select a random display mode from among those
660 that are enabled and applicable.  This is the default.
661 .TP 8
662 .B random-same
663 Like \fIrandom\fP, but if there are multiple screens, each screen
664 will run the \fIsame\fP random display mode, instead of each screen
665 running a different one.
666 .TP 8
667 .B one
668 When blanking the screen, only ever use one particular display mode (the
669 one indicated by the \fIselected\fP setting.)
670 .TP 8
671 .B blank
672 When blanking the screen, just go black: don't run any graphics hacks.
673 .TP 8
674 .B off
675 Don't ever blank the screen, and don't ever allow the monitor to power down.
676
677 .RE
678 .TP 8
679 .B selected\fP (class \fBInteger\fP)
680 When \fImode\fP is set to \fIone\fP, this is the one, indicated by its
681 index in the \fIprograms\fP list.  You're crazy if you count them and
682 set this number by hand: let
683 .BR xscreensaver\-demo (1)
684 do it for you!
685 .TP 8
686 .B programs\fP (class \fBPrograms\fP)
687 The graphics hacks which \fIxscreensaver\fP runs when the user is idle.
688 The value of this resource is a multi-line string, one \fIsh\fP-syntax
689 command per line.  Each line must contain exactly one command: no
690 semicolons, no ampersands.
691
692 When the screensaver starts up, one of these is selected (according to
693 the \fBmode\fP setting), and run.  After the \fIcycle\fP period
694 expires, it is killed, and another is selected and run.
695
696 If a line begins with a dash (-) then that particular program is
697 disabled: it won't be selected at random (though you can still select
698 it explicitly using the
699 .BR xscreensaver\-demo (1)
700 program.)
701
702 If all programs are disabled, then the screen will just be made blank,
703 as when \fImode\fP is set to \fIblank\fP.
704
705 To disable a program, you must mark it as disabled with a dash instead
706 of removing it from the list.  This is because the system-wide (app-defaults)
707 and per-user (.xscreensaver) settings are merged together, and if a user
708 just \fIdeletes\fP an entry from their programs list, but that entry still
709 exists in the system-wide list, then it will come back.  However, if the
710 user \fIdisables\fP it, then their setting takes precedence.
711
712 If the display has multiple screens, then a different program will be run
713 for each screen.  (All screens are blanked and unblanked simultaneously.)
714
715 Note that you must escape the newlines; here is an example of how you
716 might set this in your \fI~/.xscreensaver\fP file:
717
718 .RS 8
719 .EX
720 programs:  \\
721        qix -root                          \\n\\
722        ico -r -faces -sleep 1 -obj ico    \\n\\
723        xdaliclock -builtin2 -root         \\n\\
724        xv -root -rmode 5 image.gif -quit  \\n
725 .EE
726 .RE
727 .RS 8
728 Make sure your \fB$PATH\fP environment variable is set up correctly
729 \fIbefore\fP xscreensaver is launched, or it won't be able to find the
730 programs listed in the \fIprograms\fP resource.
731
732 To use a program as a screensaver, two things are required: that that
733 program draw on the root window (or be able to be configured to draw on
734 the root window); and that that program understand ``virtual root''
735 windows, as used by virtual window managers such as
736 .BR tvtwm (1).
737 (Generally, this is accomplished by just including the \fI"vroot.h"\fP 
738 header file in the program's source.)
739
740 If there are some programs that you want to run only when using a color
741 display, and others that you want to run only when using a monochrome
742 display, you can specify that like this:
743 .EX
744        mono:   mono-program  -root        \\n\\
745        color:  color-program -root        \\n\\
746 .EE
747 .RE
748 .RS 8
749 More generally, you can specify the kind of visual that should be used for
750 the window on which the program will be drawing.  For example, if one 
751 program works best if it has a colormap, but another works best if it has
752 a 24-bit visual, both can be accommodated:
753 .EX
754        PseudoColor: cmap-program  -root   \\n\\
755        TrueColor:   24bit-program -root   \\n\\
756 .EE
757 .RE
758 .RS 8
759 In addition to the symbolic visual names described above (in the discussion
760 of the \fIvisualID\fP resource) one other visual name is supported in
761 the \fIprograms\fP list:
762 .RS 1
763 .TP 4
764 .B default-n
765 This is like \fBdefault\fP, but also requests the use of the default colormap,
766 instead of a private colormap.  (That is, it behaves as if 
767 the \fI\-no\-install\fP command-line option was specified, but only for
768 this particular hack.)  This is provided because some third-party programs
769 that draw on the root window (notably: 
770 .BR xv (1),
771 and
772 .BR xearth (1))
773 make assumptions about the visual and colormap of the root window: 
774 assumptions which xscreensaver can violate.
775
776 .RE
777 If you specify a particular visual for a program, and that visual does not
778 exist on the screen, then that program will not be chosen to run.  This
779 means that on displays with multiple screens of different depths, you can
780 arrange for appropriate hacks to be run on each.  For example, if one screen
781 is color and the other is monochrome, hacks that look good in mono can be 
782 run on one, and hacks that only look good in color will show up on the other.
783 .RE
784 .PP
785 .PP
786 You shouldn't ever need to change the following resources:
787 .PP
788 .TP 8
789 .B pointerPollTime\fP (class \fBTime\fP)
790 When server extensions are not in use, this controls how 
791 frequently \fIxscreensaver\fP checks to see if the mouse position or buttons
792 have changed.  Default 5 seconds.
793 .TP 8
794 .B pointerHysteresis\fP (class \fBInteger\fP)
795 If the mouse moves less than this-many pixels in a second, ignore it
796 (do not consider that to be "activity.")  This is so that the screen
797 doesn't un-blank (or fail to blank) just because you bumped the desk.
798 Default: 10 pixels.
799 .TP 8
800 .B windowCreationTimeout\fP (class \fBTime\fP)
801 When server extensions are not in use, this controls the delay between when 
802 windows are created and when \fIxscreensaver\fP selects events on them.
803 Default 30 seconds.
804 .TP 8
805 .B initialDelay\fP (class \fBTime\fP)
806 When server extensions are not in use, \fIxscreensaver\fP will wait this many
807 seconds before selecting events on existing windows, under the assumption that 
808 \fIxscreensaver\fP is started during your login procedure, and the window 
809 state may be in flux.  Default 0.  (This used to default to 30, but that was
810 back in the days when slow machines and X terminals were more common...)
811 .RE
812 .PP
813 There are a number of different X server extensions which can make
814 xscreensaver's job easier.  The next few resources specify whether these
815 extensions should be utilized if they are available.
816 .TP 8
817 .B sgiSaverExtension\fP (class \fBBoolean\fP)
818 This resource controls whether the SGI \fBSCREEN_SAVER\fP server extension
819 will be used to decide whether the user is idle.  This is the default 
820 if \fIxscreensaver\fP has been compiled with support for this 
821 extension (which is the default on SGI systems.).  If it is available, 
822 the \fBSCREEN_SAVER\fP method is faster and more reliable than what will
823 be done otherwise, so use it if you can.  (This extension is only available
824 on Silicon Graphics systems, unfortunately.)
825 .TP 8
826 .B mitSaverExtension\fP (class \fBBoolean\fP)
827 This resource controls whether the \fBMIT\-SCREEN\-SAVER\fP server extension
828 will be used to decide whether the user is idle.  However, the default for
829 this resource is \fIfalse\fP, because even if this extension is available,
830 it is flaky (and it also makes the \fBfade\fP option not work properly.)
831 Use of this extension is strongly discouraged.  Support for it will
832 probably be removed eventually.
833 .TP 8
834 .B xidleExtension\fP (class \fBBoolean\fP)
835 This resource controls whether the \fBXIDLE\fP server extension will be
836 used to decide whether the user is idle.  This is the default 
837 if \fIxscreensaver\fP has been compiled with support for this extension.
838 (This extension is only available for X11R4 and X11R5 systems, unfortunately.)
839 .TP 8
840 .B procInterrupts\fP (class \fBBoolean\fP)
841 This resource controls whether the \fB/proc/interrupts\fP file should be
842 consulted to decide whether the user is idle.  This is the default
843 if \fIxscreensaver\fP has been compiled on a system which supports this
844 mechanism (i.e., Linux systems.)  
845
846 The benefit to doing this is that \fIxscreensaver\fP can note that the user
847 is active even when the X console is not the active one: if the user is 
848 typing in another virtual console, xscreensaver will notice that and will
849 fail to activate.  For example, if you're playing Quake in VGA-mode, 
850 xscreensaver won't wake up in the middle of your game and start competing 
851 for CPU.
852
853 The drawback to doing this is that perhaps you \fIreally do\fP want idleness
854 on the X console to cause the X display to lock, even if there is activity
855 on other virtual consoles.  If you want that, then set this option to False.
856 (Or just lock the X console manually.)
857
858 The default value for this resource is True, on systems where it works.
859 .TP 8
860 .B overlayStderr\fP (class \fBBoolean\fP)
861 If \fBcaptureStderr\fP is True, and your server supports ``overlay'' visuals,
862 then the text will be written into one of the higher layers instead of into
863 the same layer as the running screenhack.  Set this to False to disable 
864 that (though you shouldn't need to.)
865 .TP 8
866 .B overlayTextForeground\fP (class \fBForeground\fP)
867 The foreground color used for the stdout/stderr text, if \fBcaptureStderr\fP
868 is true.  Default: Yellow.
869 .TP 8
870 .B overlayTextBackground\fP (class \fBBackground\fP)
871 The background color used for the stdout/stderr text, if \fBcaptureStderr\fP
872 is true.  Default: Black.
873 .TP 8
874 .B bourneShell\fP (class \fBBourneShell\fP)
875 The pathname of the shell that \fIxscreensaver\fP uses to start subprocesses.
876 This must be whatever your local variant of \fB/bin/sh\fP is: in particular,
877 it must not be \fBcsh\fP.
878 .SH ENVIRONMENT
879 .PP
880 .TP 8
881 .B DISPLAY
882 to get the default host and display number, and to inform the sub-programs
883 of the screen on which to draw.
884 .TP 8
885 .B XSCREENSAVER_WINDOW
886 Passed to sub-programs to indicate the ID of the window on which they
887 should draw on.  This is necessary on Xinerama/RANDR systems where
888 multiple physical monitors share a single X11 "Screen".
889 .TP 8
890 .B PATH
891 to find the sub-programs to run.
892 .TP 8
893 .B HOME
894 for the directory in which to read the \fI.xscreensaver\fP file.
895 .TP 8
896 .B XENVIRONMENT
897 to get the name of a resource file that overrides the global resources
898 stored in the RESOURCE_MANAGER property.
899 .SH UPGRADES
900 The latest version of xscreensaver, an online version of this manual,
901 and a FAQ can always be found at http://www.jwz.org/xscreensaver/
902 .SH SEE ALSO
903 .BR X (1),
904 .BR Xsecurity (1),
905 .BR xauth (1),
906 .BR xdm (1),
907 .BR gdm (1),
908 .BR xhost (1),
909 .BR xscreensaver\-demo (1),
910 .BR xscreensaver\-command (1),
911 .BR xscreensaver\-gl\-helper (1),
912 .BR xscreensaver\-getimage (1),
913 .BR xscreensaver\-text (1).
914 .SH COPYRIGHT
915 Copyright \(co 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
916 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 by Jamie Zawinski.
917 Permission to use, copy, modify, distribute, and sell this software
918 and its documentation for any purpose is hereby granted without fee,
919 provided that the above copyright notice appear in all copies and that
920 both that copyright notice and this permission notice appear in
921 supporting documentation.  No representations are made about the
922 suitability of this software for any purpose.  It is provided "as is"
923 without express or implied warranty.
924 .SH AUTHOR
925 Jamie Zawinski <jwz@jwz.org>.  Written in late 1991; version 1.0 posted
926 to comp.sources.x on 17-Aug-1992.
927
928 Please let me know if you find any bugs or make any improvements.
929 .SH ACKNOWLEDGEMENTS
930 Thanks to Angela Goodman for the XScreenSaver logo.
931
932 Thanks to the many people who have contributed graphics demos to the package.
933
934 Thanks to David Wojtowicz for implementing \fIlockTimeout\fP.
935
936 Thanks to Martin Kraemer for adding support for shadow passwords and
937 locking-disabled diagnostics.
938
939 Thanks to Patrick Moreau for the VMS port.
940
941 Thanks to Nat Lanza for the Kerberos support.
942
943 Thanks to Bill Nottingham for the initial PAM support.
944
945 And thanks to Jon A. Christopher for implementing the Athena dialog
946 support, back in the days before Lesstif or Gtk were viable alternatives
947 to Motif.