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

linux-thinkpad@linux-thinkpad.org linux-thinkpad@linux-thinkpad.org
Mon, 23 Oct 2006 01:42:55 +0200


This patch documents the ibm-acpi LED subsystem integration.

Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
---
Index: linux-2.6.19-rc2/Documentation/ibm-acpi.txt
===================================================================
--- linux-2.6.19-rc2.orig/Documentation/ibm-acpi.txt	2006-10-22 22:01:56.000000000 +0200
+++ linux-2.6.19-rc2/Documentation/ibm-acpi.txt	2006-10-23 00:42:36.000000000 +0200
@@ -222,6 +222,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:white
+
+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\:white/brightness
+
 Docking / undocking -- /proc/acpi/ibm/dock
 ------------------------------------------
 
@@ -385,7 +394,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)
@@ -396,6 +406,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
 ----------------------------------
 

--