[ltp] [Patch 3/3] ibm-acpi: LED subsystem integration documentation update.

linux-thinkpad@linux-thinkpad.org linux-thinkpad@linux-thinkpad.org
Thu, 26 Oct 2006 01:54:40 +0200


This patch documents the ibm-acpi LED subsystem integration.

Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
---
Index: linux/Documentation/ibm-acpi.txt
===================================================================
--- linux.orig/Documentation/ibm-acpi.txt	2006-10-26 01:06:17.000000000 +0200
+++ linux/Documentation/ibm-acpi.txt	2006-10-26 01:27:19.000000000 +0200
@@ -190,6 +190,15 @@
 	echo on  > /proc/acpi/ibm/light
 	echo off > /proc/acpi/ibm/light
 
+This feature is now also available within the LED subsystem.
+/sys/class/leds/thinklight
+
+Values greater then 0 turns the led on. 0 turns it off.
+
+Example for to turn on the ThinkLight:
+
+echo 1 > /sys/class/leds/thinklight/brightness
+
 Docking / undocking -- /proc/acpi/ibm/dock
 ------------------------------------------
 
@@ -353,7 +362,8 @@
 	echo '<led number> blink' >/proc/acpi/ibm/led
 
 The <led number> range is 0 to 7. The set of LEDs that can be
-controlled varies from model to model. Here is the mapping on the X40:
+controlled varies from model to model. Here is the mapping on the X40, X60s
+and T40p:
 
 	0 - power
 	1 - battery (orange)
@@ -364,6 +374,21 @@
 
 All of the above can be turned on and off and can be made to blink.
 
+This feature is now also available within the LED subsystem.
+/sys/class/leds/power:green
+/sys/class/leds/battery:amber
+/sys/class/leds/battery:green
+/sys/class/leds/ultrabase:green
+/sys/class/leds/ultrabay:green
+/sys/class/leds/standby:green
+/sys/class/leds/thinklight:white
+
+Values greater then 0 turns the led on. 0 turns it off.
+
+Example for to turn on the standby led:
+
+echo 1 > /sys/class/leds/standby\:green/brightness
+
 ACPI sounds -- /proc/acpi/ibm/beep
 ----------------------------------
 

--