Graphics Administration Guide for HP-UX 10.20. After using this document for a while, please fill out the Reader Reply form. Or, just e-ma
Chapter 1: Pathnames This chapter contains information on locating files that reside at some location in the file system. Using “whence” There are
Printing a Key Map The -pk option prints a list of the key mappings for the current keyboard. xmodmap –pk The list contains the keycode and up to
Default Keyboard Mapping The default keyboard mapping supplied with the X Window environment maps the C1429 keyboard to the same key symbols that are
may have to be restarted in order to recognize the new mapping. For more information about using the xmodmap client, see the xmodmap man page. C1429
Chapter 5 PowerShade: Enhanced 3D Rendering in Software PowerShade is software that allows lighting, shading, and hidden-surface removal. It offers t
Re-Installing PowerShade PowerShade comes bundled with the hp-UX operating system, but in case you ever need to re-install it, do the following: 1.
Other features are available (listed as "Factors Affecting Performance:") but should be used with discretion as performance is significantly
hp PEX Graphics Performance Optimized vs. Normal 3D Performance Rendering Conditions Performance Optimized For: Factors Affecting Performance: •
Window Conditions Performance Optimized For: Factors Affecting Performance: • Window unobscured or obscured only by overlay windows • Window obs
Polymarker Primitives Performance Optimized For: Factors Affecting Performance: • Many markers per call: o PEXMarkers, PEXOCCMarkers, PEXhpMark
hp-PHIGS Graphics Performance Optimized vs. Normal 3D Performance Performance Optimized For: Factors Affecting Performance: Rendering Conditions •
Subsequent sections of this chapter contain the actual pathnames referred to in other HP graphics API documents, such as Starbase, PEX, etc. A partic
Window Conditions Performance Optimized For: Factors Affecting Performance: • Window unobscured or obscured only by overlay windows • Window obscu
Polymarker Primitives Performance Optimized For: Factors Affecting Performance: • Many markers per call: o ppolymarker3 (C), ppm3 (FORTRAN) o p
Starbase Graphics Performance Optimized vs. Normal 3D Performance Performance Optimized For: Factors Affecting Performance: Rendering Conditions • B
Window Conditions Performance Optimized For: Factors Affecting Performance: • Window unobscured or obscured only by overlay windows • Window obscu
Polymarker Primitives Performance Optimized For: Factors Affecting Performance: • Many markers per polymarker3d or polymarker_with_data3d • These
Chapter 6: Miscellaneous Topics 3D Thread-Safing General Information For hp-UX release 10.30 and later, Hewlett-Packard's 3D graphics APIs are
Other Threads-Related Information 1. All of the 3D graphics functions are cancellation points. 2. None of the 3D graphics functions are async-canc
SIGCHLD and the GRM Daemon The Graphics Resource Manager Daemon (grmd) is started when the X11 Server is started. In normal operation, a Starbase, hp
SIGCHLD and the Starbase Input Daemon The Starbase input daemon is started whenever tracking or event monitoring is enabled. When tracking and event
Why Is Gamma Correction Needed? The intensity of light generated by a conventional monitor is non-linear with respect to the signal applied. The inte
HP-PHIGS Generic Name Location in the file system <app-defaults> /usr/lib/X11/app-defaults <common> /opt/graphics/common <de
Monitor Brightness and Contrast Often, the brightness control on a monitor is boosted to compensate for images that look dim due to a lack of gamma c
Use the following steps to fill in the "Create Action" form. 1. Enter Gamma in the "Action Name" window. 2. Enter /opt/graphi
Once you have filled in the "Create Actions" form, select "Save" from the File menu and follow these steps: 1. Click the Home F
Using the Gamma Correction Tool Figure 18: Gamma Correction Tool Gamma Value Slider The gamma value represents a power, so a value of 1.0 is the sa
If the colormap used by the selected window is also used by other windows, their appearance will change along with the actual window you selected.
You can prevent this problem by changing with Shared Memory size through hp-UX's SAM (System Administration Manager) program. Reference Documen
Appendix A: X Reference Page Synopsis The X Window System is a network-transparent window system developed at MIT which runs on a wide range of com
and xprop), a diagnostic for seeing what events are generated and when (xev), screen image manipulation utilities (xwd, xwud, xpr, and xmag), and vari
Display Names From the user's perspective, every X server has a display name of the form: hostname:displaynumber.screennumber This informatio
hostname part of the display name is used to determine the type of channel (also called a transport layer) to be used. X servers generally support the
HP PEX Generic Name Location in the file system <app-defaults> /usr/lib/X11/app-defaults <cge-examples> /opt/graphics/PEX5/examples
Geometry Specifications One of the advantages of using window systems instead of hardwired terminals is that applications don't have to be rest
Offsets must be given as pairs; in other words, in order to specify either xoff or yoff both must be present. Windows can be placed in the four corner
the server start up with all of the commonly used font directories in the font path, the font path can be changed at any time with the xset program. H
To convert one of the resulting names into a font at a specific size, replace one of the first two zeros with a nonzero value. The field containing th
An RGB Device specification is identified by the prefix "rgb:" and has the following syntax: rgb:red/green/blue where red, green, and bl
The standard device-independent string specifications have the following syntax: CIEXYZ:X/Y/Z (none, 1, none) CIEuvY:u/v/Y ( .6, .6, 1) CIExyY:x/y/
Switching between groups is controlled by the keysym named "Mode Switch", by attaching that keysym to some key and attaching that key to any
-selectionTimeout This option specifies the timeout in milliseconds within which two communicating applications must respond to one another for a sel
IncludeFile lines are interpreted by replacing the line with the contents of the specified file. The word "include" must be in lowercase. Th
Programs based on the X Tookit Intrinsics obtain resources from the following sources (other programs usually support some subset of these sources):
Chapter 2: Compiling Your Application This chapter provides information for compiling your application with either archived or shared libraries for
By combining class and instance specifications, application preferences can be set quickly and easily. Users of color displays will frequently want to
Examples The following is a collection of sample command lines for some of the more frequently used commands. For more information on a particular
See Also bdftopcf(1), bitmap(1), fs(1), hpterm(1) mkfontdir(1), mwm(1), xauth(1), xclock(1), xcmsdb(1), xfd(1), xhost(1), xinitcolor(1), xload(1), xl
Appendix B: X Server Reference Page Name X: X Window System server Synopsis :displaynumber [-option] <ttyname> Description "X&q
Options The following options can be given on the command line to the X server. -a <number> Sets pointer acceleration (i.e., the ratio of
-logo Turns on the X Window System logo display in the screen-saver. There is currently no way to change this from a client. You also need to specify
You can also have the X server connect to xdm(1) or dtlogin(1X) using XDMCP. Although this is not typically useful as it doesn't allow xdm to ma
Security File Format The syntax of the security policy file is as follows. Notation: "*" means zero or more occurrences of the preceding e
<sitepolicy> lines are currently ignored. They are intended to specify the site policies used by the XC-QUERY-SECURITY-1 authorization method.
An <action> applies to all <operations> that follow it, until the next <action> is encountered. Thus, "irwad" means "
By default, the linker program ld(1) looks for a shared library driver first and then the archive library driver if a shared library was not found. By
# say "top level windows only." property WM_CLASS WM_NAME ar # These next three let xlsclients work untrusted. Think car
Running From INIT Though X will usually be run by dtlogin from init, it is possible to run X directly from init. For information about running X fr
page for a description of the binary format of this file. Maintenance of this file, and distribution of its contents to remote sites for use there is
Fonts Fonts are usually stored as individual files in directories. The list of directories in which the server looks when trying to open a font is c
Files /etc/inittab Script for the init process /etc/gettydefs Speed and terminal settings used by getty /etc/X*.hosts Initial access control l
See Also dtlogin(1), bdftopcf(1), fs(1), getty(1M), gettydefs(4), gwindstop(1), hpterm(1), init(1M), inittab(4), mkfontdir(1), rgb(1), stmkdirs(1),
Appendix C: Low BandWidth X Proxy Name lbxproxy: Low BandWidth X proxy Synopsis lbxproxy [:<display>] [<option>] Description Applic
The lbxproxy program has various options, all of which are optional. If :<display> is specified, the proxy will use the given display port whe
-nogfx Disables reencoding of graphics requests (not including image-related requests). -noimage Disables image compression. -nosquish Disables
Atom Control At startup, lbxproxy "pre-interns" a configurable list of atoms. This allows lbxproxy to intern a group of atoms in a single
Compiling with Archive Libraries If you are using archived libraries, you need to include your device's driver library. _______________________
Appendix D: RX Netscape Navigator Plug-in Name libxrx: RX Netscape Navigator Plugin Description The RX Plugin may be used with Netscape Navigato
If you are already running Netscape Navigator, you need to exit and restart it after copying the plugin library so the new plugin will be found. Once
Environment If the RX document requests X-UI-LBX service and the default X server does not advertise the LBX extension, the RX Plugin will look for
Appendix E: Proxy Manager Service Name proxymngr: Proxy Manager Service Synopsis proxymngr [-config <filename>] [-timeout <seconds>]
Proxy Manager Config File The proxy manager maintains a local configuration file describing the proxy services available. This configuration file i
Example Here is a sample configuration file: ! proxy manager config file ! ! Each line has the format: ! managed ! or ! unman
Origin The Open Group See Also xfindproxy(1), lbxproxy(1) Graphics Administration Guide for HP-UX 10.20 Page 166
Appendix F: Locate Proxy Services Name xfindproxy: Locate Proxy Services Synopsis xfindproxy -manager <managerAddr > -name <serviceName&
If xfindproxy is successful in obtaining a proxy address, it will print it to stdout. The format of the proxy address is specific to the proxy service
Appendix G: RX Helper Program Name xrx: RX Helper Program Synopsis xrx [-<toolkitoption> . . .]<filename> Description The helper
Device Driver Libraries The following tables list the device driver libraries that should be used with particular devices. CRX Family Output Devi
Options The xrx helper program accepts all of the standard X Toolkit command line options such as: -xrm <resourcestring> This option speci
then tries to use the video server as the print server. If the printer name is not specified via XPRINTER, <xrx> looks for it in the variables P
HP VISUALIZE-FX Family Output Device Link Line Options Legacy APIs HP VISUALIZE-EG libddhcrx.a or libddhcrx.sl HP VISUALIZE-FX2 HP VISUALI
HP-GL Plotters Output Device Link Line Options HP 7440A HP 7470A HP 7475A HP 7550A HP 7570A HP 7575A HP 7576A HP 7580A/B HP 7585B HP 7586B HP 7595A
ABOUT THIS GUIDE ...
Miscellaneous Device Drivers Output Device Link Line Options Remote Rendering: Xlib Pixmap (VMX) libddvmx.sl1 Remote Rendering: Xlib 2D protocol (S
Compiling HP PEX Applications HP PEXlib is supported on the Series 700 workstations using shared libraries that must be linked with the application p
Chapter 3: X Windows: HP-UX 10.20 This chapter documents information specific to the HP X server. It describes features unique to HP's X serve
absent. When only one graphics screen is present, SAM will treat this screen as though it is always configured. Preselecting both configured and uncon
composed of an optional block specifying device-independent server options followed by one or more either Screen or Single Logical Screen entries (max
Layer <Image> | <Overlay> Specify the layer of the default visual. Transparent Specify that a visual with an application-accessible tra
• This is the minimum specification for a two-screen configuration. The maximum number of screens supported on the X server is four. Here, the displ
Screen /dev/crt DefaultVisual Transparent The display diagram would be the same as that of the "Results of Minimal Legal X*screens File" c
SingleLogicalScreen 1 4 /dev/crt0 /dev/crt1 /dev/crt2 /dev/crt3 Figure 4: Four Physical Displays, Single Logical Screen (1X4) SingleLogica
Figure 6: Four Physical Displays, Single Logical Screen (2X2) • It is possible to include a Screen Entry and an SLS Screen Entry in the same X*scr
Supported Visuals ...
Miscellaneous Topics Double Buffer Extension (DBE) DBE is an extension to the X server that provides a double-buffering Application Programming Inter
can be deduced from any of the following: the magnitude of the difference of two performance levels, a performance level in isolation, or comparing pe
Power-Saving States Defined by VESA Level State DPMS Compliance Requirements State DPMS Compliance Requirements Power Savings Recovery Time 0 Sc
to allow for synchronization with vertical retrace. To activate this optional X server mode, set the SwapBuffersOnVBlank Screen Option in the X*screen
Supported Devices The X server supports the MIT shared memory extension on the following devices: • Internal Color Graphics • Integrated Color Gr
A display name of the form unix:0.0 will force the use of Unix Domain Sockets (UDS), which is identical to the local transport used before HP-UX 10.2
In either case, the format and meaning of the fields is the same: <region_size>[, <high_water> [, <buffer_size>]] with no embed
Enabling and Disabling of SMT The special value of 0 for Region Size specifies that SMT is to be disabled. Disabling SMT removes it from the Xserver
HP Color Recovery Color Recovery is a technique that generates a better picture by eliminating the graininess caused by traditional dithering techniq
Dynamic Loading HP's X server now dynamically loads the appropriate device drivers and extensions based on the target graphics display device a
RE-INSTALLING POWERSHADE...
For example: Screen /dev/crt/ ScreenOptions EnableIncludeInferiorsFix This gives a system administrator control over when
It is also possible to decrease the size of GRM shared memory. You may want to do this if you want to reduce the swap-space requirements of your syste
Examples of Relevant Graphics Device: Integrated Color Graphics, Color Graphics cards, Internal Color Graphics X*screens File Screen Option To Use
Special device files are created by using SAM (the System Administration Manager tool): • From SAM's main window, double-click "Peripheral
Multi-Seat A configuration with multiple instantiations of the X server, each with its own mouse, keyboard, and display(s). Multi-seat is not curren
Figure 10: Single Logical Screen ____________________________________________________________________________________ Note: Different monitor resol
__________________________________________________________________________________ Note: The on-board and "card" versions of the same devic
____________________________________________________________________________________ Note: DHA (Direct Hardware Access) is not supported in a window
This behavior is the result of HP VUE's naive assumption that it is running against one large screen; it centers these windows accordingly. If
For example, to configure SLS/d slave X servers on hpslsd1, hpslsd2, hpslsd3, and hpslsd4, do the following as root: • Copy each system's /et
APPENDIX C: LOW BANDWIDTH X PROXY ...156 N
Edit the /etc/X11/X0screens file and enter: SingleLogicalScreen 1 4 hpslsd1:50 hpslsd3:50 hpslsd4:50 hpslsd2:50 Then, on the master syste
Integrated Color Graphics Device-Dependent Information This sections includes information on Integrated Color Graphics and Color Graphics cards. S
a technicolor effect, the application whose colormap was last downloaded in the hardware colormap would look correct. Accessing HP Color Recovery Tec
A pixel to be dithered is sent to the routine provided in this example. The values of the variables RedValue, GreenValue, and BlueValue are generated
/* Check for overflow or underflow on green value */ if (green > 0xff) green = 0xff; if (green < 0x00) green = 0x00; /* Generat
• CRX-24[Z] Device-Dependent Information Supported Visuals The following visuals are supported: • Class PseudoColor Depth 8 Layer Image - suppor
When this option is enabled, the X server does the following: • Specifies that the overlay visual has 256 entries. • Creates the default colormap
• Clients requesting (via XAllocNamedColor) the rgb.txt value of Transparent are not returned entry 255. This default behavior can be changed by se
The HP VISUALIZE-48[XP] is a two-board accelerated device that fills two slots. If you add either the optional texture-mapping memory card or the opti
• Class DirectColor Depth 12 Layer Image - supports DBE and MBX hardware double-buffering • Class TrueColor Depth 12 Layer Image - supports DBE and
About this Guide Graphics Administration Guide: Information for Programmers, System Administrators, and End-Users Copyright © June 1997, June 1998, J
The modes are set from the Boot-Admin at bootup time by selecting from the menu of options a configuration that supports double-buffer or not. From th
To obtain hardware double-buffering, find a visual in the image planes. The best method is to find all the depth-8 PseudoColor visuals returned by XGe
Overlay Transparency on the HCRX-24[Z], HP VISUALIZE-24, and HP VISUALIZE-48[XP] The HCRX-24[Z], HP VISUALIZE-24, and HP VISUALIZE-48[XP] have two v
{ /* Since the Atom exists, request the property's contents. */ bytesAfter = 0; numLongs = ( nVisuals * sizeof(Ov
installed in the hardware, plus one other hardware colormap available to applications. The image planes contain two hardware colormaps each usable by
_HP_RGB_SMOOTH_MAP_LIST is a list of colormaps that are associated with window visual IDs that support Color Recovery. When the XGetRGBColormaps routi
y_dither_table = Yp % 2; /* Y Pixel Address MOD 2 */ /* Start with the initial values as supplied by the calling routine */ red = Re
HP VISUALIZE-FX (FX2, FX4 and FX6) Device-Dependent Information This section includes information on the HP VISUALIZE-FX2, HP VISUALIZE-FX4 and HP V
The following visuals are enabled by default on the HP VISUALIZE-FX2: • Class PseudoColor Depth 8 Layer Image- supports DBE hardware double-bufferi
In stereo mode, the following visuals are enabled by default on the HP VISUALIZE-FX4 and HP VISUALIZE-FX6: • Class PseudoColor Depth 8 Layer Image
Printing History New editions of this manual will incorporate all material updated since the previous edition. Update packages may be issued between
Supported Screen Options The following Screen Options are supported: • CountTransparentInOverlayVisual • ImageTextViaBitMap • EnableIncludeInf
} OverlayVisualPropertyRec; OverlayVisualPropertyRec *pOverlayVisuals, *pOVis; XVisualInfo getVis; XVisualInfo *pVisuals
Disabling the GLX Visuals The HP VISUALIZE-FX2/4/6 products are the first set of HP graphics devices that supports the OpenGL extension to X (GLX). I
HP VISUALIZE-FXE, FX5 and FX10 Device-Dependent Information Disable 12 Bit Direct Color Visual This section includes information on the HP VISUALIZE-
Supported Screen Options The following screen options are supported: • CountTransparentInOverlayVisual • ImageTextViaBitMap • EnableIncludeInfe
HP VISUALIZE-FXE/5/10 Colormaps HP VISUALIZE-FXE/5/10 devices have a total of 4 hardware colormaps. 2 of the colormaps are dedicated to the overlay p
Supported Screen Options The following Screen Options are supported: • FreedomVideoFormat Freedom Video Formats Freedom Series graphics devices h
VRX Device-Dependent Information This section includes information on the PersonalVRX (PVRX) and TurboVRX (TVRX) graphics devices. ________________
In overlay mode, the X server runs only in the overlay planes. Since only 3 or 4 planes are available in the overlay planes on VRX devices, the number
Chapter 4: X Windows Configuration Details This chapter discusses several details concerning the configuration of X hosts, colormaps, mouse, and k
Preface Why This Document? This document was created to fill a need that became evident as Hewlett-Packard began to offer multiple Application Progr
____________________________________________________________________________________ Note: The number in an Xnscreens file does not necessarily refer
hp-HIL input devices can plug into other hp-HIL devices, with up to seven input devices connected together. If there are no DIN input devices connecte
Explicitly Specifying Input Device Use The X server can be explicitly configured to use a specific input device as the X pointer or X keyboard, or m
The following example specifies a Spatial System Spaceball® connected to the serial port associated with device file /dev/tty0p0 as the X pointer:
This syntax should not be used if more than one X server will be run on the same computer, or if non-X programs will be directly accessing input devic
If you had a more complicated configuration, such as two graphics tablets, two keyboards, and a barcode reader, your X*devices file could look like th
Redefining the hp-HIL Search Path The X*devices file can be used to redefine the path searched for hp-HIL devices. By default, the path searched is
Initializing the Colormap with xinitcolormap The xinitcolormap client initializes the X colormap. Specific X colormap entries (pixel values) are mad
Customizing the Mouse and Keyboard This section describes the following customizations: • Changing mouse button actions. • The xmodmap client.
The xmodmap utility can be used to change mouse button mappings. The syntax for changing mouse button mappings with xmodmap is: xmodmap {-e "po
Document Conventions Below is a list of the typographical conventions used in this document: mknod /usr/include Verbatim computer literals are in
The X*pointerkeys file lets you specify: • The keys that move the pointer. • The keys that act as pointer buttons. • The increments for movemen
Creating a Custom X*pointerkeys File You need to modify the existing X0pointerkeys file only if one or more of the following statements are true:
ointer Movement Functions Movement Option Function Default Key Move the pointer to the left. pointer_left_key keypad_1 Move the pointer to the righ
Button Operation Functions Button Operation Function Default Key Perform button 1 operations pointer_button1_key keypad_* Perform button 2 operat
Button Chording Option Function Default Action Turn button chording off or on button_chording On for devices with two buttons, off for devices wit
You can also use the X*pointerkeys file to control screen switching behavior in multi-screen configurations. See the example X*pointerkeys file in /us
However, suppose you wanted to move only one pixel to the left. Although the default value of pointer_mod2_amt is one pixel, no key is assigned to the
The easiest way to solve this dilemma is to call in another modifier. The following lines illustrate this. Compare them to the previous example. ###p
-quiet Turns off verbose logging. This is the default. -n Lists changes to key mappings without actually making those changes. -e <expression>
For example, on a PC-style keyboard, you can press to print a lower case "d", to print a capital "D", to print something el
Komentáře k této Příručce