acpi-hotkey.txt 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. driver/acpi/hotkey.c implement:
  2. 1. /proc/acpi/hotkey/event_config
  3. (event based hotkey or event config interface):
  4. a. add a event based hotkey(event) :
  5. echo "0:bus::action:method:num:num" > event_config
  6. b. delete a event based hotkey(event):
  7. echo "1:::::num:num" > event_config
  8. c. modify a event based hotkey(event):
  9. echo "2:bus::action:method:num:num" > event_config
  10. 2. /proc/acpi/hotkey/poll_config
  11. (polling based hotkey or event config interface):
  12. a.add a polling based hotkey(event) :
  13. echo "0:bus:method:action:method:num" > poll_config
  14. this adding command will create a proc file
  15. /proc/acpi/hotkey/method, which is used to get
  16. result of polling.
  17. b.delete a polling based hotkey(event):
  18. echo "1:::::num" > event_config
  19. c.modify a polling based hotkey(event):
  20. echo "2:bus:method:action:method:num" > poll_config
  21. 3./proc/acpi/hotkey/action
  22. (interface to call aml method associated with a
  23. specific hotkey(event))
  24. echo "event_num:event_type:event_argument" >
  25. /proc/acpi/hotkey/action.
  26. The result of the execution of this aml method is
  27. attached to /proc/acpi/hotkey/poll_method, which is dynamically
  28. created. Please use command "cat /proc/acpi/hotkey/polling_method"
  29. to retrieve it.
  30. Note: Use cmdline "acpi_generic_hotkey" to over-ride
  31. platform-specific with generic driver.