From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,50cb4d43374a3bc0 X-Google-Attributes: gid1164f8,public From: Monty Brandenberg Subject: Re: 8-Bit Display on PowerStorm 4D50T? Date: 1998/03/23 Message-ID: <3516B47F.AE5FCCD6@ne.mediaone.net>#1/1 X-Deja-AN: 336917116 Content-Transfer-Encoding: 7bit References: <6f57kj$34g$1@nuscc.nus.edu.sg> To: Wong Yeow Whye Content-Type: text/plain; charset=us-ascii Organization: MCB, Inc. Mime-Version: 1.0 Reply-To: mcbinc@ne.mediaone.net.MAPS.SPAM Newsgroups: comp.sys.dec Wong Yeow Whye wrote: > > Recently we acquired a number of 600au workstations with the PowerStorm > 4D50T display cards. The problem we now face is that this card is set to > a 24-bit display by default but we have some applications that require an > 8-bit display. Does anyone know how to set the card to diplay in 8-bit mode? The 4D50T (and 40T, 51T, and 60T) use an IBM 640 ramdac and the DDX layer for the X server supports two or three (can't remember which) simultaneously- loaded 8bpp pseudocolor colormaps even while using a 24bpp truecolor visual. The program must simply ask politely for the correct visual type, create a suitable colormap, and then create it's windows with correct attributes. Be careful that you don't accidentally grab the overlay visual. If the program is relying on the default visual being 8bpp pseudocolor this is somewhat poor X programming practice but can be dealt with. I'm working from memory here so review the man pages and release notes (and running 'strings' on /usr/shlib/X11/lib_dec_e3sc.so and /usr/shlib/X11/lib_dec_ws.so is instructional). You can add options to the server config file /usr/var/X11/Xserver.conf *before* any '-I' option. These options are: -depth -forceDepth -vclass where: is the screen index (first is 0 and can be omitted) is visual depth in bpp (e.g. 8, 4, 12, 24) is one of: PseudoColor, TrueColor, PseudoGray, etc. Typically, you need only one option. The other attributes are usually, but not always, constrained by it. m -- Monty Brandenberg, Software Consultant MCB, Inc. mcbinc@ne.mediaone.net.MAPS.SPAM P.O. Box 426188 mcbinc@world.std.com.MAPS.SPAM Cambridge, MA 02142 617.864.6907