diff options
author | Henrique de Moraes Holschuh <hmh@hmh.eng.br> | 2007-04-27 21:00:16 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2007-04-28 21:41:20 -0400 |
commit | a0416420e2c6244792d6f308183ad57c40532078 (patch) | |
tree | dcd0600b74f3e4a120843d2f6cd7f6faa4e64ec0 /Documentation/thinkpad-acpi.txt | |
parent | d94a7f16cad7700f8d2b142cc13cfba5387af3db (diff) |
ACPI: thinkpad-acpi: add sysfs support to hotkey subdriver
Add the hotkey sysfs support.
Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'Documentation/thinkpad-acpi.txt')
-rw-r--r-- | Documentation/thinkpad-acpi.txt | 58 |
1 files changed, 47 insertions, 11 deletions
diff --git a/Documentation/thinkpad-acpi.txt b/Documentation/thinkpad-acpi.txt index e3ad7a4f7402..ebeed589f6d7 100644 --- a/Documentation/thinkpad-acpi.txt +++ b/Documentation/thinkpad-acpi.txt | |||
@@ -134,8 +134,11 @@ end of this document. Changes to the sysfs interface done by the kernel | |||
134 | subsystems are not documented here, nor are they tracked by this | 134 | subsystems are not documented here, nor are they tracked by this |
135 | attribute. | 135 | attribute. |
136 | 136 | ||
137 | Hot keys -- /proc/acpi/ibm/hotkey | 137 | Hot keys |
138 | --------------------------------- | 138 | -------- |
139 | |||
140 | procfs: /proc/acpi/ibm/hotkey | ||
141 | sysfs device attribute: hotkey/* | ||
139 | 142 | ||
140 | Without this driver, only the Fn-F4 key (sleep button) generates an | 143 | Without this driver, only the Fn-F4 key (sleep button) generates an |
141 | ACPI event. With the driver loaded, the hotkey feature enabled and the | 144 | ACPI event. With the driver loaded, the hotkey feature enabled and the |
@@ -149,15 +152,6 @@ All labeled Fn-Fx key combinations generate distinct events. In | |||
149 | addition, the lid microswitch and some docking station buttons may | 152 | addition, the lid microswitch and some docking station buttons may |
150 | also generate such events. | 153 | also generate such events. |
151 | 154 | ||
152 | The following commands can be written to this file: | ||
153 | |||
154 | echo enable > /proc/acpi/ibm/hotkey -- enable the hot keys feature | ||
155 | echo disable > /proc/acpi/ibm/hotkey -- disable the hot keys feature | ||
156 | echo 0xffff > /proc/acpi/ibm/hotkey -- enable all possible hot keys | ||
157 | echo 0x0000 > /proc/acpi/ibm/hotkey -- disable all possible hot keys | ||
158 | ... any other 4-hex-digit mask ... | ||
159 | echo reset > /proc/acpi/ibm/hotkey -- restore the original mask | ||
160 | |||
161 | 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 |
162 | 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 |
163 | can be modified do anything. Not all hot keys can be individually | 157 | can be modified do anything. Not all hot keys can be individually |
@@ -189,6 +183,48 @@ buttons do not generate ACPI events even with this driver. They *can* | |||
189 | be used through the "ThinkPad Buttons" utility, see | 183 | be used through the "ThinkPad Buttons" utility, see |
190 | http://www.nongnu.org/tpb/ | 184 | http://www.nongnu.org/tpb/ |
191 | 185 | ||
186 | procfs notes: | ||
187 | |||
188 | The following commands can be written to the /proc/acpi/ibm/hotkey file: | ||
189 | |||
190 | echo enable > /proc/acpi/ibm/hotkey -- enable the hot keys feature | ||
191 | echo disable > /proc/acpi/ibm/hotkey -- disable the hot keys feature | ||
192 | echo 0xffff > /proc/acpi/ibm/hotkey -- enable all possible hot keys | ||
193 | echo 0x0000 > /proc/acpi/ibm/hotkey -- disable all possible hot keys | ||
194 | ... any other 4-hex-digit mask ... | ||
195 | echo reset > /proc/acpi/ibm/hotkey -- restore the original mask | ||
196 | |||
197 | sysfs notes: | ||
198 | |||
199 | The hot keys attributes are in a hotkey/ subdirectory off the | ||
200 | thinkpad device. | ||
201 | |||
202 | bios_enabled: | ||
203 | Returns the status of the hot keys feature when | ||
204 | thinkpad-acpi was loaded. Upon module unload, the hot | ||
205 | key feature status will be restored to this value. | ||
206 | |||
207 | 0: hot keys were disabled | ||
208 | 1: hot keys were enabled | ||
209 | |||
210 | bios_mask: | ||
211 | Returns the hot keys mask when thinkpad-acpi was loaded. | ||
212 | Upon module unload, the hot keys mask will be restored | ||
213 | to this value. | ||
214 | |||
215 | enable: | ||
216 | Enables/disables the hot keys feature, and reports | ||
217 | current status of the hot keys feature. | ||
218 | |||
219 | 0: disables the hot keys feature / feature disabled | ||
220 | 1: enables the hot keys feature / feature enabled | ||
221 | |||
222 | mask: | ||
223 | bit mask to enable ACPI event generation for each hot | ||
224 | key (see above). Returns the current status of the hot | ||
225 | keys mask, and allows one to modify it. | ||
226 | |||
227 | |||
192 | Bluetooth -- /proc/acpi/ibm/bluetooth | 228 | Bluetooth -- /proc/acpi/ibm/bluetooth |
193 | ------------------------------------- | 229 | ------------------------------------- |
194 | 230 | ||