From owner-freebsd-mobile@FreeBSD.ORG Wed Apr 18 02:01:28 2007 Return-Path: X-Original-To: mobile@freebsd.org Delivered-To: freebsd-mobile@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B945816A407; Wed, 18 Apr 2007 02:01:28 +0000 (UTC) (envelope-from sam@errno.com) Received: from ebb.errno.com (ebb.errno.com [69.12.149.25]) by mx1.freebsd.org (Postfix) with ESMTP id 9282613C4BB; Wed, 18 Apr 2007 02:01:28 +0000 (UTC) (envelope-from sam@errno.com) Received: from [10.0.0.178] ([10.0.0.178]) (authenticated bits=0) by ebb.errno.com (8.13.6/8.12.6) with ESMTP id l3I1dkld043645 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 17 Apr 2007 18:39:47 -0700 (PDT) (envelope-from sam@errno.com) Message-ID: <462576E7.9000106@errno.com> Date: Tue, 17 Apr 2007 18:39:51 -0700 From: Sam Leffler Organization: Errno Consulting User-Agent: Thunderbird 1.5.0.10 (Macintosh/20070221) MIME-Version: 1.0 To: Rong-en Fan References: <6eb82e0704171645n5f7b2ca6h41b41016cdafad24@mail.gmail.com> In-Reply-To: <6eb82e0704171645n5f7b2ca6h41b41016cdafad24@mail.gmail.com> X-Enigmail-Version: 0.94.2.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: acpi@freebsd.org, mobile@freebsd.org Subject: Re: acpi_ibm(4): new radio kill switch (readonly) sysctl X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Apr 2007 02:01:28 -0000 Rong-en Fan wrote: > As pointed out by Henrik Brix Andersen, I adds a sysctl entry > that shows the status of radio kill switch found on some ThinkPad: > > http://people.freebsd.org/~rafan/acpi_ibm_killswitch.diff > > dev.acpi_ibm.0.killswitch = 0 means the switch is off. It seems that > no acpi event will be generated when the value changes (actually, > my x60 does not generate any events when I presses FN+something). > Otherwise, we can hook it in devd.conf and remove wireless driver when > kill switch is on... > > Any comments? If the radio is Atheros-based the kill switch likely generates a GPIO interrupt that the ath driver can catch and use to turn the radio on/off. Sam