From owner-freebsd-questions@FreeBSD.ORG Mon Mar 21 11:11:36 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4A1EB1065675 for ; Mon, 21 Mar 2011 11:11:36 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id 0E3978FC12 for ; Mon, 21 Mar 2011 11:11:35 +0000 (UTC) Received: from r55.edvax.de (port-92-195-86-215.dynamic.qsc.de [92.195.86.215]) by mx02.qsc.de (Postfix) with ESMTP id 0B7F41E42C; Mon, 21 Mar 2011 12:11:34 +0100 (CET) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id p2LBBYWi001699; Mon, 21 Mar 2011 12:11:34 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Mon, 21 Mar 2011 12:11:34 +0100 From: Polytropon To: David Demelier Message-Id: <20110321121134.b2e3011c.freebsd@edvax.de> In-Reply-To: <4D872C32.6090300@gmail.com> References: <4D85C107.9060704@gmail.com> <20110320121336.837fadc9.freebsd@edvax.de> <4D86F7C7.90008@gmail.com> <86tyewztrn.fsf@gmail.com> <4D872C32.6090300@gmail.com> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: devd started with single-user mode? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Mar 2011 11:11:36 -0000 On Mon, 21 Mar 2011 11:45:06 +0100, David Demelier wrote: > By the way why is kbdmux needed for an usb keyboard? Should not be > managed by ukbd only? > > I don't understand .. But thanks for the patch. Basically, the kbdmux option "wires keyboards in parallel", so you can use both keyboards (assume they are physically present) at the same time, like "one keyboard for each hand". If this option was not present, you would have to use "kbdcontrol -k" to switch from one keyboard (the currently active one) to the other (not usable). Problems may occur if your mainboard does provide an AT style keyboard (usually with PS/2 connector) as atkbdc0 and adkbd0 (controller and keyboard) even if there is no physical keyboard attached. This would then usually become the primary keyboard. A USB keyboard, detected later on as ukbd0, would not automatically be activated (or switched over to by a "kbdcontrol -k" command issued by devd) and can therefore not be used, even if physically present (in opposite to the "phantom" keyboard atkbd0). The kbdmux option makes _all_ keyboards available for input (without using "kbdcontrol -k" and without dependency of devd) so the USB keyboard will be used, the AT "phantom" keyboard will be ignored (which is good when it's not even present). So basically, kbdmux means "use all of them", while its absence means "use this or that". -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...