Graphichs Monitor Problem

Hello GRASS Users,

I am attempting to run GRASS4.1 under Red Hat Linux version 4.0 which I have
recently acquired. Linux works great but I am experiencing a problem when
trying to call up a graphics monitor with the "d.mon start=x0" command.
When I issue the command the system returns the following error message:

        X error of Failed Request: BadMatch (invalid parameter attributes)
                Major opcode of failed request: 78 (X_CreateColorMap)
                Serial number of failed request: 25
                Current Serial Number in output stream: 26
        Error-could not complete locking process for monitor x0
        Lock file is /usr/grass/locks/localhost/mon.100482
        Problem selecting x0. Will try once more.
        Error-could not complete locking process for monitor x0
        Lock file is /usr/grass/locks/localhost/mon.100482

I have heard that a couple of library files are needed to properly run GRASS
(libX11.so.3 and libXT.so.3.1.0) and I have put them into these directories
under "grass" ownership:

        /usr/lib
        /usr/X11R6/lib
        /usr/X11/lib
        /usr/grass/driver

Can anyone tell me where I am going wrong and or how to fix this problem?
Any assistance is much appreciated.

-Dave Viebrock

On Sun, 29 Dec 1996, Dave and Sue Viebrock wrote:

I am attempting to run GRASS4.1 under Red Hat Linux version 4.0 which I have
recently acquired. Linux works great but I am experiencing a problem when
trying to call up a graphics monitor with the "d.mon start=x0" command.
When I issue the command the system returns the following error message:

        X error of Failed Request: BadMatch (invalid parameter attributes)
                Major opcode of failed request: 78 (X_CreateColorMap)
                Serial number of failed request: 25
                Current Serial Number in output stream: 26
        Error-could not complete locking process for monitor x0
        Lock file is /usr/grass/locks/localhost/mon.100482
        Problem selecting x0. Will try once more.
        Error-could not complete locking process for monitor x0
        Lock file is /usr/grass/locks/localhost/mon.100482

I have heard that a couple of library files are needed to properly run GRASS
(libX11.so.3 and libXT.so.3.1.0) and I have put them into these directories
under "grass" ownership:

        /usr/lib
        /usr/X11R6/lib
        /usr/X11/lib
        /usr/grass/driver

Can anyone tell me where I am going wrong and or how to fix this problem?
Any assistance is much appreciated.

Dave:

The "standard" GRASS 4.1 XDRIVER ONLY works with X-Servers running in
8-bit (256 Colour Mode). The above probably indicating that you are
running your Red Hat 4.0 Server in a 15/16 or 24 bit Colour Mode? Moving
back to the 8-bit mode should get GRASS's XDRIVER working for you!

Lawrence Houston - (houston@boyd.geog.mcgill.ca)

Lawrence Houston wrote:

The "standard" GRASS 4.1 XDRIVER ONLY works with X-Servers running in
8-bit (256 Colour Mode). The above probably indicating that you are
running your Red Hat 4.0 Server in a 15/16 or 24 bit Colour Mode? Moving
back to the 8-bit mode should get GRASS's XDRIVER working for you!

The question is: Is there a patched version of XDRIVER which supports
15/16 bit colour mode? This seems to become a FAQ in Linux environments.

Henning

--
Henning Brockfeld mailto: Brockfeld@wigeo.bwl.uni-muenchen.de
Institut f"ur Wirtschaftsgeographie Universit"at M"unchen

http://www.wigeo.bwl.uni-muenchen.de/~hbrock/

On Mon, 30 Dec 1996, Henning Brockfeld wrote:

Lawrence Houston wrote:
>
> The "standard" GRASS 4.1 XDRIVER ONLY works with X-Servers running in
> 8-bit (256 Colour Mode). The above probably indicating that you are
> running your Red Hat 4.0 Server in a 15/16 or 24 bit Colour Mode? Moving
> back to the 8-bit mode should get GRASS's XDRIVER working for you!
>
The question is: Is there a patched version of XDRIVER which supports
15/16 bit colour mode? This seems to become a FAQ in Linux environments.

Henning:

On 8 Apr 1994 Kenn Gardels <gardels@ced.berkeley.edu> makes reference to
24-bit patches being available as part of their Alpha Port:

     ohlone.ced.berkeley.edu:/pub/grass

Again on 16 Feb 95 Kenn makes reference to the Alpha patches, but this
time ONLY mentions contacting him via E-mail?

On 17 Feb 1995 Andreas Schmidt <schmidt@ipf.bau-verm.uni-karlsruhe.de>
reports that Kenn's 24-bit patches work under SunOS (24-bit display) and
Linux (24-bit & 16-bit displays).

Not sure if the "patches.xdriver.24bit" patch contained in
"grass-alpha-axp-0.6.tar.Z" is the most recent (Mar 25 1995), your might
want to check with Kenn on that. Additionally I have NOT tired these
patches myself (ONLY kept the GRASS Hopper Posting related to them), but
reportedly they allow for an 8-bit XDRIVER Window to operate on a
16/24-bit display. Hope that helps?

Lawrence Houston - (grass@boyd.geog.mcgill.ca)