From owner-cvs-all@FreeBSD.ORG Sat Feb 25 22:43:14 2006 Return-Path: X-Original-To: cvs-all@freebsd.org Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F044416A422 for ; Sat, 25 Feb 2006 22:43:14 +0000 (GMT) (envelope-from maksim.yevmenkin@gmail.com) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id 68C6E43D58 for ; Sat, 25 Feb 2006 22:43:13 +0000 (GMT) (envelope-from maksim.yevmenkin@gmail.com) Received: by nproxy.gmail.com with SMTP id o63so381830nfa for ; Sat, 25 Feb 2006 14:43:12 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=MXYiMOqbhklA8bf8b1vW/cyG+wYVypmgM7sIARs3FK9ruoVlVg9CTvkjXF1hpqVYewsDWZ9w6jP9wgbZBidACgshJZA7adhxvtXGaeKmOAZbfM6oAsMmP9r8rxDZXFA1Kv3qSWnKmElkOADHEN47LhJpuQwulIakcxUqn/UYy1Q= Received: by 10.48.238.20 with SMTP id l20mr3250722nfh; Sat, 25 Feb 2006 14:43:12 -0800 (PST) Received: by 10.49.4.2 with HTTP; Sat, 25 Feb 2006 14:43:11 -0800 (PST) Message-ID: Date: Sat, 25 Feb 2006 14:43:11 -0800 From: "Maksim Yevmenkin" To: "Scott Long" In-Reply-To: <4400D478.7060707@samsco.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <200602252159.k1PLxT8G036312@repoman.freebsd.org> <4400D478.7060707@samsco.org> Cc: cvs-src@freebsd.org, src-committers@freebsd.org, cvs-all@freebsd.org Subject: Re: cvs commit: src/sys/dev/kbdmux kbdmux.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Feb 2006 22:43:15 -0000 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 =3D=3D --- ukbd.c.orig Wed Mar 30 00:32:41 2005 +++ ukbd.c Thu Feb 23 17:18:37 2006 @@ -1145,9 +1145,7 @@ state =3D (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); } =3D=3D 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 kerne= l); 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? thanks, max