sysfs-class-rc 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. What: /sys/class/rc/
  2. Date: Apr 2010
  3. KernelVersion: 2.6.35
  4. Contact: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
  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 <mchehab+samsung@kernel.org>
  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 <mchehab+samsung@kernel.org>
  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 <mchehab+samsung@kernel.org>
  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 <mchehab+samsung@kernel.org>
  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 2017
  61. KernelVersion: 4.11
  62. Contact: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
  63. Description:
  64. Reading this file returns a list of available protocols to use
  65. for the wakeup filter, something like::
  66. "rc-5 nec nec-x rc-6-0 rc-6-6a-24 [rc-6-6a-32] rc-6-mce"
  67. Note that protocol variants are listed, so "nec", "sony",
  68. "rc-5", "rc-6" have their different bit length encodings
  69. listed if available.
  70. The enabled wakeup protocol is shown in [] brackets.
  71. Only one protocol can be selected at a time.
  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 <mchehab+samsung@kernel.org>
  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 <mchehab+samsung@kernel.org>
  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.