From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,fdcefa84ad640d0a X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1994-02-24 13:18:35 PST Path: gmd.de!xlink.net!howland.reston.ans.net!europa.eng.gtefsd.com!news.umbc.edu!eff!news.kei.com!hookup!swrinde!elroy.jpl.nasa.gov!decwrl!src.dec.com!crl.dec.com!nntpd.lkg.dec.com!star.enet.dec.com!kleinsorge From: kleinsorge@star.enet.dec.com (Fred Kleinsorge) Newsgroups: comp.sys.dec Subject: Re: Keyboard problem on Alpha under OpenVMS 1.5 Date: 24 Feb 1994 21:18:35 GMT Organization: Digital Equipment Corporation Distribution: world Message-ID: <2kj5jb$h20@nntpd.lkg.dec.com> References: <23FEB94.16465543@ssrl01.slac.stanford.edu> Reply-To: kleinsorge@star.enet.dec.com (Fred Kleinsorge) NNTP-Posting-Host: star.enet.dec.com X-Newsreader: mxrn 6.18-4 hurja@ssrl01.slac.stanford.edu (Suomalainen) writes: >We've experienced this problem on two of our Alpha 3000s (400 and 500) >running OpenVMS 1.5 and Motif. At some seemingly arbitrary point in time >on a console monitor window, the keyboard goes into a mode where every >other keystroke is normal but the alternate stroke activates the Delete >key (Therefore, all window sessions are no longer useful and the process has >to be killed from another login. A reboot solved the problem, but a new >keyboard (DEC's attempt) didn't. I haven't seen it happen often enough >to try this, but I imagine that one could restart the window manager to >allow logins on the console monitor. I haven't found out yet if one >particular user has possibly remapped the keyboard, but it doesn't seem >likely, since every OTHER keystroke is causing the problem! > >One suggestion was a driver bug, but DEC hasn't been much help thus far. >Anyone out there have an answer? Sorry, but this was cross-posted with >vmsnet.alpha. > I put a response (probably in vmsnet.alpha) the other day to this as well. There appear to be several seperate LK400 related problems that have cropped up. We are trying to reproduce them. The suggestion of a new keyboard is not unreasonable. Recent reports from OSF customers seem to indicate that using older rev LK400's seem to fix the problem that is being seen on OSF. To try and explain the potential source of keyboard problems, you first need to understand that the LK400 is a replacement for the LK200 - which was designed a long time before X11 was a glint in MIT's eye. It powers up with defaults that do not match what the X11 protocol calls for. The X11 protocol wants to see each down and each up key transition. It also want to be able to program autorepeat on a per key basis. To do this, the LK200/400 is reprogrammed to generate up/down transitions - but in this mode, the keyboard does not autorepeat. So instead, autorepeat is done by a software timer, and the 'click' is transmitted to the LKxxx from the driver. On OpenVMS AXP, unless you are using something like SoftPC - the main array is *not* reprogrammed, and instead the main array is in down-only-autorepeat mode - the driver fakes a up code every time it gets a down code, and the keyboard itself generates the autorepeat. On OSF/1 the entire keyboard is put in up/down mode. Two types of problems can occur: 1) Failure to init the keyboard properly In this case, the keyboard mode does not match what the driver thinks it is in. The most obvious bug this causes is a runaway DELETE key. The driver thinks the key is in up/down mode, but the keyboard default is down-only-autorepeat. So, when you press the key the code is sent, but nothing is sent for the release. The driver thinks the key is held down, and starts autorepeating. Pressing the DELETE key a second time makes the driver think it is seeing the UP transition. Other bad keys are things like needing to press RETURN twice. This is for the same reason - but the RETURN key does not autorepeat. Once you find yourself in this mode, the broken keys remain broken. Unplugging the LK400 and plugging it back in will cause a power up sequence, which will cause the driver to reinit the KB. The usual ways a failure to init occurs is a bad interaction in the transition from CONSOLE mode to the Window System. This means at server startup, and when the console window is toggled due to a ^F2. Usually it's because a key was pressed just at the wrong time, and the driver got confused. The console wants the keyboard in it's power up state, and the window system wants a different state, so it's the switch between states that causes the problem. NOTE: This can also happen from a HALT/CONTINUE. HALT/CONTINUE is NOT supported on the graphics console. You MUST be on a serial line console to CONTINUE after a HALT. The window system state is UNDEFINED after a CONTINUE when booted from the graphics head. A lot of work has been done to try and fix these problems, and they should have been in V1.5. We are looking into this. 2) Lost character/interrupt When doing a autorepeat in software, the driver depends on seeing the UP transition. This is either the keycode a second time or the ALLUPS character (which means all up/down keys are UP). If the driver does not see the up transition, it will assume the key is held down, and start to autorepeat. If a character is lost, or not delivered, or if the interrupt is dropped - then this would be the result. This type failure is sporatic. The key is not always broken, like it is in the other type failure mode. Pressing the key a second time should fix the problem. It may reoccur later, but usually this happens only when typing fast and autorepeating. And on VMS, it only will happen with keys like the arrow, or the DELEYE keys (unless SoftPC is installed, which asks for up/down on all keys). There was a bug in DEC 3000 firmware that would show this problem. The timing was such that it showed up on the 3000-300 most frequently. This "should" be fixed in V2.4 firmware, and I am following this up and verifying that it was. However, this would only apply to VMS, as OSF (I think) does not use the firmware to read the KB data. In any case, we are looking at the problem both here in engineering, and onsite with a custimer who can reproduce it frequently. -- +--------------------------------------+ Fred Kleinsorge | All opinions expressed are mine, and | kleinsorge@star.enet.dec.com | may not reflect those of my employer | +--------------------------------------+