diff options
author | Henrique de Moraes Holschuh <hmh@hmh.eng.br> | 2008-04-26 00:02:24 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2008-04-29 09:47:01 -0400 |
commit | e306501d1c4ff610feaba74ac35dd13e470480e6 (patch) | |
tree | 7d259445d984c8a4a69dd59121475deb01c84a6a /Documentation/laptops | |
parent | 4fa6811b8ade1b7839342824939817a8fc751539 (diff) |
ACPI: thinkpad-acpi: add sysfs led class support for thinklight (v3.1)
Add a sysfs led class interface to the thinklight (light subdriver).
Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Cc: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'Documentation/laptops')
-rw-r--r-- | Documentation/laptops/thinkpad-acpi.txt | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/Documentation/laptops/thinkpad-acpi.txt b/Documentation/laptops/thinkpad-acpi.txt index a41bc893f8d6..af1f2bcb6f66 100644 --- a/Documentation/laptops/thinkpad-acpi.txt +++ b/Documentation/laptops/thinkpad-acpi.txt | |||
@@ -693,16 +693,31 @@ while others are still having problems. For more information: | |||
693 | 693 | ||
694 | https://bugs.freedesktop.org/show_bug.cgi?id=2000 | 694 | https://bugs.freedesktop.org/show_bug.cgi?id=2000 |
695 | 695 | ||
696 | ThinkLight control -- /proc/acpi/ibm/light | 696 | ThinkLight control |
697 | ------------------------------------------ | 697 | ------------------ |
698 | |||
699 | procfs: /proc/acpi/ibm/light | ||
700 | sysfs attributes: as per led class, for the "tpacpi::thinklight" led | ||
701 | |||
702 | procfs notes: | ||
698 | 703 | ||
699 | The current status of the ThinkLight can be found in this file. A few | 704 | The ThinkLight status can be read and set through the procfs interface. A |
700 | models which do not make the status available will show it as | 705 | few models which do not make the status available will show the ThinkLight |
701 | "unknown". The available commands are: | 706 | status as "unknown". The available commands are: |
702 | 707 | ||
703 | echo on > /proc/acpi/ibm/light | 708 | echo on > /proc/acpi/ibm/light |
704 | echo off > /proc/acpi/ibm/light | 709 | echo off > /proc/acpi/ibm/light |
705 | 710 | ||
711 | sysfs notes: | ||
712 | |||
713 | The ThinkLight sysfs interface is documented by the led class | ||
714 | documentation, in Documentation/leds-class.txt. The ThinkLight led name | ||
715 | is "tpacpi::thinklight". | ||
716 | |||
717 | Due to limitations in the sysfs led class, if the status of the thinklight | ||
718 | cannot be read or if it is unknown, thinkpad-acpi will report it as "off". | ||
719 | It is impossible to know if the status returned through sysfs is valid. | ||
720 | |||
706 | Docking / undocking -- /proc/acpi/ibm/dock | 721 | Docking / undocking -- /proc/acpi/ibm/dock |
707 | ------------------------------------------ | 722 | ------------------------------------------ |
708 | 723 | ||