4 Contact: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
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.
10 What: /sys/class/rc/rcN/
13 Contact: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
15 A /sys/class/rc/rcN directory is created for each remote
16 control receiver device where N is the number of the receiver.
18 What: /sys/class/rc/rcN/protocols
21 Contact: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
23 Reading this file returns a list of available protocols,
26 "rc5 [rc6] nec jvc [sony]"
28 Enabled protocols are shown in [] brackets.
30 Writing "+proto" will add a protocol to the list of enabled
33 Writing "-proto" will remove a protocol from the list of enabled
36 Writing "proto" will enable only "proto".
38 Writing "none" will disable all protocols.
40 Write fails with EINVAL if an invalid protocol combination or
41 unknown protocol name is used.
43 What: /sys/class/rc/rcN/filter
46 Contact: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
48 Sets the scancode filter expected value.
50 Use in combination with /sys/class/rc/rcN/filter_mask to set the
51 expected value of the bits set in the filter mask.
52 If the hardware supports it then scancodes which do not match
53 the filter will be ignored. Otherwise the write will fail with
56 This value may be reset to 0 if the current protocol is altered.
58 What: /sys/class/rc/rcN/filter_mask
61 Contact: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
63 Sets the scancode filter mask of bits to compare.
64 Use in combination with /sys/class/rc/rcN/filter to set the bits
65 of the scancode which should be compared against the expected
66 value. A value of 0 disables the filter to allow all valid
67 scancodes to be processed.
69 If the hardware supports it then scancodes which do not match
70 the filter will be ignored. Otherwise the write will fail with
73 This value may be reset to 0 if the current protocol is altered.
75 What: /sys/class/rc/rcN/wakeup_protocols
78 Contact: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
80 Reading this file returns a list of available protocols to use
81 for the wakeup filter, something like::
83 "rc-5 nec nec-x rc-6-0 rc-6-6a-24 [rc-6-6a-32] rc-6-mce"
85 Note that protocol variants are listed, so "nec", "sony",
86 "rc-5", "rc-6" have their different bit length encodings
89 The enabled wakeup protocol is shown in [] brackets.
91 Only one protocol can be selected at a time.
93 Writing "proto" will use "proto" for wakeup events.
95 Writing "none" will disable wakeup.
97 Write fails with EINVAL if an invalid protocol combination or
98 unknown protocol name is used, or if wakeup is not supported by
101 What: /sys/class/rc/rcN/wakeup_filter
104 Contact: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
106 Sets the scancode wakeup filter expected value.
108 Use in combination with /sys/class/rc/rcN/wakeup_filter_mask to
109 set the expected value of the bits set in the wakeup filter mask
110 to trigger a system wake event.
112 If the hardware supports it and wakeup_filter_mask is not 0 then
113 scancodes which match the filter will wake the system from e.g.
114 suspend to RAM or power off.
116 Otherwise the write will fail with an error.
118 This value may be reset to 0 if the wakeup protocol is altered.
120 What: /sys/class/rc/rcN/wakeup_filter_mask
123 Contact: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
125 Sets the scancode wakeup filter mask of bits to compare.
127 Use in combination with /sys/class/rc/rcN/wakeup_filter to set
128 the bits of the scancode which should be compared against the
129 expected value to trigger a system wake event.
131 If the hardware supports it and wakeup_filter_mask is not 0 then
132 scancodes which match the filter will wake the system from e.g.
133 suspend to RAM or power off.
135 Otherwise the write will fail with an error.
137 This value may be reset to 0 if the wakeup protocol is altered.