![]() | Name | Last modified | Size | Description |
---|---|---|---|---|
![]() | Parent Directory | - | ||
![]() | CHANGELOG | 1996-09-29 21:00 | 17K | |
![]() | Imakefile | 1999-04-17 21:00 | 4.1K | |
![]() | LICENSE | 1996-08-24 21:00 | 1.1K | |
![]() | Makefile | 2001-04-08 21:00 | 54K | |
![]() | README | 1998-02-28 21:00 | 10K | |
![]() | README.html | 1998-02-28 21:00 | 11K | |
![]() | TODO | 1996-09-29 21:00 | 4.1K | |
![]() | XF86Setup.man | 1999-08-05 21:00 | 3.5K | |
![]() | card.tcl | 1999-10-12 21:00 | 20K | |
![]() | carddata.tcl | 1999-10-12 21:00 | 22K | |
![]() | done.tcl | 1998-02-22 21:00 | 1.7K | |
![]() | filelist.tcl | 1998-11-16 21:00 | 2.9K | |
![]() | jp/ | 2001-04-03 05:48 | - | |
![]() | keyboard.tcl | 1998-02-22 21:00 | 9.4K | |
![]() | main.c | 1999-07-17 21:00 | 19K | |
![]() | modeselect.tcl | 1998-02-22 21:00 | 6.8K | |
![]() | mondata.tcl | 1998-02-16 21:00 | 6.4K | |
![]() | monitor.tcl | 1998-02-22 21:00 | 11K | |
![]() | mouse.tcl | 1999-12-03 21:00 | 21K | |
![]() | mseproto.cpp | 1999-12-20 21:00 | 2.0K | |
![]() | phase1.tcl | 1999-04-17 21:00 | 10K | |
![]() | phase2.tcl | 1998-11-13 21:00 | 7.3K | |
![]() | phase3.tcl | 1996-12-27 21:00 | 1.8K | |
![]() | phase4.tcl | 1998-02-22 21:00 | 2.9K | |
![]() | phase5.tcl | 1999-10-12 21:00 | 2.4K | |
![]() | pics/ | 2001-04-03 05:48 | - | |
![]() | scripts/ | 2001-04-08 10:33 | - | |
![]() | setuplib.tcl | 1999-10-12 21:00 | 20K | |
![]() | srvflags.tcl | 1998-02-22 21:00 | 3.0K | |
![]() | tclcards.c | 1996-12-27 21:00 | 4.0K | |
![]() | tclkbd.c | 1996-12-27 21:00 | 21K | |
![]() | tcllib/ | 2001-04-03 05:48 | - | |
![]() | tclmisc.c | 1999-12-03 21:00 | 13K | |
![]() | tclmisc.h | 1996-12-27 21:00 | 1.5K | |
![]() | tclother.c | 1996-12-27 21:00 | 11K | |
![]() | tclvidmode.c | 1996-12-28 21:00 | 19K | |
![]() | tclvidmode.h | 1996-12-28 21:00 | 1.9K | |
![]() | tclxfconf.c | 1999-12-03 21:00 | 29K | |
![]() | tclxkbui.c | 1996-12-27 21:00 | 16K | |
![]() | texts/ | 2001-04-08 10:33 | - | |
![]() | tkother.c | 1996-12-27 21:00 | 5.0K | |
![]() | xfsconf.h | 1996-12-27 21:00 | 1.0K | |
XF86Setup is a new program to aid in the configuration of the XFree86 servers. It is unlike previous programs (such as ConfigXF86 and xf86config) in that it is specifically designed to do as much as possible while in graphics mode.
However, xf86config is not being replaced. XF86Setup's resource requirements are considerably greater than those of xf86config. It also is not usable for OS/2 configuration (at least not yet).
XF86Setup requires that both the VGA16 and card-appropriate servers be installed. Furthermore, the servers must include the XKEYBOARD, XFree86-VidModeExtension, and XFree86-Misc extensions. If the dialog program is installed, it will be used, but is not required.
If you wish to run XF86Setup without installing it first, you need to set the environment variable XF86SETUPLIB to point to the source directory.
The command line options are documented in the XF86Setup man page. For instructions regarding the use of the program, see the Quick Start Guide to XFree86 Configuration and the on-line help.
The rest of this file contains information that is mainly of use to someone interested in hacking on the code.
The program includes a Tcl interpreter which has been extended with additional commands (in addition to those in the Tk toolkit). They are explained below.
Two commands have been added to read data from the Cards database (as used by xf86config)
A valid card name should be supplied as an argument to xf86cards_getentry
Several commands have been added which allow the program to communicate with the XFree86-VidModeExtension server extension, namely:
Only the last two take an argument, which is either lock or unlock in the case of xf86vid_lockmodeswitch and either next or prev in the case of xf86vid_switchmode.
xf86vid_getversion returns the version as a floating point number (e.g., 1.2), whereas xf86vid_getbasevals returns a Tcl list containing two elements.
The xf86vid_getmodeline command returns a string which contains the standard mode line values including flags, if any, with each value separated by a single space.
xf86vid_getallmodelines returns a Tcl list. The number of elements corresponds to the number of valid video modes. Each element is in the format returned by xf86vid_getmodeline. The first element contains the mode info for the current mode.
xf86vid_getmonitor also returns a Tcl list. The first element is the vendor name. The second is the model name. The third element contains all of the horizontal sync rates as comma separated ranges (so for example if the sync rates were 31.5, 35-40, and 45-55 the return value would be: 31.50-31.50,35.00-40.00,45.00-55.00). The last element contains the vertical sync rates in the same format.
Communication with the XFree86-Misc extension is possible using these new commands:
Two commands are available for reading XF86Config file:
A few commands are available for communicating with the XKEYBOARD extension:
The xkbview widget is also available as interface to the xkbui library.
Other commands added to the interpreter are:
getuid just returns the numeric result of getuid().
The server_running command simply tries to perform an XOpenDisplay() on its argument. If the call fails, it returns false (0), otherwise it calls XCloseDisplay() and returns true (1).