 |
» |
|
|
 |
Configuration of the X server is supported through SAM via
an icon titled "X Server Configuration". This icon resides either
at SAM's top level or under the top-level "Display" icon. This location
is determined by the version of the HP-UX operating system (later
HP-UX releases will place "X Server Configuration" under the "Display"
folder). There are several X*screens
files used to configure the operation of the X server. The SAM graphical
user interface for X server configuration is provided to simplify
complexity and facilitate ease of use. While it is still possible
to modify these files manually (see below), using the SAM interface
greatly simplifies the process for creating Multi-Display and Single
Logical Screen configurations. Our SAM component has the following actions: Configure Print Server... Modify Multi-Screen Layout... Modify Server Options... Single Logical Screen (SLS) -> Describe Screen... Identify Screen Modify Default Visual... Modify Screen Options... Add Screen to Configuration Remove Screen from Configuration |
The first group of actions can be thought of as "global" actions.
They will typically be active regardless of what has been selected.
If any of these menu items is not visible, it is because it is not
supported under the current configuration. For example, on systems
containing only one graphics screen, the last three menu items will
not be visible. The second group of actions can be thought of as "screen"
actions. They will be activated depending on which screens have
been chosen. It is also possible that the last two actions (Add
and Remove) will be absent. When only one graphics screen is present,
SAM will treat this screen as though it is always configured. Preselecting
both configured and unconfigured screens will result in only the
first two screen menu options being active. X*screens
File |  |
For manual changes, please refer to the sample files in the
/etc/X11/ directory.
Three files of particular interest are the X0screens,
X0devices, and
X0pointerkeys
files. Description of the X*screens
Configuration File |  |
This file belongs in /etc/X11/X*screens,
where "*" is
the display number of the server. For example, the "X0screens"
file is used when the $DISPLAY
environment variable is set to 〈hostname〉:0.〈screen〉
and the server is invoked using the ":0"
option. The X*screens file is used to specify: Device-independent server options,
and For each screen: What device file to use (required), Device-dependent screen options.
Note that all of the items above, except for device-independent
server options, are specified on a per-screen basis. The X server supports up to four screens at a time. Specifying
more than four screens will cause a server error message. Blank lines and comments (text following
"#") are ignored. Entries can occupy more than a single line. All symbols in the file are recognized case-insensitive.
The X*screens
File Format |  |
Items must appear in the X*screens
file in the order that they are specified below. {Screen
〈device_name〉} || {SingleLogicalScreen
〈nRows〉 〈nCols〉
〈device_name1〉...〈device_nameN〉} [MonitorSize
〈diagonal_length〉 〈units〉] [MinimumMonitorPowerSaveLevel
〈level〉]
Brackets ("[" and "]") denote optional items. Italicized items
in angle brackets ("〈" and "〉") denote values
to be specified. The double vertical line ("||")
denotes that one of the ored
values (items surrounded by braces, "{" and "}") must be included. The block from the "Screen
〈device_name〉" line
to the final "〈screen_option〉"
line is referred to as a either a "Screen Entry" or as a "Single
Logical Screen entry". As shown above, the X*screens
format is composed of an optional block specifying device-independent
server options followed by one or more either Screen or Single Logical
Screen entries (maximum of four graphics devices). The minimum X*screens
file is a line with the keyword "Screen"
followed by a screen device file. For example:  |
 |
For more information about server options, or about additional
server options, look in an "info" file (for example, /usr/lib/X11/Xserver/info/screens/hp). GraphicsSharedMemorySize
〈memory_size〉 Specify
the size of the graphics shared memory region. The size must be
specified in bytes and must be in hexadecimal. Default
value: 0x580000 Environment Variables Replaced:
GRM_SIZE, WMSHMSPC. SMTSizes
〈size_spec〉 The size
of the SMT regions (see the Shared Memory Transport section). Default
value: 100000,90000,90000 FileDescriptors
〈number〉 The number
of file descriptors available to the X server for its use. The number
of connections (clients, more or less) is limited by the number
of file descriptors. The minimum value is 25, and a current maximum (as of HP-UX
10.20) of 384, allowing a maximum of slightly under 256 total connections
to the server. The default value is 192 (which allows a few under
128 connections). If a value provided is out of range, the server
yields a warning and continues using the minimum or maximum, as
appropriate. There is, however, a limit of 128 clients that can
connect. The command line option -lf
〈number〉 also specifies
the value. ImmediateLoadDles
The Xserver delays loading of some X extensions until the first
protocol request to the given extension is received. Specifying
this server option forces all extensions to be loaded at X server
startup. Immediate loading of X extensions is the historical behavior
of the HP-UX 10.10 and 10.20 X servers.
The minimum screen entry is a line with the keyword "Screen"
followed by a screen device file. Optional specifications for default visual, monitor size,
and device-dependent screen options may follow this minimal screen
description line. DefaultVisual
This optional part of the format specifies the default visual that
the screen uses. Valid keywords following the "DefaultVisual"
keyword are "Class",
"Depth", "Layer",
and "Transparent". If no default visual is specified, then the standard default
visual class, depth, layer, and transparency for the graphics device
is used. Not all default visual specifications will work on all devices. If there is an error in a specification, look in an information
file for more details (for example, /usr/lib/X11/Xserver/info/screens/hp),
in case it is newer than the document you're now reading. Class
〈StaticGray〉 |
〈GrayScale〉 |
〈StaticColor〉 |
〈PseudoColor〉 |
〈TrueColor〉 |
〈DirectColor〉 Specify
the class of the default visual. Depth
〈depth_value〉 Specify
the depth of the default visual (for example 8, 12, or 24). Layer
〈Image〉 |
〈Overlay〉 Specify the
layer of the default visual. Transparent\
Specify that a visual with an application-accessible transparent
entry in the default colormap be used.
Specifications in the "DefaultVisual"
section, except for "Depth",
are ignored on VRX devices. See the "ScreenOptions"
section below for VRX-related options. MonitorSize
〈diagonal_length〉 Inches
| MM
Specify the diagonal size of the monitor. After the "MonitorSize"
keyword, you must specify the diagonal length of the monitor and
then the units. Use this entry only if you are using a non-standard
monitor. MinimumMonitorPowerSaveLevel
〈value〉 Specify the
minimum power save level to be used by the monitor during screen
blanking. You must specify a level of 0 -3. If the option
is not used, the default is level 0. On devices that do not support
DPMS, this option will be ignored. ScreenOptions
Screen options are device-dependent options that are documented
in a file in the X server information directory (for example, /usr/lib/X11/Xserver/info/screens/hp).
Sample X*screens
Files |  |
Below are several sample X*screens files that illustrate the
new format. This is the minimum legal X*screens
file, the "Screen"
keyword followed by the screen device. Since no other information
is given, the X server will assume default values for other options
and settings. This is the minimum specification for a two-screen
configuration. The maximum number of screens supported on the X
server is four. Here, the displays associated with /dev/crt0
and /dev/crt1
are referred to as "〈host〉:0.0"
and "〈host〉:0.1",
respectively. Screen /dev/crt0 Screen /dev/crt1 |
This sample X*screens
file could be used on a system using Internal Color Graphics with
a 17-inch monitor. In this example, the GraphicsSharedMemorySize
is decreased to 1 Mbyte in order to reduce the swap space requirements
of the system. Decreasing GraphicsSharedMemorySize
is appropriate when you do not intend to run any 3D graphics applications. ServerOptions GraphicsSharedMemorySize 0x100000 Screen /dev/crt MonitorSize 17 inches |
The display diagram would be the same as that of the "Results
of Minimal Legal X*screens
File" configuration, above. This sample X*screens
file could be used on a system with a CRX24 graphics device. The
overlay visual is selected as the default. There are 255 overlay
colormap entries available on the CRX24. The 256th entry is hard-wired
to transparent. Having less than 256 colormap entries should not
cause a problem for most applications, but for those applications
that require 256 colormap entries, the CountTransparentInOverlayVisual
screen option should be used as shown below. Note that any attempts
to modify the 256th entry will have no effect on the colormap. Screen /dev/crt ScreenOptions CountTransparentInOverlayVisual |
The display diagram would be the same as that of the "Results
of Minimal Legal X*screens
File" configuration, above. This sample X*screens
file could be used on a system with a HCRX-24 graphics device. The
default visual on the HCRX-24 is the opaque overlay visual. All
256 colormap entries are opaque and allocable. If an application
requires transparency in the default visual, the "Transparent"
keyword can be used to select the transparent overlay visual as
shown below. Screen /dev/crt DefaultVisual Transparent |
The display diagram would be the same as that of the "Results
of Minimal Legal X*screens
File" configuration, above. This sample X*screens
file could be used on a system with a HCRX-8 graphics device. By
default on the HCRX-8, the overlay visual does not have a transparent
entry available to applications for rendering transparency. If an
application requires overlay transparency, an optional X server
mode is available, but it is restrictive. In this optional mode,
only one hardware colormap is available in the overlays (instead
of two) and only one hardware colormap is available in the image
planes (instead of two). The optional X server mode can be set via
the EnableOverlayTransparency
screen option as shown below. Screen /dev/crt ScreenOptions EnableOverlayTransparency |
The display diagram would be the same as that of the "Results
of Minimal Legal X*screens
File" configuration, above. This sample X*screens
file could be used on a system using either a PVRX or TVRX graphics
device. The server will run in combined mode with the default visual
residing in the overlay planes. All visual depths which are supported
by the graphics device will be available. Screen /dev/ocrt ScreenOptions VRXSecondaryDevice /dev/crt |
This sample X*screens
file could also be used on a system using PVRX or TVRX graphics.
The server will run in combined mode with the default visual in
the overlay planes and an 8/8 double-buffered visual in the image
planes. In general, specify VRXDoubleBuffer
if applications will be using DHA (Direct Hardware Access) double-buffer
functionality (e.g., Starbase double buffering). Screen /dev/ocrt ScreenOptions VRXSecondaryDevice /dev/crt VRXDepth 16 VRXDoubleBuffer |
The display diagram would be the same as that of the "PVRX/TVRX
Display with Overlays" configuration, above. These sample X*screens
file entries could be used on a system with two homogeneous graphics
devices. Assuming the first device is associated with the device
file "/dev/crt0"
and the second device is associated with the device file "/dev/crt1",
both examples specify a horizontal Single Logical Screen configuration. SingleLogicalScreen 1 2 /dev/crt0 /dev/crt1 or SingleLogicalScreen 1 2 /dev/crt0 /dev/crt1 |
These sample X*screens
entries could be used on a system with four homogeneous graphics
devices. Assuming the first device is associated with the device
file "/dev/crt0",
the second device is associated with the device file "/dev/crt1",
etc. The following examples specify valid Single Logical Screen
configurations. SingleLogicalScreen 1 4 /dev/crt0 /dev/crt1 /dev/crt2 /dev/crt3 |
SingleLogicalScreen 4 1 /dev/crt0 /dev/crt1 /dev/crt2 /dev/crt3 |
SingleLogicalScreen 2 2 /dev/crt0 /dev/crt1 /dev/crt2 /dev/crt3 |
It is possible to include a Screen Entry and an
SLS Screen Entry in the same X*screens
File. This creates a situation where there are two X Screens (e.g.
〈host〉:0.0
and 〈host〉:1.0),
one of which happens to be a Single Logical Screen. Below is an
example of this: Screen /dev/crt0 SingleLogicalScreen 1 2 /dev/crt1 /dev/crt2 |
|