SUMMARY : reset colormap

From: Liew.Chee.Wah (
Date: Mon Jun 02 1997 - 00:06:49 CDT

Dear gurus :

Sorry for the late reply, I don't have time to test all the
recommendations but I am appreaciated to all the replies .

Those are the replies I received.

from :

often it may help to force the display
to reappear with this little trick:
Rlogin to the 'blackbox', become root
and start /usr/openwin/bin/openwin
without redirecting the DISPLAY so
the console should awakes and shows the
Openwindows screen.
Then go to the blackbox' console and
exit root's Openwindows. Then (perhaps
you have to kill -HUP the ttymon first)
the console(-prompt) should reappear.

from : James Kwong <>

I was surfing sunsolve this morning and came across colormap. Then, I
saw your post. There is a patch 102450-01 for Solaris 2.4 about colormap
and AnswerBook. Hope this is somewhat related to your colormap problem.

and a small script helps to reset the colormap as follow :

#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#ifdef SVR4
#include <unistd.h>
#include <sys/fbio.h>
#include <sys/ioccom.h>
#include <sys/fbio.h>

struct fbcmap cmap;
unsigned char grey[256];
int fb;

    grey[0] = 255;

    cmap.index = 0;
cmap.count = 256; = = = grey;

    if ((fb = open("/dev/fb",O_RDWR)) < 0){
    if (ioctl(fb, FBIOPUTCMAP, &cmap)<0) {

This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:11:56 CDT