Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-4]: src/sys/arch/pmax/dev Pull up revision 1.17 (requested by m...



details:   https://anonhg.NetBSD.org/src/rev/0c9c6214aae5
branches:  netbsd-1-4
changeset: 469833:0c9c6214aae5
user:      he <he%NetBSD.org@localhost>
date:      Sat Dec 04 19:21:37 1999 +0000

description:
Pull up revision 1.17 (requested by mhitch):
  Reset the keyboard when the framebuffer is closed, so that it is
  in a known good state after e.g. X11 has run.

diffstat:

 sys/arch/pmax/dev/fb_usrreq.c |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r ba03a9f7e7cd -r 0c9c6214aae5 sys/arch/pmax/dev/fb_usrreq.c
--- a/sys/arch/pmax/dev/fb_usrreq.c     Sat Dec 04 19:16:01 1999 +0000
+++ b/sys/arch/pmax/dev/fb_usrreq.c     Sat Dec 04 19:21:37 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fb_usrreq.c,v 1.13 1999/01/16 07:05:05 nisimura Exp $  */
+/*     $NetBSD: fb_usrreq.c,v 1.13.2.1 1999/12/04 19:21:37 he Exp $    */
 
 /*ARGSUSED*/
 int
@@ -57,6 +57,13 @@
        genDeconfigMouse();
        fbScreenInit(fi);
 
+       /*
+        * Reset the keyboard - we don't know what the X server (or whatever
+        * was using the framebuffer) did to the keyboard.  The X11R6 server
+        * changes the keyboard state, and doesn't reset it.
+        */
+       KBDReset(fbtty->kbddev, fbtty->KBDPutc);
+
        bzero((caddr_t)fi->fi_pixels, fi->fi_pixelsize);
        (*fi->fi_driver->fbd_poscursor)
                (fi, fbtty->col * 8, fbtty->row * 15);



Home | Main Index | Thread Index | Old Index