From owner-freebsd-stable@FreeBSD.ORG Mon Jun 27 12:38:56 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2CEBC16A41C for ; Mon, 27 Jun 2005 12:38:56 +0000 (GMT) (envelope-from B.Candler@pobox.com) Received: from orb.pobox.com (orb.pobox.com [207.8.226.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 01D9043D4C for ; Mon, 27 Jun 2005 12:38:55 +0000 (GMT) (envelope-from B.Candler@pobox.com) Received: from orb (localhost [127.0.0.1]) by orb.pobox.com (Postfix) with ESMTP id 201F92207 for ; Mon, 27 Jun 2005 08:38:46 -0400 (EDT) Received: from bloodhound.noc.clara.net (bloodhound.noc.clara.net [195.8.70.207]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by orb.sasl.smtp.pobox.com (Postfix) with ESMTP id 08E5D87 for ; Mon, 27 Jun 2005 08:38:45 -0400 (EDT) From: Brian Candler To: freebsd-stable@freebsd.org Date: Mon, 27 Jun 2005 13:38:53 +0100 User-Agent: KMail/1.8 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200506271338.53836.B.Candler@pobox.com> Subject: atkbd: changing flags at boot time X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Jun 2005 12:38:56 -0000 [This is with FreeBSD 4.11-RELEASE] I would like to arrange that the ATA keyboard works even if the machine is booted without a keyboard, but one is subsequently plugged in. My understanding is that the default behaviour of probing for the keyboard is set here in the kernel configuration: device atkbd0 at atkbdc? irq 1 flags 0x1 ^^^ # `flags' for atkbd: # 0x01 Force detection of keyboard, else we always assume a keyboard So I tried putting hint.atkbd.0.flags="0x00" in /boot/loader.conf, but that didn't make any difference. Looking at sys/dev/kbd/atkbd.c, I see: /* XXX: a kludge to obtain the device configuration flags */ if (resource_int_value("atkbd", ATKBD_DEFAULT, "flags", &i) == 0) flags |= i; Does this mean that it's impossible to clear this flag without recompiling the kernel? If so, is there a reason for this? TIA, Brian.