sysfs-class-rc 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. What: /sys/class/rc/
  2. Date: Apr 2010
  3. KernelVersion: 2.6.35
  4. Contact: Mauro Carvalho Chehab <m.chehab@samsung.com>
  5. Description:
  6. The rc/ class sub-directory belongs to the Remote Controller
  7. core and provides a sysfs interface for configuring infrared
  8. remote controller receivers.
  9. What: /sys/class/rc/rcN/
  10. Date: Apr 2010
  11. KernelVersion: 2.6.35
  12. Contact: Mauro Carvalho Chehab <m.chehab@samsung.com>
  13. Description:
  14. A /sys/class/rc/rcN directory is created for each remote
  15. control receiver device where N is the number of the receiver.
  16. What: /sys/class/rc/rcN/protocols
  17. Date: Jun 2010
  18. KernelVersion: 2.6.36
  19. Contact: Mauro Carvalho Chehab <m.chehab@samsung.com>
  20. Description:
  21. Reading this file returns a list of available protocols,
  22. something like:
  23. "rc5 [rc6] nec jvc [sony]"
  24. Enabled protocols are shown in [] brackets.
  25. Writing "+proto" will add a protocol to the list of enabled
  26. protocols.
  27. Writing "-proto" will remove a protocol from the list of enabled
  28. protocols.
  29. Writing "proto" will enable only "proto".
  30. Writing "none" will disable all protocols.
  31. Write fails with EINVAL if an invalid protocol combination or
  32. unknown protocol name is used.
  33. What: /sys/class/rc/rcN/filter
  34. Date: Jan 2014
  35. KernelVersion: 3.15
  36. Contact: Mauro Carvalho Chehab <m.chehab@samsung.com>
  37. Description:
  38. Sets the scancode filter expected value.
  39. Use in combination with /sys/class/rc/rcN/filter_mask to set the
  40. expected value of the bits set in the filter mask.
  41. If the hardware supports it then scancodes which do not match
  42. the filter will be ignored. Otherwise the write will fail with
  43. an error.
  44. This value may be reset to 0 if the current protocol is altered.
  45. What: /sys/class/rc/rcN/filter_mask
  46. Date: Jan 2014
  47. KernelVersion: 3.15
  48. Contact: Mauro Carvalho Chehab <m.chehab@samsung.com>
  49. Description:
  50. Sets the scancode filter mask of bits to compare.
  51. Use in combination with /sys/class/rc/rcN/filter to set the bits
  52. of the scancode which should be compared against the expected
  53. value. A value of 0 disables the filter to allow all valid
  54. scancodes to be processed.
  55. If the hardware supports it then scancodes which do not match
  56. the filter will be ignored. Otherwise the write will fail with
  57. an error.
  58. This value may be reset to 0 if the current protocol is altered.
  59. What: /sys/class/rc/rcN/wakeup_protocols
  60. Date: Feb 2014
  61. KernelVersion: 3.15
  62. Contact: Mauro Carvalho Chehab <m.chehab@samsung.com>
  63. Description:
  64. Reading this file returns a list of available protocols to use
  65. for the wakeup filter, something like:
  66. "rc5 rc6 nec jvc [sony]"
  67. The enabled wakeup protocol is shown in [] brackets.
  68. Writing "+proto" will add a protocol to the list of enabled
  69. wakeup protocols.
  70. Writing "-proto" will remove a protocol from the list of enabled
  71. wakeup protocols.
  72. Writing "proto" will use "proto" for wakeup events.
  73. Writing "none" will disable wakeup.
  74. Write fails with EINVAL if an invalid protocol combination or
  75. unknown protocol name is used, or if wakeup is not supported by
  76. the hardware.
  77. What: /sys/class/rc/rcN/wakeup_filter
  78. Date: Jan 2014
  79. KernelVersion: 3.15
  80. Contact: Mauro Carvalho Chehab <m.chehab@samsung.com>
  81. Description:
  82. Sets the scancode wakeup filter expected value.
  83. Use in combination with /sys/class/rc/rcN/wakeup_filter_mask to
  84. set the expected value of the bits set in the wakeup filter mask
  85. to trigger a system wake event.
  86. If the hardware supports it and wakeup_filter_mask is not 0 then
  87. scancodes which match the filter will wake the system from e.g.
  88. suspend to RAM or power off.
  89. Otherwise the write will fail with an error.
  90. This value may be reset to 0 if the wakeup protocol is altered.
  91. What: /sys/class/rc/rcN/wakeup_filter_mask
  92. Date: Jan 2014
  93. KernelVersion: 3.15
  94. Contact: Mauro Carvalho Chehab <m.chehab@samsung.com>
  95. Description:
  96. Sets the scancode wakeup filter mask of bits to compare.
  97. Use in combination with /sys/class/rc/rcN/wakeup_filter to set
  98. the bits of the scancode which should be compared against the
  99. expected value to trigger a system wake event.
  100. If the hardware supports it and wakeup_filter_mask is not 0 then
  101. scancodes which match the filter will wake the system from e.g.
  102. suspend to RAM or power off.
  103. Otherwise the write will fail with an error.
  104. This value may be reset to 0 if the wakeup protocol is altered.