Re: XForms: True Colors and 16bpp!!!

Christopher Sean Hilton (chris@vindaloo.com)
Sat, 25 Oct 1997 10:39:31 -0400 (EDT)

To subscribers of the xforms list from Christopher Sean Hilton <chris@vindaloo.com> :

On Fri, 24 Oct 1997, Steve Lamont wrote:

: To subscribers of the xforms list from spl@szechuan.ucsd.edu (Steve Lamont) :
:
: > screen #0:
: > dimensions: 1280x1024 pixels (433x347 millimeters)
: > resolution: 75x75 dots per inch
: > depths (1): 16
: > root window id: 0x26
: > depth of root window: 16 planes
: > number of colormaps: minimum 1, maximum 1
: > default colormap: 0x23
: > default number of colormap cells: 64
: > preallocated pixels: black 0, white 65535
: > options: backing-store YES, save-unders YES
: > largest cursor: 1280x1024"
: >
: > It's possible to get 256 level gray?
:
: It doesn't look like it.
:
: Perhaps someone more familiar with PC implementations of X than I am
: can be more helpful. I do recall seeing postings that indicate that
: you can start up your server in different modes. You may want to
: check your server documentation.
:

With XFree86 the parameter you want to set for the X server is -bpp.
There are three ways you could be starting the X server if you are doing
it manually with startx then

$ startx <startx options> -- -bpp [8|16|24|32]

will give you

8 bits per pixel (Psuedo Color)
16/24/32 bits per pixel (True Color)

The "--" in the command line is important because is seperates options
given to startx from options given directly to the X server. If you are
letting xdm start your display you have to edit the line that starts the
local server in xdm's Xservers file. This file is usually located at
/usr/X11R6/lib/X11/xdm/Xservers. The last line will read something like:

:0 local /usr/X11R6/bin/X

and you want to change it to

:0 local /usr/X11R6/bin/X -bpp [8|16|24|32]

Finally if you start X with the rest of your terminals in /etc/inittab or
/etc/ttys you need to locate the line that starts X and then add the -bpp
option there. In /etc/ttys it looks like this:

ttyv3 "/usr/X11R6/bin/X -indirect <somehost> -bpp [8|16|24|32]" \
xterm on secure

In /etc/inittab it's either coded in a line like above or it will be
marked with a comment and farmed out to a different run level. Since all
the linux distributions differ on this you'll have to do some hunting.

Chris

--
      __o          "All I was trying to do was get home from work."
    _`\<,_           -Rosa Parks
___(*)/_(*)____.___o____..___..o...________ooO..._____________________
Christopher Sean Hilton                    [chris/at/vindaloo/dot/com]

_________________________________________________ To unsubscribe, send the message "unsubscribe" to xforms-request@bob.usuf2.usuhs.mil or see http://bob.usuf2.usuhs.mil/mailserv/xforms.html Xforms Home Page: http://bragg.phys.uwm.edu/xforms List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/