From owner-freebsd-mobile@FreeBSD.ORG Wed Apr 18 03:55:46 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 B42D816A473 for ; Wed, 18 Apr 2007 03:55:46 +0000 (UTC) (envelope-from grafan@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.171]) by mx1.freebsd.org (Postfix) with ESMTP id 06BF913C48A for ; Wed, 18 Apr 2007 03:55:43 +0000 (UTC) (envelope-from grafan@gmail.com) Received: by ug-out-1314.google.com with SMTP id 71so272958ugh for ; Tue, 17 Apr 2007 20:55:42 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=IST5yD0sLyy0xEKho7UTee6uf8y+fi+UoURql94jIBz7910lXAbQbMwZj6VRMFQXCUVAPhV+8cqEehRW3zfM0AIxTmklqaGHQOYUS/SEdCf75YYNR7FnY7zX+sa0nQiwoO1ylGe43gkJgRXOY5upc93xel9tTqPkCg+wAcv17IY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Zf5QLSOML031dVrgMCNLGDiNP1E+wBCLtkPAY32ldLyCJUduLJ+8vxwNxAMRYRHoRknhQ1YbWaatGLOyOxUaZzTB38uYaQ4g1fGkv8vzFG77Uifi/l4trJcHFpbf8KvUO9L2DW32JnLAF98O3Cz8As3CT5+Xgvtcs0meRkRi+QA= Received: by 10.82.173.19 with SMTP id v19mr45738bue.1176868542713; Tue, 17 Apr 2007 20:55:42 -0700 (PDT) Received: by 10.82.106.12 with HTTP; Tue, 17 Apr 2007 20:55:42 -0700 (PDT) Message-ID: <6eb82e0704172055l5bddca81t5b7e9e45a297a839@mail.gmail.com> Date: Wed, 18 Apr 2007 11:55:42 +0800 From: "Rong-en Fan" To: acpi@freebsd.org, mobile@freebsd.org In-Reply-To: <4625601C.9000201@root.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <6eb82e0704171645n5f7b2ca6h41b41016cdafad24@mail.gmail.com> <4625601C.9000201@root.org> Cc: Nate Lawson 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 03:55:46 -0000 On 4/18/07, Nate Lawson wrote: > 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? > > Seems fine to me. But as to the name of the sysctl -- it should be more > logical. How about renaming it to dev.acpi_ibm.0.radio_enable and when > 1, the radio is enabled? Even if you have to invert the logic of the > ACPI method, it would make more sense to users. They don't need to know > what's going on under the hood. Good idea. I updated the patch: http://people.freebsd.org/~rafan/acpi_ibm_radio_switch.diff If you have ThinkPad other than X60, please help test this. Thanks, Rong-En Fan > > -- > Nate >