GRASS graphics driver can't set color

Hello,

We have problems installing GRASS4.2,4.1 on Red Hat Linux with
XFree3.3.3. Starting x0 monitor within 8 bit X windows
and using d.mon start=x0 we've got the following errors:

Graphics driver [x0] started
Color: can't set color 0
Color: can't set color 0

Using X windows with 16 bit or 32 bit colour depths we've got:

X Error of failed request: BadMatch (invalid parameter attributes)
  Major opcode of failed request: 78 (X_CreateColormap)
  Serial number of failed request: 270
  Current serial number in output stream: 271

Do any of you have ideas how to fix it?

We appreciate any help.

With best regards,

Jaro Hofierka

It sounds as if you might be starting X windows as Root. Log in as another
user (not a root user) and then go into X windows and start the monitor.
For some reason X windows will not support 8bit color when logged on as
Root. I am assuming that you have already setup the monitors using via
monitorcap file and set mknod/chmod to the fifo devices. If not it is
really easy to do and if you like I will give you detailed instructions on
how to set them up.

James Harper

-----Original Message-----
From: grass@pandora.cecer.army.mil [mailto:grass@pandora.cecer.army.mil] On
Behalf Of Jaro Hofierka
Sent: Friday, May 21, 1999 11:45 AM
To: grass-list@cecer.army.mil
Subject: GRASS graphics driver can't set color

Hello,

We have problems installing GRASS4.2,4.1 on Red Hat Linux with
XFree3.3.3. Starting x0 monitor within 8 bit X windows
and using d.mon start=x0 we've got the following errors:

Graphics driver [x0] started
Color: can't set color 0
Color: can't set color 0

Using X windows with 16 bit or 32 bit colour depths we've got:

X Error of failed request: BadMatch (invalid parameter attributes)
  Major opcode of failed request: 78 (X_CreateColormap)
  Serial number of failed request: 270
  Current serial number in output stream: 271

Do any of you have ideas how to fix it?

We appreciate any help.

With best regards,

Jaro Hofierka

At 19:48 21.5.1999 -0700, you wrote:

It sounds as if you might be starting X windows as Root. Log in as another
user (not a root user) and then go into X windows and start the monitor.
For some reason X windows will not support 8bit color when logged on as
Root. I am assuming that you have already setup the monitors using via
monitorcap file and set mknod/chmod to the fifo devices. If not it is
really easy to do and if you like I will give you detailed instructions on
how to set them up.

James Harper

James,

You are right! Thank you and also all who replied to my request.
Regards,

Jaro

-----Original Message-----
From: grass@pandora.cecer.army.mil [mailto:grass@pandora.cecer.army.mil] On
Behalf Of Jaro Hofierka
Sent: Friday, May 21, 1999 11:45 AM
To: grass-list@cecer.army.mil
Subject: GRASS graphics driver can't set color

Hello,

We have problems installing GRASS4.2,4.1 on Red Hat Linux with
XFree3.3.3. Starting x0 monitor within 8 bit X windows
and using d.mon start=x0 we've got the following errors:

Graphics driver [x0] started
Color: can't set color 0
Color: can't set color 0

Using X windows with 16 bit or 32 bit colour depths we've got:

X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 78 (X_CreateColormap)
Serial number of failed request: 270
Current serial number in output stream: 271

Do any of you have ideas how to fix it?

We appreciate any help.

With best regards,

Jaro Hofierka