1
.\" $Xorg: Xserver.man,v 1.4 2001/02/09 02:04:07 xorgcvs Exp $
2
.\" $XdotOrg: xserver/xorg/doc/Xserver.man.pre,v 1.4 2005/12/23 20:11:12 alanc Exp $
3
.\" Copyright 1984 - 1991, 1993, 1994, 1998 The Open Group
5
.\" Permission to use, copy, modify, distribute, and sell this software and its
6
.\" documentation for any purpose is hereby granted without fee, provided that
7
.\" the above copyright notice appear in all copies and that both that
8
.\" copyright notice and this permission notice appear in supporting
11
.\" The above copyright notice and this permission notice shall be included
12
.\" in all copies or substantial portions of the Software.
14
.\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15
.\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
.\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
17
.\" IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
18
.\" OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19
.\" ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20
.\" OTHER DEALINGS IN THE SOFTWARE.
22
.\" Except as contained in this notice, the name of The Open Group shall
23
.\" not be used in advertising or otherwise to promote the sale, use or
24
.\" other dealings in this Software without prior written authorization
25
.\" from The Open Group.
26
.\" $XFree86: xc/programs/Xserver/Xserver.man,v 3.31 2004/01/10 22:27:46 dawes Exp $
27
.\" shorthand for double quote that works everywhere.
29
.TH XSERVER 1 __xorgversion__
31
Xserver \- X Window System display server
37
is the generic name for the X Window System display server. It is
38
frequently a link or a copy of the appropriate server binary for
39
driving the most frequently used server on a given machine.
40
.SH "STARTING THE SERVER"
41
The X server is usually started from the X Display Manager program
42
\fIxdm\fP(1) or a similar display manager program.
43
This utility is run from the system boot files and takes care of keeping
44
the server running, prompting for usernames and passwords, and starting up
47
Installations that run more than one window system may need to use the
48
\fIxinit\fP(1) utility instead of a display manager. However, \fIxinit\fP is
49
to be considered a tool for building startup scripts and is not
50
intended for use by end users. Site administrators are \fBstrongly\fP
51
urged to use a display manager, or build other interfaces for novice users.
53
The X server may also be started directly by the user, though this
54
method is usually reserved for testing and is not recommended for
55
normal operation. On some platforms, the user must have special
56
permission to start the X server, often because access to certain
57
devices (e.g. \fI/dev/mouse\fP) is restricted.
59
When the X server starts up, it typically takes over the display. If
60
you are running on a workstation whose console is the display, you may
61
not be able to log into the console while the server is running.
63
Many X servers have device-specific command line options. See the manual
64
pages for the individual servers for more details; a list of
65
server-specific manual pages is provided in the SEE ALSO section below.
67
All of the X servers accept the command line options described below.
68
Some X servers may have alternative ways of providing the parameters
69
described here, but the values provided via the command line options
70
should override values specified via other mechanisms.
72
.B :\fIdisplaynumber\fP
73
The X server runs as the given \fIdisplaynumber\fP, which by default is 0.
74
If multiple X servers are to run simultaneously on a host, each must have
75
a unique display number. See the DISPLAY
76
NAMES section of the \fIX\fP(__miscmansuffix__) manual page to learn how to
77
specify which display number clients should try to use.
80
sets pointer acceleration (i.e. the ratio of how much is reported to how much
81
the user actually moved the pointer).
84
disables host-based access control mechanisms. Enables access by any host,
85
and permits any host to modify the access control list.
86
Use with extreme caution.
87
This option exists primarily for running test suites remotely.
89
.B \-audit \fIlevel\fP
90
sets the audit trail level. The default level is 1, meaning only connection
91
rejections are reported. Level 2 additionally reports all successful
92
connections and disconnects. Level 4 enables messages from the
93
SECURITY extension, if present, including generation and revocation of
94
authorizations and violations of the security policy.
95
Level 0 turns off the audit trail.
96
Audit lines are sent as standard error output.
98
.B \-auth \fIauthorization-file\fP
99
specifies a file which contains a collection of authorization records used
100
to authenticate access. See also the \fIxdm\fP(1) and
101
\fIXsecurity\fP(__miscmansuffix__) manual pages.
104
sets the default root window to solid black instead of the standard root weave
105
pattern. This is the default unless -retro or -wr is specified.
108
disables backing store support on all screens.
114
sets key-click volume (allowable range: 0-100).
117
sets the visual class for the root window of color screens.
118
The class numbers are as specified in the X protocol.
119
Not obeyed by all servers.
122
causes the server to generate a core dump on fatal errors.
124
.B \-deferglyphs \fIwhichfonts\fP
125
specifies the types of fonts for which the server should attempt to use
126
deferred glyph loading. \fIwhichfonts\fP can be all (all fonts),
127
none (no fonts), or 16 (16 bit fonts only).
129
.B \-dpi \fIresolution\fP
130
sets the resolution for all screens, in dots per inch.
131
To be used when the server cannot determine the screen size(s) from the
135
enables DPMS (display power management services), where supported. The
136
default state is platform and configuration specific.
139
disables DPMS (display power management services). The default state
140
is platform and configuration specific.
142
.BI \-extension extensionName
143
disables named extension. If an unknown extension name is specified,
144
a list of accepted extension names is printed.
146
.BI \+extension extensionName
147
enables named extension. If an unknown extension name is specified,
148
a list of accepted extension names is printed.
151
sets feep (bell) volume (allowable range: 0-100).
153
.B \-fc \fIcursorFont\fP
154
sets default cursor font.
157
sets the default font.
159
.B \-fp \fIfontPath\fP
160
sets the search path for fonts. This path is a comma separated list
161
of directories which the X server searches for font databases.
162
See the FONTS section of this manual page for more information and the default
166
prints a usage message.
169
causes all remaining command line arguments to be ignored.
171
.B \-maxbigreqsize \fIsize\fP
172
sets the maximum big request to
177
disable the display of the pointer cursor.
179
.B \-nolisten \fItrans-type\fP
180
disables a transport type. For example, TCP/IP connections can be disabled
182
.BR "\-nolisten tcp" .
183
This option may be issued multiple times to disable listening to different
187
prevents a server reset when the last client connection is closed. This
193
sets screen-saver pattern cycle time in minutes.
196
permits the server to continue running if it fails to establish all of
197
its well-known sockets (connection points for clients), but
198
establishes at least one. This option is set by default.
201
causes the server to exit if it fails to establish all of its well-known
202
sockets (connection points for clients).
205
turns off auto-repeat.
208
turns on auto-repeat.
211
starts the stipple with the classic stipple and cursor visible. The default
212
is to start with a black root window, and to suppress display of the cursor
213
until the first time an application calls XDefineCursor(). For the Xorg
214
server, this also sets the default for the DontZap option to FALSE. For
215
kdrive servers, this implies -zap.
218
sets screen-saver timeout time in minutes.
221
disables save under support on all screens.
224
sets pointer acceleration threshold in pixels (i.e. after how many pixels
225
pointer acceleration should take effect).
228
causes the server to terminate at server reset, instead of continuing to run.
229
This overrides a previous
233
.B \-to \fIseconds\fP
234
sets default connection timeout in seconds.
237
disables all testing extensions (e.g., XTEST, XTrap, XTestExtension1, RECORD).
240
ignored, for servers started the ancient way (from init).
243
sets video-off screen-saver preference.
246
sets video-on screen-saver preference.
249
forces the default backing-store of all windows to be WhenMapped. This
250
is a backdoor way of getting backing-store to apply to all windows.
251
Although all mapped windows will have backing store, the backing store
252
attribute value reported by the server for a window will be the last
253
value established by a client. If it has never been set by a client,
254
the server will report the default value, NotUseful. This behavior is
255
required by the X protocol, which allows the server to exceed the
256
client's backing store expectations but does not provide a way to tell
257
the client that it is doing so.
260
sets the default root window to solid white instead of the standard root weave
263
.B \-x \fIextension\fP
264
loads the specified extension at init.
265
This is a no-op for most implementations.
268
enables(+) or disables(-) the XINERAMA extension. The default state is
269
platform and configuration specific.
270
.SH SERVER DEPENDENT OPTIONS
271
Some X servers accept the following options:
273
.B \-ld \fIkilobytes\fP
274
sets the data space limit of the server to the specified number of kilobytes.
275
A value of zero makes the data size as large as possible. The default value
276
of \-1 leaves the data space limit unchanged.
279
sets the number-of-open-files limit of the server to the specified number.
280
A value of zero makes the limit as large as possible. The default value
281
of \-1 leaves the limit unchanged.
283
.B \-ls \fIkilobytes\fP
284
sets the stack space limit of the server to the specified number of kilobytes.
285
A value of zero makes the stack size as large as possible. The default value
286
of \-1 leaves the stack space limit unchanged.
289
turns on the X Window System logo display in the screen-saver.
290
There is currently no way to change this from a client.
293
turns off the X Window System logo display in the screen-saver.
294
There is currently no way to change this from a client.
297
.BR default | mono | gray | color
298
sets the color allocation policy that will be used by the render extension.
302
selects the default policy defined for the display depth of the X
306
don't use any color cell.
309
use a gray map of 13 color cells for the X render extension.
312
use a color cube of at most 4*4*4 colors (that is 64 color cells).
316
disables smart scheduling on platforms that support the smart scheduler.
318
.B \-schedInterval \fIinterval\fP
319
sets the smart scheduler's scheduling interval to
323
X servers that support XDMCP have the following options.
324
See the \fIX Display Manager Control Protocol\fP specification for more
327
.B \-query \fIhostname\fP
328
enables XDMCP and sends Query packets to the specified
332
enable XDMCP and broadcasts BroadcastQuery packets to the network. The
333
first responding display manager will be chosen for the session.
335
.B \-multicast [\fIaddress\fP [\fIhop count\fP]]
336
Enable XDMCP and multicast BroadcastQuery packets to the network.
337
The first responding display manager is chosen for the session. If an
338
address is specified, the multicast is sent to that address. If no
339
address is specified, the multicast is sent to the default XDMCP IPv6
340
multicast group. If a hop count is specified, it is used as the maximum
341
hop count for the multicast. If no hop count is specified, the multicast
342
is set to a maximum of 1 hop, to prevent the multicast from being routed
343
beyond the local network.
345
.B \-indirect \fIhostname\fP
346
enables XDMCP and send IndirectQuery packets to the specified
349
.B \-port \fIport-number\fP
350
uses the specified \fIport-number\fP for XDMCP packets, instead of the
351
default. This option must be specified before any \-query, \-broadcast,
352
\-multicast, or \-indirect options.
354
.B \-from \fIlocal-address\fP
355
specifies the local address to connect from (useful if the connecting host
356
has multiple network interfaces). The \fIlocal-address\fP may be expressed
357
in any form acceptable to the host platform's \fIgethostbyname\fP(3)
361
causes the server to terminate (rather than reset) when the XDMCP session
364
.B \-class \fIdisplay-class\fP
365
XDMCP has an additional display qualifier used in resource lookup for
366
display-specific options. This option sets that value, by default it
367
is "MIT-Unspecified" (not a very useful value).
369
.B \-cookie \fIxdm-auth-bits\fP
370
When testing XDM-AUTHENTICATION-1, a private key is shared between the
371
server and the manager. This option sets the value of that private
372
data (not that it is very private, being on the command line!).
374
.B \-displayID \fIdisplay-id\fP
375
Yet another XDMCP specific value, this one allows the display manager to
376
identify each display so that it can locate the shared key.
377
.SH XKEYBOARD OPTIONS
378
X servers that support the XKEYBOARD (a.k.a. \*qXKB\*q) extension accept the
379
following options. All layout files specified on the command line must be
380
located in the XKB base directory or a subdirectory, and specified as the
381
relative path from the XKB base directory. The default XKB base directory is
382
.IR __projectroot__/lib/X11/xkb .
384
.BR [+-]accessx " [ \fItimeout\fP [ \fItimeout_mask\fP [ \fIfeedback\fP [ \fIoptions_mask\fP ] ] ] ]"
385
enables(+) or disables(-) AccessX key sequences.
387
.B \-xkbdir \fIdirectory\fP
388
base directory for keyboard layout files. This option is not available
389
for setuid X servers (i.e., when the X server's real and effective uids
392
.B \-ardelay \fImilliseconds\fP
393
sets the autorepeat delay (length of time in milliseconds that a key must
394
be depressed before autorepeat starts).
396
.B \-arinterval \fImilliseconds\fP
397
sets the autorepeat interval (length of time in milliseconds that should
398
elapse between autorepeat-generated keystrokes).
400
.B \-xkbmap \fIfilename\fP
401
loads keyboard description in \fIfilename\fP on server startup.
402
.SH "NETWORK CONNECTIONS"
403
The X server supports client connections via a platform-dependent subset of
404
the following transport types: TCP\/IP, Unix Domain sockets, DECnet,
405
and several varieties of SVR4 local connections. See the DISPLAY
406
NAMES section of the \fIX\fP(__miscmansuffix__) manual page to learn how to
407
specify which transport type clients should try to use.
409
The X server implements a platform-dependent subset of the following
410
authorization protocols: MIT-MAGIC-COOKIE-1, XDM-AUTHORIZATION-1,
411
XDM-AUTHORIZATION-2, SUN-DES-1, and MIT-KERBEROS-5. See the
412
\fIXsecurity\fP(__miscmansuffix__) manual page for information on the
413
operation of these protocols.
415
Authorization data required by the above protocols is passed to the
416
server in a private file named with the \fB\-auth\fP command line
417
option. Each time the server is about to accept the first connection
418
after a reset (or when the server is starting), it reads this file.
419
If this file contains any authorization records, the local host is not
420
automatically allowed access to the server, and only clients which
421
send one of the authorization records contained in the file in the
422
connection setup information will be allowed access. See the
423
\fIXau\fP manual page for a description of the binary format of this
424
file. See \fIxauth\fP(1) for maintenance of this file, and distribution
425
of its contents to remote hosts.
427
The X server also uses a host-based access control list for deciding
428
whether or not to accept connections from clients on a particular machine.
429
If no other authorization mechanism is being used,
430
this list initially consists of the host on which the server is running as
431
well as any machines listed in the file \fI/etc/X\fBn\fI.hosts\fR, where
432
\fBn\fP is the display number of the server. Each line of the file should
433
contain either an Internet hostname (e.g. expo.lcs.mit.edu) or a DECnet
434
hostname in double colon format (e.g. hydra::) or a complete name in the format
435
\fIfamily\fP:\fIname\fP as described in the \fIxhost\fP(1) manual page.
436
There should be no leading or trailing spaces on any lines. For example:
441
corporate.company.com
448
Users can add or remove hosts from this list and enable or disable access
449
control using the \fIxhost\fP command from the same machine as the server.
451
If the X FireWall Proxy (\fIxfwp\fP) is being used without a sitepolicy,
452
host-based authorization must be turned on for clients to be able to
453
connect to the X server via the \fIxfwp\fP. If \fIxfwp\fP is run without
454
a configuration file and thus no sitepolicy is defined, if \fIxfwp\fP
455
is using an X server where xhost + has been run to turn off host-based
456
authorization checks, when a client tries to connect to this X server
457
via \fIxfwp\fP, the X server will deny the connection. See \fIxfwp\fP(1)
458
for more information about this proxy.
460
The X protocol intrinsically does not have any notion of window operation
461
permissions or place any restrictions on what a client can do; if a program can
462
connect to a display, it has full run of the screen.
463
X servers that support the SECURITY extension fare better because clients
464
can be designated untrusted via the authorization they use to connect; see
465
the \fIxauth\fP(1) manual page for details. Restrictions are imposed
466
on untrusted clients that curtail the mischief they can do. See the SECURITY
467
extension specification for a complete list of these restrictions.
469
Sites that have better
470
authentication and authorization systems might wish to make
471
use of the hooks in the libraries and the server to provide additional
474
The X server attaches special meaning to the following signals:
477
This signal causes the server to close all existing connections, free all
478
resources, and restore all defaults. It is sent by the display manager
479
whenever the main user's main application (usually an \fIxterm\fP or window
480
manager) exits to force the server to clean up and prepare for the next
484
This signal causes the server to exit cleanly.
487
This signal is used quite differently from either of the above. When the
488
server starts, it checks to see if it has inherited SIGUSR1 as SIG_IGN
489
instead of the usual SIG_DFL. In this case, the server sends a SIGUSR1 to
490
its parent process after it has set up the various connection schemes.
491
\fIXdm\fP uses this feature to recognize when connecting to the server
494
The X server can obtain fonts from directories and/or from font servers.
495
The list of directories and font servers
496
the X server uses when trying to open a font is controlled
497
by the \fIfont path\fP.
499
The default font path is
500
__default_font_path__ .
502
A special kind of directory can be specified using the \fBcatalogue\fP:
503
prefix. Directories specified this way can contain symlinks pointing to the
504
real font directories. See the FONTPATH.D section for details.
506
The font path can be set with the \fB\-fp\fP option or by \fIxset\fP(1)
507
after the server has started.
509
You can specify a special kind of font path in the form \fBcatalogue:<dir>\fR.
510
The directory specified after the catalogue: prefix will be scanned for symlinks
511
and each symlink destination will be added as a local fontfile FPE.
513
The symlink can be suffixed by attributes such as '\fBunscaled\fR', which
514
will be passed through to the underlying fontfile FPE. The only exception is
515
the newly introduced '\fBpri\fR' attribute, which will be used for ordering
516
the font paths specified by the symlinks.
518
An example configuration:
521
75dpi:unscaled:pri=20 \-> /usr/share/X11/fonts/75dpi
522
ghostscript:pri=60 \-> /usr/share/fonts/default/ghostscript
523
misc:unscaled:pri=10 \-> /usr/share/X11/fonts/misc
524
type1:pri=40 \-> /usr/share/X11/fonts/Type1
525
type1:pri=50 \-> /usr/share/fonts/default/Type1
528
This will add /usr/share/X11/fonts/misc as the first FPE with the attribute
529
'unscaled', second FPE will be /usr/share/X11/fonts/75dpi, also with
530
the attribute unscaled etc. This is functionally equivalent to setting
531
the following font path:
534
/usr/share/X11/fonts/misc:unscaled,
535
/usr/share/X11/fonts/75dpi:unscaled,
536
/usr/share/X11/fonts/Type1,
537
/usr/share/fonts/default/Type1,
538
/usr/share/fonts/default/ghostscript
543
.I /etc/X\fBn\fP.hosts
544
Initial access control list for display number \fBn\fP
546
.IR __datadir__/fonts/X11/misc , __datadir__/fonts/X11/75dpi , __datadir__/fonts/X11/100dpi
547
Bitmap font directories
549
.IR __datadir__/fonts/X11/TTF , __datadir__/fonts/X11/Type1
550
Outline font directories
552
.I /tmp/.X11-unix/X\fBn\fP
553
Unix domain socket for display number \fBn\fP
555
.I /usr/adm/X\fBn\fPmsgs
556
Error log file for display number \fBn\fP if run from \fIinit\fP(__adminmansuffix__)
558
.I __projectroot__/lib/X11/xdm/xdm-errors
559
Default error log file if the server is run from \fIxdm\fP(1)
561
General information: \fIX\fP(__miscmansuffix__)
564
.I "X Window System Protocol,"
565
.I "The X Font Service Protocol,"
566
.I "X Display Manager Control Protocol"
568
Fonts: \fIbdftopcf\fP(1), \fImkfontdir\fP(1), \fImkfontscale\fP(1),
569
\fIxfs\fP(1), \fIxlsfonts\fP(1), \fIxfontsel\fP(1), \fIxfd\fP(1),
570
.I "X Logical Font Description Conventions"
572
Security: \fIXsecurity\fP(__miscmansuffix__), \fIxauth\fP(1), \fIXau\fP(1),
573
\fIxdm\fP(1), \fIxhost\fP(1), \fIxfwp\fP(1),
574
.I "Security Extension Specification"
576
Starting the server: \fIstartx\fP(1), \fIxdm\fP(1), \fIxinit\fP(1)
578
Controlling the server once started: \fIxset\fP(1), \fIxsetroot\fP(1),
579
\fIxhost\fP(1), \fIxinput\fP(1), \fIxrandr\fP(1)
581
Server-specific man pages:
582
\fIXorg\fP(1), \fIXdmx\fP(1), \fIXephyr\fP(1), \fIXnest\fP(1),
583
\fIXvfb\fP(1), \fIXquartz\fP(1), \fIXWin\fP(1).
585
Server internal documentation:
586
.I "Definition of the Porting Layer for the X v11 Sample Server"
588
The sample server was originally written by Susan Angebranndt, Raymond
589
Drewry, Philip Karlton, and Todd Newman, from Digital Equipment
590
Corporation, with support from a large cast. It has since been
591
extensively rewritten by Keith Packard and Bob Scheifler, from MIT.
592
Dave Wiggins took over post-R5 and made substantial improvements.