From owner-freebsd-questions@FreeBSD.ORG Sun Mar 20 11:34:41 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 3AAE9106566B for ; Sun, 20 Mar 2011 11:34:41 +0000 (UTC) (envelope-from demelier.david@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id BDAFF8FC14 for ; Sun, 20 Mar 2011 11:34:40 +0000 (UTC) Received: by fxm11 with SMTP id 11so5629926fxm.13 for ; Sun, 20 Mar 2011 04:34:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=ozQsbSZdqv79RfPvd0BbsBCbv11fms0kYakUlOzVVaQ=; b=Cr8yT7zQ0f23hk8D2a+jSidEKLZ5T3RVvMDU2kUo+EmaCZeZcNZp+KngniKmPIICm8 JVnQx7M7H4G3o1JrnjzlgxBU52qXLLzOXN1i49+NkzKFfW0zOrtEUGR82GykP0dtV/PY jSeewTtI4QQFBVI7coLAeGxilndCJo2HcsDrs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=prMJyfG+u0JMvs0k47U2SS0H7pOsw1L88IbAZPTARhbXwjNmHWKcioTCMn7i/ehmx0 4slqaoLvW7X6cQh5SwGaNfk7asL7abyFT8ZE4KJTmyylsUzPGeEMTTEp8AIcAffl88FJ 9WvTTBq57LRqDSKYnkDima7d84j1s6UgtqEBc= Received: by 10.223.127.210 with SMTP id h18mr3515805fas.46.1300620879738; Sun, 20 Mar 2011 04:34:39 -0700 (PDT) Received: from Groseille.malikania.fr (65.21.102-84.rev.gaoland.net [84.102.21.65]) by mx.google.com with ESMTPS id l4sm464349fan.38.2011.03.20.04.34.38 (version=SSLv3 cipher=OTHER); Sun, 20 Mar 2011 04:34:38 -0700 (PDT) Message-ID: <4D85E65E.2020205@gmail.com> Date: Sun, 20 Mar 2011 12:34:54 +0100 From: David Demelier User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.15) Gecko/20110320 Thunderbird/3.1.9 MIME-Version: 1.0 To: Polytropon References: <4D85C107.9060704@gmail.com> <20110320121336.837fadc9.freebsd@edvax.de> In-Reply-To: <20110320121336.837fadc9.freebsd@edvax.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed 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 List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Mar 2011 11:34:41 -0000 On 20/03/2011 12:13, Polytropon wrote: > 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. > > Oh yes I have kbdmux but as module only since the /etc/rc.d/bthidd wanted to load it itself. I added as device instead of modules. Thanks! -- David Demelier