From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,ab66dede6fb610d4,start X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1993-06-03 16:44:58 PST Newsgroups: comp.sys.dec Path: gmd.de!xlink.net!sol.ctr.columbia.edu!emory!news-feed-1.peachnet.edu!concert!doppler!ncsc.org!knerr From: knerr@ncsc.org (Jeff Knerr) Subject: SUMMARY: PseudoColor & Xwst3d Message-ID: Sender: news@doppler.ncsc.org Nntp-Posting-Host: duck.ncsc.org Reply-To: knerr@ncsc.org (Jeff Knerr) Organization: North Carolina Supercomputing Center Distribution: usa Date: Thu, 3 Jun 1993 16:54:18 GMT 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