aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>2007-07-18 22:45:33 -0400
committerLen Brown <len.brown@intel.com>2007-07-21 23:38:23 -0400
commitd54b7d7f8026300c612dd733d501fcbc22fd0370 (patch)
treeb0c31839196d25938bdb02b8b090c6f5673ec03c
parent94b08713186cc47a5c367a866cc0a0a762721455 (diff)
ACPI: thinkpad-acpi: update CMOS commands documentation
The CMOS set of commands is often just used to keep the CMOS NVRAM in sync with whatever the ACPI BIOS has been doing in modern ThinkPads. In older ThinkPads, it actually carried out real actions. Document this. Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br> Signed-off-by: Len Brown <len.brown@intel.com>
-rw-r--r--Documentation/thinkpad-acpi.txt35
1 files changed, 21 insertions, 14 deletions
diff --git a/Documentation/thinkpad-acpi.txt b/Documentation/thinkpad-acpi.txt
index 7a06a27ee37b..bd00d14538c6 100644
--- a/Documentation/thinkpad-acpi.txt
+++ b/Documentation/thinkpad-acpi.txt
@@ -464,27 +464,34 @@ CMOS control
464procfs: /proc/acpi/ibm/cmos 464procfs: /proc/acpi/ibm/cmos
465sysfs device attribute: cmos_command 465sysfs device attribute: cmos_command
466 466
467This feature is used internally by the ACPI firmware to control the 467This feature is mostly used internally by the ACPI firmware to keep the legacy
468ThinkLight on most newer ThinkPad models. It may also control LCD 468CMOS NVRAM bits in sync with the current machine state, and to record this
469brightness, sounds volume and more, but only on some models. 469state so that the ThinkPad will retain such settings across reboots.
470
471Some of these commands actually perform actions in some ThinkPad models, but
472this is expected to disappear more and more in newer models. As an example, in
473a T43 and in a X40, commands 12 and 13 still control the ThinkLight state for
474real, but commands 0 to 2 don't control the mixer anymore (they have been
475phased out) and just update the NVRAM.
470 476
471The range of valid cmos command numbers is 0 to 21, but not all have an 477The range of valid cmos command numbers is 0 to 21, but not all have an
472effect and the behavior varies from model to model. Here is the behavior 478effect and the behavior varies from model to model. Here is the behavior
473on the X40 (tpb is the ThinkPad Buttons utility): 479on the X40 (tpb is the ThinkPad Buttons utility):
474 480
475 0 - no effect but tpb reports "Volume down" 481 0 - Related to "Volume down" key press
476 1 - no effect but tpb reports "Volume up" 482 1 - Related to "Volume up" key press
477 2 - no effect but tpb reports "Mute on" 483 2 - Related to "Mute on" key press
478 3 - simulate pressing the "Access IBM" button 484 3 - Related to "Access IBM" key press
479 4 - LCD brightness up 485 4 - Related to "LCD brightness up" key pess
480 5 - LCD brightness down 486 5 - Related to "LCD brightness down" key press
481 11 - toggle screen expansion 487 11 - Related to "toggle screen expansion" key press/function
482 12 - ThinkLight on 488 12 - Related to "ThinkLight on"
483 13 - ThinkLight off 489 13 - Related to "ThinkLight off"
484 14 - no effect but tpb reports ThinkLight status change 490 14 - Related to "ThinkLight" key press (toggle thinklight)
485 491
486The cmos command interface is prone to firmware split-brain problems, as 492The cmos command interface is prone to firmware split-brain problems, as
487in newer ThinkPads it is just a compatibility layer. 493in newer ThinkPads it is just a compatibility layer. Do not use it, it is
494exported just as a debug tool.
488 495
489LED control -- /proc/acpi/ibm/led 496LED control -- /proc/acpi/ibm/led
490--------------------------------- 497---------------------------------