diff options
Diffstat (limited to 'Documentation/thinkpad-acpi.txt')
-rw-r--r-- | Documentation/thinkpad-acpi.txt | 41 |
1 files changed, 17 insertions, 24 deletions
diff --git a/Documentation/thinkpad-acpi.txt b/Documentation/thinkpad-acpi.txt index b90d9a7e81b8..2f30db0e0db5 100644 --- a/Documentation/thinkpad-acpi.txt +++ b/Documentation/thinkpad-acpi.txt | |||
@@ -153,29 +153,22 @@ addition, the lid microswitch and some docking station buttons may | |||
153 | also generate such events. | 153 | also generate such events. |
154 | 154 | ||
155 | The bit mask allows some control over which hot keys generate ACPI | 155 | The bit mask allows some control over which hot keys generate ACPI |
156 | events. Not all bits in the mask can be modified. Not all bits that | 156 | events. Not all bits in the mask can be modified. Not all bits that can |
157 | can be modified do anything. Not all hot keys can be individually | 157 | be modified do anything. Not all hot keys can be individually controlled |
158 | controlled by the mask. Most recent ThinkPad models honor the | 158 | by the mask. Some models do not support the mask at all. On those |
159 | following bits (assuming the hot keys feature has been enabled): | 159 | models, hot keys cannot be controlled individually. |
160 | |||
161 | key bit behavior when set behavior when unset | ||
162 | |||
163 | Fn-F3 always generates ACPI event | ||
164 | Fn-F4 always generates ACPI event | ||
165 | Fn-F5 0010 generate ACPI event enable/disable Bluetooth | ||
166 | Fn-F7 0040 generate ACPI event switch LCD and external display | ||
167 | Fn-F8 0080 generate ACPI event expand screen or none | ||
168 | Fn-F9 0100 generate ACPI event none | ||
169 | Fn-F12 always generates ACPI event | ||
170 | |||
171 | Some models do not support all of the above. For example, the T30 does | ||
172 | not support Fn-F5 and Fn-F9. Other models do not support the mask at | ||
173 | all. On those models, hot keys cannot be controlled individually. | ||
174 | 160 | ||
175 | Note that enabling ACPI events for some keys prevents their default | 161 | Note that enabling ACPI events for some keys prevents their default |
176 | behavior. For example, if events for Fn-F5 are enabled, that key will | 162 | behavior. For example, if events for Fn-F5 are enabled, that key will no |
177 | no longer enable/disable Bluetooth by itself. This can still be done | 163 | longer enable/disable Bluetooth by itself. This can still be done from |
178 | from an acpid handler for the ibm/hotkey event. | 164 | an acpid handler for the ibm/hotkey event. |
165 | |||
166 | On some models, even enabling/disabling the entire hot key feature may | ||
167 | change the way some keys behave (e.g. in a T43, Fn+F4 will generate an | ||
168 | button/sleep ACPI event if hot keys are disabled, and it will ignore its | ||
169 | mask when hot keys are enabled, so the key always does something. On a | ||
170 | X40, Fn+F4 respects its mask status, but generates the button/sleep ACPI | ||
171 | event if masked off). | ||
179 | 172 | ||
180 | Note also that not all Fn key combinations are supported through | 173 | Note also that not all Fn key combinations are supported through |
181 | ACPI. For example, on the X40, the brightness, volume and "Access IBM" | 174 | ACPI. For example, on the X40, the brightness, volume and "Access IBM" |
@@ -189,9 +182,9 @@ The following commands can be written to the /proc/acpi/ibm/hotkey file: | |||
189 | 182 | ||
190 | echo enable > /proc/acpi/ibm/hotkey -- enable the hot keys feature | 183 | echo enable > /proc/acpi/ibm/hotkey -- enable the hot keys feature |
191 | echo disable > /proc/acpi/ibm/hotkey -- disable the hot keys feature | 184 | echo disable > /proc/acpi/ibm/hotkey -- disable the hot keys feature |
192 | echo 0xffff > /proc/acpi/ibm/hotkey -- enable all possible hot keys | 185 | echo 0xffffffff > /proc/acpi/ibm/hotkey -- enable all hot keys |
193 | echo 0x0000 > /proc/acpi/ibm/hotkey -- disable all possible hot keys | 186 | echo 0 > /proc/acpi/ibm/hotkey -- disable all possible hot keys |
194 | ... any other 4-hex-digit mask ... | 187 | ... any other 8-hex-digit mask ... |
195 | echo reset > /proc/acpi/ibm/hotkey -- restore the original mask | 188 | echo reset > /proc/acpi/ibm/hotkey -- restore the original mask |
196 | 189 | ||
197 | sysfs notes: | 190 | sysfs notes: |