Summary: changing X server colour depth

From: Pedro J. Serrahima Bartolome <Pedro.Serrahima_at_lulu.iic.uam.es>
Date: Thu, 04 Jun 1998 17:27:35 +0200

Hi,

Thanks a lot to all of you who answered for your quick response time (I
needed it)

Spaciel thanks to Chris Vandersip who has given me a detailed
explanation of how to solve my problem. I have followed his instructions
and it works fine.

This is his answer:


> 1. First run "xdpyinfo > xdpyinfo.out". This will list, among other
> things, the "default visual id" for the system. Further down the
> list
> you'll see a description of all possible visual id defaults. Our
> default was "0x22", which corresponds to TrueColor, 24-plane mode.
>
> 2. This default is established in the "Xservers" file, located in
> /usr/lib/X11/xdm directory. Within this file is the command to launch
>
> the Xserver, given by: ":0 local /usr/bin/X11/X", which should be a
> link to /usr/bin/X11/Xdec. The "-vclass" option for Xdec allows one
> to
> configure the default visual. If it isn't specifically set in your
> Xserver file (as in our case), then the system should default to 24
> bit
> mode.
>
> 3. To change the default to 8-bit PseudoColor, append that Xserver
> launch command with the following:
>
> -vclass0 PseudoColor
>
> Note: On our system the Xserver file was initially read-only,
> which
> was easily changed with "chmod".
>
> 4. Shutdown and reboot the system. Logon and execute "xdpyinfo"
> again
> and your new default visual id should be PseudoColor, 8-plane mode.
> Our
> new default is "0x2e". You will still be able to access 24-bit color
> visuals, just the default will be 8-bit.
>
> Hope this helps.
>
> Chris
>
>
>
> Pedro J. Serrahima Bartolome wrote:
>
> Hi,
>
> I'm working on an Alpha 500 with dunix 4.0b running.
>
> I need some urgent help, because I need to display some 8
> bits gif
> images on a X application, and It say me that it cannot
> handle 8 bits
> depth images on a 24 bit depth X server.
>
> Does anyone know how can I change the X server colour depth
> to 8 bits?
>
> TIA.
>
..
> --
>
> ----------------------------------------
> Chris Vandersip
> Mesoscale Analysis and Forecasting Lab
> Res. III Bldg., Centennial Campus
> North Carolina State University
> Raleigh, NC 27695
>
> Phone: 919.515.1447
> E-mail: cvander_at_thunder.meas.ncsu.edu
>
>




-- 
==============================================
Pedro J. Serrahima Bartolome
Instituto de Ingenieria del Conocimiento (IIC)
UAM - Canto Blanco Modulo C-XVI planta 2
28049 Madrid - Spain
Phone +34 1 397 85 28     Fax: +34 1 397 39 72
mailto:Pedro.Serrahima_at_lulu.iic.uam.es
~
~
:wq
==============================================
Received on Thu Jun 04 1998 - 17:44:10 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:37 NZDT