From owner-freebsd-current@FreeBSD.ORG Wed Mar 1 02:19:28 2006 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 AD0F216A422 for ; Wed, 1 Mar 2006 02:19:28 +0000 (GMT) (envelope-from noackjr@alumni.rice.edu) Received: from smtp106.biz.mail.re2.yahoo.com (smtp106.biz.mail.re2.yahoo.com [206.190.52.175]) by mx1.FreeBSD.org (Postfix) with SMTP id 18E6943D49 for ; Wed, 1 Mar 2006 02:19:27 +0000 (GMT) (envelope-from noackjr@alumni.rice.edu) Received: (qmail 78207 invoked from network); 1 Mar 2006 02:19:27 -0000 Received: from unknown (HELO optimator.noacks.org) (noackjr@supercrime.org@24.99.22.177 with login) by smtp106.biz.mail.re2.yahoo.com with SMTP; 1 Mar 2006 02:19:27 -0000 Received: from localhost (localhost [127.0.0.1]) by optimator.noacks.org (Postfix) with ESMTP id AEEEC6129; Tue, 28 Feb 2006 21:19:26 -0500 (EST) Received: from optimator.noacks.org ([127.0.0.1]) by localhost (optimator.noacks.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 11361-04-2; Tue, 28 Feb 2006 21:19:25 -0500 (EST) Received: from compgeek.noacks.org (compgeek [192.168.1.10]) by optimator.noacks.org (Postfix) with ESMTP id A4BF160F4; Tue, 28 Feb 2006 21:19:25 -0500 (EST) Received: from [127.0.0.1] (localhost [127.0.0.1]) by compgeek.noacks.org (8.13.4/8.13.4) with ESMTP id k212JPwx000872; Tue, 28 Feb 2006 21:19:25 -0500 (EST) (envelope-from noackjr@alumni.rice.edu) Message-ID: <440504A5.2080805@alumni.rice.edu> Date: Tue, 28 Feb 2006 21:19:17 -0500 From: Jonathan Noack User-Agent: Thunderbird 1.5 (X11/20060221) MIME-Version: 1.0 To: Maksim Yevmenkin References: <44034160.8060905@savvis.net> <44042885.6040604@alumni.rice.edu> <4404EAFF.1010007@savvis.net> In-Reply-To: <4404EAFF.1010007@savvis.net> X-Enigmail-Version: 0.94.0.0 OpenPGP: id=991D8195; url=http://www.noacks.org/cert/noackjr.asc Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig92B8EE135D5E4BE2B26A1760" X-Virus-Scanned: amavisd-new at noacks.org Cc: freebsd-current@freebsd.org Subject: Re: [PATCH] upcoming kbdmux(4) integration X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: noackjr@alumni.rice.edu List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Mar 2006 02:19:28 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig92B8EE135D5E4BE2B26A1760 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable On 02/28/06 19:29, Maksim Yevmenkin wrote: > Jonathan Noack wrote: >> On 02/27/06 13:13, Maksim Yevmenkin wrote: >> >>> the bug, causing hard lockup with kbdmux(4), atkbd(4) and psm(4), was= >>> fixed in both releng_6 and head. >>> >>> i'd like to go ahead and integrate kbdmux(4) with the kbd code and >>> syscons(4). also i'd like to make kbdmux(4) default in -current. >> >> I'm sure I'm missing something simple, but I can't figure out how to >> configure this. I have a ps/2 keyboard (atkbd0/kbd0), kbdmux >> (kbdmux0/kbd1), and a usb keyboard (ukbd0/kbd2). I tried to follow th= e >> examples in kbdcontrol but kept running into "unable to (un)mux the >> keyboard: Invalid argument" and "device busy" errors. >=20 > with the patch, committed to -current today, everything will happen > automatically. >=20 > without the patch >=20 > # kbdcontrol -a ukbd0 < /dev/kbdmux0 -- add ukbd0 to mux >=20 > # kbdcontrol -k /dev/kbdmux0 < /dev/ttyv0 -- switch keyboard to kbdmux/= ukbd >=20 > # kbdcontrol -a atkbd0 < /dev/ttyv0 -- add atkbd0 to kbdmux ukbd0 is my default keyboard after boot, so I needed to add atkbd0 first. Here's the script I came up with (it's rather "dumb" but it satisfies my needs): #!/bin/sh # Activate all keyboards kbdcontrol -a atkbd0 < /dev/kbdmux0 kbdcontrol -k /dev/kbdmux0 < /dev/ttyv0 cd /dev for kb in atkbd[1-9]* ukbd[0-9]*; do if [ -c ${kb} ]; then kbdcontrol -a ${kb} < /dev/ttyv0 fi done Thanks for helping and for your great work! -Jonathan --=20 Jonathan Noack | noackjr@alumni.rice.edu | OpenPGP: 0x991D8195 --------------enig92B8EE135D5E4BE2B26A1760 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.1 (FreeBSD) iD8DBQFEBQSsUFz01pkdgZURAvsLAKCP0+9t64+d4E5dZYHFJ5OO1uFUUwCgq/tI BM3s3j2FmbVVo4jw6ZVMqOk= =/Jem -----END PGP SIGNATURE----- --------------enig92B8EE135D5E4BE2B26A1760--