Linux vs Rtap on HP-UX

Frequent Advisor

Linux vs Rtap on HP-UX

We are running RedHat 7.1 on a Compaq Evo. When we use Rtap on HP to run a application on the Compaq it can not allocate the requiered color cells.
We tried installing a different driver for the graphical card in the Compaq that didn't help. The only way to run the application error free is running it from the most basic window in Linux. It looks like the more advanced like Gnome or KDE "eat" color.
Any sollutions?

We are getting an error from the application " can not allocate proper color.


Harpreet Singh
Kodjo Agbenu
Honored Contributor

Re: Linux vs Rtap on HP-UX


Just try the following on your Linux box :

* Copy your /etc/X11/XF86Config into /etc/X11/XF86Config.256color
(use XF86Config-4 if you are using XFree86-4.x)

* Edit XF86Config.256color and change the "screen" section :

Section "Screen"
DefaultDepth 8
Subsection "Display"
Depth 8
Modes "1024x768"

* From conole, launch a new XFree86 server using the newly created file :

X -ac :1 vt08 &

* Go back to console, and launch an xterm on the new display :

xterm -display :1 &

* Go to your X11 display (CTRL-ALT-F8), then connect to Hp-ux, export DISPLAY and launch the application (Rapt).

Normally, it should work. If this is the case, I have got some explanation : it seems that some graphic programs use old X11R5 colormap allocate functions that can only use colors in the range 0..255 (8-bit colormap). To use this applications, your X11 display must be configured in "pseudocolor" mode (aka 8-bit). Otherwise, it does not work.

I had the same problem with OmniBack II 4.x and also had a customer of mine with some specific CAD software.

Good luck.

Learn and explain...