[ltp] LEDs on X60
Dmitry E. Mikhailov
linux-thinkpad@linux-thinkpad.org
Wed, 21 May 2008 09:28:51 +0600
AFAIK the WiFi LED is hard-wired to the wireless device (Intel in my case -
X41 2527-67G).
Initially it doesn't work at all. I had to add 'options ipw2200 led=1' to
my /etc/modprobe.conf (Fedora 6, 7, 8)
The bluetooth LED is wired to the bluetooth adapter.
IMHO It would be hard to impossible to control these LEDs.
I think so because these LEDs indicate the state of appropriate device, blink
on traffic etc. If the blinking on traffic is made in software it would
require special driver. But with Linux we can easily say there's no driver
for that. Sniffing WiFi\Bluetooth data coming on the PCI/USB bus is too
complicated for thinkpad's embedded controller. That means the LED is
controlled directly by hardware.
IMHO You *may* find a way to control the WiFi LED by messing with ipw2200
driver (in case of Intel radio). But I doubt you can do this with the
bluetooth LED. Bluetooth driver know nothing about it.
You could be lucky if the signals from WiFi and bluetooth part come to
embedded controller and only then - to the LEDs.
Best regards, Dmitry
> I was asked to forward this to the list ...
>
> Hi all,
> I would like to control all the LEDs on my Thinkpad x60. I know that
> the power, battery, onoff and standby LEDs can be controlled by
> using the /proc/acpi/ibm/led but I have no idea how to change the
> hd, numlock, capslock, wlan and bluetooth ones. I checked some
> source code of wlan drivers and screen keyboards to understand how
> to do what i want, but i only got to the point, that some are based
> on the xserver, using cryptic xgtkds_kdai() functions that i find
> hard to understand.
>
> To sum it up, I would like to code a kernel module that adds
> /proc/acpi/ibm/allleds to the proc-filesystem to have free access to
> all the lights Is there anyone here who is familiar with the other
> nasty LEDS?
>
> Thanks so much
> Rainer