From http://www.jwz.org/xscreensaver/xscreensaver-5.27.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 "09-Nov-2013 (5.23)" "X Version 11"
15 .SH NAME
16 xscreensaver - extensible screen saver and screen locking framework
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 parameter
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 the better part of a decade, GNOME shipped xscreensaver as-is,
185 and everything just worked out of the box.  In 2005, however, they
186 decided to re-invent the wheel and ship their own replacement for
187 the \fIxscreensaver\fP daemon called "\fIgnome-screensaver\fP",
188 rather than improving xscreensaver and contributing their changes
189 back.  As a result, the "\fIgnome-screensaver\fP" program is insecure,
190 bug-ridden, and missing many features of xscreensaver.  You shouldn't
191 use it.
192
193 To replace gnome-screensaver with xscreensaver:
194 .RS 4
195 .TP 3
196 \fB1: Fully uninstall the gnome-screensaver package.\fP
197 .EX
198 sudo apt-get remove gnome-screensaver
199 .EE
200 .TP 3
201 \fB2: Launch xscreensaver at login.\fP
202 Select "\fIStartup Applications\fP" from the menu (or manually
203 launch "\fIgnome-session-properties\fP") and add "\fIxscreensaver\fP".
204 .TP 3
205 \fB3: Make "Lock Screen" use xscreensaver.\fP
206 .EX
207 sudo ln -sf /usr/bin/xscreensaver-command \\
208             /usr/bin/gnome-screensaver-command
209 .EE
210 .SH USING KDE
211 Like GNOME, KDE also decided to invent their own screen saver framework
212 from scratch instead of simply using xscreensaver.  To replace the KDE
213 screen saver with xscreensaver, do the following:
214 .RS 4
215 .TP 3
216 \fB1: Turn off KDE's screen saver.\fP
217 Open the "\fIControl Center\fP" and
218 select the "\fIAppearance & Themes / Screensaver\fP" page.
219 Un-check "\fIStart Automatically\fP".
220 .TP 3
221 \fB2: Find your Autostart directory.\fP
222 Open the "\fISystem Administration / Paths\fP" page,
223 and see what your "Autostart path" is set to: it will
224 probably be \fI~/.kde/Autostart/\fP or something similar.
225 .TP 3
226 \fB3: Make xscreensaver be an Autostart program.\fP
227 Create a .desktop file in your autostart directory 
228 called \fIxscreensaver.desktop\fP that contains the following five lines:
229 .EX
230
231 [Desktop Entry]
232 Exec=xscreensaver
233 Name=XScreenSaver
234 Type=Application
235 X-KDE-StartupNotify=false
236 .EE
237 .TP 3
238 \fB4: Make the various "lock session" buttons call xscreensaver.\fP
239 The file you want to replace next has moved around over the years. It
240 might be called \fI/usr/libexec/kde4/kscreenlocker\fP,
241 or it might be called "\fIkdesktop_lock\fP" or "\fIkrunner_lock\fP"
242 or "\fIkscreenlocker_greet\fP", and
243 it might be in \fI/usr/lib/kde4/libexec/\fP
244 or in \fI/usr/kde/3.5/bin/\fP or even in \fI/usr/bin/\fP,
245 depending on the distro and phase of the moon.  Replace the contents
246 of that file with these two lines:
247 .EX
248
249 #!/bin/sh
250 xscreensaver-command -lock
251
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 UNITY
262 Guess what, they did it again!  Ubuntu Unity's screen-locking
263 framework is \fIyet another\fP rewrite, and it is completely broken,
264 bug-ridden and insecure. At this time I don't have any information on
265 how to turn it off and use xscreensaver instead.  If you do, let me
266 know.
267 .SH USING GDM
268 You can run \fIxscreensaver\fP from your 
269 .BR gdm (1)
270 session, so that the screensaver will run even when nobody is logged 
271 in on the console.  To do this, run
272 .BR gdmconfig (1)
273 and on the \fIBackground\fP page, type the 
274 command \fB"xscreensaver -nosplash"\fP into the \fIBackground Program\fP
275 field.  That will cause gdm to run xscreensaver while nobody is logged
276 in, and kill it as soon as someone does log in.  (The user will then
277 be responsible for starting xscreensaver on their own, if they want.)
278
279 Another way to accomplish the same thing is to edit the
280 file \fI/etc/X11/gdm/gdm.conf\fP to include:
281 .EX
282 BackgroundProgram=xscreensaver -nosplash
283 RunBackgroundProgramAlways=true
284 .EE
285 In this situation, the \fIxscreensaver\fP process will probably be running
286 as user \fIgdm\fP instead of \fIroot\fP.  You can configure the settings
287 for this nobody-logged-in state (timeouts, DPMS, etc.) by editing
288 the \fI~gdm/.xscreensaver\fP file.
289
290 To get gdm to run the BackgroundProgram, you may need to switch it from
291 the "Graphical Greeter" to the "Standard Greeter".
292
293 It is safe to run \fIxscreensaver\fP as root (as \fIxdm\fP or \fIgdm\fP may do.)
294 If run as root, \fIxscreensaver\fP changes its effective user and group ids 
295 to something safe (like \fI"nobody"\fP) before connecting to the X server
296 or launching user-specified programs.
297
298 An unfortunate side effect of this (important) security precaution is that
299 it may conflict with cookie-based authentication.
300
301 If you get "connection refused" errors when running \fIxscreensaver\fP
302 from \fIgdm\fP, then this probably means that you have
303 .BR xauth (1)
304 or some other security mechanism turned on.  For information on the
305 X server's access control mechanisms, see the man pages for
306 .BR X (1),
307 .BR Xsecurity (1),
308 .BR xauth (1),
309 and
310 .BR xhost (1).
311 .SH BUGS
312 Bugs?  There are no bugs.  Ok, well, maybe.  If you find one, please let
313 me know.  http://www.jwz.org/xscreensaver/bugs.html explains how to
314 construct the most useful bug reports.
315 .PP
316 .TP 4
317 .B Locking and root logins
318 In order for it to be safe for xscreensaver to be launched by \fIxdm\fP,
319 certain precautions had to be taken, among them that xscreensaver never
320 runs as \fIroot\fP.  In particular, if it is launched as root (as \fIxdm\fP
321 is likely to do), xscreensaver will disavow its privileges, and switch 
322 itself to a safe user id (such as \fInobody\fP.)
323
324 An implication of this is that if you log in as \fIroot\fP on the console, 
325 xscreensaver will refuse to lock the screen (because it can't tell
326 the difference between \fIroot\fP being logged in on the console, and a
327 normal user being logged in on the console but xscreensaver having been 
328 launched by the
329 .BR xdm (1)
330 .I Xsetup
331 file.)
332
333 The solution to this is simple: you shouldn't be logging in on the console
334 as \fIroot\fP in the first place!  (What, are you crazy or something?)  
335
336 Proper Unix hygiene dictates that you should log in as yourself, and
337 .BR su (1)
338 to \fIroot\fP as necessary.  People who spend their day logged in
339 as \fIroot\fP are just begging for disaster.
340 .TP 4
341 .B XAUTH and XDM
342 For xscreensaver to work when launched by
343 .BR xdm (1)
344 or
345 .BR gdm (1),
346 programs running on the local machine as user \fI"nobody"\fP must be
347 able to connect to the X server.  This means that if you want to run
348 xscreensaver on the console while nobody is logged in, you may need
349 to disable cookie-based access control (and allow all users who can log
350 in to the local machine to connect to the display.)  
351
352 You should be sure that this is an acceptable thing to do in your
353 environment before doing it.  See the "\fIUsing GDM\fP" section, 
354 above, for more details.
355 .TP 4
356 .B Passwords
357 If you get an error message at startup like "couldn't get password
358 of \fIuser\fP" then this probably means that you're on a system in which 
359 the
360 .BR getpwent (3)
361 library routine can only be effectively used by root.  If this is the case, 
362 then \fIxscreensaver\fP must be installed as setuid to root in order for
363 locking to work.  Care has been taken to make this a safe thing to do.  
364
365 It also may mean that your system uses shadow passwords instead of the standard
366 .BR getpwent (3)
367 interface; in that case, you may need to change some options 
368 with \fIconfigure\fP and recompile.
369
370 If you change your password after xscreensaver has been launched, it will
371 continue using your old password to unlock the screen until xscreensaver
372 is restarted.  On some systems, it may accept \fIboth\fP your old and new
373 passwords.  So, after you change your password, you'll have to do
374 .EX
375 xscreensaver-command -restart
376 .EE
377 to make \fIxscreensaver\fP notice.
378 .TP 4
379 .B PAM Passwords
380 If your system uses PAM (Pluggable Authentication Modules), then in order
381 for xscreensaver to use PAM properly, PAM must be told about xscreensaver.
382 The xscreensaver installation process should update the PAM data (on Linux,
383 by creating the file \fI/etc/pam.d/xscreensaver\fP for you, and on Solaris, 
384 by telling you what lines to add to the \fI/etc/pam.conf\fP file.)  
385
386 If the PAM configuration files do not know about xscreensaver, then 
387 you \fImight\fP be in a situation where xscreensaver will refuse to ever
388 unlock the screen.
389
390 This is a design flaw in PAM (there is no way for a client to tell the
391 difference between PAM responding "I have never heard of your module",
392 and responding, "you typed the wrong password".)  As far as I can tell,
393 there is no way for xscreensaver to automatically work around this, or
394 detect the problem in advance, so if you have PAM, make sure it is
395 configured correctly!
396 .TP 4
397 .B Machine Load
398 Although this program "nices" the subprocesses that it starts, 
399 graphics-intensive subprograms can still overload the machine by causing
400 the X server process itself (which is not "niced") to consume many
401 cycles.  Care has been taken in all the modules shipped with xscreensaver
402 to sleep periodically, and not run full tilt, so as not to cause
403 appreciable load.
404
405 However, if you are running the OpenGL-based screen savers on a machine
406 that does not have a video card with 3D acceleration, they \fIwill\fP
407 make your machine slow, despite
408 .BR nice (1).
409
410 Your options are: don't use the OpenGL display modes; or, collect the
411 spare change hidden under the cushions of your couch, and use it to
412 buy a video card manufactured after 1998.  (It doesn't even need to be
413 \fIfast\fP 3D hardware: the problem will be fixed if there is any
414 3D hardware \fIat all.\fP)
415 .TP 4
416 .B XFree86's Magic Keystrokes
417 The XFree86 X server traps certain magic keystrokes before client programs ever
418 see them.  Two that are of note are Ctrl+Alt+Backspace, which causes 
419 the X server to exit; and Ctrl+Alt+F\fIn\fP, which switches virtual consoles.
420 The X server will respond to these keystrokes even if xscreensaver has the
421 screen locked.  Depending on your setup, you might consider this a problem.
422
423 Unfortunately, there is no way for xscreensaver itself to override the
424 interpretation of these keys.  If you want to disable Ctrl+Alt+Backspace
425 globally, you need to set the \fIDontZap\fP flag in 
426 your \fI/etc/X11/XF86Config\fP file.  To globally disable VT switching,
427 you can set the \fIDontVTSwitch\fP flag.  See the
428 .BR XF86Config (5)
429 manual for details.
430 .SH X RESOURCES
431 These are the X resources use by the \fIxscreensaver\fP program.
432 You probably won't need to change these manually (that's what the
433 .BR xscreensaver\-demo (1)
434 program is for).
435 .TP 8
436 .B timeout\fP (class \fBTime\fP)
437 The screensaver will activate (blank the screen) after the keyboard and
438 mouse have been idle for this many minutes.  Default 10 minutes.
439 .TP 8
440 .B cycle\fP (class \fBTime\fP)
441 After the screensaver has been running for this many minutes, the currently
442 running graphics-hack sub-process will be killed (with \fBSIGTERM\fP), and a
443 new one started.  If this is 0, then the graphics hack will never be changed:
444 only one demo will run until the screensaver is deactivated by user activity.
445 Default 10 minutes.
446 .TP 8
447 .B lock\fP (class \fBBoolean\fP)
448 Enable locking: before the screensaver will turn off, it will require you 
449 to type the password of the logged-in user (really, the person who ran
450 xscreensaver), or the root password.  (\fBNote:\fP this doesn't work if the
451 screensaver is launched by
452 .BR xdm (1)
453 because it can't know the user-id of the logged-in user.  See 
454 the "\fIUsing XDM(1)\fP" section, below.
455 .TP 8
456 .B lockTimeout\fP (class \fBTime\fP)
457 If locking is enabled, this controls the length of the "grace period"
458 between when the screensaver activates, and when the screen becomes locked.
459 For example, if this is 5, and \fI\-timeout\fP is 10, then after 10 minutes,
460 the screen would blank.  If there was user activity at 12 minutes, no password
461 would be required to un-blank the screen.  But, if there was user activity
462 at 15 minutes or later (that is, \fI\-lock\-timeout\fP minutes after 
463 activation) then a password would be required.  The default is 0, meaning
464 that if locking is enabled, then a password will be required as soon as the 
465 screen blanks.
466 .TP 8
467 .B passwdTimeout\fP (class \fBTime\fP)
468 If the screen is locked, then this is how many seconds the password dialog box
469 should be left on the screen before giving up (default 30 seconds.)  This
470 should not be too large: the X server is grabbed for the duration that the
471 password dialog box is up (for security purposes) and leaving the server 
472 grabbed for too long can cause problems.
473 .TP 8
474 .B dpmsEnabled\fP (class \fBBoolean\fP)
475 Whether power management is enabled.
476 .TP 8
477 .B dpmsStandby\fP (class \fBTime\fP)
478 If power management is enabled, how long until the monitor goes solid black.
479 .TP 8
480 .B dpmsSuspend\fP (class \fBTime\fP)
481 If power management is enabled, how long until the monitor goes into
482 power-saving mode.
483 .TP 8
484 .B dpmsOff\fP (class \fBTime\fP)
485 If power management is enabled, how long until the monitor powers down
486 completely.  Note that these settings will have no effect unless both
487 the X server and the display hardware support power management; not 
488 all do.  See the \fIPower Management\fP section, below, for more 
489 information.
490 .TP 8
491 .B dpmsQuickOff\fP (class \fBBoolean\fP)
492 If \fImode\fP is \fIblank\fP and this is true, then the screen will be
493 powered down immediately upon blanking, regardless of other
494 power-management settings.
495 .TP 8
496 .B visualID\fP (class \fBVisualID\fP)
497 Specify which X visual to use by default.  (Note carefully that this resource
498 is called \fBvisualID\fP, not merely \fBvisual\fP; if you set the \fBvisual\fP
499 resource instead, things will malfunction in obscure ways for obscure reasons.)
500
501 Legal values for the \fBVisualID\fP resource are:
502 .RS 8
503 .TP 8
504 .B default
505 Use the screen's default visual (the visual of the root window.)  
506 This is the default.
507 .TP 8
508 .B best
509 Use the visual which supports the most colors.  Note, however, that the
510 visual with the most colors might be a TrueColor visual, which does not
511 support colormap animation.  Some programs have more interesting behavior
512 when run on PseudoColor visuals than on TrueColor.
513 .TP 8
514 .B mono
515 Use a monochrome visual, if there is one.
516 .TP 8
517 .B gray
518 Use a grayscale or staticgray visual, if there is one and it has more than
519 one plane (that is, it's not monochrome.)
520 .TP 8
521 .B color
522 Use the best of the color visuals, if there are any.
523 .TP 8
524 .B GL
525 Use the visual that is best for OpenGL programs.  (OpenGL programs have
526 somewhat different requirements than other X programs.)
527 .TP 8
528 .I class
529 where \fIclass\fP is one of \fBStaticGray\fP, \fBStaticColor\fP, 
530 \fBTrueColor\fP, \fBGrayScale\fP, \fBPseudoColor\fP, or \fBDirectColor\fP.
531 Selects the deepest visual of the given class.
532 .TP 8
533 .I number
534 where \fInumber\fP (decimal or hex) is interpreted as a visual id number, 
535 as reported by the
536 .BR xdpyinfo (1)
537 program; in this way you can have finer control over exactly which visual
538 gets used, for example, to select a shallower one than would otherwise
539 have been chosen.
540
541 .RE
542 .RS 8
543 Note that this option specifies only the \fIdefault\fP visual that will
544 be used: the visual used may be overridden on a program-by-program basis.
545 See the description of the \fBprograms\fP resource, below.
546 .RE
547 .TP 8
548 .B installColormap\fP (class \fBBoolean\fP)
549 On PseudoColor (8-bit) displays, install a private colormap while the
550 screensaver is active, so that the graphics hacks can get as many
551 colors as possible.  This is the default.  (This only applies when the
552 screen's default visual is being used, since non-default visuals get
553 their own colormaps automatically.)  This can also be overridden on a
554 per-hack basis: see the discussion of the \fBdefault\-n\fP name in the
555 section about the \fBprograms\fP resource.
556
557 This does nothing if you have a TrueColor (16-bit or deeper) display.
558 .TP 8
559 .B verbose\fP (class \fBBoolean\fP)
560 Whether to print diagnostics.  Default false.
561 .TP 8
562 .B timestamp\fP (class \fBBoolean\fP)
563 Whether to print the time of day along with any other diagnostic messages.
564 Default true.
565 .TP 8
566 .B splash\fP (class \fBBoolean\fP)
567 Whether to display a splash screen at startup.  Default true.
568 .TP 8
569 .B splashDuration\fP (class \fBTime\fP)
570 How long the splash screen should remain visible; default 5 seconds.
571 .TP 8
572 .B helpURL\fP (class \fBURL\fP)
573 The splash screen has a \fIHelp\fP button on it.  When you press it, it will
574 display the web page indicated here in your web browser.
575 .TP 8
576 .B loadURL\fP (class \fBLoadURL\fP)
577 This is the shell command used to load a URL into your web browser.
578 The default setting will load it into Mozilla/Netscape if it is already
579 running, otherwise, will launch a new browser looking at the \fIhelpURL\fP.
580 .TP 8
581 .B demoCommand\fP (class \fBDemoCommand\fP)
582 This is the shell command run when the \fIDemo\fP button on the splash window
583 is pressed.  It defaults to
584 .BR xscreensaver\-demo (1).
585 .TP 8
586 .B prefsCommand\fP (class \fBPrefsCommand\fP)
587 This is the shell command run when the \fIPrefs\fP button on the splash window
588 is pressed.  It defaults to \fIxscreensaver\-demo\ \-prefs\fP.
589 .TP 8
590 .B newLoginCommand\fP (class \fBNewLoginCommand\fP)
591 If set, this is the shell command that is run when the "New Login" button
592 is pressed on the unlock dialog box, in order to create a new desktop
593 session without logging out the user who has locked the screen.
594 Typically this will be some variant of
595 .BR gdmflexiserver (1)
596 or
597 .BR kdmctl (1).
598 .TP 8
599 .B nice\fP (class \fBNice\fP)
600 The sub-processes created by \fIxscreensaver\fP will be "niced" to this
601 level, so that they are given lower priority than other processes on the
602 system, and don't increase the load unnecessarily.  The default is 10.  
603 (Higher numbers mean lower priority; see 
604 .BR nice (1)
605 for details.)
606 .TP 8
607 .B fade\fP (class \fBBoolean\fP)
608 If this is true, then when the screensaver activates, the current contents
609 of the screen will fade to black instead of simply winking out.  This only
610 works on certain systems.  A fade will also be done when switching graphics
611 hacks (when the \fIcycle\fP timer expires.)  Default: true.  
612 .TP 8
613 .B unfade\fP (class \fBBoolean\fP)
614 If this is true, then when the screensaver deactivates, the original contents
615 of the screen will fade in from black instead of appearing immediately.  This
616 only works on certain systems, and if \fIfade\fP is true as well.
617 Default false.
618 .TP 8
619 .B fadeSeconds\fP (class \fBTime\fP)
620 If \fIfade\fP is true, this is how long the fade will be in 
621 seconds (default 3 seconds.)
622 .TP 8
623 .B fadeTicks\fP (class \fBInteger\fP)
624 If \fIfade\fP is true, this is how many times a second the colormap will
625 be changed to effect a fade.  Higher numbers yield smoother fades, but
626 may make the fades take longer than the specified \fIfadeSeconds\fP if
627 your server isn't fast enough to keep up.  Default 20.
628 .TP 8
629 .B captureStderr\fP (class \fBBoolean\fP)
630 Whether \fIxscreensaver\fP should redirect its stdout and stderr streams to
631 the window itself.  Since its nature is to take over the screen, you would not
632 normally see error messages generated by xscreensaver or the sub-programs it
633 runs; this resource will cause the output of all relevant programs to be
634 drawn on the screensaver window itself, as well as being written to the
635 controlling terminal of the screensaver driver process.  Default true.
636 .TP 8
637 .B ignoreUninstalledPrograms\fP (class \fBBoolean\fP)
638 There may be programs in the list that are not installed on the system,
639 yet are marked as "enabled."  If this preference is true, then such 
640 programs will simply be ignored.  If false, then a warning will be printed
641 if an attempt is made to run the nonexistent program.  Also, the
642 .BR xscreensaver-demo (1)
643 program will suppress the non-existent programs from the list if this
644 is true.  Default: false.
645 .TP 8
646 .B GetViewPortIsFullOfLies\fP (class \fBBoolean\fP)
647 Set this to true if the xscreensaver window doesn't cover the whole screen.
648 This works around a longstanding XFree86 bug #421.  See the 
649 xscreensaver FAQ for details.
650 .TP 8
651 .B font\fP (class \fBFont\fP)
652 The font used for the stdout/stderr text, if \fBcaptureStderr\fP is true.
653 Default \fB*\-medium\-r\-*\-140\-*\-m\-*\fP (a 14 point fixed-width font.)
654 .TP 8
655 .B mode\fP (class \fBMode\fP)
656 Controls the behavior of xscreensaver.  Legal values are:
657 .RS 8
658 .TP 8
659 .B random
660 When blanking the screen, select a random display mode from among those
661 that are enabled and applicable.  This is the default.
662 .TP 8
663 .B random-same
664 Like \fIrandom\fP, but if there are multiple screens, each screen
665 will run the \fIsame\fP random display mode, instead of each screen
666 running a different one.
667 .TP 8
668 .B one
669 When blanking the screen, only ever use one particular display mode (the
670 one indicated by the \fIselected\fP setting.)
671 .TP 8
672 .B blank
673 When blanking the screen, just go black: don't run any graphics hacks.
674 .TP 8
675 .B off
676 Don't ever blank the screen, and don't ever allow the monitor to power down.
677
678 .RE
679 .TP 8
680 .B selected\fP (class \fBInteger\fP)
681 When \fImode\fP is set to \fIone\fP, this is the one, indicated by its
682 index in the \fIprograms\fP list.  You're crazy if you count them and
683 set this number by hand: let
684 .BR xscreensaver\-demo (1)
685 do it for you!
686 .TP 8
687 .B programs\fP (class \fBPrograms\fP)
688 The graphics hacks which \fIxscreensaver\fP runs when the user is idle.
689 The value of this resource is a multi-line string, one \fIsh\fP-syntax
690 command per line.  Each line must contain exactly one command: no
691 semicolons, no ampersands.
692
693 When the screensaver starts up, one of these is selected (according to
694 the \fBmode\fP setting), and run.  After the \fIcycle\fP period
695 expires, it is killed, and another is selected and run.
696
697 If a line begins with a dash (-) then that particular program is
698 disabled: it won't be selected at random (though you can still select
699 it explicitly using the
700 .BR xscreensaver\-demo (1)
701 program.)
702
703 If all programs are disabled, then the screen will just be made blank,
704 as when \fImode\fP is set to \fIblank\fP.
705
706 To disable a program, you must mark it as disabled with a dash instead
707 of removing it from the list.  This is because the system-wide (app-defaults)
708 and per-user (.xscreensaver) settings are merged together, and if a user
709 just \fIdeletes\fP an entry from their programs list, but that entry still
710 exists in the system-wide list, then it will come back.  However, if the
711 user \fIdisables\fP it, then their setting takes precedence.
712
713 If the display has multiple screens, then a different program will be run
714 for each screen.  (All screens are blanked and unblanked simultaneously.)
715
716 Note that you must escape the newlines; here is an example of how you
717 might set this in your \fI~/.xscreensaver\fP file:
718
719 .RS 8
720 .EX
721 programs:  \\
722        qix -root                          \\n\\
723        ico -r -faces -sleep 1 -obj ico    \\n\\
724        xdaliclock -builtin2 -root         \\n\\
725        xv -root -rmode 5 image.gif -quit  \\n
726 .EE
727 .RE
728 .RS 8
729 Make sure your \fB$PATH\fP environment variable is set up correctly
730 \fIbefore\fP xscreensaver is launched, or it won't be able to find the
731 programs listed in the \fIprograms\fP resource.
732
733 To use a program as a screensaver, two things are required: that that
734 program draw on the root window (or be able to be configured to draw on
735 the root window); and that that program understand "virtual root"
736 windows, as used by virtual window managers such as
737 .BR tvtwm (1).
738 (Generally, this is accomplished by just including the \fI"vroot.h"\fP 
739 header file in the program's source.)
740
741 .B Visuals:
742
743 Because xscreensaver was created back when dinosaurs roamed the earth,
744 it still contains support for some things you've probably never seen,
745 such as 1-bit monochrome monitors, grayscale monitors, and monitors
746 capable of displaying only 8-bit colormapped images.
747
748 If there are some programs that you want to run only when using a color
749 display, and others that you want to run only when using a monochrome
750 display, you can specify that like this:
751 .EX
752        mono:   mono-program  -root        \\n\\
753        color:  color-program -root        \\n\\
754 .EE
755 .RE
756 .RS 8
757 More generally, you can specify the kind of visual that should be used for
758 the window on which the program will be drawing.  For example, if one 
759 program works best if it has a colormap, but another works best if it has
760 a 24-bit visual, both can be accommodated:
761 .EX
762        PseudoColor: cmap-program  -root   \\n\\
763        TrueColor:   24bit-program -root   \\n\\
764 .EE
765 .RE
766 .RS 8
767 In addition to the symbolic visual names described above (in the discussion
768 of the \fIvisualID\fP resource) one other visual name is supported in
769 the \fIprograms\fP list:
770 .RS 1
771 .TP 4
772 .B default-n
773 This is like \fBdefault\fP, but also requests the use of the default colormap,
774 instead of a private colormap.  (That is, it behaves as if 
775 the \fI\-no\-install\fP command-line option was specified, but only for
776 this particular hack.)  This is provided because some third-party programs
777 that draw on the root window (notably: 
778 .BR xv (1),
779 and
780 .BR xearth (1))
781 make assumptions about the visual and colormap of the root window: 
782 assumptions which xscreensaver can violate.
783
784 .RE
785 If you specify a particular visual for a program, and that visual does not
786 exist on the screen, then that program will not be chosen to run.  This
787 means that on displays with multiple screens of different depths, you can
788 arrange for appropriate hacks to be run on each.  For example, if one screen
789 is color and the other is monochrome, hacks that look good in mono can be 
790 run on one, and hacks that only look good in color will show up on the other.
791 .RE
792 .PP
793 .PP
794 You shouldn't ever need to change the following resources:
795 .PP
796 .TP 8
797 .B pointerPollTime\fP (class \fBTime\fP)
798 When server extensions are not in use, this controls how 
799 frequently \fIxscreensaver\fP checks to see if the mouse position or buttons
800 have changed.  Default 5 seconds.
801 .TP 8
802 .B pointerHysteresis\fP (class \fBInteger\fP)
803 If the mouse moves less than this-many pixels in a second, ignore it
804 (do not consider that to be "activity.")  This is so that the screen
805 doesn't un-blank (or fail to blank) just because you bumped the desk.
806 Default: 10 pixels.
807 .TP 8
808 .B windowCreationTimeout\fP (class \fBTime\fP)
809 When server extensions are not in use, this controls the delay between when 
810 windows are created and when \fIxscreensaver\fP selects events on them.
811 Default 30 seconds.
812 .TP 8
813 .B initialDelay\fP (class \fBTime\fP)
814 When server extensions are not in use, \fIxscreensaver\fP will wait this many
815 seconds before selecting events on existing windows, under the assumption that 
816 \fIxscreensaver\fP is started during your login procedure, and the window 
817 state may be in flux.  Default 0.  (This used to default to 30, but that was
818 back in the days when slow machines and X terminals were more common...)
819 .TP 8
820 .B procInterrupts\fP (class \fBBoolean\fP)
821 This resource controls whether the \fB/proc/interrupts\fP file should be
822 consulted to decide whether the user is idle.  This is the default
823 if \fIxscreensaver\fP has been compiled on a system which supports this
824 mechanism (i.e., Linux systems.)  
825
826 The benefit to doing this is that \fIxscreensaver\fP can note that the user
827 is active even when the X console is not the active one: if the user is 
828 typing in another virtual console, xscreensaver will notice that and will
829 fail to activate.  For example, if you're playing Quake in VGA-mode, 
830 xscreensaver won't wake up in the middle of your game and start competing 
831 for CPU.
832
833 The drawback to doing this is that perhaps you \fIreally do\fP want idleness
834 on the X console to cause the X display to lock, even if there is activity
835 on other virtual consoles.  If you want that, then set this option to False.
836 (Or just lock the X console manually.)
837
838 The default value for this resource is True, on systems where it works.
839 .TP 8
840 .B overlayStderr\fP (class \fBBoolean\fP)
841 If \fBcaptureStderr\fP is True, and your server supports "overlay" visuals,
842 then the text will be written into one of the higher layers instead of into
843 the same layer as the running screenhack.  Set this to False to disable 
844 that (though you shouldn't need to.)
845 .TP 8
846 .B overlayTextForeground\fP (class \fBForeground\fP)
847 The foreground color used for the stdout/stderr text, if \fBcaptureStderr\fP
848 is true.  Default: Yellow.
849 .TP 8
850 .B overlayTextBackground\fP (class \fBBackground\fP)
851 The background color used for the stdout/stderr text, if \fBcaptureStderr\fP
852 is true.  Default: Black.
853 .TP 8
854 .B bourneShell\fP (class \fBBourneShell\fP)
855 The pathname of the shell that \fIxscreensaver\fP uses to start subprocesses.
856 This must be whatever your local variant of \fB/bin/sh\fP is: in particular,
857 it must not be \fBcsh\fP.
858 .SH ENVIRONMENT
859 .PP
860 .TP 8
861 .B DISPLAY
862 to get the default host and display number, and to inform the sub-programs
863 of the screen on which to draw.
864 .TP 8
865 .B XSCREENSAVER_WINDOW
866 Passed to sub-programs to indicate the ID of the window on which they
867 should draw.  This is necessary on Xinerama/RANDR systems where
868 multiple physical monitors share a single X11 "Screen".
869 .TP 8
870 .B PATH
871 to find the sub-programs to run.
872 .TP 8
873 .B HOME
874 for the directory in which to read the \fI.xscreensaver\fP file.
875 .TP 8
876 .B XENVIRONMENT
877 to get the name of a resource file that overrides the global resources
878 stored in the RESOURCE_MANAGER property.
879 .SH UPGRADES
880 The latest version of xscreensaver, an online version of this manual,
881 and a FAQ can always be found at http://www.jwz.org/xscreensaver/
882 .SH SEE ALSO
883 .BR X (1),
884 .BR Xsecurity (1),
885 .BR xauth (1),
886 .BR xdm (1),
887 .BR gdm (1),
888 .BR xhost (1),
889 .BR xscreensaver\-demo (1),
890 .BR xscreensaver\-command (1),
891 .BR xscreensaver\-gl\-helper (1),
892 .BR xscreensaver\-getimage (1),
893 .BR xscreensaver\-text (1).
894 .SH COPYRIGHT
895 Copyright \(co 1991-2014 by Jamie Zawinski.
896 Permission to use, copy, modify, distribute, and sell this software
897 and its documentation for any purpose is hereby granted without fee,
898 provided that the above copyright notice appear in all copies and that
899 both that copyright notice and this permission notice appear in
900 supporting documentation.  No representations are made about the
901 suitability of this software for any purpose.  It is provided "as is"
902 without express or implied warranty.
903 .SH AUTHOR
904 Jamie Zawinski <jwz@jwz.org>.  Written in late 1991; version 1.0 posted
905 to comp.sources.x on 17-Aug-1992.
906
907 Please let me know if you find any bugs or make any improvements.
908
909 And a huge thank you to the hundreds of people who have contributed, in
910 large ways and small, to the xscreensaver collection over the past
911 two decades!