[xorg-commit-diffs] xc/programs/Xserver/hw/xfree86/xf86cfg XOrgCfg.cpp, NONE, 1.1.2.1 xorgcfg.man, NONE, 1.1.2.1 Imakefile, 1.1.4.2.4.2.4.2, 1.1.4.2.4.2.4.3 TODO, 1.1.10.1, 1.1.10.1.4.1 interface.c, 1.1.10.1.4.1, 1.1.10.1.4.2 loader.c, 1.1.4.1.4.2.4.1, 1.1.4.1.4.2.4.2 xf86config.c, 1.1.4.1.6.1, 1.1.4.1.6.1.4.1 XF86Cfg.cpp, 1.1.2.1, NONE xf86cfg.man, 1.1.4.1.6.1.4.1, NONE

Keith Packard xorg-commit at pdx.freedesktop.org
Sun Mar 28 19:48:06 PST 2004


Committed by: keithp

Update of /cvs/xorg/xc/programs/Xserver/hw/xfree86/xf86cfg
In directory pdx:/tmp/cvs-serv3727/programs/Xserver/hw/xfree86/xf86cfg

Modified Files:
      Tag: XORG-RELEASE-1-TM
	Imakefile TODO interface.c loader.c xf86config.c 
Added Files:
      Tag: XORG-RELEASE-1-TM
	XOrgCfg.cpp xorgcfg.man 
Removed Files:
      Tag: XORG-RELEASE-1-TM
	XF86Cfg.cpp xf86cfg.man 
Log Message:
39. TM fixes for xf86cfg (which has become xorgcfg) (Keith Packard)


--- NEW FILE: XOrgCfg.cpp ---
!!
!! Copyright (c) 2000 by Conectiva S.A. (http://www.conectiva.com)
!! 
!! 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 without limitation
!! the rights to use, copy, modify, merge, publish, 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.  IN NO EVENT SHALL
!! CONECTIVA LINUX BE LIABLE FOR ANY CLAIM, DAMAGES OR 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
[...1812 lines suppressed...]
*expert*tree*dri.modeL.label:			Mode
*expert*tree*dri.modeL.fromVert:		group
*expert*tree*dri.mode.fromVert:			group
*expert*tree*dri.mode.fromHoriz:		modeL

*expert*tree*buffers.Label.width:		50
*expert*tree*buffers.Text.width:		100
*expert*tree*buffers.countL.label:		Count
*expert*tree*buffers.countL.fromVert:		remove
*expert*tree*buffers.count.fromVert:		remove
*expert*tree*buffers.count.fromHoriz:		countL
*expert*tree*buffers.sizeL.label:		Size
*expert*tree*buffers.sizeL.fromVert:		count
*expert*tree*buffers.size.fromVert:		count
*expert*tree*buffers.size.fromHoriz:		sizeL
*expert*tree*buffers.flagsL.label:		Flags
*expert*tree*buffers.flagsL.fromVert:		size
*expert*tree*buffers.flags.fromVert:		size
*expert*tree*buffers.flags.fromHoriz:		flagsL
*Expert*close.label:				Close

--- NEW FILE: xorgcfg.man ---
.\"
.\" Copyright (c) 2000 by Conectiva S.A. (http://www.conectiva.com)
.\"
.\" 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 without limitation
.\" the rights to use, copy, modify, merge, publish, 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.  IN NO EVENT SHALL
.\" CONECTIVA LINUX BE LIABLE FOR ANY CLAIM, DAMAGES OR 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 Conectiva Linux shall
.\" not be used in advertising or otherwise to promote the sale, use or other
.\" dealings in this Software without prior written authorization from
.\" Conectiva Linux.
.\"
.\" Author: Paulo César Pereira de Andrade <pcpa at conectiva.com.br>
.\"
.\" $XFree86: xc/programs/Xserver/hw/xfree86/xf86cfg/xf86cfg.man,v 1.9 2002/12/30 14:34:02 herrb Exp $
.\"
.TH xorgcfg __appmansuffix__ __vendorversion__
.SH NAME
xorgcfg - Graphical configuration tool for __xservername__
.SH SYNOPSIS
.B xorgcfg
[-config \fI__xconfigfile__\fP] [-modulepath \fImoduledir\fP] 
[-fontpath \fIfontsdir\fP] [-toolkitoption ...]
.SH DESCRIPTION
.I Xorgcfg
is a tool to configure \fI__xservername__\fP, and can be used to either write the
initial configuration file or make customizations to the current configuration.
.PP
When the \fBDISPLAY\fP environment variable is not set, xorgcfg will run
the command \fI__xservername__ -configure\fP to allow the xserver detect the
hardware in the computer, and write an initial \fI__xconfigfile__\fP file
in the user's home directory. Then, it will start __xservername__ and allow
customizations.
.br
If the \fBDISPLAY\fP environment variable is set, xorgcfg will read the
default \fI__xconfigfile__\fP, that may not be the same being used by the current
server, and allow customizations.
.PP
To use an alternative location for modules or fonts the respective search
paths may be specified.
.PP
Unless there is an \fBApply\fP button in the current xorgcfg dialog, the
changes made will take place the next time \fI__xservername__\fP is started.

.PP
Xorgcfg allows addition and configuration of new devices, such as video cards,
monitors, keyboards and mouses.
.PP
Screen layout configuration for xinerama or traditional multi-head is also
available.
.PP
Modelines can be configured or optimized.
.PP
AccessX basic configurations can be made in the xorgcfg's accessx section.

.SH OPTIONS
.TP 8
.I -config
Specifies an alternate __xconfigfile__ file for configuration.
.TP 8
.I -modulepath
Specifies where xorgcfg, and the server it may start, should look for
__xservername__ modules.
.TP 8
.I -serverpath
Specifies the complete path, not including the binary name, of the
__xservername__ binary.
.TP 8
.I -fontpath
Specifies the path to the fonts that should be used by the server started
by xorgcfg.
.TP 8
.I -rgbpath
Specifies the path to the rgb.txt file that should be used by the server
started by xorgcfg, if any.
.TP 8
.I -textmode
If xorgcfg was compiled with support to ncurses, this option makes xorgcfg
enters a text mode interface.
.TP 8
.I -nomodules
When built with support for loading modules, this options changes xorgcfg
behaviour, so that it will not load any modules, and thus start quicker.

.SH ENVIRONMENT
.TP 8
.I DISPLAY
Default host and display number
.TP 8
.I XWINHOME
Directory where __xservername__ was installed, defaults to /usr/X11R6.
.TP 8
.I XENVIRONMENT
Name of a resource file that overrides the global resources
stored in the RESOURCE_MANAGER property

.SH FILES
.TP 8
.I /etc/__xconfigfile__
Server configuration file
.TP 8
.I /etc/X11/__xconfigfile__
Server configuration file
.TP 8
.I /usr/X11R6/etc/__xconfigfile__
Server configuration file
.TP 8
.IR __projectroot__/lib/X11/__xconfigfile__. hostname
Server configuration file
.TP 8
.I __projectroot__/lib/X11/__xconfigfile__
Server configuration file
.TP 8
.I __projectroot__/lib/X11/app-default/XOrgCfg
Specifies xorgcfg resources
.TP 8
.I __projectroot__/lib/X11/xkb/X0-config.keyboard
Keyboard specific configuration

.SH "SEE ALSO"
.IR __xservername__ (__appmansuffix__)
.IR __xconfigfile__ (__filemansuffix__)

.SH COPYRIGHT
.TP 8
Copyright 2000, Conectiva Linux S.A.
\fIhttp://www.conectiva.com\fP
.TP 8
Copyright 2000, The XFree86 Project
\fIhttp://www.XFree86.org\fP

.SH AUTHORS
.TP 8
Paulo C\'esar Pereira de Andrade \fI<pcpa at conectiva.com.br>\fP
originally for The XFree86 Project.

.SH BUGS
Probably.

Index: Imakefile
===================================================================
RCS file: /cvs/xorg/xc/programs/Xserver/hw/xfree86/xf86cfg/Imakefile,v
retrieving revision 1.1.4.2.4.2.4.2
retrieving revision 1.1.4.2.4.2.4.3
diff -u -d -r1.1.4.2.4.2.4.2 -r1.1.4.2.4.2.4.3
--- a/Imakefile	23 Mar 2004 13:54:01 -0000	1.1.4.2.4.2.4.2
+++ b/Imakefile	28 Mar 2004 07:14:30 -0000	1.1.4.2.4.2.4.3
@@ -71,7 +71,7 @@
 	vidmode.o\
 	xf86config.o
 
-PROG	= xf86cfg
+PROG	= xorgcfg
 
 XBMPICS =\
 	card.xbm\
@@ -136,11 +136,10 @@
 InstallProgramWithFlags($(PROG),$(BINDIR),NullParameter)
 InstallMultipleFlags($(XBMPICS),$(INCDIR)/X11/bitmaps,$(INSTINCFLAGS))
 InstallMultipleFlags($(XPMPICS),$(INCDIR)/X11/pixmaps,$(INSTINCFLAGS))
-CppRawFileTarget(XF86Cfg.ad,XF86Cfg.cpp,-D__VENDORNAME__="$(VENDORNAMESHORT)",NullParameter)
-InstallAppDefaults(XF86Cfg)
+CppRawFileTarget(XOrgCfg.ad,XOrgCfg.cpp,-D__VENDORNAME__="$(VENDORNAMESHORT)",NullParameter)
+InstallAppDefaults(XOrgCfg)
 
-EXTRAMANDEFS = -D__XCONFIGFILE__=$(XCONFIGFILE) -D__XSERVERNAME__=$(XSERVERNAME)
-InstallManPage(xf86cfg,$(MANDIR))
+InstallManPage(xorgcfg,$(MANDIR))
 
 NormalLibraryObjectRule()
 

Index: TODO
===================================================================
RCS file: /cvs/xorg/xc/programs/Xserver/hw/xfree86/xf86cfg/TODO,v
retrieving revision 1.1.10.1
retrieving revision 1.1.10.1.4.1
diff -u -d -r1.1.10.1 -r1.1.10.1.4.1
--- a/TODO	4 Mar 2004 17:48:16 -0000	1.1.10.1
+++ b/TODO	28 Mar 2004 07:14:30 -0000	1.1.10.1.4.1
@@ -5,7 +5,7 @@
   Cards file "uptodate" state can also be verified.
 	Probably it is better to forgot about the Cards file, and
 	either parse the output of scanpci, or link libscanpci.a
-	(and whatever else be required) in xf86cfg.
+	(and whatever else be required) in xorgcfg.
 
 o Check if a module is "certified", there was some talk about a
   certification process in the past.
@@ -15,7 +15,7 @@
   This would also require rewriting all existing input device modules.
   (Probably most of this can be made with cpp macros).
 
-o Create a protocol to allow 3rd part xf86cfg modules.
+o Create a protocol to allow 3rd part xorgcfg modules.
 
 o Write an interface for testing extensions/accel, maybe a frontend to
   xdpyinfo, x11perf, glxinfo, etc.
@@ -26,8 +26,8 @@
 o Write code to use a Monitors database, either update the old Monitors
   file or use RedHat MonitorsDB.
 	Chris Morgan is writting code to use MonitorsDB.
-  If xf86cfg could be changed to ddcprobe (in all supported platforms),
+  If xorgcfg could be changed to ddcprobe (in all supported platforms),
   it would be even be a better solution than using a database.
 
 o Add interface to allow changing comments without the need of editing
-  XF86Config with a text editor.
+  config file with a text editor.

Index: interface.c
===================================================================
RCS file: /cvs/xorg/xc/programs/Xserver/hw/xfree86/xf86cfg/interface.c,v
retrieving revision 1.1.10.1.4.1
retrieving revision 1.1.10.1.4.2
diff -u -d -r1.1.10.1.4.1 -r1.1.10.1.4.2
--- a/interface.c	23 Mar 2004 13:54:01 -0000	1.1.10.1.4.1
+++ b/interface.c	28 Mar 2004 07:14:30 -0000	1.1.10.1.4.2
@@ -193,7 +193,7 @@
 
 static XtResource appResources[] = {
 #if 0
-    {"xf86config",  __XCONFIGFILE__,  XtRString, sizeof(char*),
+    {"config",  __XCONFIGFILE__,  XtRString, sizeof(char*),
       0, XtRString, "/etc/X11/"__XCONFIGFILE__},
 #endif
     {"menuBitmap",  "MenuBitmap",  XtRString, sizeof(char*),
@@ -205,10 +205,10 @@
 {
     fprintf(stderr,
 "Usage:\n"
-"   xf86cfg [-option ...]\n"
+"   xorgcfg [-option ...]\n"
 "\n"
 "Options:\n"
-"   -xf86config <"__XCONFIGFILE__">   Alternate configuration file.\n"
+"   -config <"__XCONFIGFILE__">   Alternate configuration file.\n"
 "   -modulepath <module-path>  "__XSERVERNAME__" modules location.\n"
 "   -serverpath <server-path>  X server to start (if $DISPLAY is not defined).\n"
 "   -fontpath   <font-path>    Font path for fonts.\n"
@@ -217,7 +217,7 @@
 "   -textmode                  Use this option for the text only interface.\n"
 #endif
 #ifdef USE_MODULES
-"   -nomodules                 Use this option if xf86cfg is slow to start.\n"
+"   -nomodules                 Use this option if xorgcfg is slow to start.\n"
 "   -verbose <number>          Verbosity used in the loader (default 1).\n"
 #endif
 "   -verify                    Verify modules/options integrity.\n"
@@ -253,7 +253,9 @@
     noverify = True;
 
     for (i = 1; i < argc; i++) {
-	if (strcmp(argv[i], "-xf86config") == 0) {
+	if (strcmp(argv[i], "-config") == 0 ||
+	    strcmp(argv[i], "-xorgconfig") == 0 ||
+	    strcmp(argv[i], "-xf86config") == 0) {
 	    if (i + 1 < argc) {
 		XF86Config_path = argv[++i];
 		config_set = True;
@@ -304,7 +306,7 @@
 		    "%s/%s%s", XFree86Dir, XkbConfigDir, XkbConfigFile);
 	XkbConfig_path = XkbConfig_path_static;
     }
-    toplevel = XtAppInitialize(&appcon, "XF86Cfg",
+    toplevel = XtAppInitialize(&appcon, "XOrgCfg",
 		    	       NULL, 0,
 			       &argc, argv,
 			       NULL, NULL, 0);

Index: loader.c
===================================================================
RCS file: /cvs/xorg/xc/programs/Xserver/hw/xfree86/xf86cfg/loader.c,v
retrieving revision 1.1.4.1.4.2.4.1
retrieving revision 1.1.4.1.4.2.4.2
diff -u -d -r1.1.4.1.4.2.4.1 -r1.1.4.1.4.2.4.2
--- a/loader.c	23 Mar 2004 13:54:01 -0000	1.1.4.1.4.2.4.1
+++ b/loader.c	28 Mar 2004 07:14:30 -0000	1.1.4.1.4.2.4.2
@@ -188,8 +188,7 @@
 	first = 0;
 
 	checkerLegend[CHECKER_OPTIONS_FILE_MISSING] =
-	"The Options file, normally /usr/X11R6/lib/X11/Options was not found.\n"
-	"In the sources, it is at xc/programs/Xserver/hw/xfree86/Options.";
+	"The Options file, normally /usr/X11R6/lib/X11/Options was not found.\n";
 	checkerLegend[CHECKER_OPTION_DESCRIPTION_MISSING] =
 	"No description for the module option. The description should be in\n"
 	"in the Options file, and using the sintax:\n"

Index: xf86config.c
===================================================================
RCS file: /cvs/xorg/xc/programs/Xserver/hw/xfree86/xf86cfg/xf86config.c,v
retrieving revision 1.1.4.1.6.1
retrieving revision 1.1.4.1.6.1.4.1
diff -u -d -r1.1.4.1.6.1 -r1.1.4.1.6.1.4.1
--- a/xf86config.c	4 Mar 2004 17:48:17 -0000	1.1.4.1.6.1
+++ b/xf86config.c	28 Mar 2004 07:14:30 -0000	1.1.4.1.6.1.4.1
@@ -24,7 +24,7 @@
  * dealings in this Software without prior written authorization from
  * Conectiva Linux.
  *
- * Author: Paulo César Pereira de Andrade <pcpa at conectiva.com.br>
+ * Author: Paulo César Pereira de Andrade <pcpa at conectiva.com.br>
  *
  * $XFree86: xc/programs/Xserver/hw/xfree86/xf86cfg/xf86config.c,v 1.5tsi Exp $
  */

--- XF86Cfg.cpp DELETED ---

--- xf86cfg.man DELETED ---




More information about the xorg-commit-diffs mailing list