[comp.sys.sun] 4.1.1 and the SunView mouse pointer

stssram@sunkist.west.sun.com (Bob Myers) (12/12/90)

We've just started upgrading to 4.1.1, and most things seem to work great.
However, the SunView mouse pointer (the arrow) doesn't go away when we
exit SunView. It stays on the screen until we enter SunView again. This
isn't too bad on the console, but it's very annoying when we start up MIT
X Windows (X11R4).  We haven't tried OpenWindows 2.0 yet.

Any ideas on how to get rid of that silly arrow?

Bob Myers
Unocal Science & Technology Division                 myers@unocal.com
Brea, California               myers%unocal.uucp@sunkist.west.sun.com (faster)

al@ghostwheel.eng.yale.edu (Alfred Rizzi) (12/13/90)

In article <775@brchh104.bnr.ca> unocal!stssram@sunkist.west.sun.com (Bob Myers) writes:

   We've just started upgrading to 4.1.1, and most things seem to work great.
   However, the SunView mouse pointer (the arrow) doesn't go away when we
   exit SunView. It stays on the screen until we enter SunView again. This
   isn't too bad on the console, but it's very annoying when we start up MIT
   X Windows (X11R4).  We haven't tried OpenWindows 2.0 yet.

I've experienced the same problem both with SunView and OpenWindows 2.0
immediately after installing the GFX patch from sun.  It appears that both
of these programs take "advantage" of the hardware cursor support
avaliable with the GX board, but fail to turn the cursor off when they
exit.  The following bit of code will turn the cursor off.

#include <stdio.h>
#include <fcntl.h>
#include <sys/ioccom.h>
#include <sun/fbio.h>

main()
{
  int fd;
  struct fbcursor curs ;

  curs.set = FB_CUR_SETCUR;
  curs.enable = 0;

  fd = open("/dev/fb", O_RDWR);

  ioctl(fd, FBIOSCURSOR, &curs);

  close(fd);
}

Alfred A. Rizzi 	       al@corwin.eng.yale.edu     ph: (203) 432-4239  
Yale Robotics Laboratory	                          fx: (203) 432-7481 
Department of Electrical Engineering, 1968 Yale Station, New Haven, CT 06520