[ltp] can we control wireless LED ?

Richard Neill linux-thinkpad@linux-thinkpad.org
Sat, 28 Jul 2007 00:32:51 +0100


Frédéric BOITEUX wrote:
> 	Hello,
> 
>   I've a Thinkpad X31 with an updated pcmcia wifi card (Atheros
> chipset). The card works ok, and I've made a small script to intercept
> ACPI event when I press Fn-F5 to activate or inhibit wifi (I actually
> load/unload ath_pci module, as i didn't found any 'powersave' or 'sleep'
> command in madwifi driver). I would like to light the wireless LED when
> wifi is available : is it possible ? I didn't found a way in
> ThinkWiki...

As root:
  echo X on > /proc/acpi/ibm/led
Where X is the relevant number.

   cat  /proc/acpi/ibm/led
will give more information.

It's also a good way to debug scripts: you can play with beep, and light.

HTH,

Richard