From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sergey Vlasov Date: Mon, 10 Oct 2005 11:40:31 +0000 Subject: Re: Notebook Hardware Key for Wireless LAN Message-Id: <20051010154031.5de910f4.vsu@altlinux.ru> MIME-Version: 1 Content-Type: multipart/mixed; boundary="Signature=_Mon__10_Oct_2005_15_40_31_+0400_qqXc6h6iWXsAt6zt" List-Id: References: <4344521C.8080302@woletz.de> In-Reply-To: <4344521C.8080302@woletz.de> To: linux-hotplug@vger.kernel.org --Signature=_Mon__10_Oct_2005_15_40_31_+0400_qqXc6h6iWXsAt6zt Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: 7bit On Fri, 07 Oct 2005 19:31:47 +0200 Marcus Woletz wrote: > Greg KH schrieb: > [...] > >>The Button in the notebook case that turns on and off > >>the WLAN interface. In the Samsung X20 it seems that the > >>button turns the interface on and off without interaction > >>with the OS. > > > > Then there's no way that Linux can generate an event based on it. Most > > likely it's just a hardware switch to the network device, my laptop has > > the same thing. > > But the hotplug system is definitly calling the hotplug firmware agent > when the WLAN interface is turned on the first time. And there are some > firmware events generated. So I think that the hotplug system sees that > the interface is switched on. The only problem is that these events are > generated only one time and there's no event when switching off WLAN. For ipw2200 you can try to poll the "rf_kill" attribute in sysfs: /* 0 - RF kill not enabled 1 - SW based RF kill active (sysfs) 2 - HW based RF kill active 3 - Both HW and SW baed RF kill active */ --Signature=_Mon__10_Oct_2005_15_40_31_+0400_qqXc6h6iWXsAt6zt Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFDSlMxW82GfkQfsqIRAn4pAJ9ZR/o3jPlHMbNjyt1nt4FZ7zdbGACgk5XO hCAaS86w4siu7DCBQpFcGKI= =uGVz -----END PGP SIGNATURE----- --Signature=_Mon__10_Oct_2005_15_40_31_+0400_qqXc6h6iWXsAt6zt-- ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel