This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Patrick, From your xdpyinfo shown below: > default visual id: 0x22 > visual: > visual id: 0x22 > class: TrueColor That means that your default visual is a 24 bit TrueColor display. Gempak requires an 8 bit pseudocolor default display. You can have other TrueColor viuals on the system, but the default must be 8 bit. The Xsun session configuration is generally configured in /etc/dt/config/Xservers. This might be a line to either Xservers.24bit or Xservers.8bit In the Xservers file, you should have a line for starting your :0 screen which generally for 8 bits looks something like: :0 Local local_uid@console root /usr/openwin/bin/Xsun :0 -nobanner -dev /dev/fbs/ffb0 whereas 24 bit would have: :0 Local local_uid@console root /usr/openwin/bin/Xsun :0 -nobanner -dev /dev/fbs/ffb0 defdepth 24 The -dev option for Xsun supports the defdepth option: -dev filename This option specifies the name of the framebuffer device file to be used instead of the default frame- buffer /dev/fb. Multiple instances of this option indicate multiple screens on the same server. After each -dev option a list of modifiers changes the behavior of the named device. [ left | right | top | bottom ] Specify the position of a given screen in rela- tion to the previous one on the command line. The default right. dpix n The dpi in the x direction for this screen is n. The default is 90. dpiy n The dpi in the y direction for this screen is n. The default is 90. defclass [ GrayScale | StaticGray | PseudoColor | StaticColor | DirectColor | TrueColor ] Use the specified visual as the default visual. The default is device dependent. defdepth n A visual of depth n is the default visual. The default is device dependent. You should be able to specify defclass PseudoColor or defdepth 8 if the default for your hardward is not 8 bits. Steve Chiswell Unidata User Support >From: "Patrick S. Market" <address@hidden> >Organization: UCAR/Unidata >Keywords: 200006072030.e57KUAT06982 > >Hello. > >I am writing because I can't seem to resolve a conflict over colors >on our system. We have a Sun Ultra60 that is presently running >GEMPAK just fine. In March, we added on 4 Sun Ultra 5s, but only now >have I gotten around to getting them to access the binaries, etc., from >the U60 (we have no system support here). when I run gempak on the U5s, >I get the response (in this case from running ntl): > >> =>graphic, satellite, radar -- 33 35 16 >> Request total # of colors = 84 >> X Error of failed request: BadValue (integer parameter out of range >> for operation) >> Major opcode of failed request: 86 (X_AllocColorCells) >> Value in failed request: 0x0 >> Serial number of failed request: 219 >> Current serial number in output stream: 219 >> >> [1] Exit 1 /asp/met/nawips/bin/sol/ntl -s 35 > >I have been aware of this potential problem for a few years now, and >have been to the GEMPAK e-mail archives already in search of an answer. >I know that the standard response is to "have your sysadmin change >the settings to 8-bit color", but from my read of the xdpyinfo >output appended below, the U5 (running Solaris 2.7, btw) accounts for >this. > >Can you help this neophyte system babysitter? > >Thanks. > >pat > >:::::::: >xdpyinfo >:::::::: > > >name of display: :0.0 >version number: 11.0 >vendor string: Sun Microsystems, Inc. >vendor release number: 3610 >maximum request size: 262140 bytes >motion buffer size: 256 >bitmap unit, bit order, padding: 32, MSBFirst, 32 >image byte order: MSBFirst >number of supported pixmap formats: 4 >supported pixmap formats: > depth 1, bits_per_pixel 1, scanline_pad 32 > depth 8, bits_per_pixel 8, scanline_pad 32 > depth 16, bits_per_pixel 16, scanline_pad 32 > depth 24, bits_per_pixel 32, scanline_pad 32 >keycode range: minimum 8, maximum 132 >focus: window 0x4c00009, revert to PointerRoot >number of extensions: 22 > AccessX > Adobe-DPS-Extension > DCShare > DOUBLE-BUFFER > DPSExtension > GLX > MIT-SCREEN-SAVER > MIT-SHM > MIT-SUNDRY-NONSTANDARD > Multi-Buffering > SHAPE > SUN_ALLPLANES > SUN_DGA > SUN_OVL > SUN_SME > SYNC > SolarisIA > XC-MISC > XIE > XInputDeviceEvents > XInputExtension > XTEST >default screen number: 0 >number of screens: 1 > >screen #0: > dimensions: 1152x900 pixels (325x254 millimeters) > resolution: 90x90 dots per inch > depths (2): 1, 24 > root window id: 0x25 > depth of root window: 24 planes > number of colormaps: minimum 1, maximum 1 > default colormap: 0x21 > default number of colormap cells: 256 > preallocated pixels: black 0, white 16777215 > options: backing-store YES, save-unders YES > largest cursor: unlimited > current input event mask: 0x38003f > KeyPressMask KeyReleaseMask ButtonPressMask > > ButtonReleaseMask EnterWindowMask LeaveWindowMask > > SubstructureNotifyMask SubstructureRedirectMask FocusChangeMask > > number of visuals: 1 > default visual id: 0x22 > visual: > visual id: 0x22 > class: TrueColor > depth: 24 planes > available colormap entries: 256 per subfield > red, green, blue masks: 0xff0000, 0xff00, 0xff > significant bits in color specification: 8 bits > >:::::::: >xdpyinfo >:::::::: > > >-- >======================================================================== >Dr. Patrick S. Market >Dept. of Soil & Atmospheric Sciences >University of Missouri-Columbia Phone: (573) 882 - 1496 >203 Gentry Hall Fax: (573) 884 - 5133 >Columbia, MO 65211 USA E-mail: address@hidden >======================================================================== >