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 : hans@mpim-bonn.mpg.de
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 <kwong@solar.acast.nova.edu>
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>
#else
#include <sys/ioccom.h>
#include <sys/fbio.h>
#endif
main()
{
struct fbcmap cmap;
unsigned char grey[256];
int fb;
memset(grey,0,256);
grey[0] = 255;
cmap.index = 0;
cmap.count = 256;
cmap.red = cmap.green = cmap.blue = grey;
if ((fb = open("/dev/fb",O_RDWR)) < 0){
perror("OPEN:");
exit(-1);
}
if (ioctl(fb, FBIOPUTCMAP, &cmap)<0) {
perror("IOCTL:");
exit(-1);
}
exit(0);
}
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:11:56 CDT