Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* SUMMARY: PseudoColor & Xwst3d
@ 1993-06-03 16:54 Jeff Knerr
  0 siblings, 0 replies; only message in thread
From: Jeff Knerr @ 1993-06-03 16:54 UTC (permalink / raw)





i asked:

<> I would like my 24-bit color DECstation to act like it is 
<> only 8-bit (to get certain softwares to run). I can do 
<> this by adding -class PseudoColor to the Xwst3d command 
<> in /etc/ttys, but i would like it to be an option 
<> for the user (like something you could put in the .Xdefaults file).

and the answer is....

===========================================================
I did this by having two copies of /etc/ttys; one called /etc/ttys.8 and
one called /etc/ttys.24, with the appropriate command to get the 8 bit
or 24 bit screen. Then I have two scripts which copy the desired ttys
file to /etc/ttys and executes /bin/kill -HUP 1:

#!/bin/sh
/bin/cp -f /etc/ttys.24 /etc/ttys
/bin/kill -HUP 1

The only problem with this is that the script has to be run as root,
which is a security hole, but it wouldn't be too hard to rewrite the
script as a C program that runs as root.

-- 
Caroline Lambert  		
Seismic Tomography Project      
Department of Geophysics, Stanford University
--------------------------------------------------------------------
>>> did this (didn't write the C program) -- it works fine.
--------------------------------------------------------------------


===========================================================
 The only way is probably going to be to fix the software.  I have had some
small luck with doing this.  It involves how the program grabs the colors it
uses.

 If you have the source to the software, this is an option.  Otherwise...

 I prefer the Xserver in 8 bit mode as it uses about 1/3rd the amount of
RAM, much much nicer.   Of course I have no use for 24 bit modes anyway, and
don't know why my machine has such a card.

from: sheldon
--------------------------------------------------------------------
>>> did not do this, but the server does use less memory.
--------------------------------------------------------------------


===========================================================
As far as I know, this isn't possible.  One possible work-around would
be to hack "xroute" to make it to the 24bit to 8bit translation and
use a PseuColor default visual; but that's likely to really hurt
performance... 

The right solution of course is to complain loudly to the vendor of
the broken application.

   Dan
-- 
==== message is author's opinion only -- it is not an official statement ====
J. Daniel Smith                             
Applicon, Inc.                             
Ann Arbor, Michigan (USA)                 
--------------------------------------------------------------------
>>> did not hack xroute, but did complain to the software vendor.
--------------------------------------------------------------------


thanks to Caroline Lambert, sheldon, and J. Daniel Smith!

jeff



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1993-06-03 16:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-06-03 16:54 SUMMARY: PseudoColor & Xwst3d Jeff Knerr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox