From: Markus S. <msv...@ae...> - 2010-10-19 23:26:52
|
Hello, I just found a nice solution to the WiFi issue. 1. Build a custom Overo Linux kernel with the rfkill module enabled. I followed the instructions on the Gumstix Wiki, here: http://gumstix.net/wiki/index.php?title=Kernel_Reconfiguration In your kernel defconfig file, you should have these lines if rfkill is enabled: CONFIG_RFKILL=y CONFIG_RFKILL_LEDS=y CONFIG_RFKILL_INPUT=y 2. Now you can enable and disable the WiFi transmitter like this: To disable: echo 0 > /sys/devices/virtual/ieee80211/phy0/rfkill0/state To enable: echo 1 > /sys/devices/virtual/ieee80211/phy0/rfkill0/state I could not find a way to use rfkill to enable/disable Bluetooth, however. Does anyone know if this is possible? Also, there seems to be no "rfkill" package available for the Gumstix, so it's not possible to use the handy "rfkill" command line tool. The Angstrom Linux package browser shows that it does exist, however. Best regards, Markus. On 10-10-13 03:29 AM, Markus Svilans wrote: > Dear gumstix-users, > > I would like to learn how to enable and disable WiFi and Bluetooth on > the Overo Air/Fire on the fly, while the system is running. > > This is for a project, where due to regulations, one of WiFi or > Bluetooth can be used, but not both at the same time. I want to provide > the ability for the user to toggle which wireless capability is enabled. > > After searching around a bit, I found the following thread: > http://old.nabble.com/Overo-Air-bluetooth-and-wifi-power-td28775963.html > > I tried "echo 0> /sys/class/gpio/gpio16/value" and it does indeed shut > off the WiFi module. However, sending a "1" does not seem to re-enable > it. The blue LED remains off, and after a few seconds complaints from > libertas begin appearing on the serial console. The WiFi comes back up > on the next reboot. > > What would be a good way to do this? It seems that the GPIO method > relates to hardware only. I have a feeling that the Linux drivers have > to be dealt with as well, but I don't know where to start. > > Many thanks in advance, > Markus. > > > > ------------------------------------------------------------------------------ > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2& L3. > Spend less time writing and rewriting code and more time creating great > experiences on the web. Be a part of the beta today. > http://p.sf.net/sfu/beautyoftheweb > _______________________________________________ > gumstix-users mailing list > gum...@li... > https://lists.sourceforge.net/lists/listinfo/gumstix-users |