From owner-freebsd-current@FreeBSD.ORG Tue May 24 01:33:26 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8C62716A41C for ; Tue, 24 May 2005 01:33:26 +0000 (GMT) (envelope-from Alex.Kovalenko@verizon.net) Received: from vms048pub.verizon.net (vms048pub.verizon.net [206.46.252.48]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4ACD643D1F for ; Tue, 24 May 2005 01:33:26 +0000 (GMT) (envelope-from Alex.Kovalenko@verizon.net) Received: from RabbitsDen ([70.21.190.81]) by vms048.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0IGZ00BSM0BP3GX6@vms048.mailsrvcs.net> for freebsd-current@freebsd.org; Mon, 23 May 2005 20:33:25 -0500 (CDT) Date: Mon, 23 May 2005 21:31:15 -0400 From: "Alexandre \"Sunny\" Kovalenko" In-reply-to: <42925B36.9090400@savvis.net> To: Maksim Yevmenkin Message-id: <1116898275.701.9.camel@RabbitsDen> MIME-version: 1.0 X-Mailer: Evolution 2.2.2 FreeBSD GNOME Team Port Content-type: text/plain; charset=iso-8859-5 Content-transfer-encoding: 8BIT References: <4288EBEA.5030701@savvis.net> <428A5A58.6010601@savvis.net> <428B7B99.7080206@savvis.net> <428E7BAF.200@savvis.net> <1116788908.824.23.camel@RabbitsDen> <429211C9.4000903@savvis.net> <1116885956.3386.10.camel@RabbitsDen> <42925B36.9090400@savvis.net> Cc: freebsd-current@freebsd.org Subject: Re: keyboard mux driver (straw man proposal & code) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 May 2005 01:33:26 -0000 On Mon, 2005-05-23 at 15:37 -0700, Maksim Yevmenkin wrote: > Alexandre, > > >>> -- "Num lock" would switch keypad into numeric mode, but leave > >>> main keyboard alone (as it is the case with laptop keyboards it > >>> has sprinkling of numerals on the right side overlapping > >>> letters). > >> > >> again "num lock" on keypad or main keyboard? > > > > "Num lock" on the main keyboard (keypad does not have one) switches > > *keypad* into numeric mode leaving main keyboard in alpha -- main > > keyboard does not really have a numeric part -- it overlaps some of > > the alpha keys. > > this is actually correct (i think). because slave keyboards are set to > K_RAW mode, kbdmux will get raw scancodes, not characters. the (good or > bad?) side effect of this is that kbdmux will act as if it was one huge > keyboard with lots of duplicated keys :) that is you should be able to > press "ctrl" on one keyboard and "c" on another keyboard but it will > still look like you pressed ctrl+c on the same keyboard :) > > the keypad is probably programmed to send the same scancodes as normal > 101/102-keys keyboard would. that is for the group of keys on the right > side (numeric keypad typically found under the keyboard lights). as in > 101/102-keys keyboard case hitting numlock will only switch this group > of keys between numbers/arrows. Well, in the case of the keypad, it, probably is desired behavior... I mean the fact that only keypad is switched into numeric mode and laptop's keyboard is not. Whether it is "right" in more general sense, I don't know. Probably not, because it takes away functionality available to the user before introduction of the mux. > is this the keypad you currently have? > > http://www.walmart.com/catalog/product.gsp?product_id=3380773&sourceid=11790802501271934686 Looks like it -- I would not recommend it for normal use, but it certainly is good for experimenting. -- Alexandre "Sunny" Kovalenko (Олександр Коваленко)