From owner-freebsd-questions@FreeBSD.ORG Mon Mar 21 07:02:46 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 2D989106566B for ; Mon, 21 Mar 2011 07:02:46 +0000 (UTC) (envelope-from demelier.david@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id AA8048FC1A for ; Mon, 21 Mar 2011 07:02:45 +0000 (UTC) Received: by bwz12 with SMTP id 12so5438031bwz.13 for ; Mon, 21 Mar 2011 00:02:44 -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=S5uNPIgSAaaKowTKZDMn4kAVvMVF/W8rGK6qodSpm7s=; b=UMCNrH4V4aDBABnrd/sY0Emx09rhpey8kd809BUGLwaV1xpLKoCAOWwKB0byHziPut RXfa4si9UHAB8UnTytW7PzkhkXo1xYwrhWxb6o6vss5GLBHkjyqG7SPX30UKTb+Q9hHU NWZse8ZdC3GnCtdqcpsfiomrCHsw1+Xi3y5Dw= 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=n+yalGRPsiqe3TJrRq9Y/QC19OYBLR19e3nF5f3jV74CcBRPzBfPZKZrcpqnq3qS+d Tf9aoEfe8EJ5BAGVlKL6KJGS9imcYIcXulrHSm5C32JBJv4GCk9FEEOYvsYK3b3vPlwh epYbyAOykL/I4ASSo/KnOWaVtSDakXfSHW5Xo= Received: by 10.204.170.193 with SMTP id e1mr3323500bkz.136.1300690964437; Mon, 21 Mar 2011 00:02:44 -0700 (PDT) Received: from Melon.malikania.fr (wifi-osiris-sec-180-195.u-strasbg.fr [130.79.180.195]) by mx.google.com with ESMTPS id v21sm350209bkt.23.2011.03.21.00.02.42 (version=SSLv3 cipher=OTHER); Mon, 21 Mar 2011 00:02:43 -0700 (PDT) Message-ID: <4D86F7C7.90008@gmail.com> Date: Mon, 21 Mar 2011 08:01:27 +0100 From: David Demelier User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.15) Gecko/20110306 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: Mon, 21 Mar 2011 07:02:46 -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. > > The problem when you're using directly kbdmux in the kernel config, the ATKBD_DFLT_KEYMAP and UKBD_DFLT_KEYMAP are ineffective, you can't set these both together ... For me I added these both to use uk.iso but in single user mode I still have the standard us layout. Cheers, -- David Demelier