From 649e7f82d8d4333443493056b81eb20d6cf022bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Thu, 24 May 2007 12:10:05 +0200 Subject: [PATCH 01/16] Consolidate portPriv->pDraw assignments into xf86XVEnlistPortInWindow. This avoids a crash in xf86XVReputVideo and also cleans up the code slightly. --- hw/xfree86/common/xf86xv.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/hw/xfree86/common/xf86xv.c b/hw/xfree86/common/xf86xv.c index 2b097d2db..02fcde68c 100644 --- a/hw/xfree86/common/xf86xv.c +++ b/hw/xfree86/common/xf86xv.c @@ -979,6 +979,9 @@ xf86XVEnlistPortInWindow(WindowPtr pWin, XvPortRecPrivatePtr portPriv) winPriv->next = PrivRoot; pWin->devPrivates[XF86XVWindowIndex].ptr = (pointer)winPriv; } + + portPriv->pDraw = (DrawablePtr)pWin; + return Success; } @@ -1375,7 +1378,6 @@ xf86XVPutVideo( result = xf86XVEnlistPortInWindow((WindowPtr)pDraw, portPriv); if(result != Success) return result; - portPriv->pDraw = pDraw; portPriv->type = XvInputMask; /* save a copy of these parameters */ @@ -1479,7 +1481,6 @@ xf86XVPutStill( xf86XVEnlistPortInWindow((WindowPtr)pDraw, portPriv); portPriv->isOn = XV_ON; - portPriv->pDraw = pDraw; portPriv->drw_x = drw_x; portPriv->drw_y = drw_y; portPriv->drw_w = drw_w; portPriv->drw_h = drw_h; portPriv->type = 0; /* no mask means it's transient and should @@ -1529,7 +1530,6 @@ xf86XVGetVideo( result = xf86XVEnlistPortInWindow((WindowPtr)pDraw, portPriv); if(result != Success) return result; - portPriv->pDraw = pDraw; portPriv->type = XvOutputMask; /* save a copy of these parameters */ @@ -1784,7 +1784,6 @@ xf86XVPutImage( (portPriv->AdaptorRec->flags & VIDEO_OVERLAID_IMAGES)) { portPriv->isOn = XV_ON; - portPriv->pDraw = pDraw; portPriv->drw_x = drw_x; portPriv->drw_y = drw_y; portPriv->drw_w = drw_w; portPriv->drw_h = drw_h; portPriv->type = 0; /* no mask means it's transient and should From 9616a042855399f0ee9c6489ea824621ea5fee18 Mon Sep 17 00:00:00 2001 From: Matthias Drochner Date: Tue, 10 Apr 2007 16:15:40 -0700 Subject: [PATCH 02/16] Fix build on NetBSD/amd64. --- hw/xfree86/os-support/bsd/i386_video.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hw/xfree86/os-support/bsd/i386_video.c b/hw/xfree86/os-support/bsd/i386_video.c index f4ea3f5c9..ae16b78aa 100644 --- a/hw/xfree86/os-support/bsd/i386_video.c +++ b/hw/xfree86/os-support/bsd/i386_video.c @@ -50,6 +50,11 @@ #include #include #include +#ifdef __x86_64__ +#define i386_set_mtrr x86_64_set_mtrr +#define i386_get_mtrr x86_64_get_mtrr +#define i386_iopl x86_64_iopl +#endif #endif #if defined(__OpenBSD__) && defined(__amd64__) From 8f98be7db303bc3db650054efb86843c70114451 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 24 May 2007 11:00:04 -0700 Subject: [PATCH 03/16] Fix bswap detection on BSD (mis-added '_' in function names). --- configure.ac | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index d7d00e267..37199cf26 100644 --- a/configure.ac +++ b/configure.ac @@ -123,19 +123,19 @@ b = __swap16(a); ], [SYS_ENDIAN__SWAP='yes'], [SYS_ENDIAN__SWAP='no']) AC_MSG_RESULT([$SYS_ENDIAN__SWAP]) - AC_MSG_CHECKING([for bswap_16 variant of byteswapping macros]) + AC_MSG_CHECKING([for bswap16 variant of byteswapping macros]) AC_LINK_IFELSE([AC_LANG_PROGRAM([ #include ], [ int a = 1, b; -b = bswap_16(a); +b = bswap16(a); ]) ], [SYS_ENDIAN_BSWAP='yes'], [SYS_ENDIAN_BSWAP='no']) AC_MSG_RESULT([$SYS_ENDIAN_BSWAP]) if test "$SYS_ENDIAN_BSWAP" = "yes" ; then USE_SYS_ENDIAN_H=yes - BSWAP=bswap_ + BSWAP=bswap else if test "$SYS_ENDIAN__SWAP" = "yes" ; then USE_SYS_ENDIAN_H=yes From 1f48995d66c0072caa7e5ce2845be642221dd56d Mon Sep 17 00:00:00 2001 From: Luo Jie Date: Thu, 24 May 2007 11:01:15 -0700 Subject: [PATCH 04/16] Fix build of composite, dix, and randr when Xinerama is disabled. --- composite/compext.c | 2 ++ dix/events.c | 7 +++++++ randr/Makefile.am | 10 ++++++++-- randr/randr.c | 3 ++- 4 files changed, 19 insertions(+), 3 deletions(-) diff --git a/composite/compext.c b/composite/compext.c index ba37e7d1f..bea8bcf23 100644 --- a/composite/compext.c +++ b/composite/compext.c @@ -696,11 +696,13 @@ CompositeExtensionInit (void) if (GetPictureScreenIfSet(pScreen) == NULL) return; } +#ifdef PANORAMIX /* Xinerama's rewriting of window drawing before Composite gets to it * breaks Composite. */ if (!noPanoramiXExtension) return; +#endif CompositeClientWindowType = CreateNewResourceType (FreeCompositeClientWindow); if (!CompositeClientWindowType) diff --git a/dix/events.c b/dix/events.c index bc6b6ae97..887cbcd68 100644 --- a/dix/events.c +++ b/dix/events.c @@ -695,6 +695,13 @@ XineramaChangeToCursor(CursorPtr cursor) } } +#else +#define SyntheticMotion(x, y) \ + PostSyntheticMotion(x, y, \ + 0, \ + syncEvents.playingEvents ? \ + syncEvents.time.milliseconds : \ + currentTime.milliseconds); #endif /* PANORAMIX */ diff --git a/randr/Makefile.am b/randr/Makefile.am index 9bf0e6531..20b0f72e0 100644 --- a/randr/Makefile.am +++ b/randr/Makefile.am @@ -2,6 +2,8 @@ noinst_LTLIBRARIES = librandr.la AM_CFLAGS = $(DIX_CFLAGS) +XINERAMA_SRCS = rrxinerama.c + if XORG sdk_HEADERS = randrstr.h endif @@ -18,5 +20,9 @@ librandr_la_SOURCES = \ rrpointer.c \ rrproperty.c \ rrscreen.c \ - rrsdispatch.c \ - rrxinerama.c + rrsdispatch.c + +if XINERAMA +librandr_la_SOURCES += ${XINERAMA_SRCS} +endif + diff --git a/randr/randr.c b/randr/randr.c index 4dd0ee5b4..958f9c192 100644 --- a/randr/randr.c +++ b/randr/randr.c @@ -358,8 +358,9 @@ RRExtensionInit (void) SRRScreenChangeNotifyEvent; EventSwapVector[RREventBase + RRNotify] = (EventSwapPtr) SRRNotifyEvent; - +#ifdef PANORAMIX RRXineramaExtensionInit(); +#endif } static int From 0b988450462ddb005311e68502357baf272e6371 Mon Sep 17 00:00:00 2001 From: Luo Jie Date: Thu, 24 May 2007 11:02:28 -0700 Subject: [PATCH 05/16] Fix os/utils.c compile with mingw. --- os/utils.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/os/utils.c b/os/utils.c index 5058285e8..dd5acd34b 100644 --- a/os/utils.c +++ b/os/utils.c @@ -64,8 +64,10 @@ OR PERFORMANCE OF THIS SOFTWARE. #include #include #include +#if !defined(WIN32) || !defined(__MINGW32__) #include #include +#endif #include "misc.h" #include #define XSERV_t @@ -527,6 +529,13 @@ GiveUp(int sig) errno = olderrno; } +#if defined WIN32 && defined __MINGW32__ +_X_EXPORT CARD32 +GetTimeInMillis (void) +{ + return GetTickCount (); +} +#else _X_EXPORT CARD32 GetTimeInMillis(void) { @@ -541,6 +550,7 @@ GetTimeInMillis(void) X_GETTIMEOFDAY(&tv); return(tv.tv_sec * 1000) + (tv.tv_usec / 1000); } +#endif _X_EXPORT void AdjustWaitForDelay (pointer waitTime, unsigned long newdelay) @@ -798,11 +808,13 @@ ProcessCommandLine(int argc, char *argv[]) } else if ( strcmp( argv[i], "-core") == 0) { - struct rlimit core_limit; CoreDump = TRUE; +#if !defined(WIN32) || !defined(__MINGW32__) + struct rlimit core_limit; getrlimit (RLIMIT_CORE, &core_limit); core_limit.rlim_cur = core_limit.rlim_max; setrlimit (RLIMIT_CORE, &core_limit); +#endif } else if ( strcmp( argv[i], "-dpi") == 0) { From 4d7469f75fadfc4a59664e88e18eb304203670f4 Mon Sep 17 00:00:00 2001 From: Luo Jie Date: Thu, 24 May 2007 11:04:06 -0700 Subject: [PATCH 06/16] Fix a typo in using memcpy in xwin. --- hw/xwin/winmultiwindowclass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xwin/winmultiwindowclass.c b/hw/xwin/winmultiwindowclass.c index d8909f0e5..57c434669 100755 --- a/hw/xwin/winmultiwindowclass.c +++ b/hw/xwin/winmultiwindowclass.c @@ -264,7 +264,7 @@ winMultiWindowGetTransientFor (WindowPtr pWin, WindowPtr *ppDaddy) if (prop->propertyName == XA_WM_TRANSIENT_FOR) { if (ppDaddy) - memcpy (*ppDaddy, prop->data, sizeof (WindowPtr *)); + memcpy (*ppDaddy, prop->data, sizeof (WindowPtr)); return 1; } else From 3c982bc1a49509dda7bc469b0eced44df02755b3 Mon Sep 17 00:00:00 2001 From: Luo Jie Date: Thu, 24 May 2007 11:13:03 -0700 Subject: [PATCH 07/16] Reinstate an apparently mis-deleted ';' from a for loop with no body. Fixes an error returning "No core keyboard" with multiple keyboards. --- dix/devices.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dix/devices.c b/dix/devices.c index e227617ef..da6e59064 100644 --- a/dix/devices.c +++ b/dix/devices.c @@ -425,6 +425,7 @@ InitAndStartDevices(void) for (dev = inputInfo.devices; dev && (dev != inputInfo.keyboard); dev = dev->next) + ; if (!dev || (dev != inputInfo.keyboard)) { ErrorF("No core keyboard\n"); return BadImplementation; From 6a870992d81a6bacfa9d313c15784fdb281d474f Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Fri, 25 May 2007 20:33:08 -0700 Subject: [PATCH 08/16] xf86XVFillKeyHelper assumed root clip never changed. When the root window changed size, xf86XVFillKeyHelper would not revalidate the GC, leaving the clip at the old size causing lossage (and possibly memory corruption if the screen and frame buffer shrank). Fixed by just using a scratch GC; saving memory, eliminating bugs and shrinking the code. --- hw/xfree86/common/xf86xv.c | 35 ++++++++++++++--------------------- 1 file changed, 14 insertions(+), 21 deletions(-) diff --git a/hw/xfree86/common/xf86xv.c b/hw/xfree86/common/xf86xv.c index 02fcde68c..6abe31c2f 100644 --- a/hw/xfree86/common/xf86xv.c +++ b/hw/xfree86/common/xf86xv.c @@ -1875,42 +1875,35 @@ xf86XVFillKeyHelperDrawable (DrawablePtr pDraw, CARD32 key, RegionPtr clipboxes) _X_EXPORT void xf86XVFillKeyHelper (ScreenPtr pScreen, CARD32 key, RegionPtr clipboxes) { - XF86XVScreenPtr ScreenPriv = GET_XF86XV_SCREEN(pScreen); DrawablePtr root = &WindowTable[pScreen->myNum]->drawable; XID pval[2]; BoxPtr pbox = REGION_RECTS(clipboxes); int i, nbox = REGION_NUM_RECTS(clipboxes); xRectangle *rects; + GCPtr gc; if(!xf86Screens[pScreen->myNum]->vtSema) return; - if(!ScreenPriv->videoGC) { - int status; - pval[0] = key; - pval[1] = IncludeInferiors; - ScreenPriv->videoGC = CreateGC(root, GCForeground | GCSubwindowMode, - pval, &status); - if(!ScreenPriv->videoGC) return; - ValidateGC(root, ScreenPriv->videoGC); - } else if (key != ScreenPriv->videoGC->fgPixel){ - pval[0] = key; - ChangeGC(ScreenPriv->videoGC, GCForeground, pval); - ValidateGC(root, ScreenPriv->videoGC); - } + gc = GetScratchGC(root->depth, pScreen); + pval[0] = key; + pval[1] = IncludeInferiors; + (void) ChangeGC(gc, GCForeground|GCSubwindowMode, pval); + ValidateGC(root, gc); - rects = ALLOCATE_LOCAL(nbox * sizeof(xRectangle)); + rects = xalloc (nbox * sizeof(xRectangle)); - for(i = 0; i < nbox; i++, pbox++) { + for(i = 0; i < nbox; i++, pbox++) + { rects[i].x = pbox->x1; rects[i].y = pbox->y1; rects[i].width = pbox->x2 - pbox->x1; rects[i].height = pbox->y2 - pbox->y1; } - - (*ScreenPriv->videoGC->ops->PolyFillRect)( - root, ScreenPriv->videoGC, nbox, rects); - - DEALLOCATE_LOCAL(rects); + + (*gc->ops->PolyFillRect)(root, gc, nbox, rects); + + xfree (rects); + FreeScratchGC (gc); } /* xf86XVClipVideoHelper - From 6fdd134a0c3e6fdde9b089100e8783705c9cc6ac Mon Sep 17 00:00:00 2001 From: David Nusinow Date: Mon, 28 May 2007 21:39:12 -0400 Subject: [PATCH 09/16] Fix up xnest manpage I believe this patch was originally by Branden Robinson --- hw/xnest/Xnest.man.pre | 596 ++++++++++++++++++++++++++--------------- 1 file changed, 380 insertions(+), 216 deletions(-) diff --git a/hw/xnest/Xnest.man.pre b/hw/xnest/Xnest.man.pre index 131c224f2..024d88e82 100644 --- a/hw/xnest/Xnest.man.pre +++ b/hw/xnest/Xnest.man.pre @@ -1,6 +1,6 @@ .\" $Xorg: Xnest.man,v 1.3 2000/08/17 19:53:28 cpqbld Exp $ .\" Copyright (c) 1993, 1994 X Consortium -.\" +.\" .\" Permission is hereby granted, free of charge, to any person obtaining .\" a copy of this software and associated documentation files (the .\" "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ .\" distribute, sublicense, and/or sell copies of the Software, and to .\" permit persons to whom the Software is furnished to do so, subject to .\" the following conditions: -.\" +.\" .\" The above copyright notice and this permission notice shall be included .\" in all copies or substantial portions of the Software. -.\" +.\" .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS .\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF .\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ .\" OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, .\" ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR .\" OTHER DEALINGS IN THE SOFTWARE. -.\" +.\" .\" Except as contained in this notice, the name of the X Consortium shall .\" not be used in advertising or otherwise to promote the sale, use or .\" other dealings in this Software without prior written authorization @@ -27,238 +27,402 @@ .\" .\" $XFree86: xc/programs/Xserver/hw/xnest/Xnest.man,v 1.6 2001/01/27 18:21:00 dawes Exp $ .\" -.TH XNEST 1 __xorgversion__ +.TH Xnest __appmansuffix__ __xorgversion__ .SH NAME Xnest \- a nested X server .SH SYNOPSIS .B Xnest -[-options] +[ +.I options +] .SH DESCRIPTION -\fIXnest\fP is a client and a server. \fIXnest\fP is a client of the -real server which manages windows and graphics requests on its behalf. -\fIXnest\fP is a server to its own clients. \fIXnest\fP manages -windows and graphics requests on their behalf. To these clients -\fIXnest\fP appears to be a conventional server. +.B Xnest +is both an X client and an X server. +.B Xnest +is a client of the real server which manages windows and graphics requests on +its behalf. +.B Xnest +is a server to its own clients. +.B Xnest +manages windows and graphics requests on their behalf. +To these clients, +.B Xnest +appears to be a conventional server. .SH OPTIONS -\fIXnest\fP supports all standard options of the sample server -implementation. For more details, please see the manual page on your -system for \fIXserver\fP. The following additional arguments are -supported as well. -.TP 4 -.B \-display \fIstring\fP +.B Xnest +supports all standard options of the sample server implementation. +For more details, please see +.BR Xserver (__appmansuffix__). +The following additional arguments are supported as well. +.TP +.BI "\-display " string This option specifies the display name of the real server that -\fIXnest\fP should try to connect with. If it is not provided on the -command line \fIXnest\fP will read the \fIDISPLAY\fP environment -variable in order to find out the same information. -.TP 4 +.B Xnest +should try to connect to. +If it is not provided on the command line, +.B Xnest +will read the +.I DISPLAY +environment variable in order to find out this information. +.TP .B \-sync -This option tells \fIXnest\fP to synchronize its window and graphics -operations with the real server. This is a useful option for -debugging, but it will slow down the performance considerably. It -should not be used unless absolutely necessary. -.TP 4 +This option tells +.B Xnest +to synchronize its window and graphics operations with the real server. +This is a useful option for debugging, but it will slow down +.BR Xnest 's +performance considerably. +It should not be used unless absolutely necessary. +.TP .B \-full -This option tells \fIXnest\fP to utilize full regeneration of real -server objects and reopen a new connection to the real server each -time the nested server regenerates. The sample server implementation -regenerates all objects in the server when the last client of this -server terminates. When this happens, \fIXnest\fP by default -maintains the same top level window and the same real server -connection in each new generation. If the user selects full -regeneration, even the top level window and the connection to the real -server will be regenerated for each server generation. -.TP 4 -.B \-class \fIstring\fP +This option tells +.B Xnest +to utilize full regeneration of real server objects and reopen a new connection +to the real server each time the nested server regenerates. +The sample server implementation regenerates all objects in the server when the +last client of this server terminates. +When this happens, +.B Xnest +by default maintains the same top-level window and the same real server +connection in each new generation. +If the user selects full regeneration, even the top-level window and the +connection to the real server will be regenerated for each server generation. +.TP +.BI "\-class " string This option specifies the default visual class of the nested server. -It is similar to the \fI-cc\fP option from the set of standard options -except that it will accept a string rather than a number for the -visual class specification. The string must be one of the following -six values: \fIStaticGray\fP, \fIGrayScale\fP, \fIStaticColor\fP, -\fIPseudoColor\fP, \fITrueColor\fP, or \fIDirectColor\fP. If both, -\fI-class\fP and \fI-cc\fP options are specified, the last instance of -either option assumes precedence. The class of the default visual of -the nested server need not be the same as the class of the default -visual of the real server; although, it has to be supported by the -real server. See \fIxdpyinfo\fP for a list of supported visual -classes on the real server before starting \fIXnest\fP. If the user -chooses a static class, all the colors in the default colormap will be -preallocated. If the user chooses a dynamic class, colors in the -default colormap will be available to individual clients for -allocation. -.TP 4 -.B \-depth \fIint\fP +It is similar to the +.B \-cc +option from the set of standard options except that it will accept a string +rather than a number for the visual class specification. +The +.I string +must be one of the following six values: +.BR StaticGray , +.BR GrayScale , +.BR StaticColor , +.BR PseudoColor , +.BR TrueColor , +or +.BR DirectColor . +If both the +.B \-class +and +.B \-cc +options are specified, the last instance of either option takes precedence. +The class of the default visual of the nested server need not be the same as the +class of the default visual of the real server, but it must be supported by the +real server. +Use +.BR xdpyinfo (__appmansuffix__) +to obtain a list of supported visual classes on the real server before starting +.BR Xnest . +If the user chooses a static class, all the colors in the default color map will +be preallocated. +If the user chooses a dynamic class, colors in the default color map will be +available to individual clients for allocation. +.TP +.BI "\-depth " int This option specifies the default visual depth of the nested server. -The depth of the default visual of the nested server need not be the -same as the depth of the default visual of the real server; although, -it has to be supported by the real server. See \fIxdpyinfo\fP for a -list of supported visual depths on the real server before starting -\fIXnest\fP. -.TP 4 +The depth of the default visual of the nested server need not be the same as the +depth of the default visual of the real server, but it must be supported by the +real server. +Use +.BR xdpyinfo (__appmansuffix__) +to obtain a list of supported visual depths on the real server before starting +.BR Xnest . +.TP .B \-sss -This option tells \fIXnest\fP to use the software screen saver. By -default \fIXnest\fP will use the screen saver that corresponds to the -hardware screen saver in the real server. Of course, even this screen -saver is software generated since \fIXnest\fP does not control any -actual hardware. However, it is treated as a hardware screen saver -within the sample server code. -.TP 4 -.B \-geometry \fIWxH+X+Y\fP -This option specifies geometry parameters for the top level -\fIXnest\fP windows. These windows corresponds to the root windows of -the nested server. The width and height specified with this option -will be the maximum width and height of each top level \fIXnest\fP -window. \fIXnest\fP will allow the user to make any top level window -smaller, but it will not actually change the size of the nested server -root window. As of yet, there is no mechanism within the sample -server implementation to change the size of the root window after -screen initialization. In order to do so, one would probably need to -extend the X protocol. Therefore, it is not likely that this will be -available any time soon. If this option is not specified \fIXnest\fP -will choose width and height to be 3/4 of the dimensions of the root -window of the real server. -.TP 4 -.B \-bw \fIint\fP -This option specifies the border width of the top level \fIXnest\fP -window. The integer parameter must be a positive number. The default -border width is 1. -.TP 4 -.B \-name \fIstring\fP -This option specifies the name of the top level \fIXnest\fP window. +This option tells +.B Xnest +to use the software screen saver. +By default, +.B Xnest +will use the screen saver that corresponds to the hardware screen saver in the +real server. +Of course, even this screen saver is software-generated since +.B Xnest +does not control any actual hardware. +However, it is treated as a hardware screen saver within the sample server code. +.TP +.B \-geometry \fIW\fBx\fIH\fB+\fIX\fB+\fIY\fP +This option specifies the geometry parameters for the top-level +.B Xnest +window. +See \(lqGEOMETRY SPECIFICATIONS\(rq in +.BR X (__miscmansuffix__) +for a discusson of this option's syntax. +This window corresponds to the root window of the nested server. +The width +.I W +and height +.I H +specified with this option will be the maximum width and height of each +top-level +.B Xnest +window. +.B Xnest +will allow the user to make any top-level window smaller, but it will not +actually change the size of the nested server root window. +.B Xnest +does not yet support the RANDR extension for resizing, rotation, and reflection +of the root window. +If this option is not specified, +.B Xnest +will choose +.I W +and +.I H +to be 3/4ths the dimensions of the root window of the real server. +.TP +.BI "\-bw " int +This option specifies the border width of the top-level +.B Xnest +window. +The integer parameter +.I int +must be positive. +The default border width is 1. +.TP +.BI "\-name " string +This option specifies the name of the top-level +.B Xnest +window as +.IR string . The default value is the program name. -.TP 4 -.B \-scrns \fIint\fP -This option specifies the number of screens to create in the nested -server. For each screen, \fIXnest\fP will create a separate top level -window. Each screen is referenced by the number after the dot in the -client display name specification. For example, \fIxterm -display -:1.1\fP will open an \fIxterm\fP client in the nested server with the -display number \fI:1\fP on the second screen. The number of screens -is limited by the hard coded constant in the server sample code which -is usually 3. -.TP 4 +.TP +.BI "\-scrns " int +This option specifies the number of screens to create in the nested server. +For each screen, +.B Xnest +will create a separate top-level window. +Each screen is referenced by the number after the dot in the client display name +specification. +For example, +.B xterm \-display :1.1 +will open an +.BR xterm (__appmansuffix__) +client in the nested server with the display number +.B :1 +on the second screen. +The number of screens is limited by the hard-coded constant in the server sample +code, which is usually 3. +.TP .B \-install -This option tells \fIXnest\fP to do its own colormap installation by -bypassing the real window manager. For it to work properly the user -will probably have to temporarily quit the real window manager. By -default \fIXnest\fP will keep the nested client window whose colormap -should be installed in the real server in the -\fIWM\_COLORMAP\_WINDOWS\fP property of the top level \fIXnest\fP -window. If this colormap is of the same visual type as the root -window of the nested server, \fIXnest\fP will associate this colormap -with the top level \fIXnest\fP window as well. Since this does not -have to be the case, window managers should look primarily at the -\fIWM\_COLORMAP\_WINDOWS\fP property rather than the colormap -associated with the top level \fIXnest\fP window. Unfortunately, -window managers are not very good at doing that yet so this option -might come in handy. -.TP 4 -.B \-parent \fIwindow_id\fP -This option tells \fIXnest\fP to use the \fIwindow_id\fP as the -root window instead of creating a window. This option is used -by the xrx xnestplugin. -.SH USAGE -Starting up \fIXnest\fP is as simple as starting up \fIxclock\fP from -a terminal emulator. If a user wishes to run \fIXnest\fP on the same -workstation as the real server, it is important that the nested server -is given its own listening socket address. Therefore, if there is a -server already running on the user's workstation, \fIXnest\fP will -have to be started up with a new display number. Since there is -usually no more than one server running on a workstation, specifying -\fIXnest :1\fP on the command line will be sufficient for most users. -For each server running on the workstation the display number needs to -be incremented by one. Thus, if you wish to start another -\fIXnest\fP, you will need to type \fIXnest :2\fP on the command line. +This option tells +.B Xnest +to do its own color map installation by bypassing the real window manager. +For it to work properly, the user will probably have to temporarily quit the +real window manager. +By default, +.B Xnest +will keep the nested client window whose color map should be installed in the +real server in the +.I WM_COLORMAP_WINDOWS +property of the top-level +.B Xnest +window. +If this color map is of the same visual type as the root window of the nested +server, +.B Xnest +will associate this color map with the top-level +.B Xnest +window as well. +Since this does not have to be the case, window managers should look primarily +at the +.I WM_COLORMAP_WINDOWS +property rather than the color map associated with the top-level +.B Xnest +window. +.\" Is the following still true? This sentence is several years old. +Unfortunately, window managers are not very good at doing that yet so this +option might come in handy. +.TP +.BI "\-parent " window_id +This option tells +.B Xnest +to use +.I window_id +as the root window instead of creating a window. +.\" XRX is dead, dead, dead. +.\" This option is used by the xrx xnestplugin. +.SH "EXTENDED DESCRIPTION" +Starting up +.B Xnest +is just as simple as starting up +.BR xclock (__appmansuffix__) +from a terminal emulator. +If a user wishes to run +.B Xnest +on the same +workstation as the real server, it is important that the nested server is given +its own listening socket address. +Therefore, if there is a server already running on the user's workstation, +.B Xnest +will have to be started up with a new display number. +Since there is usually no more than one server running on a workstation, +specifying +.RB \(oq "Xnest :1" \(cq +on the command line will be sufficient for most users. +For each server running on the workstation, the display number needs to be +incremented by one. +Thus, if you wish to start another +.BR Xnest , +you will need to type +.RB \(oq "Xnest :2" \(cq +on the command line. .PP -To run clients in the nested server each client needs to be given the -same display number as the nested server. For example, \fIxterm --display :1\fP will start up an \fIxterm\fP in the first nested server -and \fIxterm -display :2\fP will start an \fIxterm\fP in the second -nested server from the example above. Additional clients can be -started from these \fIxterm\fPs in each nested server. -.SH XNEST AS A CLIENT -\fIXnest\fP behaves and looks to the real server and other real -clients as another real client. It is a rather demanding client, -however, since almost any window or graphics request from a nested -client will result in a window or graphics request from \fIXnest\fP to -the real server. Therefore, it is desirable that \fIXnest\fP and the -real server are on a local network, or even better, on the same -machine. As of now, \fIXnest\fP assumes that the real server supports -the shape extension. There is no way to turn off this assumption -dynamically. \fIXnest\fP can be compiled without the shape extension -built in, and in that case the real server need not support it. The -dynamic shape extension selection support should be considered in -further development of \fIXnest\fP. +To run clients in the nested server, each client needs to be given the same +display number as the nested server. +For example, +.RB \(oq "xterm \-display :1" \(cq +will start up an +.B xterm +process in the first nested server +and +.RB \(oq "xterm \-display :2" \(cq +will start an +.B xterm +in the second nested server from the example above. +Additional clients can be started from these +.BR xterm s +in each nested server. +.SS "Xnest as a client" +.B Xnest +behaves and looks to the real server and other real clients as another real +client. +It is a rather demanding client, however, since almost any window or graphics +request from a nested client will result in a window or graphics request from +.B Xnest +to the real server. +Therefore, it is desirable that +.B Xnest +and the real server are on a local network, or even better, on the same machine. +.B Xnest +assumes that the real server supports the SHAPE extension. +There is no way to turn off this assumption dynamically. +.B Xnest +can be compiled without the SHAPE extension built in, in which case the real +server need not support it. +Dynamic SHAPE extension selection support may be considered in further +development of +.BR Xnest . .PP -Since \fIXnest\fP need not use the same default visual as the the real -server, the top level window of the \fIXnest\fP client always has its -own colormap. This implies that other windows' colors will not be -displayed properly while the keyboard or pointer focus is in the -\fIXnest\fP window, unless the real server has support for more than -one installed colormap at any time. The colormap associated with the -top window of the \fIXnest\fP client need not be the appropriate -colormap that the nested server wants installed in the real server. -In the case that a nested client attempts to install a colormap of a -different visual from the default visual of the nested server, -\fIXnest\fP will put the top window of this nested client and all -other top windows of the nested clients that use the same colormap -into the \fIWM\_COLORMAP\_WINDOWS\fP property of the top level -\fIXnest\fP window on the real server. Thus, it is important that the -real window manager that manages the \fIXnest\fP top level window -looks at the \fIWM\_COLORMAP\_WINDOWS\fP property rather than the -colormap associated with the top level \fIXnest\fP window. Since most -window managers appear to not implement this convention properly as of -yet, \fIXnest\fP can optionally do direct installation of colormaps -into the real server bypassing the real window manager. If the user -chooses this option, it is usually necessary to temporarily disable -the real window manager since it will interfere with the \fIXnest\fP -scheme of colormap installation. +Since +.B Xnest +need not use the same default visual as the the real server, the top-level +window of the +.B Xnest +client always has its own color map. +This implies that other windows' colors will not be displayed properly while the +keyboard or pointer focus is in the +.B Xnest +window, unless the real server has support for more than one installed color map +at any time. +The color map associated with the top window of the +.B Xnest +client need not be the appropriate color map that the nested server wants +installed in the real server. +In the case that a nested client attempts to install a color map of a different +visual from the default visual of the nested server, +.B Xnest +will put the top window of this nested client and all other top windows of the +nested clients that use the same color map into the +.I WM_COLORMAP_WINDOWS +property of the top-level +.B Xnest +window on the real server. +Thus, it is important that the real window manager that manages the +.B Xnest +top-level window looks at the +.I WM_COLORMAP_WINDOWS +property rather than the color map associated with the top-level +.B Xnest +window. +Since most window managers don't yet appear to implement this convention +properly, +.B Xnest +can optionally do direct installation of color maps into the real server +bypassing the real window manager. +If the user chooses this option, it is usually necessary to temporarily disable +the real window manager since it will interfere with the +.B Xnest +scheme of color map installation. .PP -Keyboard and pointer control procedures of the nested server change -the keyboard and pointer control parameters of the real server. -Therefore, after \fIXnest\fP is started up, it will change the -keyboard and pointer controls of the real server to its own internal -defaults. Perhaps there should be a command line option to tell -\fIXnest\fP to inherit the keyboard and pointer control parameters -from the real server rather than imposing its own. This is a future -consideration. -.SH XNEST AS A SERVER -\fIXnest\fP as a server looks exactly like a real server to its own -clients. For the clients there is no way of telling if they are -running on a real or a nested server. +Keyboard and pointer control procedures of the nested server change the keyboard +and pointer control parameters of the real server. +Therefore, after +.B Xnest +is started up, it will change the keyboard and pointer controls of the real +server to its own internal defaults. +.SS "Xnest as a server" +.B Xnest +as a server looks exactly like a real server to its own clients. +For the clients, there is no way of telling if they are running on a real or a +nested server. .PP -As already mentioned, \fIXnest\fP is a very user friendly server when -it comes to customization. \fIXnest\fP will pick up a number of -command line arguments that can configure its default visual class and -depth, number of screens, etc. In the future, \fIXnest\fP should read -a customization input file to provide even greater freedom and -simplicity in selecting the desired layout. Unfortunately, there is -no support for backing store and save under as of yet, but this should -also be considered in the future development of \fIXnest\fP. +As already mentioned, +.B Xnest +is a very user-friendly server when it comes to customization. +.B Xnest +will pick up a number of command-line arguments that can configure its default +visual class and depth, number of screens, etc. .PP The only apparent intricacy from the users' perspective about using -\fIXnest\fP as a server is the selection of fonts. \fIXnest\fP -manages fonts by loading them locally and then passing the font name -to the real server and asking it to load that font remotely. This -approach avoids the overload of sending the glyph bits across the -network for every text operation, although it is really a bug. The -proper implementation of fonts should be moved into the \fIos\fP -layer. The consequence of this approach is that the user will have to -worry about two different font paths - a local one for the nested -server and a remote one for the real server - since \fIXnest\fP does -not propagate its font path to the real server. The reason for this -is because real and nested servers need not run on the same file -system which makes the two font paths mutually incompatible. Thus, if -there is a font in the local font path of the nested server, there is -no guarantee that this font exists in the remote font path of the real -server. \fIXlsfonts\fP client, if run on the nested server will list -fonts in the local font path and if run on the real server will list -fonts in the remote font path. Before a font can be successfully -opened by the nested server it has to exist in local and remote font -paths. It is the users' responsibility to make sure that this is the -case. +.B Xnest +as a server is the selection of fonts. +.B Xnest +manages fonts by loading them locally and then passing the font name to the real +server and asking it to load that font remotely. +This approach avoids the overload of sending the glyph bits across the network +for every text operation, although it is really a bug. +The consequence of this approach is that the user will have to worry about two +different font paths \(em a local one for the nested server and a remote one for +the real server \(em since +.B Xnest +does not propagate its font path to the real server. +The reason for this is because real and nested servers need not run on the same +file system which makes the two font paths mutually incompatible. +Thus, if there is a font in the local font path of the nested server, there is +no guarantee that this font exists in the remote font path of the real server. +The +.BR xlsfonts (__appmansuffix__) +client, if run on the nested server, will list fonts in the local font path and, +if run on the real server, will list fonts in the remote font path. +Before a font can be successfully opened by the nested server, it has to exist +in local and remote font paths. +It is the users' responsibility to make sure that this is the case. +.SH "FUTURE DIRECTIONS" +Make dynamic the requirement for the SHAPE extension in the real server, rather +than having to recompile +.B Xnest +to turn this requirement on and off. +.PP +Perhaps there should be a command-line option to tell +.B Xnest +to inherit the keyboard and pointer control parameters from the real server +rather than imposing its own. +.PP +.B Xnest +should read a customization input file to provide even greater freedom and +simplicity in selecting the desired layout. +.PP +There is no support for backing store and save unders, but this should also be +considered. +.PP +.\" Is the following still true now that client-side font rendering is +.\" considered the way to go? +The proper implementation of fonts should be moved into the +.I os +layer. .SH BUGS -Won't run well on servers supporting different visual depths. -Still crashes randomly. Probably has some memory leaks. +Doesn't run well on servers supporting different visual depths. +.PP +Still crashes randomly. +.PP +Probably has some memory leaks. .SH AUTHOR Davor Matic, MIT X Consortium - +.SH "SEE ALSO" +.BR Xserver (__appmansuffix__), +.BR xdpyinfo (__appmansuffix__), +.BR X (__miscmansuffix__) From 6bf8d5019313ee2251a44dfb7ad3435a3c6db7eb Mon Sep 17 00:00:00 2001 From: David Nusinow Date: Mon, 28 May 2007 21:42:10 -0400 Subject: [PATCH 10/16] Read ROM in chunks This patch speeds up reads of the ROM by reading in large chunks rather than one byte at a time. This patch was by Dann Frazier. --- hw/xfree86/os-support/bus/linuxPci.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hw/xfree86/os-support/bus/linuxPci.c b/hw/xfree86/os-support/bus/linuxPci.c index 2aaa89cc2..3d8266e49 100644 --- a/hw/xfree86/os-support/bus/linuxPci.c +++ b/hw/xfree86/os-support/bus/linuxPci.c @@ -788,8 +788,10 @@ xf86ReadDomainMemory(PCITAG Tag, ADDRESS Base, int Len, unsigned char *Buf) write(fd, "1", 2); lseek(fd, 0, SEEK_SET); + len = min(Len, st.st_size); + /* copy the ROM until we hit Len, EOF or read error */ - for (i = 0; i < Len && read(fd, Buf, 1) > 0; Buf++, i++) + for (; len && (size = read(fd, Buf, len)) > 0 ; Buf+=size, len-=size) ; write(fd, "0", 2); From d98bd4bf908c2c51fcfd3a4c3230de17f2567244 Mon Sep 17 00:00:00 2001 From: Branden Robinson Date: Mon, 28 May 2007 21:44:59 -0400 Subject: [PATCH 11/16] Overhaul xorg.conf manpage Major stylistic cleanups, greatly expanded cross-reference ("SEE ALSO") section and some typo fixes. This patch by Branden Robinson. Forward-ported by Fabio M. Di Nitto. --- hw/xfree86/doc/man/xorg.conf.man.pre | 1288 +++++++++++++++----------- 1 file changed, 742 insertions(+), 546 deletions(-) diff --git a/hw/xfree86/doc/man/xorg.conf.man.pre b/hw/xfree86/doc/man/xorg.conf.man.pre index f2cb5ef03..4103974c1 100644 --- a/hw/xfree86/doc/man/xorg.conf.man.pre +++ b/hw/xfree86/doc/man/xorg.conf.man.pre @@ -3,7 +3,7 @@ .ds q \N'34' .TH __xconfigfile__ __filemansuffix__ __vendorversion__ .SH NAME -__xconfigfile__ - Configuration File for __xservername__ +__xconfigfile__ \- configuration File for __xservername__ X server .SH INTRODUCTION .B __xservername__ supports several mechanisms for supplying/obtaining configuration and @@ -21,9 +21,10 @@ manual page. .SH DESCRIPTION .B __xservername__ uses a configuration file called -.B __xconfigfile__ -for its initial setup. This configuration file is searched for in the -following places when the server is started as a normal user: +.I __xconfigfile__ +for its initial setup. +This configuration file is searched for in the following places when the +server is started as a normal user: .PP .RS 4 .nf @@ -31,30 +32,31 @@ following places when the server is started as a normal user: .IR __projectroot__/etc/X11/ .IB /etc/X11/ $XORGCONFIG .IB __projectroot__/etc/X11/ $XORGCONFIG -.I /etc/X11/__xconfigfile__-4 +.I /etc/X11/__xconfigfile__\-4 .I /etc/X11/__xconfigfile__ .I /etc/__xconfigfile__ .IR __projectroot__/etc/X11/__xconfigfile__. -.I __projectroot__/etc/X11/__xconfigfile__-4 +.I __projectroot__/etc/X11/__xconfigfile__\-4 .I __projectroot__/etc/X11/__xconfigfile__ .IR __projectroot__/lib/X11/__xconfigfile__. -.I __projectroot__/lib/X11/__xconfigfile__-4 +.I __projectroot__/lib/X11/__xconfigfile__\-4 .I __projectroot__/lib/X11/__xconfigfile__ .fi .RE .PP where .I -is a relative path (with no ".." components) specified with the +is a relative path (with no \(lq..\(rq components) specified with the .B \-config command line option, .B $XORGCONFIG -is the relative path (with no ".." components) specified by that +is the relative path (with no \(lq..\(rq components) specified by that environment variable, and .I -is the machine's hostname as reported by gethostname(3). +is the machine's hostname as reported by +.BR gethostname (__oslibmansuffix__). .PP -When the __xservername__ server is started by the "root" user, the config file +When the __xservername__ server is started by the \(lqroot\(rq user, the config file search locations are as follows: .PP .RS 4 @@ -66,14 +68,14 @@ search locations are as follows: .IB /etc/X11/ $XORGCONFIG .IB __projectroot__/etc/X11/ $XORGCONFIG .BI $HOME /__xconfigfile__ -.I /etc/X11/__xconfigfile__-4 +.I /etc/X11/__xconfigfile__\-4 .I /etc/X11/__xconfigfile__ .I /etc/__xconfigfile__ .IR __projectroot__/etc/X11/__xconfigfile__. -.I __projectroot__/etc/X11/__xconfigfile__-4 +.I __projectroot__/etc/X11/__xconfigfile__\-4 .I __projectroot__/etc/X11/__xconfigfile__ .IR __projectroot__/lib/X11/__xconfigfile__. -.I __projectroot__/lib/X11/__xconfigfile__-4 +.I __projectroot__/lib/X11/__xconfigfile__\-4 .I __projectroot__/lib/X11/__xconfigfile__ .fi .RE @@ -90,13 +92,13 @@ environment variable (absolute or relative), is the path specified by that environment variable (usually the home directory), and .I -is the machine's hostname as reported by gethostname(3). +is the machine's hostname as reported by +.BR gethostname (__oslibmansuffix__). .PP The -.B __xconfigfile__ -file is composed of a number of sections which may be present in any -order. Each section has -the form: +.I __xconfigfile__ +file is composed of a number of sections which may be present in any order. +Each section has the form: .PP .RS 4 .nf @@ -121,13 +123,14 @@ The section names are: .BR "Modes " "Video modes descriptions" .BR "Screen " "Screen configuration" .BR "ServerLayout " "Overall layout" -.BR "DRI " "DRI-specific configuration" -.BR "Vendor " "Vendor-specific configuration" +.BR "DRI " "DRI\-specific configuration" +.BR "Vendor " "Vendor\-specific configuration" .fi .RE .PP The following obsolete section names are still recognised for compatibility -purposes. In new config files, the +purposes. +In new config files, the .B InputDevice section should be used instead. .PP @@ -144,35 +147,38 @@ section is no longer recognised. .PP The .B ServerLayout -sections are at the highest level. They bind together the input and -output devices that will be used in a session. The input devices -are described in the +sections are at the highest level. +They bind together the input and output devices that will be used in a session. +The input devices are described in the .B InputDevice -sections. Output devices usually consist of multiple independent -components (e.g., a graphics board and a monitor). These multiple -components are bound together in the +sections. +Output devices usually consist of multiple independent components (e.g., +a graphics board and a monitor). +These multiple components are bound together in the .B Screen sections, and it is these that are referenced by the .B ServerLayout -section. Each +section. +Each .B Screen -section binds together a graphics board and a monitor. The graphics -boards are described in the +section binds together a graphics board and a monitor. +The graphics boards are described in the .B Device sections, and the monitors are described in the .B Monitor sections. .PP -Config file keywords are case-insensitive, and "_" characters are -ignored. Most strings (including +Config file keywords are case\-insensitive, and \(lq_\(rq characters are +ignored. +Most strings (including .B Option names) are also case-insensitive, and insensitive to white space and -"_" characters. +\(lq_\(rq characters. .PP -Each config file entry usually takes up a single line in the file. -They consist of a keyword, which is possibly followed by one or -more arguments, with the number and types of the arguments depending -on the keyword. The argument types are: +Each config file entry usually takes up a single line in the file. They +consist of a keyword, which is possibly followed by one or more arguments, +with the number and types of the arguments depending on the keyword. +The argument types are: .PP .RS 4 .nf @@ -182,17 +188,18 @@ on the keyword. The argument types are: .fi .RE .PP -Note: hex integer values must be prefixed with "0x", and octal values -with "0". +Note: hex integer values must be prefixed with \(lq0x\(rq, and octal values +with \(lq0\(rq. .PP A special keyword called .B Option -may be used to provide free-form data to various components of the server. +may be used to provide free\-form data to various components of the server. The .B Option -keyword takes either one or two string arguments. The first is the option -name, and the optional second argument is the option value. Some commonly -used option value types include: +keyword takes either one or two string arguments. +The first is the option name, and the optional second argument is the +option value. +Some commonly used option value types include: .PP .RS 4 .nf @@ -209,8 +216,8 @@ Note that .B Option values, not just strings, must be enclosed in quotes. .PP -Boolean options may optionally have a value specified. When no value -is specified, the option's value is +Boolean options may optionally have a value specified. +When no value is specified, the option's value is .BR TRUE . The following boolean option values are recognised as .BR TRUE : @@ -263,30 +270,35 @@ When the unit name is omitted, the correct units will be determined from the value and the expectations of the appropriate range of the value. It is recommended that the units always be specified when using frequency option values to avoid any errors in determining the value. -.SH FILES SECTION +.SH "FILES SECTION" The .B Files section is used to specify some path names required by the server. -Some of these paths can also be set from the command line (see Xserver(__appmansuffix__) -and __xservername__(__appmansuffix__)). The command line settings override the values specified -in the config file. The +Some of these paths can also be set from the command line (see +.BR Xserver (__appmansuffix__) +and +.BR __xservername__ (__appmansuffix__)). +The command line settings override the values specified in the config +file. +The .B Files section is optional, as are all of the entries that may appear in it. .PP The entries that can appear in this section are: .TP 7 .BI "FontPath \*q" path \*q -sets the search path for fonts. This path is a comma separated list of -font path elements which the __xservername__ server searches for font databases. +sets the search path for fonts. +This path is a comma separated list of font path elements which the __xservername__ +server searches for font databases. Multiple .B FontPath entries may be specified, and they will be concatenated to build up the fontpath used by the server. Font path elements may be either absolute -directory paths, or a font server identifier. Font server identifiers -have the form: +directory paths, or a font server identifier. +Font server identifiers have the form: .PP .RS 11 -.IR / : +.IR / : .RE .PP .RS 7 @@ -294,16 +306,16 @@ where .I is the transport type to use to connect to the font server (e.g., .B unix -for UNIX-domain sockets or +for UNIX\-domain sockets or .B tcp for a TCP/IP connection), .I is the hostname of the machine running the font server, and -.I +.I is the port number that the font server is listening on (usually 7100). .PP When this entry is not specified in the config file, the server falls back -to the compiled-in default font path, which contains the following +to the compiled\-in default font path, which contains the following font path elements: .PP .RS 4 @@ -338,7 +350,7 @@ font path when the server starts up. .BI "RGBPath \*q" path \*q sets the path name for the RGB color database. When this entry is not specified in the config file, the server falls back -to the compiled-in default RGB path, which is: +to the compiled\-in default RGB path, which is: .PP .RS 11 .I __projectroot__/share/X11/rgb @@ -350,9 +362,10 @@ is added to this path if the server was compiled to use text rather than binary format RGB color databases. .TP 7 .BI "ModulePath \*q" path \*q -sets the search path for loadable __xservername__ server modules. This path is -a comma separated list of directories which the __xservername__ server searches -for loadable modules loading in the order specified. Multiple +sets the search path for loadable __xservername__ server modules. +This path is a comma separated list of directories which the __xservername__ server +searches for loadable modules loading in the order specified. +Multiple .B ModulePath entries may be specified, and they will be concatenated to build the module search path used by the server. @@ -360,8 +373,8 @@ module search path used by the server. .ig .TP 7 .BI "LogFile \*q" path \*q -sets the name of the __xservername__ server log file. The default log file name -is +sets the name of the __xservername__ server log file. +The default log file name is .PP .RS 11 .RI __logdir__/__xservername__. .log @@ -372,15 +385,18 @@ where .I is the display number for the __xservername__ server. .. -.SH SERVERFLAGS SECTION +.SH "SERVERFLAGS SECTION" In addition to options specific to this section (described below), the .B ServerFlags section is used to specify some global -__xservername__ server options. All of the entries in this section are +__xservername__ server options. +All of the entries in this section are .BR Options , although for compatibility purposes some of the old style entries are -still recognised. Those old style entries are not documented here, and -using them is discouraged. The +still recognised. +Those old style entries are not documented here, and using them is +discouraged. +The .B ServerFlags section is optional, as are the entries that may be specified in it. .PP @@ -392,11 +408,12 @@ may be overridden by .B Options specified in the active .B ServerLayout -section. Options with command line equivalents are overridden when their -command line equivalent is used. The options recognised by this section -are: +section. +Options with command line equivalents are overridden when their command +line equivalent is used. +The options recognised by this section are: .TP 7 -.BI "Option \*qDefaultServerLayout\*q \*q" layout-id \*q +.BI "Option \*qDefaultServerLayout\*q \*q" layout\-id \*q This specifies the default .B ServerLayout section to use in the absence of the @@ -404,148 +421,185 @@ section to use in the absence of the command line option. .TP 7 .BI "Option \*qNoTrapSignals\*q \*q" boolean \*q -This prevents the __xservername__ server from trapping a range of unexpected -fatal signals and exiting cleanly. Instead, the __xservername__ server will die -and drop core where the fault occurred. The default behaviour is -for the __xservername__ server to exit cleanly, but still drop a core file. In -general you never want to use this option unless you are debugging -an __xservername__ server problem and know how to deal with the consequences. +This prevents the __xservername__ server from trapping a range of unexpected fatal +signals and exiting cleanly. +Instead, the __xservername__ server will die and drop core where the fault occurred. +The default behaviour is for the __xservername__ server to exit cleanly, but still drop a +core file. +In general you never want to use this option unless you are debugging an __xservername__ +server problem and know how to deal with the consequences. .TP 7 .BI "Option \*qDontVTSwitch\*q \*q" boolean \*q This disallows the use of the .BI Ctrl+Alt+F n sequence (where .RI F n -refers to one of the numbered function keys). That sequence is normally -used to switch to another \*qvirtual terminal\*q on operating systems -that have this feature. When this option is enabled, that key sequence has -no special meaning and is passed to clients. Default: off. +refers to one of the numbered function keys). +That sequence is normally used to switch to another \*qvirtual terminal\*q +on operating systems that have this feature. +When this option is enabled, that key sequence has no special meaning and +is passed to clients. +Default: off. .TP 7 .BI "Option \*qDontZap\*q \*q" boolean \*q This disallows the use of the .B Ctrl+Alt+Backspace -sequence. That sequence is normally used to terminate the __xservername__ server. -When this option is enabled, that key sequence has no special meaning -and is passed to clients. Default: off. +sequence. +That sequence is normally used to terminate the __xservername__ server. +When this option is enabled, that key sequence has no special meaning and +is passed to clients. +Default: off. .TP 7 .BI "Option \*qDontZoom\*q \*q" boolean \*q This disallows the use of the -.B Ctrl+Alt+Keypad-Plus +.B Ctrl+Alt+Keypad\-Plus and -.B Ctrl+Alt+Keypad-Minus -sequences. These sequences allows you to switch between video modes. +.B Ctrl+Alt+Keypad\-Minus +sequences. +These sequences allows you to switch between video modes. When this option is enabled, those key sequences have no special meaning -and are passed to clients. Default: off. +and are passed to clients. +Default: off. .TP 7 .BI "Option \*qDisableVidModeExtension\*q \*q" boolean \*q This disables the parts of the VidMode extension used by the xvidtune client -that can be used to change the video modes. Default: the VidMode extension -is enabled. +that can be used to change the video modes. +Default: the VidMode extension is enabled. .TP 7 .BI "Option \*qAllowNonLocalXvidtune\*q \*q" boolean \*q This allows the xvidtune client (and other clients that use the VidMode -extension) to connect from another host. Default: off. +extension) to connect from another host. +Default: off. .TP 7 .BI "Option \*qDisableModInDev\*q \*q" boolean \*q -This disables the parts of the __xservername__-Misc extension that can be used to -modify the input device settings dynamically. Default: that functionality -is enabled. +This disables the parts of the __xservername__\-Misc extension that can be used to +modify the input device settings dynamically. +Default: that functionality is enabled. .TP 7 .BI "Option \*qAllowNonLocalModInDev\*q \*q" boolean \*q This allows a client to connect from another host and change keyboard -and mouse settings in the running server. Default: off. +and mouse settings in the running server. +Default: off. .TP 7 .BI "Option \*qAllowMouseOpenFail\*q \*q" boolean \*q This allows the server to start up even if the mouse device can't be -opened/initialised. Default: false. +opened/initialised. +Default: false. .TP 7 .BI "Option \*qVTInit\*q \*q" command \*q Runs .I command after the VT used by the server has been opened. -The command string is passed to "/bin/sh -c", and is run with the -real user's id with stdin and stdout set to the VT. The purpose -of this option is to allow system dependent VT initialisation -commands to be run. This option should rarely be needed. Default: not set. +The command string is passed to \*q/bin/sh \-c\*q, and is run with the real +user's id with stdin and stdout set to the VT. +The purpose of this option is to allow system dependent VT initialisation +commands to be run. +This option should rarely be needed. +Default: not set. .TP 7 .BI "Option \*qVTSysReq\*q \*q" boolean \*q -enables the SYSV-style VT switch sequence for non-SYSV systems -which support VT switching. This sequence is -.B Alt-SysRq -followed -by a function key +enables the SYSV\-style VT switch sequence for non\-SYSV systems +which support VT switching. +This sequence is +.B Alt\-SysRq +followed by a function key .RB ( Fn ). This prevents the __xservername__ server trapping the keys used for the default VT switch sequence, which means that clients can -access them. Default: off. +access them. +Default: off. .TP 7 .BI "Option \*qXkbDisable\*q \*q" boolean \*q -disable/enable the XKEYBOARD extension. The \-kb command line -option overrides this config file option. Default: XKB is enabled. +disable/enable the XKEYBOARD extension. +The \-kb command line option overrides this config file option. +Default: XKB is enabled. .\" The following four options are "undocumented". .ig .TP 7 .BI "Option \*qPciProbe1\*q" -Use PCI probe method 1. Default: set. +Use PCI probe method 1. +Default: set. .TP 7 .BI "Option \*qPciProbe2\*q" -Use PCI probe method 2. Default: not set. +Use PCI probe method 2. +Default: not set. .TP 7 .BI "Option \*qPciForceConfig1\*q" -Force the use PCI config type 1. Default: not set. +Force the use PCI config type 1. +Default: not set. .TP 7 .BI "Option \*qPciForceConfig2\*q" -Force the use PCI config type 2. Default: not set. +Force the use PCI config type 2. +Default: not set. .. .TP 7 .BI "Option \*qBlankTime\*q \*q" time \*q -sets the inactivity timeout for the blanking phase of the screensaver. +sets the inactivity timeout for the +.B blank +phase of the screensaver. .I time -is in minutes. This is equivalent to the __xservername__ server's `-s' flag, -and the value can be changed at run-time with xset(__appmansuffix__). Default: 10 -minutes. +is in minutes. +This is equivalent to the __xservername__ server's +.B \-s +flag, and the value can be changed at run\-time with +.BR xset(__appmansuffix__). +Default: 10 minutes. .TP 7 .BI "Option \*qStandbyTime\*q \*q" time \*q -sets the inactivity timeout for the "standby" phase of DPMS mode. +sets the inactivity timeout for the +.B standby +phase of DPMS mode. .I time -is in minutes, and the value can be changed at run-time with xset(__appmansuffix__). -Default: 20 minutes. This is only suitable for VESA DPMS compatible -monitors, and may not be supported by all video drivers. It is only -enabled for screens that have the +is in minutes, and the value can be changed at run\-time with +.BR xset(__appmansuffix__). +Default: 20 minutes. +This is only suitable for VESA DPMS compatible monitors, and may not be +supported by all video drivers. +It is only enabled for screens that have the .B \*qDPMS\*q option set (see the MONITOR section below). .TP 7 .BI "Option \*qSuspendTime\*q \*q" time \*q -sets the inactivity timeout for the "suspend" phase of DPMS mode. +sets the inactivity timeout for the +.B suspend +phase of DPMS mode. .I time -is in minutes, and the value can be changed at run-time with xset(__appmansuffix__). -Default: 30 minutes. This is only suitable for VESA DPMS compatible -monitors, and may not be supported by all video drivers. It is only -enabled for screens that have the +is in minutes, and the value can be changed at run\-time with +.BR xset(__appmansuffix__). +Default: 30 minutes. +This is only suitable for VESA DPMS compatible monitors, and may not be +supported by all video drivers. +It is only enabled for screens that have the .B \*qDPMS\*q option set (see the MONITOR section below). .TP 7 .BI "Option \*qOffTime\*q \*q" time \*q -sets the inactivity timeout for the "off" phase of DPMS mode. +sets the inactivity timeout for the +.B off +phase of DPMS mode. .I time -is in minutes, and the value can be changed at run-time with xset(__appmansuffix__). -Default: 40 minutes. This is only suitable for VESA DPMS compatible -monitors, and may not be supported by all video drivers. It is only -enabled for screens that have the +is in minutes, and the value can be changed at run\-time with +.BR xset(__appmansuffix__). +Default: 40 minutes. +This is only suitable for VESA DPMS compatible monitors, and may not be +supported by all video drivers. +It is only enabled for screens that have the .B \*qDPMS\*q option set (see the MONITOR section below). .TP 7 .BI "Option \*qPixmap\*q \*q" bpp \*q -This sets the pixmap format to use for depth 24. Allowed values for +This sets the pixmap format to use for depth 24. +Allowed values for .I bpp -are 24 and 32. Default: 32 unless driver constraints don't allow this -(which is rare). Note: some clients don't behave well when this value -is set to 24. +are 24 and 32. +Default: 32 unless driver constraints don't allow this (which is rare). +Note: some clients don't behave well when this value is set to 24. .TP 7 .BI "Option \*qPC98\*q \*q" boolean \*q -Specify that the machine is a Japanese PC-98 machine. This should not -be enabled for anything other than the Japanese-specific PC-98 -architecture. Default: auto-detected. +Specify that the machine is a Japanese PC\-98 machine. +This should not be enabled for anything other than the Japanese\-specific +PC\-98 architecture. +Default: auto\-detected. .\" Doubt this should be documented. .ig .TP 7 @@ -555,48 +609,54 @@ Default: 0. .. .TP 7 .BI "Option \*qNoPM\*q \*q" boolean \*q -Disables something to do with power management events. Default: PM -enabled on platforms that support it. +Disables something to do with power management events. +Default: PM enabled on platforms that support it. .TP 7 .BI "Option \*qXinerama\*q \*q" boolean \*q -enable or disable XINERAMA extension. Default is disabled. +enable or disable XINERAMA extension. +Default is disabled. .TP 7 .BI "Option \*qAllowDeactivateGrabs\*q \*q" boolean \*q This option enables the use of the -.B Ctrl+Alt+Keypad-Divide -key sequence to deactivate any active keyboard and mouse grabs. Default: -off. +.B Ctrl+Alt+Keypad\-Divide +key sequence to deactivate any active keyboard and mouse grabs. +Default: off. .TP 7 .BI "Option \*qAllowClosedownGrabs\*q \*q" boolean \*q This option enables the use of the -.B Ctrl+Alt+Keypad-Multiply -key sequence to kill clients with an active keyboard or mouse grab as -well as killing any application that may have locked the server, normally -using the XGrabServer(__libmansuffix__) Xlib function. Default: off. +.B Ctrl+Alt+Keypad\-Multiply +key sequence to kill clients with an active keyboard or mouse grab as well +as killing any application that may have locked the server, normally using +the +.BR XGrabServer(__libmansuffix__) +Xlib function. +Default: off. .br Note that the options -.BI AllowDeactivateGrabs +.B AllowDeactivateGrabs and -.BI AllowClosedownGrabs +.B AllowClosedownGrabs will allow users to remove the grab used by screen saver/locker programs. -An API was written to such cases. If you enable this option, make sure -your screen saver/locker is updated. +An API was written to such cases. +If you enable this option, make sure your screen saver/locker is updated. +Default: off. .TP 7 .BI "Option \*qHandleSpecialKeys\*q \*q" when \*q This option controls when the server uses the builtin handler to process special key combinations (such as .BR Ctrl+Alt+Backspace ). -Normally the XKEYBOARD extension keymaps will provide mappings for each -of the special key combinations, so the builtin handler is not needed -unless the XKEYBOARD extension is disabled. The value of +Normally the XKEYBOARD extension keymaps will provide mappings for each of +the special key combinations, so the builtin handler is not needed unless +the XKEYBOARD extension is disabled. +The value of .I when can be .BR Always , .BR Never , or .BR WhenNeeded . -Default: Use the builtin handler only if needed. The server will scan -the keymap for a mapping to the +Default: Use the builtin handler only if needed. +The server will scan the keymap for a mapping to the .B Terminate action and, if found, use XKEYBOARD for processing actions, otherwise the builtin handler will be used. @@ -612,21 +672,22 @@ default. .BI "Option \*qIgnoreABI\*q \*q" boolean \*q Allow modules built for a different, potentially incompatible version of the X server to load. Disabled by default. -.SH MODULE SECTION +.SH "MODULE SECTION" The .B Module section is used to specify which __xservername__ server modules should be loaded. This section is ignored when the __xservername__ server is built in static form. The types of modules normally loaded in this section are __xservername__ server -extension modules, and font rasteriser modules. Most other module types -are loaded automatically when they are needed via other mechanisms. +extension modules, and font rasteriser modules. +Most other module types are loaded automatically when they are needed via +other mechanisms. The .B Module section is optional, as are all of the entries that may be specified in it. .PP -Entries in this section may be in two forms. The first and most commonly -used form is an entry that uses the +Entries in this section may be in two forms. +The first and most commonly used form is an entry that uses the .B Load keyword, as described here: .TP 7 @@ -634,8 +695,9 @@ keyword, as described here: This instructs the server to load the module called .IR modulename . The module name given should be the module's standard name, not the -module file name. The standard name is case-sensitive, and does not -include the "lib" prefix, or the ".a", ".o", or ".so" suffixes. +module file name. +The standard name is case\-sensitive, and does not include the \(lqlib\(rq +prefix, or the \(lq.a\(rq, \(lq.o\(rq, or \(lq.so\(rq suffixes. .PP .RS 7 Example: the Type 1 font rasteriser can be loaded with the following entry: @@ -668,13 +730,13 @@ being that are passed to the module when it is loaded. .PP Example: the extmod module (which contains a miscellaneous group of -server extensions) can be loaded, with the XFree86-DGA extension +server extensions) can be loaded, with the XFree86\-DGA extension disabled by using the following entry: .PP .RS 4 .nf .B "SubSection \*qextmod\*q" -.B " Option \*qomit XFree86-DGA\*q" +.B " Option \*qomit XFree86\-DGA\*q" .B EndSubSection .fi .RE @@ -696,17 +758,20 @@ __projectroot__/lib/modules/extensions .fi .RE .PP -The "bitmap" font modules is loaded automatically. It is recommended -that at very least the "extmod" extension module be loaded. If it isn't -some commonly used server extensions (like the SHAPE extension) will not be -available. -.SH INPUTDEVICE SECTION +The \(lqbitmap\(rq font module is loaded automatically. +It is recommended +that at very least the \(lqextmod\(rq extension module be loaded. +If it isn't, some commonly used server extensions (like the SHAPE +extension) will not be available. +.SH "INPUTDEVICE SECTION" The config file may have multiple .B InputDevice -sections. There will normally be at least two: one for the core (primary) -keyboard, and one of the core pointer. If either of these two is missing, -a default configuration for the missing ones will be used. Currently the -default configuration may not work as expected on all platforms. +sections. +There will normally be at least two: one for the core (primary) keyboard, +and one of the core pointer. +If either of these two is missing, a default configuration for the missing +ones will be used. +Currently the default configuration may not work as expected on all platforms. .PP .B InputDevice sections have the following format: @@ -728,18 +793,21 @@ and .B Driver entries are required in all .B InputDevice -sections. All other entries are optional. +sections. +All other entries are optional. .PP The .B Identifier -entry specifies the unique name for this input device. The +entry specifies the unique name for this input device. +The .B Driver entry specifies the name of the driver to use for this input device. When using the loadable server, the input driver module .RI \*q inputdriver \*q will be loaded for each active .B InputDevice -section. An +section. +An .B InputDevice section is considered active if it is referenced by an active .B ServerLayout @@ -749,7 +817,10 @@ or .B \-pointer command line options, or if it is selected implicitly as the core pointer or keyboard device in the absence of such explicit references. -The most commonly used input drivers are "keyboard" and "mouse". +The most commonly used input drivers are +.BR keyboard (__drivermansuffix__) +and +.BR mouse (__drivermansuffix__). .PP In the absence of an explicitly specified core input device, the first .B InputDevice @@ -757,21 +828,24 @@ marked as .B CorePointer (or .BR CoreKeyboard ) -is used. If there is no match there, the first +is used. +If there is no match there, the first .B InputDevice -that uses the "mouse" (or "keyboard" or "kbd") driver is used. The final -fallback is to use built-in default configurations. +that uses the \(lqmouse\(rq (or \(lqkeyboard\(rq or \(lqkbd\(rq) driver is used. +The final fallback is to use built\-in default configurations. .PP .B InputDevice -sections recognise some driver-independent +sections recognise some driver\-independent .BR Options , -which are described here. See the individual input driver manual pages -for a description of the device-specific options. +which are described here. +See the individual input driver manual pages for a description of the +device\-specific options. .TP 7 .BI "Option \*qCorePointer\*q" When this is set, the input device is installed as the core (primary) -pointer device. There must be exactly one core pointer. If this option -is not set here, or in the +pointer device. +There must be exactly one core pointer. +If this option is not set here, or in the .B ServerLayout section, or from the .B \-pointer @@ -783,8 +857,9 @@ section is used. .TP 7 .BI "Option \*qCoreKeyboard\*q" When this is set, the input device is to be installed as the core -(primary) keyboard device. There must be exactly one core keyboard. If -this option is not set here, in the +(primary) keyboard device. +There must be exactly one core keyboard. +If this option is not set here, in the .B ServerLayout section, or from the .B \-keyboard @@ -798,19 +873,21 @@ section is used. .TP 7 .BI "Option \*qSendCoreEvents\*q \*q" boolean \*q Both of these options are equivalent, and when enabled cause the -input device to always report core events. This can be used, for -example, to allow an additional pointer device to generate core -pointer events (like moving the cursor, etc). +input device to always report core events. +This can be used, for example, to allow an additional pointer device to +generate core pointer events (like moving the cursor, etc). .TP 4 .BI "Option \*qHistorySize\*q \*q" number \*q -Sets the motion history size. Default: 0. +Sets the motion history size. +Default: 0. .TP 7 .BI "Option \*qSendDragEvents\*q \*q" boolean \*q ??? -.SH DEVICE SECTION +.SH "DEVICE SECTION" The config file may have multiple .B Device -sections. There must be at least one, for the video card being used. +sections. +There must be at least one, for the video card being used. .PP .B Device sections have the following format: @@ -836,27 +913,30 @@ sections. All other entries are optional. .PP The .B Identifier -entry specifies the unique name for this graphics device. The +entry specifies the unique name for this graphics device. +The .B Driver entry specifies the name of the driver to use for this graphics device. When using the loadable server, the driver module .RI \*q driver \*q will be loaded for each active .B Device -section. A +section. +A .B Device section is considered active if it is referenced by an active .B Screen section. .PP .B Device -sections recognise some driver-independent entries and +sections recognise some driver\-independent entries and .BR Options , -which are described here. Not all drivers make use of these -driver-independent entries, and many of those that do don't require them -to be specified because the information is auto-detected. See the -individual graphics driver manual pages for further information about -this, and for a description of the device-specific options. +which are described here. +Not all drivers make use of these +driver\-independent entries, and many of those that do don't require them +to be specified because the information is auto\-detected. +See the individual graphics driver manual pages for further information +about this, and for a description of the device\-specific options. Note that most of the .B Options listed here (but not the other entries) may be specified in the @@ -865,118 +945,133 @@ section instead of here in the .B Device section. .TP 7 -.BI "BusID \*q" bus-id \*q -This specifies the bus location of the graphics card. For PCI/AGP cards, +.BI "BusID \*q" bus\-id \*q +This specifies the bus location of the graphics card. +For PCI/AGP cards, the -.I bus-id +.I bus\-id string has the form .BI PCI: bus : device : function -(e.g., "PCI:1:0:0" might be appropriate for an AGP card). +(e.g., \(lqPCI:1:0:0\(rq might be appropriate for an AGP card). This field is usually optional in single-head configurations when using -the primary graphics card. In multi-head configurations, or when using -a secondary graphics card in a single-head configuration, this entry is -mandatory. Its main purpose is to make an unambiguous connection between -the device section and the hardware it is representing. This information -can usually be found by running the __xservername__ server with the +the primary graphics card. +In multi-head configurations, or when using a secondary graphics card in a +single-head configuration, this entry is mandatory. +Its main purpose is to make an unambiguous connection between the device +section and the hardware it is representing. +This information can usually be found by running the __xservername__ server +with the .B \-scanpci command line option. .TP 7 .BI "Screen " number This option is mandatory for cards where a single PCI entity can drive more than one display (i.e., multiple CRTCs sharing a single graphics accelerator -and video memory). One +and video memory). +One .B Device section is required for each head, and this parameter determines which head each of the .B Device -sections applies to. The legal values of +sections applies to. +The legal values of .I number range from 0 to one less than the total number of heads per entity. Most drivers require that the primary screen (0) be present. .TP 7 .BI "Chipset \*q" chipset \*q This usually optional entry specifies the chipset used on the graphics -board. In most cases this entry is not required because the drivers -will probe the hardware to determine the chipset type. Don't -specify it unless the driver-specific documentation recommends that you +board. +In most cases this entry is not required because the drivers will probe the +hardware to determine the chipset type. +Don't specify it unless the driver-specific documentation recommends that you do. .TP 7 -.BI "Ramdac \*q" ramdac-type \*q +.BI "Ramdac \*q" ramdac\-type \*q This optional entry specifies the type of RAMDAC used on the graphics -board. This is only used by a few of the drivers, and in most cases it -is not required because the drivers will probe the hardware to determine -the RAMDAC type where possible. Don't specify it unless the -driver-specific documentation recommends that you do. +board. +This is only used by a few of the drivers, and in most cases it is not +required because the drivers will probe the hardware to determine the +RAMDAC type where possible. +Don't specify it unless the driver-specific documentation recommends that you +do. .TP 7 .BI "DacSpeed " speed .TP 7 -.BI "DacSpeed " "speed-8 speed-16 speed-24 speed-32" +.BI "DacSpeed " "speed\-8 speed\-16 speed\-24 speed\-32" This optional entry specifies the RAMDAC speed rating (which is usually -printed on the RAMDAC chip). The speed is in MHz. When one value is -given, it applies to all framebuffer pixel sizes. When multiple values -are give, they apply to the framebuffer pixel sizes 8, 16, 24 and 32 -respectively. This is not used by many drivers, and only needs to be -specified when the speed rating of the RAMDAC is different from the -defaults built in to driver, or when the driver can't auto-detect the -correct defaults. Don't specify it unless the driver-specific -documentation recommends that you do. +printed on the RAMDAC chip). +The speed is in MHz. +When one value is given, it applies to all framebuffer pixel sizes. +When multiple values are given, they apply to the framebuffer pixel sizes +8, 16, 24 and 32 respectively. +This is not used by many drivers, and only needs to be specified when the +speed rating of the RAMDAC is different from the defaults built in to +driver, or when the driver can't auto-detect the correct defaults. +Don't specify it unless the driver-specific documentation recommends that you +do. .TP 7 .BI "Clocks " "clock ..." -specifies the pixel that are on your graphics board. The clocks are in -MHz, and may be specified as a floating point number. The value is -stored internally to the nearest kHz. The ordering of the clocks is -important. It must match the order in which they are selected on the -graphics board. Multiple +specifies the pixel that are on your graphics board. +The clocks are in MHz, and may be specified as a floating point number. +The value is stored internally to the nearest kHz. +The ordering of the clocks is important. +It must match the order in which they are selected on the graphics board. +Multiple .B Clocks -lines may be specified, and each is concatenated to form the list. Most -drivers do not use this entry, and it is only required for some older -boards with non-programmable clocks. Don't specify this entry unless -the driver-specific documentation explicitly recommends that you do. +lines may be specified, and each is concatenated to form the list. +Most drivers do not use this entry, and it is only required for some older +boards with non-programmable clocks. +Don't specify this entry unless the driver-specific documentation explicitly +recommends that you do. .TP -.BI "ClockChip \*q" clockchip-type \*q +.BI "ClockChip \*q" clockchip\-type \*q This optional entry is used to specify the clock chip type on graphics -boards which have a programmable clock generator. Only a few __xservername__ -drivers support programmable clock chips. For details, see the appropriate -driver manual page. +boards which have a programmable clock generator. +Only a few __xservername__ drivers support programmable clock chips. +For details, see the appropriate driver manual page. .TP 7 .BI "VideoRam " "mem" This optional entry specifies the amount of video ram that is installed -on the graphics board. This is measured in kBytes. In most cases this -is not required because the __xservername__ server probes the graphics board to -determine this quantity. The driver-specific documentation should -indicate when it might be needed. +on the graphics board. +This is measured in kBytes. +In most cases this is not required because the __xservername__ server probes +the graphics board to determine this quantity. +The driver-specific documentation should indicate when it might be needed. .TP 7 .BI "BiosBase " "baseaddress" This optional entry specifies the base address of the video BIOS for -the VGA board. This address is normally auto-detected, and should only -be specified if the driver-specific documentation recommends it. +the VGA board. +This address is normally auto-detected, and should only be specified if the +driver-specific documentation recommends it. .TP 7 .BI "MemBase " "baseaddress" This optional entry specifies the memory base address of a graphics -board's linear frame buffer. This entry is not used by many drivers, -and it should only be specified if the driver-specific documentation -recommends it. +board's linear frame buffer. +This entry is not used by many drivers, and it should only be specified if +the driver-specific documentation recommends it. .TP 7 .BI "IOBase " "baseaddress" -This optional entry specifies the IO base address. This entry is not -used by many drivers, and it should only be specified if the -driver-specific documentation recommends it. +This optional entry specifies the IO base address. +This entry is not used by many drivers, and it should only be specified if +the driver-specific documentation recommends it. .TP 7 .BI "ChipID " "id" This optional entry specifies a numerical ID representing the chip type. -For PCI cards, it is usually the device ID. This can be used to override -the auto-detection, but that should only be done when the driver-specific -documentation recommends it. +For PCI cards, it is usually the device ID. +This can be used to override the auto-detection, but that should only be done +when the driver-specific documentation recommends it. .TP 7 .BI "ChipRev " "rev" -This optional entry specifies the chip revision number. This can be -used to override the auto-detection, but that should only be done when -the driver-specific documentation recommends it. +This optional entry specifies the chip revision number. +This can be used to override the auto-detection, but that should only be done +when the driver-specific documentation recommends it. .TP 7 .BI "TextClockFreq " "freq" This optional entry specifies the pixel clock frequency that is used -for the regular text mode. The frequency is specified in MHz. This is -rarely used. +for the regular text mode. +The frequency is specified in MHz. +This is rarely used. .TP 7 .BI "Option \*qModeDebug\*q \*q" boolean \*q Enable printing of additional debugging information about modesetting to @@ -989,19 +1084,22 @@ This optional entry allows an IRQ number to be specified. .B Options Option flags may be specified in the .B Device -sections. These include driver-specific options and driver-independent -options. The former are described in the driver-specific documentation. +sections. +These include driver\-specific options and driver\-independent options. +The former are described in the driver\-specific documentation. Some of the latter are described below in the section about the .B Screen section, and they may also be included here. -.SH VIDEOADAPTOR SECTION -Nobody wants to say how this works. Maybe nobody knows ... +.SH "VIDEOADAPTOR SECTION" +Nobody wants to say how this works. +Maybe nobody knows ... -.SH MONITOR SECTION +.SH "MONITOR SECTION" The config file may have multiple .B Monitor -sections. There should normally be at least one, for the monitor being used, +sections. +There should normally be at least one, for the monitor being used, but a default configuration will be created when one isn't specified. .PP .B Monitor @@ -1025,7 +1123,8 @@ entry. .PP The .B Identifier -entry specifies the unique name for this monitor. The +entry specifies the unique name for this monitor. +The .B Monitor section may be used to provide information about the specifications of the monitor, monitor-specific @@ -1033,8 +1132,8 @@ monitor, monitor-specific and information about the video modes to use with the monitor. .PP With RandR 1.2-enabled drivers, monitor sections are tied to specific outputs -of the video card. Each output has a name, and the server will look for a -Monitor named +of the video card. +Each output has a name, and the server will look for a Monitor named .B \*qMonitor-outputname\*q for configuration of that output (for example, .B \*qMonitor-VGA\*q @@ -1042,16 +1141,17 @@ for a VGA output) .PP Specifying video modes is optional because the server will use the DDC or other information provided by the monitor to automatically configure the list of -modes available. When modes are specified explicitly in the +modes available. +When modes are specified explicitly in the .B Monitor section (with the .BR Modes , .BR ModeLine , or .B UseModes -keywords), built-in modes with the same names are not included. Built-in -modes with different names are, however, still implicitly included, when they -meet the requirements of the monitor. +keywords), built-in modes with the same names are not included. +Built-in modes with different names are, however, still implicitly included, +when they meet the requirements of the monitor. .PP The entries that may be used in .B Monitor @@ -1063,69 +1163,79 @@ This optional entry specifies the monitor's manufacturer. .BI "ModelName \*q" model \*q This optional entry specifies the monitor's model. .TP 7 -.BI "HorizSync " "horizsync-range" +.BI "HorizSync " "horizsync\-range" gives the range(s) of horizontal sync frequencies supported by the monitor. -.I horizsync-range +.I horizsync\-range may be a comma separated list of either discrete values or ranges of -values. A range of values is two values separated by a dash. By default -the values are in units of kHz. They may be specified in MHz or Hz if +values. +A range of values is two values separated by a dash. +By default the values are in units of kHz. +They may be specified in MHz or Hz +if .B MHz or .B Hz -is added to the end of the line. The data given here is used by the -__xservername__ server to determine if video modes are within the specifications -of the monitor. This information should be available in the monitor's -handbook. If this entry is omitted, a default range of 28\-33kHz is -used. +is added to the end of the line. +The data given here is used by the __xservername__ server to determine if video +modes are within the specifications of the monitor. +This information should be available in the monitor's handbook. +If this entry is omitted, a default range of 28\-33kHz is used. .TP 7 -.BI "VertRefresh " "vertrefresh-range" +.BI "VertRefresh " "vertrefresh\-range" gives the range(s) of vertical refresh frequencies supported by the monitor. -.I vertrefresh-range +.I vertrefresh\-range may be a comma separated list of either discrete values or ranges of -values. A range of values is two values separated by a dash. By default -the values are in units of Hz. They may be specified in MHz or kHz if +values. +A range of values is two values separated by a dash. +By default the values are in units of Hz. +They may be specified in MHz or kHz +if .B MHz or .B kHz -is added to the end of the line. The data given here is used by the -__xservername__ server to determine if video modes are within the specifications -of the monitor. This information should be available in the monitor's -handbook. If this entry is omitted, a default range of 43-72Hz is used. +is added to the end of the line. +The data given here is used by the __xservername__ server to determine if video +modes are within the specifications of the monitor. +This information should be available in the monitor's handbook. +If this entry is omitted, a default range of 43\-72Hz is used. .TP 7 .BI "DisplaySize " "width height" This optional entry gives the width and height, in millimetres, of the -picture area of the monitor. If given this is used to calculate the -horizontal and vertical pitch (DPI) of the screen. +picture area of the monitor. +If given this is used to calculate the horizontal and vertical pitch (DPI) of +the screen. .TP 7 -.BI "Gamma " "gamma-value" +.BI "Gamma " "gamma\-value" .TP 7 -.BI "Gamma " "red-gamma green-gamma blue-gamma" +.BI "Gamma " "red\-gamma green\-gamma blue\-gamma" This is an optional entry that can be used to specify the gamma correction -for the monitor. It may be specified as either a single value or as -three separate RGB values. The values should be in the range 0.1 to -10.0, and the default is 1.0. Not all drivers are capable of using this -information. +for the monitor. +It may be specified as either a single value or as three separate RGB values. +The values should be in the range 0.1 to 10.0, and the default is 1.0. +Not all drivers are capable of using this information. .TP 7 -.BI "UseModes \*q" modesection-id \*q +.BI "UseModes \*q" modesection\-id \*q Include the set of modes listed in the .B Modes section called -.IR modesection-id. +.IR modesection\-id. This makes all of the modes defined in that section available for use by this monitor. .TP 7 .BI "Mode \*q" name \*q This is an optional multi-line entry that can be used to provide -definitions for video modes for the monitor. In most cases this isn't -necessary because the built-in set of VESA standard modes will be -sufficient. The +definitions for video modes for the monitor. +In most cases this isn't necessary because the built-in set of VESA standard +modes will be sufficient. +The .B Mode keyword indicates the start of a multi-line video mode description. The mode description is terminated with the .B EndMode -keyword. The mode description consists of the following entries: +keyword. +The mode description consists of the following entries: .RS 7 .TP 4 .BI "DotClock " clock @@ -1161,52 +1271,60 @@ and may be used to select the composite sync polarity. .TP 4 .BI "HSkew " hskew -specifies the number of pixels (towards the right edge of the screen) -by which the display enable signal is to be skewed. Not all drivers -use this information. This option might become necessary to override -the default value supplied by the server (if any). "Roving" horizontal -lines indicate this value needs to be increased. If the last few pixels -on a scan line appear on the left of the screen, this value should be -decreased. +specifies the number of pixels (towards the right edge of the screen) by +which the display enable signal is to be skewed. +Not all drivers use this information. +This option might become necessary to override the default value supplied +by the server (if any). +\(lqRoving\(rq horizontal lines indicate this value needs to be increased. +If the last few pixels on a scan line appear on the left of the screen, +this value should be decreased. .TP 4 .BI "VScan " vscan specifies the number of times each scanline is painted on the screen. -Not all drivers use this information. Values less than 1 are treated -as 1, which is the default. Generally, the +Not all drivers use this information. +Values less than 1 are treated as 1, which is the default. +Generally, the .B \*qDoubleScan\*q .B Flag mentioned above doubles this value. .RE .TP 7 -.BI "ModeLine \*q" name \*q " mode-description" +.BI "ModeLine \*q" name \*q " mode\-description" This entry is a more compact version of the .B Mode entry, and it also can be used to specify video modes for the monitor. -is a single line format for specifying video modes. In most cases this -isn't necessary because the built-in set of VESA standard modes will be -sufficient. +is a single line format for specifying video modes. +In most cases this isn't necessary because the built\-in set of VESA +standard modes will be sufficient. .PP .RS 7 The -.I mode-description -is in four sections, the first three of which are mandatory. The first -is the dot (pixel) clock. This is a single number specifying the pixel -clock rate for the mode in MHz. The second section is a list of four -numbers specifying the horizontal timings. These numbers are the +.I mode\-description +is in four sections, the first three of which are mandatory. +The first is the dot (pixel) clock. +This is a single number specifying the pixel clock rate for the mode in +MHz. +The second section is a list of four numbers specifying the horizontal +timings. +These numbers are the .IR hdisp , .IR hsyncstart , .IR hsyncend , and .I htotal -values. The third section is a list of four numbers specifying the -vertical timings. These numbers are the +values. +The third section is a list of four numbers specifying the vertical +timings. +These numbers are the .IR vdisp , .IR vsyncstart , .IR vsyncend , and .I vtotal -values. The final section is a list of flags specifying other -characteristics of the mode. +values. +The final section is a list of flags specifying other characteristics of +the mode. .B Interlace indicates that the mode is interlaced. .B DoubleScan @@ -1225,7 +1343,8 @@ Additionally, on some hardware, .B +CSync and .B \-CSync -may be used to select the composite sync polarity. The +may be used to select the composite sync polarity. +The .B HSkew and .B VScan @@ -1305,20 +1424,22 @@ Valid values for rotation are \*qnormal\*q, \*qleft\*q, \*qright\*q, and \*qinverted\*q. (RandR 1.2-supporting drivers only) -.SH MODES SECTION +.SH "MODES SECTION" The config file may have multiple .B Modes -sections, or none. These sections provide a way of defining sets of -video modes independently of the +sections, or none. +These sections provide a way of defining sets of video modes independently +of the .B Monitor sections. .B Monitor sections may include the definitions provided in these sections by using the .B UseModes -keyword. In most cases the +keyword. +In most cases the .B Modes -sections are not necessary because the built-in set of VESA standard modes +sections are not necessary because the built\-in set of VESA standard modes will be sufficient. .PP .B Modes @@ -1346,21 +1467,24 @@ and entries that are described above in the .B Monitor section. -.SH SCREEN SECTION +.SH "SCREEN SECTION" The config file may have multiple .B Screen -sections. There must be at least one, for the "screen" being used. -A "screen" represents the binding of a graphics device +sections. +There must be at least one, for the \(lqscreen\(rq being used. +A \(lqscreen\(rq represents the binding of a graphics device .RB ( Device section) and a monitor .RB ( Monitor -section). A +section). +A .B Screen -section is considered "active" if it is referenced by an active +section is considered \(lqactive\(rq if it is referenced by an active .B ServerLayout section or by the .B \-screen -command line option. If neither of those is present, the first +command line option. +If neither of those is present, the first .B Screen section found in the config file is considered the active one. .PP @@ -1388,94 +1512,104 @@ The .B Identifier and .B Device -entries are mandatory. All others are optional. +entries are mandatory. +All others are optional. .PP The .B Identifier -entry specifies the unique name for this screen. The +entry specifies the unique name for this screen. +The .B Screen section provides information specific to the whole screen, including -screen-specific +screen\-specific .BR Options . -In multi-head configurations, there will be multiple active +In multi\-head configurations, there will be multiple active .B Screen sections, one for each head. The entries available for this section are: .TP 7 -.BI "Device \*q" device-id \*q +.BI "Device \*q" device\-id \*q This mandatory entry specifies the .B Device -section to be used for this screen. This is what ties a specific -graphics card to a screen. The -.I device-id +section to be used for this screen. +This is what ties a specific graphics card to a screen. +The +.I device\-id must match the .B Identifier of a .B Device section in the config file. .TP 7 -.BI "Monitor \*q" monitor-id \*q +.BI "Monitor \*q" monitor\-id \*q specifies which monitor description is to be used for this screen. If a .B Monitor -name is not specified, a default configuration is used. Currently the default -configuration may not function as expected on all platforms. +name is not specified, a default configuration is used. +Currently the default configuration may not function as expected on all +platforms. .TP 7 -.BI "VideoAdaptor \*q" xv-id \*q +.BI "VideoAdaptor \*q" xv\-id \*q specifies an optional Xv video adaptor description to be used with this screen. .TP 7 .BI "DefaultDepth " depth -specifies which color depth the server should use by default. The +specifies which color depth the server should use by default. +The .B \-depth -command line option can be used to override this. If neither is specified, -the default depth is driver-specific, but in most cases is 8. +command line option can be used to override this. +If neither is specified, the default depth is driver\-specific, but in most +cases is 8. .TP 7 .BI "DefaultFbBpp " bpp -specifies which framebuffer layout to use by default. The +specifies which framebuffer layout to use by default. +The .B \-fbbpp -command line option can be used to override this. In most cases the -driver will chose the best default value for this. The only case where -there is even a choice in this value is for depth 24, where some hardware -supports both a packed 24 bit framebuffer layout and a sparse 32 bit -framebuffer layout. +command line option can be used to override this. +In most cases the driver will chose the best default value for this. +The only case where there is even a choice in this value is for depth 24, +where some hardware supports both a packed 24 bit framebuffer layout and a +sparse 32 bit framebuffer layout. .TP 7 .B Options Various .B Option flags may be specified in the .B Screen -section. Some are driver-specific and are described in the driver -documentation. Others are driver-independent, and will eventually be -described here. +section. +Some are driver\-specific and are described in the driver documentation. +Others are driver\-independent, and will eventually be described here. .\" XXX These should really be in an xaa man page. .TP 7 .BI "Option \*qAccel\*q" Enables XAA (X Acceleration Architecture), a mechanism that makes video -cards' 2D hardware acceleration available to the -__xservername__ server. This -option is on by default, but it may be necessary to turn it off if there -are bugs in the driver. There are many options to disable specific -accelerated operations, listed below. Note that disabling an operation -will have no effect if the operation is not accelerated (whether due to -lack of support in the hardware or in the driver). +cards' 2D hardware acceleration available to the __xservername__ server. +This option is on by default, but it may be necessary to turn it off if +there are bugs in the driver. +There are many options to disable specific accelerated operations, listed +below. +Note that disabling an operation will have no effect if the operation is +not accelerated (whether due to lack of support in the hardware or in the +driver). .TP 7 .BI "Option \*qBiosLocation\*q \*q" address \*q Set the location of the BIOS for the Int10 module. One may select a BIOS of another card for posting or the legacy V_BIOS range located at 0xc0000 -or an alternative address (BUS_ISA). This is only useful under very -special circumstances and should be used with extreme care. +or an alternative address (BUS_ISA). +This is only useful under very special circumstances and should be used with +extreme care. .TP 7 .BI "Option \*qInitPrimary\*q \*q" boolean \*q -Use the Int10 module to initialize the primary graphics card. Normally, -only secondary cards are soft-booted using the Int10 module, as the +Use the Int10 module to initialize the primary graphics card. +Normally, only secondary cards are soft-booted using the Int10 module, as the primary card has already been initialized by the BIOS at boot time. Default: false. .TP 7 .BI "Option \*qNoInt10\*q \*q" boolean \*q Disables the Int10 module, a module that uses the int10 call to the BIOS -of the graphics card to initialize it. Default: false. +of the graphics card to initialize it. +Default: false. .TP 7 .BI "Option \*qNoMTRR\*q" Disables MTRR (Memory Type Range Register) support, a feature of modern @@ -1485,14 +1619,14 @@ known to exhibit problems when MTRR's are used. .TP 7 .BI "Option \*qXaaNoCPUToScreenColorExpandFill\*q" Disables accelerated rectangular expansion blits from source patterns -stored in system memory (using a memory-mapped aperture). +stored in system memory (using a memory\-mapped aperture). .TP 7 .BI "Option \*qXaaNoColor8x8PatternFillRect\*q" -Disables accelerated fills of a rectangular region with a full-color +Disables accelerated fills of a rectangular region with a full\-color pattern. .TP 7 .BI "Option \*qXaaNoColor8x8PatternFillTrap\*q" -Disables accelerated fills of a trapezoidal region with a full-color +Disables accelerated fills of a trapezoidal region with a full\-color pattern. .TP 7 .BI "Option \*qXaaNoDashedBresenhamLine\*q" @@ -1502,8 +1636,8 @@ Disables accelerated dashed Bresenham line draws. Disables accelerated dashed line draws between two arbitrary points. .TP 7 .BI "Option \*qXaaNoImageWriteRect\*q" -Disables accelerated transfers of full-color rectangular patterns from -system memory to video memory (using a memory-mapped aperture). +Disables accelerated transfers of full\-color rectangular patterns from +system memory to video memory (using a memory\-mapped aperture). .TP 7 .BI "Option \*qXaaNoMono8x8PatternFillRect\*q" Disables accelerated fills of a rectangular region with a monochrome @@ -1524,7 +1658,7 @@ Disables accelerated rectangular expansion blits from source patterns stored in system memory (one scan line at a time). .TP 7 .BI "Option \*qXaaNoScanlineImageWriteRect\*q" -Disables accelerated transfers of full-color rectangular patterns from +Disables accelerated transfers of full\-color rectangular patterns from system memory to video memory (one scan line at a time). .TP 7 .BI "Option \*qXaaNoScreenToScreenColorExpandFill\*q" @@ -1539,10 +1673,10 @@ video memory to another part of video memory. Disables accelerated solid Bresenham line draws. .TP 7 .BI "Option \*qXaaNoSolidFillRect\*q" -Disables accelerated solid-color fills of rectangles. +Disables accelerated solid\-color fills of rectangles. .TP 7 .BI "Option \*qXaaNoSolidFillTrap\*q" -Disables accelerated solid-color fills of Bresenham trapezoids. +Disables accelerated solid\-color fills of Bresenham trapezoids. .TP 7 .BI "Option \*qXaaNoSolidHorVertLine\*q" Disables accelerated solid horizontal and vertical line draws. @@ -1554,27 +1688,30 @@ Each .B Screen section may optionally contain one or more .B Display -subsections. Those subsections provide depth/fbbpp specific configuration -information, and the one chosen depends on the depth and/or fbbpp that -is being used for the screen. The +subsections. +Those subsections provide depth/fbbpp specific configuration information, +and the one chosen depends on the depth and/or fbbpp that is being used for +the screen. +The .B Display subsection format is described in the section below. -.SH DISPLAY SUBSECTION +.SH "DISPLAY SUBSECTION" Each .B Screen section may have multiple .B Display -subsections. -The "active" +subsections. +The \(lqactive\(rq .B Display subsection is the first that matches the depth and/or fbbpp values being used, or failing that, the first that has neither a depth or fbbpp value -specified. The +specified. +The .B Display -subsections are optional. When there isn't one that matches the depth -and/or fbbpp values being used, all the parameters that can be specified -here fall back to their defaults. +subsections are optional. +When there isn't one that matches the depth and/or fbbpp values being used, +all the parameters that can be specified here fall back to their defaults. .PP .B Display subsections have the following format: @@ -1588,78 +1725,88 @@ subsections have the following format: .B " EndSubSection" .fi .RE -.PP .TP 7 .BI "Depth " depth This entry specifies what colour depth the .B Display -subsection is to be used for. This entry is usually specified, -but it may be omitted to create a match-all +subsection is to be used for. +This entry is usually specified, but it may be omitted to create a match\-all .B Display subsection or when wishing to match only against the .B FbBpp -parameter. The range of +parameter. +The range of .I depth -values that are allowed depends on the driver. Most driver support -8, 15, 16 and 24. Some also support 1 and/or 4, and some may support -other values (like 30). Note: +values that are allowed depends on the driver. +Most drivers support 8, 15, 16 and 24. +Some also support 1 and/or 4, and some may support other values (like 30). +Note: .I depth means the number of bits in a pixel that are actually used to determine -the pixel colour. 32 is not a valid +the pixel colour. +32 is not a valid .I depth -value. Most hardware that uses 32 bits per pixel only uses 24 of them -to hold the colour information, which means that the colour depth is -24, not 32. +value. +Most hardware that uses 32 bits per pixel only uses 24 of them to hold the +colour information, which means that the colour depth is 24, not 32. .TP 7 .BI "FbBpp " bpp This entry specifies the framebuffer format this .B Display -subsection is to be used for. This entry is only needed when providing -depth 24 configurations that allow a choice between a 24 bpp packed -framebuffer format and a 32bpp sparse framebuffer format. In most cases -this entry should not be used. +subsection is to be used for. +This entry is only needed when providing depth 24 configurations that allow +a choice between a 24 bpp packed framebuffer format and a 32bpp sparse +framebuffer format. +In most cases this entry should not be used. .TP 7 -.BI "Weight " "red-weight green-weight blue-weight" +.BI "Weight " "red\-weight green\-weight blue\-weight" This optional entry specifies the relative RGB weighting to be used for a screen is being used at depth 16 for drivers that allow multiple -formats. This may also be specified from the command line with the +formats. +This may also be specified from the command line with the .B \-weight -option (see __xservername__(__appmansuffix__)). +option (see +.BR __xservername__(__appmansuffix__)). .TP 7 .BI "Virtual " "xdim ydim" This optional entry specifies the virtual screen resolution to be used. .I xdim must be a multiple of either 8 or 16 for most drivers, and a multiple -of 32 when running in monochrome mode. The given value will be rounded -down if this is not the case. Video modes which are too large for the -specified virtual size will be rejected. If this entry is not present, -the virtual screen resolution will be set to accommodate all the valid -video modes given in the +of 32 when running in monochrome mode. +The given value will be rounded down if this is not the case. +Video modes which are too large for the specified virtual size will be +rejected. +If this entry is not present, the virtual screen resolution will be set to +accommodate all the valid video modes given in the .B Modes -entry. Some drivers/hardware combinations do not support virtual screens. -Refer to the appropriate driver-specific documentation for details. +entry. +Some drivers/hardware combinations do not support virtual screens. +Refer to the appropriate driver\-specific documentation for details. .TP 7 .BI "ViewPort " "x0 y0" This optional entry sets the upper left corner of the initial display. This is only relevant when the virtual screen resolution is different -from the resolution of the initial video mode. If this entry is not -given, then the initial display will be centered in the virtual display -area. +from the resolution of the initial video mode. +If this entry is not given, then the initial display will be centered in +the virtual display area. .TP 7 -.BI "Modes \*q" mode-name \*q " ..." -This optional entry specifies the list of video modes to use. Each -.I mode-name -specified must be in double quotes. They must correspond to those -specified or referenced in the appropriate +.BI "Modes \*q" mode\-name \*q " ..." +This optional entry specifies the list of video modes to use. +Each +.I mode\-name +specified must be in double quotes. +They must correspond to those specified or referenced in the appropriate .B Monitor -section (including implicitly referenced built-in VESA standard modes). +section (including implicitly referenced built\-in VESA standard modes). The server will delete modes from this list which don't satisfy various -requirements. The first valid mode in this list will be the default -display mode for startup. The list of valid modes is converted internally -into a circular list. It is possible to switch to the next mode with -.B Ctrl+Alt+Keypad-Plus +requirements. +The first valid mode in this list will be the default display mode for +startup. +The list of valid modes is converted internally into a circular list. +It is possible to switch to the next mode with +.B Ctrl+Alt+Keypad\-Plus and to the previous mode with -.BR Ctrl+Alt+Keypad-Minus . +.BR Ctrl+Alt+Keypad\-Minus . When this entry is omitted, the valid modes referenced by the appropriate .B Monitor section will be used. If the @@ -1667,10 +1814,12 @@ section will be used. If the section contains no modes, then the selection will be taken from the built-in VESA standard modes. .TP 7 -.BI "Visual \*q" visual-name \*q -This optional entry sets the default root visual type. This may also -be specified from the command line (see the Xserver(__appmansuffix__) man page). The -visual types available for depth 8 are (default is +.BI "Visual \*q" visual\-name \*q +This optional entry sets the default root visual type. +This may also be specified from the command line (see the +.BR Xserver(__appmansuffix__) +man page). +The visual types available for depth 8 are (default is .BR PseudoColor ): .PP .RS 11 @@ -1716,43 +1865,48 @@ The visual type available for the depth 1 (monochrome) is .RE .TP 7 .BI "Black " "red green blue" -This optional entry allows the "black" colour to be specified. This -is only supported at depth 1. The default is black. +This optional entry allows the \(lqblack\(rq colour to be specified. +This is only supported at depth 1. +The default is black. .TP 7 .BI "White " "red green blue" -This optional entry allows the "white" colour to be specified. This -is only supported at depth 1. The default is white. +This optional entry allows the \(lqwhite\(rq colour to be specified. +This is only supported at depth 1. +The default is white. .TP 7 .B Options Option flags may be specified in the .B Display -subsections. These may include driver-specific options and -driver-independent options. The former are described in the -driver-specific documentation. Some of the latter are described above -in the section about the +subsections. +These may include driver\-specific options and driver\-independent options. +The former are described in the driver\-specific documentation. +Some of the latter are described above in the section about the .B Screen section, and they may also be included here. -.SH SERVERLAYOUT SECTION +.SH "SERVERLAYOUT SECTION" The config file may have multiple .B ServerLayout -sections. -A "server layout" represents the binding of one or more screens +sections. +A \(lqserver layout\(rq represents the binding of one or more screens .RB ( Screen sections) and one or more input devices .RB ( InputDevice -sections) to form a complete configuration. In multi-head configurations, -it also specifies the relative layout of the heads. A +sections) to form a complete configuration. +In multi\-head configurations, it also specifies the relative layout of the +heads. +A .B ServerLayout -section is considered "active" if it is referenced by the +section is considered \(lqactive\(rq if it is referenced by the .B \-layout command line option or by an .B "Option \*qDefaultServerLayout\*q" entry in the .B ServerFlags -section (the former takes precedence over the latter). If those options are -not used, the first +section (the former takes precedence over the latter). +If those options are not used, the first .B ServerLayout -section found in the config file is considered the active one. If no +section found in the config file is considered the active one. +If no .B ServerLayout sections are present, the single active screen and two active (core) input devices are selected as described in the relevant sections above. @@ -1764,9 +1918,9 @@ sections have the following format: .nf .B "Section \*qServerLayout\*q" .BI " Identifier \*q" name \*q -.BI " Screen \*q" screen-id \*q +.BI " Screen \*q" screen\-id \*q .I " ..." -.BI " InputDevice \*q" idev-id \*q +.BI " InputDevice \*q" idev\-id \*q .I " ..." .I " options" .I " ..." @@ -1784,10 +1938,11 @@ entry. .PP The .B Identifier -entry specifies the unique name for this server layout. The +entry specifies the unique name for this server layout. +The .B ServerLayout section provides information specific to the whole session, including -session-specific +session\-specific .BR Options . The .B ServerFlags @@ -1798,21 +1953,25 @@ section. .PP The entries that may be used in this section are described here. .TP 7 -.BI "Screen " "screen-num" " \*qscreen-id\*q " "position-information" +.BI "Screen " "screen\-num" " \*qscreen\-id\*q " "position\-information" One of these entries must be given for each screen being used in -a session. The -.I screen-id +a session. +The +.I screen\-id field is mandatory, and specifies the .B Screen -section being referenced. The -.I screen-num +section being referenced. +The +.I screen\-num field is optional, and may be used to specify the screen number -in multi-head configurations. When this field is omitted, the -screens will be numbered in the order that they are listed in. -The numbering starts from 0, and must be consecutive. The -.I position-information -field describes the way multiple screens are positioned. There are -a number of different ways that this information can be provided: +in multi\-head configurations. +When this field is omitted, the screens will be numbered in the order that +they are listed in. +The numbering starts from 0, and must be consecutive. +The +.I position\-information +field describes the way multiple screens are positioned. +There are a number of different ways that this information can be provided: .RS 7 .TP 4 .I "x y" @@ -1822,48 +1981,53 @@ These both specify that the upper left corner's coordinates are .RI ( x , y ). The .B Absolute -keyword is optional. Some older versions of __xservername__ (4.2 and earlier) don't -recognise the +keyword is optional. +Some older versions of __xservername__ (4.2 and earlier) don't recognise the .B Absolute keyword, so it's safest to just specify the coordinates without it. .TP 4 -.BI "RightOf \*q" screen-id \*q +.BI "RightOf \*q" screen\-id \*q .TP 4 -.BI "LeftOf \*q" screen-id \*q +.BI "LeftOf \*q" screen\-id \*q .TP 4 -.BI "Above \*q" screen-id \*q +.BI "Above \*q" screen\-id \*q .TP 4 -.BI "Below \*q" screen-id \*q +.BI "Below \*q" screen\-id \*q .TP 4 -.BI "Relative \*q" screen-id \*q " x y" -These give the screen's location relative to another screen. The first four -position the screen immediately to the right, left, above or below the -other screen. When positioning to the right or left, the top edges are -aligned. When positioning above or below, the left edges are aligned. +.BI "Relative \*q" screen\-id \*q " x y" +These give the screen's location relative to another screen. +The first four position the screen immediately to the right, left, above or +below the other screen. +When positioning to the right or left, the top edges are aligned. +When positioning above or below, the left edges are aligned. The .B Relative form specifies the offset of the screen's origin (upper left corner) relative to the origin of another screen. .RE .TP 7 -.BI "InputDevice \*q" idev-id "\*q \*q" option \*q " ..." +.BI "InputDevice \*q" idev\-id "\*q \*q" option \*q " ..." One of these entries should be given for each input device being used in -a session. Normally at least two are required, one each for the core -pointer and keyboard devices. If either of those is missing, suitable +a session. +Normally at least two are required, one each for the core pointer and +keyboard devices. +If either of those is missing, suitable .B InputDevice entries are searched for using the method described above in the .B INPUTDEVICE section. The -.I idev-id +.I idev\-id field is mandatory, and specifies the name of the .B InputDevice -section being referenced. Multiple +section being referenced. +Multiple .I option -fields may be specified, each in double quotes. The options permitted -here are any that may also be given in the +fields may be specified, each in double quotes. +The options permitted here are any that may also be given in the .B InputDevice -sections. Normally only session-specific input device options would be -used here. The most commonly used options are: +sections. +Normally only session\-specific input device options would be used here. +The most commonly used options are: .PP .RS 11 .nf @@ -1881,8 +2045,9 @@ and core keyboard devices respectively. .B Options In addition to the following, any option permitted in the .B ServerFlags -section may also be specified here. When the same option appears in both -places, the value given here overrides the one given in the +section may also be specified here. +When the same option appears in both places, the value given here overrides +the one given in the .B ServerFlags section. .TP 7 @@ -1895,9 +2060,11 @@ option (described in .BR "DEVICE SECTION" , above) for the format of the .I bus\-id -parameter. This option overrides +parameter. +This option overrides .BR SingleCard , -if specified. At present, only PCI devices can be isolated in this manner. +if specified. +At present, only PCI devices can be isolated in this manner. .TP 7 .BI "Option \*qSingleCard\*q \*q" boolean \*q As @@ -1921,68 +2088,97 @@ section for a dual headed configuration with two mice: .B "EndSection" .fi .RE -.SH DRI SECTION +.SH "DRI SECTION" This optional section is used to provide some information for the -Direct Rendering Infrastructure. Details about the format of this section -can be found on-line at +Direct Rendering Infrastructure. +Details about the format of this section +can be found in the README.DRI document, which is also available on-line at .IR . -.SH VENDOR SECTION +.SH "VENDOR SECTION" The optional .B Vendor -section may be used to provide vendor-specific configuration information. +section may be used to provide vendor\-specific configuration information. Multiple .B Vendor sections may be present, and they may contain an .B Identifier entry and multiple .B Option -flags. The data therein is not used in this release. +flags. +The data therein is not used in this release. .PP -.SH FILES -For an example of an __xconfigfile__ file, see the file installed as -__projectroot__/lib/X11/__xconfigfile__.eg. -.fi .SH "SEE ALSO" -X(__miscmansuffix__), -Xserver(__appmansuffix__), -__xservername__(__appmansuffix__), -apm(__drivermansuffix__), -.\" .IR ati(__drivermansuffix__), -chips(__drivermansuffix__), -cirrus(__drivermansuffix__), -cyrix(__drivermansuffix__), -fbdev(__drivermansuffix__), -glide(__drivermansuffix__), -glint(__drivermansuffix__), -i128(__drivermansuffix__), -i740(__drivermansuffix__), -i810(__drivermansuffix__), -imstt(__drivermansuffix__), -mga(__drivermansuffix__), -neomagic(__drivermansuffix__), -nv(__drivermansuffix__), -r128(__drivermansuffix__), -rendition(__drivermansuffix__), -savage(__drivermansuffix__), -s3virge(__drivermansuffix__), -.\" .IR shadowfb(__drivermansuffix__), -siliconmotion(__drivermansuffix__), -sis(__drivermansuffix__), -sunbw2(__drivermansuffix__), -suncg14(__drivermansuffix__), -suncg3(__drivermansuffix__), -suncg6(__drivermansuffix__), -sunffb(__drivermansuffix__), -sunleo(__drivermansuffix__), -suntcx(__drivermansuffix__), -tdfx(__drivermansuffix__), -tga(__drivermansuffix__), -trident(__drivermansuffix__), -tseng(__drivermansuffix__), -v4l(__drivermansuffix__), -vesa(__drivermansuffix__), -vga(__drivermansuffix__), -vmware(__drivermansuffix__), +General: +.BR X (__miscmansuffix__), +.BR Xserver (__appmansuffix__), +.BR __xservername__ (__appmansuffix__). +.PP +.B Not all modules or interfaces are available on all platforms. +.PP +Display drivers: +.BR apm (__drivermansuffix__), +.\" .BR ati (__drivermansuffix__), +.BR chips (__drivermansuffix__), +.BR cirrus (__drivermansuffix__), +.BR cyrix (__drivermansuffix__), +.BR fbdev (__drivermansuffix__), +.BR glide (__drivermansuffix__), +.BR glint (__drivermansuffix__), +.BR i128 (__drivermansuffix__), +.BR i740 (__drivermansuffix__), +.BR i810 (__drivermansuffix__), +.BR imstt (__drivermansuffix__), +.BR mga (__drivermansuffix__), +.BR neomagic (__drivermansuffix__), +.BR nv (__drivermansuffix__), +.BR r128 (__drivermansuffix__), +.BR rendition (__drivermansuffix__), +.BR savage (__drivermansuffix__), +.BR s3virge (__drivermansuffix__), +.BR siliconmotion (__drivermansuffix__), +.BR sis (__drivermansuffix__), +.BR sunbw2 (__drivermansuffix__), +.BR suncg14 (__drivermansuffix__), +.BR suncg3 (__drivermansuffix__), +.BR suncg6 (__drivermansuffix__), +.BR sunffb (__drivermansuffix__), +.BR sunleo (__drivermansuffix__), +.BR suntcx (__drivermansuffix__), +.BR tdfx (__drivermansuffix__), +.BR tga (__drivermansuffix__), +.BR trident (__drivermansuffix__), +.BR tseng (__drivermansuffix__), +.BR vesa (__drivermansuffix__), +.BR vga (__drivermansuffix__), +.BR via (__drivermansuffix__), +.BR vmware (__drivermansuffix__). +.PP +Input drivers: +.\" .BR acecad (__drivermansuffix__), +.\" .BR calcomp (__drivermansuffix__), +.BR citron (__drivermansuffix__), +.BR dmc (__drivermansuffix__), +.BR dynapro (__drivermansuffix__), +.BR elographics (__drivermansuffix__), +.BR fpit (__drivermansuffix__), +.BR js_x (__drivermansuffix__), +.BR kbd (__drivermansuffix__), +.BR keyboard (__drivermansuffix__), +.\" .BR magictouch (__drivermansuffix__), +.BR microtouch (__drivermansuffix__), +.BR mouse (__drivermansuffix__), +.BR mutouch (__drivermansuffix__), +.BR palmax (__drivermansuffix__), +.BR penmount (__drivermansuffix__), +.BR tek4957 (__drivermansuffix__), +.\" .BR ur98 (__drivermansuffix__), +.BR void (__drivermansuffix__), +.BR wacom (__drivermansuffix__). +.PP +Other modules and interfaces: +.BR fbdevhw (__drivermansuffix__), +.\" .BR shadowfb (__drivermansuffix__), +.BR v4l (__drivermansuffix__). .br .SH AUTHORS This manual page was largely rewritten by David Dawes From 78d01d1008973899d931ef44b47d5f0b5f220b0d Mon Sep 17 00:00:00 2001 From: Gerhard Tonn Date: Mon, 28 May 2007 21:48:58 -0400 Subject: [PATCH 12/16] Miscellaneous fixes for S/390. --- include/servermd.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/include/servermd.h b/include/servermd.h index e6ca11ed2..4f32a9d2b 100644 --- a/include/servermd.h +++ b/include/servermd.h @@ -515,7 +515,15 @@ SOFTWARE. #define GLYPHPADBYTES 4 #define GETLEFTBITS_ALIGNMENT 1 #endif - + +/* linux on IBM S/390 */ +#if defined (linux) && defined (__s390__) +#define IMAGE_BYTE_ORDER MSBFirst +#define BITMAP_BIT_ORDER MSBFirst +#define GLYPHPADBYTES 4 +#define GETLEFTBITS_ALIGNMENT 1 +#endif /* linux/s390 */ + /* size of buffer to use with GetImage, measured in bytes. There's obviously * a trade-off between the amount of stack (or whatever ALLOCATE_LOCAL gives * you) used and the number of times the ddx routine has to be called. From 857ddbb660a21cad1c16f4fb2dc8a904d6655304 Mon Sep 17 00:00:00 2001 From: Eugene Konev Date: Mon, 28 May 2007 21:53:02 -0400 Subject: [PATCH 13/16] Allow configurable serverconfigdir for security policy location Allow the location of the SERVERCONFIGdir variable to be defined at compile-time. This allows us to specify where the security policy will be located (Debian uses this to put it in /etc). The default is to the previous location. --- Xext/Makefile.am | 1 - configure.ac | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Xext/Makefile.am b/Xext/Makefile.am index 6ea3d7445..d0d23b77f 100644 --- a/Xext/Makefile.am +++ b/Xext/Makefile.am @@ -34,7 +34,6 @@ MODULE_SRCS = \ xcmisc.c # Extra configuration files ship with some extensions -SERVERCONFIGdir = $(libdir)/xserver SERVERCONFIG_DATA = # Optional sources included if extension enabled by configure.ac rules diff --git a/configure.ac b/configure.ac index 37199cf26..7ff712f63 100644 --- a/configure.ac +++ b/configure.ac @@ -465,6 +465,9 @@ AC_ARG_WITH(xkb-output, AS_HELP_STRING([--with-xkb-output=PATH], [Path to AC_ARG_WITH(rgb-path, AS_HELP_STRING([--with-rgb-path=PATH], [Path to RGB database (default: ${datadir}/X11/rgb)]), [ RGBPATH="$withval" ], [ RGBPATH="${datadir}/X11/rgb" ]) +AC_ARG_WITH(serverconfig-path, AS_HELP_STRING([--with-serverconfig-path=PATH], [Path to server config (default: ${libdir}/xserver)]), + [ SERVERCONFIG="$withval" ], + [ SERVERCONFIG="${libdir}/xserver" ]) APPLE_APPLICATIONS_DIR="${bindir}/Applications" AC_ARG_WITH(apple-applications-dir,AS_HELP_STRING([--with-apple-applications-dir=PATH], [Path to the Applications directory (default: ${bindir}/Applications)]), [ APPLE_APPLICATIONS_DIR="${withval}" ]. @@ -938,6 +941,7 @@ VENDOR_MAN_VERSION="Version ${VENDOR_VERSION_STRING}" AC_DEFINE_DIR(COMPILEDDEFAULTFONTPATH, FONTPATH, [Default font path]) AC_DEFINE_DIR(RGB_DB, RGBPATH, [Default RGB path]) +AC_DEFINE_DIR(SERVERCONFIGdir, SERVERCONFIG, [Server config path]) AC_DEFINE_DIR(BASE_FONT_PATH, FONTDIR, [Default base font path]) AC_DEFINE_DIR(DRI_DRIVER_PATH, DRI_DRIVER_PATH, [Default DRI driver path]) AC_DEFINE_UNQUOTED(XVENDORNAME, ["$VENDOR_STRING"], [Vendor name]) From 2267bf48b385c93243e26c3bb84ebb04c7fdb39f Mon Sep 17 00:00:00 2001 From: Bastian Blank Date: Mon, 28 May 2007 21:55:05 -0400 Subject: [PATCH 14/16] Fixes for s390 --- hw/xfree86/common/compiler.h | 2 +- hw/xfree86/os-support/linux/lnx_video.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/xfree86/common/compiler.h b/hw/xfree86/common/compiler.h index ea995eda1..becd3da25 100644 --- a/hw/xfree86/common/compiler.h +++ b/hw/xfree86/common/compiler.h @@ -1365,7 +1365,7 @@ do { \ # define write_mem_barrier() /* NOP */ # if !defined(__SUNPRO_C) -# if !defined(FAKEIT) && !defined(__mc68000__) && !defined(__arm__) && !defined(__sh__) && !defined(__hppa__) +# if !defined(FAKEIT) && !defined(__mc68000__) && !defined(__arm__) && !defined(__sh__) && !defined(__hppa__) && !defined(__s390__) # ifdef GCCUSESGAS /* diff --git a/hw/xfree86/os-support/linux/lnx_video.c b/hw/xfree86/os-support/linux/lnx_video.c index 4b580464f..02a13109f 100644 --- a/hw/xfree86/os-support/linux/lnx_video.c +++ b/hw/xfree86/os-support/linux/lnx_video.c @@ -567,7 +567,7 @@ xf86EnableIO(void) #endif } close(fd); -#elif !defined(__mc68000__) && !defined(__sparc__) && !defined(__mips__) && !defined(__sh__) && !defined(__hppa__) +#elif !defined(__mc68000__) && !defined(__sparc__) && !defined(__mips__) && !defined(__sh__) && !defined(__hppa__) && !defined(__s390__) if (ioperm(0, 1024, 1) || iopl(3)) { if (errno == ENODEV) ErrorF("xf86EnableIOPorts: no I/O ports found\n"); From ba0b7d47ab0c24d5a29228f8af583044060464bd Mon Sep 17 00:00:00 2001 From: David Nusinow Date: Mon, 28 May 2007 21:57:04 -0400 Subject: [PATCH 15/16] Fix for GNU/kFreeBSD --- hw/kdrive/linux/agp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/kdrive/linux/agp.c b/hw/kdrive/linux/agp.c index c2ae62568..4fb0cb3f9 100644 --- a/hw/kdrive/linux/agp.c +++ b/hw/kdrive/linux/agp.c @@ -65,7 +65,7 @@ of the copyright holder. #include -#elif defined(__FreeBSD__) +#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) #include #include #endif From 2f13b7c113c17239e382dd3640e9c29201d8ab1f Mon Sep 17 00:00:00 2001 From: Drew Parsons Date: Wed, 30 May 2007 02:13:36 +1000 Subject: [PATCH 16/16] Update Xprint build for pixman. Xprt links libfb, which now uses pixman. Update configure.ac to require module $PIXMAN for XPRINT. Also, use $(top_builddir) to reference libfb.la and other local libraries, rather than using the relative reference ../.. --- configure.ac | 2 +- hw/xprint/Makefile.am | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 7ff712f63..350245eae 100644 --- a/configure.ac +++ b/configure.ac @@ -1600,7 +1600,7 @@ AC_MSG_CHECKING([whether to build Xprint DDX]) AC_MSG_RESULT([$XPRINT]) if test "x$XPRINT" = xyes; then - PKG_CHECK_MODULES([XPRINT], [printproto x11 xfont $XDMCP_MODULES xau]) + PKG_CHECK_MODULES([XPRINT], [printproto x11 xfont $XDMCP_MODULES xau $PIXMAN]) XPRINT_EXTENSIONS="$XEXT_LIB $DBE_LIB $XTRAP_LIB $RECORD_LIB $RENDER_LIB $COMPOSITE_LIB $RANDR_LIB $XI_LIB $FIXES_LIB $DAMAGE_LIB $XI_LIB $GLX_LIBS" XPRINT_LIBS="$DIX_LIB $CONFIG_LIB $XKB_LIB $XKB_STUB_LIB $XPRINT_EXTENSIONS $MI_LIB $MIEXT_DAMAGE_LIB $CWRAP_LIB $OS_LIB $LIBS $XPRINT_LIBS" AC_SUBST([XPRINT_CFLAGS]) diff --git a/hw/xprint/Makefile.am b/hw/xprint/Makefile.am index 45168b11e..dc8764a02 100644 --- a/hw/xprint/Makefile.am +++ b/hw/xprint/Makefile.am @@ -10,9 +10,9 @@ Xprt_CFLAGS = @DIX_CFLAGS@ @XPRINT_CFLAGS@ \ Xprt_LDFLAGS = -L$(top_srcdir) Xprt_LDADD = @XPRINT_LIBS@ ps/libps.la raster/libraster.la \ - pcl/libpcl.la pcl-mono/libpcl.la ../../fb/libfb.la \ - ../../render/librender.la ../../mi/libmi.la ../../Xext/libXext.la \ - @FREETYPE_LIBS@ + pcl/libpcl.la pcl-mono/libpcl.la $(top_builddir)/fb/libfb.la \ + $(top_builddir)/render/librender.la $(top_builddir)/mi/libmi.la \ + $(top_builddir)/Xext/libXext.la @FREETYPE_LIBS@ miinitext-wrapper.c: echo "#include \"$(top_srcdir)/mi/miinitext.c\"" >> $@