Subject: Re: help please
To: Andy Doran <ad@fionn.sports.gov.uk>
From: Michael L. Hitch <mhitch@lightning.msu.montana.edu>
List: port-pmax
Date: 10/22/1999 20:34:33
On Thu, 21 Oct 1999, Andy Doran wrote:

> On Thu, 21 Oct 1999, Daniel Senderowicz wrote:
> 
> > 1) when I exit X, the console keyboard becomes "sluggish", that
> > is the letters double if I don't remove the finger immediately,
> 
> Anybody clued up on what has to be said to the kbd to fix this?

  I think I see what is going on here.  I think the kernel initializes the
keyboard to autorepeat and most keys in "autodown" mode.  The X11R6 server
switches some keys to "up/down" mode.  When the server exits, it does not
reset the keyboard, so those keys are still in the up/down mode.  The
kernel keyboard driver isn't expecting this, and intprets the key-up
transition as another key press.  [I don't currently have a system with
keyboard/display at the moment, so I'm not sure I have all the details
correct and some of it's from faint memory recollections from several
months ago.]

  The fix would be to either have the X server restore the keyboard when
the server exits (which means the server would need to know how the
keyboard was originally configured), or have the kernel reset the keyboard
when the server exits (in fbclose()?).

Michael

--
Michael L. Hitch			mhitch@montana.edu
Computer Consultant
Information Technology Center
Montana State University	Bozeman, MT	USA