Return-path: Received: from out1.smtp.messagingengine.com ([66.111.4.25]:32852 "EHLO out1.smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756053AbYLMN3B (ORCPT ); Sat, 13 Dec 2008 08:29:01 -0500 Date: Sat, 13 Dec 2008 11:28:57 -0200 From: Henrique de Moraes Holschuh To: Tony Vroon Cc: Len Brown , Ivo van Doorn , linux-acpi@vger.kernel.org, jwoithe@physics.adelaide.edu.au, Peter Gruber , linux-wireless@vger.kernel.org Subject: Re: Fuijtsu Lifebook RFKILL support Message-ID: <20081213132857.GA11428@khazad-dum.debian.net> (sfid-20081213_142921_503458_ED4963F1) References: <1228957506.4045.11.camel@localhost> <20081211165247.GA4844@khazad-dum.debian.net> <1229016827.6446.6.camel@localhost> <20081211194734.GA18132@khazad-dum.debian.net> <1229046602.4030.13.camel@localhost> <20081212195331.GA12679@khazad-dum.debian.net> <1229172465.4010.11.camel@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <1229172465.4010.11.camel@localhost> Sender: linux-wireless-owner@vger.kernel.org List-ID: On Sat, 13 Dec 2008, Tony Vroon wrote: > > What is the WLAN driver involved? Is it rfkill-aware? > > The driver is iwlagn, which does indeed notice that it is killed. > This information does not reach NetworkManager. Relevant log > entries: Dec 12 00:59:01 amalthea iwlagn: Radio Frequency Kill > Switch is On: Dec 12 00:59:01 amalthea Kill switch must be turned > off for wireless networking to work. Then, it is just a matter of time for it to be working correctly. In fact, it might already be if you use wireless-testing and latest network manager. Best not to mess with it, any workarounds one adds would just get in the way in the future. > [cutting relevant pieces of text together] > > > 1. rfkill actualy is/looks like a hotplug/hotunplug operation > > > 1b. You cannot do it at will > > > Attaching it to the rfkill core simply is not supported > > Okay, both Bluetooth & WWAN are USB devices following this terminology. > So the rfkill framework is not an appropriate tool for this job, > understood. > > Len, I would still like to export the 3 values learned about in this > event to userspace. Is it alright for me to create 3 read-only files on > the platform device? (docked, lid, radios) > It would if anything simplify the code. FWIW, I think this is also the way to go. It is much easier for userspace to deal with sysfs attributes. HAL can deal with more complex stuff, but shell script writers often don't know how to, nor care to, deal with HAL. BTW, this also means that it is helpful to shell script writers if you also export through read-only sysfs attributes the state of any input devices generating EV_SW. The input layer makes it possible to query the switch state easily... through IOCTL after you find out the correct input device(s) to query. Which ain't easy for shell script, and nobody wrote a "inputdev" helper in a proper language that can do it, for shell script writers to call. -- "One disk to rule them all, One disk to find them. One disk to bring them all and in the darkness grind them. In the Land of Redmond where the shadows lie." -- The Silicon Valley Tarot Henrique Holschuh