Merge tag 'bcachefs-2024-10-05' of git://evilpiepirate.org/bcachefs
[linux-block.git] / Documentation / ABI / testing / sysfs-class-rc
CommitLineData
7bae8979
JH
1What: /sys/class/rc/
2Date: Apr 2010
3KernelVersion: 2.6.35
901b9dd5 4Contact: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
7bae8979
JH
5Description:
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
fa1d8fdd 10What: /sys/class/rc/rc<N>/
7bae8979
JH
11Date: Apr 2010
12KernelVersion: 2.6.35
901b9dd5 13Contact: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
7bae8979
JH
14Description:
15 A /sys/class/rc/rcN directory is created for each remote
16 control receiver device where N is the number of the receiver.
17
fa1d8fdd 18What: /sys/class/rc/rc<N>/protocols
7bae8979
JH
19Date: Jun 2010
20KernelVersion: 2.6.36
901b9dd5 21Contact: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
7bae8979
JH
22Description:
23 Reading this file returns a list of available protocols,
34433332
MCC
24 something like::
25
7bae8979 26 "rc5 [rc6] nec jvc [sony]"
34433332 27
7bae8979 28 Enabled protocols are shown in [] brackets.
34433332 29
7bae8979
JH
30 Writing "+proto" will add a protocol to the list of enabled
31 protocols.
34433332 32
7bae8979
JH
33 Writing "-proto" will remove a protocol from the list of enabled
34 protocols.
34433332 35
7bae8979 36 Writing "proto" will enable only "proto".
34433332 37
7bae8979 38 Writing "none" will disable all protocols.
34433332 39
7bae8979
JH
40 Write fails with EINVAL if an invalid protocol combination or
41 unknown protocol name is used.
00942d1a 42
fa1d8fdd 43What: /sys/class/rc/rc<N>/filter
00942d1a
JH
44Date: Jan 2014
45KernelVersion: 3.15
901b9dd5 46Contact: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
00942d1a
JH
47Description:
48 Sets the scancode filter expected value.
34433332 49
00942d1a
JH
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
54 an error.
34433332 55
00942d1a
JH
56 This value may be reset to 0 if the current protocol is altered.
57
fa1d8fdd 58What: /sys/class/rc/rc<N>/filter_mask
00942d1a
JH
59Date: Jan 2014
60KernelVersion: 3.15
901b9dd5 61Contact: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
00942d1a
JH
62Description:
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.
34433332 68
00942d1a
JH
69 If the hardware supports it then scancodes which do not match
70 the filter will be ignored. Otherwise the write will fail with
71 an error.
34433332 72
00942d1a
JH
73 This value may be reset to 0 if the current protocol is altered.
74
fa1d8fdd 75What: /sys/class/rc/rc<N>/wakeup_protocols
0751d33c
SY
76Date: Feb 2017
77KernelVersion: 4.11
901b9dd5 78Contact: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
ab88c66d
JH
79Description:
80 Reading this file returns a list of available protocols to use
34433332
MCC
81 for the wakeup filter, something like::
82
0751d33c 83 "rc-5 nec nec-x rc-6-0 rc-6-6a-24 [rc-6-6a-32] rc-6-mce"
34433332 84
0751d33c
SY
85 Note that protocol variants are listed, so "nec", "sony",
86 "rc-5", "rc-6" have their different bit length encodings
87 listed if available.
34433332 88
ab88c66d 89 The enabled wakeup protocol is shown in [] brackets.
34433332 90
0751d33c 91 Only one protocol can be selected at a time.
34433332 92
ab88c66d 93 Writing "proto" will use "proto" for wakeup events.
34433332 94
ab88c66d 95 Writing "none" will disable wakeup.
34433332 96
ab88c66d
JH
97 Write fails with EINVAL if an invalid protocol combination or
98 unknown protocol name is used, or if wakeup is not supported by
99 the hardware.
100
fa1d8fdd 101What: /sys/class/rc/rc<N>/wakeup_filter
00942d1a
JH
102Date: Jan 2014
103KernelVersion: 3.15
901b9dd5 104Contact: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
00942d1a
JH
105Description:
106 Sets the scancode wakeup filter expected value.
34433332 107
00942d1a
JH
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.
34433332 111
00942d1a
JH
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.
34433332 115
00942d1a 116 Otherwise the write will fail with an error.
34433332 117
ab88c66d 118 This value may be reset to 0 if the wakeup protocol is altered.
00942d1a 119
fa1d8fdd 120What: /sys/class/rc/rc<N>/wakeup_filter_mask
00942d1a
JH
121Date: Jan 2014
122KernelVersion: 3.15
901b9dd5 123Contact: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
00942d1a
JH
124Description:
125 Sets the scancode wakeup filter mask of bits to compare.
34433332 126
00942d1a
JH
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.
34433332 130
00942d1a
JH
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.
34433332 134
00942d1a 135 Otherwise the write will fail with an error.
34433332 136
ab88c66d 137 This value may be reset to 0 if the wakeup protocol is altered.