From owner-freebsd-current Fri Feb 23 13:01:41 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id NAA10238 for current-outgoing; Fri, 23 Feb 1996 13:01:41 -0800 (PST) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id NAA10203 Fri, 23 Feb 1996 13:01:36 -0800 (PST) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id NAA24178; Fri, 23 Feb 1996 13:57:10 -0700 From: Terry Lambert Message-Id: <199602232057.NAA24178@phaeton.artisoft.com> Subject: Re: Keyboard lockout on 2.x.x To: sos@freebsd.org Date: Fri, 23 Feb 1996 13:57:09 -0700 (MST) Cc: bde@zeta.org.au, joerg_wunsch@uriah.heep.sax.de, olah@cs.utwente.nl, freebsd-current@freebsd.org In-Reply-To: <199602231719.SAA00597@DeepCore.dk> from "Søren Schmidt" at Feb 23, 96 06:19:14 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-current@freebsd.org Precedence: bulk > > Time to rewrite the keyboard driver? > > Yep and has been for a looooong time... > > I've started on the project some time ago, but I'm still agueing with > myself how it should be done, also taking the ps/2 mouse into the > picture and making a separate kbd driver out of it (which the > console driver then talks to). > I seem to be stuck on the pro's and con on this, and has sort of > given up on it again :( I'll argue with you about it if you want. 8-). I think the mouse needs to be virtualized so all mice present the same interface to an application program. When the PS/2 mouse is probed to exist (as opposed to just the port being there), it would register with the mouse driver so that requests to /dev/mouse end up reading/writing the PS/2 mouse. Same for a bus mouse. For a serial mouse, you run a program in user space that opens the serial ports with nothing on them; maybe run it in place of getty in /etc/ttys. 8-). If it sees a mouse, it opens /dev/mouse and says "I am a mouse provider", and translates to the generic interface for mouse providers (the same as the interface for mouse consumers, mostly). This lets you add touch pads and other stuff as mouse providers without having to rewrite X or orther apps. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.