From owner-freebsd-questions@FreeBSD.ORG Sun Mar 20 11:13:39 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 341FC1065670 for ; Sun, 20 Mar 2011 11:13:39 +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 EBD478FC13 for ; Sun, 20 Mar 2011 11:13:38 +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 4AD5A1D923; Sun, 20 Mar 2011 12:13:37 +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 p2KBDamY001818; Sun, 20 Mar 2011 12:13:36 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Sun, 20 Mar 2011 12:13:36 +0100 From: Polytropon To: David Demelier Message-Id: <20110320121336.837fadc9.freebsd@edvax.de> In-Reply-To: <4D85C107.9060704@gmail.com> References: <4D85C107.9060704@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: Sun, 20 Mar 2011 11:13:39 -0000 On Sun, 20 Mar 2011 09:55:35 +0100, David Demelier wrote: > Hello, > > I just realized that I can't use my USB keyboard if I start FreeBSD in > single user mode. The keyboard is still detected but I can't use it. > > It works with the loader of course. I don't know if it's related to devd > and if it's running. > > I also have USB legacy enabled in the BIOS settings. Do you have kbdmux in your kernel? If you don't have it, switching to "the other" keyboard is needed to be issued from the AT keyboard (if present), using the kbdcontrol program. Kernel configuration should contain: options KBD_INSTALL_CDEV # install a CDEV entry in /dev # atkbdc0 controls both the keyboard and the PS/2 mouse device kbdmux # keyboard multiplexer device atkbdc # AT keyboard controller device atkbd # AT keyboard options ATKBD_DFLT_KEYMAP makeoptions ATKBD_DFLT_KEYMAP=german.iso # USB support stuff here... device ukbd # Keyboard options UKBD_DFLT_KEYMAP makeoptions UKBD_DFLT_KEYMAP=german.iso If I remember correctly, most of the important lines are part of the GENERIC kernel configuration. On my system, I can't use the USB keyboard in CMOS setup or at the loader, but it works as soon as the kernel has finished loading, so when the boot process has enabled the single user mode, the USB keyboard is usable. For loader-related things, I still have to keep a PS/2 AT keyboard handy. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...