From owner-freebsd-questions Tue Dec 12 01:29:12 1995 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id BAA24051 for questions-outgoing; Tue, 12 Dec 1995 01:29:12 -0800 (PST) Received: from relay1.oleane.net (Relay1.OLEANE.NET [194.2.1.1]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id BAA24044 for ; Tue, 12 Dec 1995 01:29:07 -0800 (PST) Received: from ocegr.fr (hydra.dtsmtp.ocegr.fr [194.2.64.3]) by relay1.oleane.net (8.6.10/8.6.9) with SMTP id KAA19356; Tue, 12 Dec 1995 10:28:14 +0100 Received: from apus by ocegr.fr (5.0/SMI-SVR4) id AA22615; Tue, 12 Dec 1995 10:25:54 +0100 Message-Id: <9512120925.AA22615@ocegr.fr> To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) Cc: nate@rocky.sri.mt.net (Nate Williams), questions@freebsd.org, hm@altona.hamburg.com Subject: Re: 2.1R+PCVT+Xfree on Thinkpad In-Reply-To: Your message of "Tue, 12 Dec 1995 00:08:58 +0100." From: Gert-Jan.Vons@ocegr.fr Reply-To: Gert-Jan.Vons@ocegr.fr Date: Tue, 12 Dec 1995 10:25:52 +0100 Sender: owner-questions@freebsd.org Precedence: bulk |There are two ways to gain access to scanset I: you could switch the |keyboard, or you could try convincing the controller to perform the |translation. I'd recommed the van Gilluwe for the details (but i |could also go further in email if you'd like to know, Nate). For those interested: "switching the keyboard" is done by sending it the 0xF0 command, with as argument the number of the requested scanset (0:report current scanset, 1:scanset 1, 2:scanset 2, 3:scanset 3 (testing purposes only?)). "Convincing the controller" is done by setting bit 6 in the command byte. As van Gilluwe states, not all controllers/keyboards accept both methods, but he describes a way to find out which method the controller/keyboard supports. It boils down to "just do it and see if it sticks", i.e. set the bit and read it afterward to see whether the controller accepts it. (PCVT could do that, too... (hint :) |I suspect earlier Thinkpads to support only one of both methods |(though i'm not sure which), while later ones might have dropped both. Hmmm...so my Thinkpad modified itself between fbsd 2.0 and 2.1 ? :-) I've had fbsd 2.0+pcvt+xfree running, so i'm surprised it no longer works with fbsd 2.1... By the way, something that might cause problems with ps/2 mice is the PCVT_USEKBDSEC (override security lock inhibit) flag, since that bit (bit 3 in the command byte) is used to enable/disable the mouse on MCA/ps2 machines (again, see the van Gilluwe book). I think there may be other conflicts as well (on MCA/ps2 systems, there also is a bit that enables/ disables the irq 12 for example). Note that this is all from the top of my head, don't have the book at hand to check it. Gert-Jan --------------------------------------------------------------------------- J.G. Vons, Oce engineering Creteil, France | E-mail: Gert-Jan.Vons@ocegr.fr