From owner-cvs-src@FreeBSD.ORG Wed Mar 1 22:32:42 2006 Return-Path: X-Original-To: cvs-src@freebsd.org Delivered-To: cvs-src@freebsd.org Received: from green.homeunix.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 3575A16A422; Wed, 1 Mar 2006 22:32:42 +0000 (GMT) (envelope-from green@green.homeunix.org) Received: from green.homeunix.org (green@localhost [127.0.0.1]) by green.homeunix.org (8.13.4/8.13.1) with ESMTP id k21MWflc048533; Wed, 1 Mar 2006 17:32:41 -0500 (EST) (envelope-from green@green.homeunix.org) Received: (from green@localhost) by green.homeunix.org (8.13.4/8.13.1/Submit) id k21MWbq6048532; Wed, 1 Mar 2006 17:32:37 -0500 (EST) (envelope-from green) Date: Wed, 1 Mar 2006 17:32:37 -0500 From: Brian Fundakowski Feldman To: Maksim Yevmenkin Message-ID: <20060301223237.GE59522@green.homeunix.org> References: <200602252159.k1PLxT8G036312@repoman.freebsd.org> <4400D478.7060707@samsco.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.11 Cc: cvs-src@freebsd.org, Scott Long , src-committers@freebsd.org, cvs-all@freebsd.org Subject: Re: cvs commit: src/sys/dev/kbdmux kbdmux.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Mar 2006 22:32:42 -0000 On Sat, Feb 25, 2006 at 02:43:11PM -0800, Maksim Yevmenkin wrote: > Scott, > > [...] > > > So what do we need to do to get this enabled and running by default and > > get rid of the USB keyboard hack in the loader, as well as make the > > keyboard flags sane and predictable? > > few things, imo > > 1) i'm pretty sure i want to get the following ukbd(4) patch in > > == > > --- ukbd.c.orig Wed Mar 30 00:32:41 2005 > +++ ukbd.c Thu Feb 23 17:18:37 2006 > @@ -1145,9 +1145,7 @@ > state = (ukbd_state_t *)kbd->kb_data; > if (!(state->ks_flags & COMPOSE) && (state->ks_composed_char > 0)) > return TRUE; > - if (state->ks_inputs > 0) > - return TRUE; > - return FALSE; > + return ukbd_check(kbd); > } > > == > > however, i'd like to give people a chance to comment on this > > 2) integrate remained parts of the following patch > > http://people.freebsd.org/~emax/kbdmux.diff.txt > > (freefall:~emax/kbdmux.diff.txt) > > the idea was that new keyboard will be attached to the kbdmux(4) > automatically (if present). syscons(4) would first look for kbdmux(4) > keyboard and then (if kbdmux(4) keyboard was not found) for any > keyboard. if syscons(4) finds kbdmux(4) keyboard it will automatically > attach all non-busy keyboards to the kbdmux(4). > > one can use kbdmux(4) by simply > > a) loading kbdmux(4) from the loader prompt (or compiling it into the kernel); > > b) kldload'ing kbdmux(4) and then releasing active keyboard; > > if, for whatever reason, one does not want to use kbdmux(4) then just > do not load it and everything should be as it is right now. > > 3) remove ukbd(4) entries from /etc/devd.conf > > i think this should do it. any comments? That sounds really good! -- Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\ <> green@FreeBSD.org \ The Power to Serve! \ Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\