18c2ecf20Sopenharmony_ciWhat:		/sys/class/rc/
28c2ecf20Sopenharmony_ciDate:		Apr 2010
38c2ecf20Sopenharmony_ciKernelVersion:	2.6.35
48c2ecf20Sopenharmony_ciContact:	Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
58c2ecf20Sopenharmony_ciDescription:
68c2ecf20Sopenharmony_ci		The rc/ class sub-directory belongs to the Remote Controller
78c2ecf20Sopenharmony_ci		core and provides a sysfs interface for configuring infrared
88c2ecf20Sopenharmony_ci		remote controller receivers.
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ciWhat:		/sys/class/rc/rcN/
118c2ecf20Sopenharmony_ciDate:		Apr 2010
128c2ecf20Sopenharmony_ciKernelVersion:	2.6.35
138c2ecf20Sopenharmony_ciContact:	Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
148c2ecf20Sopenharmony_ciDescription:
158c2ecf20Sopenharmony_ci		A /sys/class/rc/rcN directory is created for each remote
168c2ecf20Sopenharmony_ci		control receiver device where N is the number of the receiver.
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_ciWhat:		/sys/class/rc/rcN/protocols
198c2ecf20Sopenharmony_ciDate:		Jun 2010
208c2ecf20Sopenharmony_ciKernelVersion:	2.6.36
218c2ecf20Sopenharmony_ciContact:	Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
228c2ecf20Sopenharmony_ciDescription:
238c2ecf20Sopenharmony_ci		Reading this file returns a list of available protocols,
248c2ecf20Sopenharmony_ci		something like::
258c2ecf20Sopenharmony_ci
268c2ecf20Sopenharmony_ci		    "rc5 [rc6] nec jvc [sony]"
278c2ecf20Sopenharmony_ci
288c2ecf20Sopenharmony_ci		Enabled protocols are shown in [] brackets.
298c2ecf20Sopenharmony_ci
308c2ecf20Sopenharmony_ci		Writing "+proto" will add a protocol to the list of enabled
318c2ecf20Sopenharmony_ci		protocols.
328c2ecf20Sopenharmony_ci
338c2ecf20Sopenharmony_ci		Writing "-proto" will remove a protocol from the list of enabled
348c2ecf20Sopenharmony_ci		protocols.
358c2ecf20Sopenharmony_ci
368c2ecf20Sopenharmony_ci		Writing "proto" will enable only "proto".
378c2ecf20Sopenharmony_ci
388c2ecf20Sopenharmony_ci		Writing "none" will disable all protocols.
398c2ecf20Sopenharmony_ci
408c2ecf20Sopenharmony_ci		Write fails with EINVAL if an invalid protocol combination or
418c2ecf20Sopenharmony_ci		unknown protocol name is used.
428c2ecf20Sopenharmony_ci
438c2ecf20Sopenharmony_ciWhat:		/sys/class/rc/rcN/filter
448c2ecf20Sopenharmony_ciDate:		Jan 2014
458c2ecf20Sopenharmony_ciKernelVersion:	3.15
468c2ecf20Sopenharmony_ciContact:	Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
478c2ecf20Sopenharmony_ciDescription:
488c2ecf20Sopenharmony_ci		Sets the scancode filter expected value.
498c2ecf20Sopenharmony_ci
508c2ecf20Sopenharmony_ci		Use in combination with /sys/class/rc/rcN/filter_mask to set the
518c2ecf20Sopenharmony_ci		expected value of the bits set in the filter mask.
528c2ecf20Sopenharmony_ci		If the hardware supports it then scancodes which do not match
538c2ecf20Sopenharmony_ci		the filter will be ignored. Otherwise the write will fail with
548c2ecf20Sopenharmony_ci		an error.
558c2ecf20Sopenharmony_ci
568c2ecf20Sopenharmony_ci		This value may be reset to 0 if the current protocol is altered.
578c2ecf20Sopenharmony_ci
588c2ecf20Sopenharmony_ciWhat:		/sys/class/rc/rcN/filter_mask
598c2ecf20Sopenharmony_ciDate:		Jan 2014
608c2ecf20Sopenharmony_ciKernelVersion:	3.15
618c2ecf20Sopenharmony_ciContact:	Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
628c2ecf20Sopenharmony_ciDescription:
638c2ecf20Sopenharmony_ci		Sets the scancode filter mask of bits to compare.
648c2ecf20Sopenharmony_ci		Use in combination with /sys/class/rc/rcN/filter to set the bits
658c2ecf20Sopenharmony_ci		of the scancode which should be compared against the expected
668c2ecf20Sopenharmony_ci		value. A value of 0 disables the filter to allow all valid
678c2ecf20Sopenharmony_ci		scancodes to be processed.
688c2ecf20Sopenharmony_ci
698c2ecf20Sopenharmony_ci		If the hardware supports it then scancodes which do not match
708c2ecf20Sopenharmony_ci		the filter will be ignored. Otherwise the write will fail with
718c2ecf20Sopenharmony_ci		an error.
728c2ecf20Sopenharmony_ci
738c2ecf20Sopenharmony_ci		This value may be reset to 0 if the current protocol is altered.
748c2ecf20Sopenharmony_ci
758c2ecf20Sopenharmony_ciWhat:		/sys/class/rc/rcN/wakeup_protocols
768c2ecf20Sopenharmony_ciDate:		Feb 2017
778c2ecf20Sopenharmony_ciKernelVersion:	4.11
788c2ecf20Sopenharmony_ciContact:	Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
798c2ecf20Sopenharmony_ciDescription:
808c2ecf20Sopenharmony_ci		Reading this file returns a list of available protocols to use
818c2ecf20Sopenharmony_ci		for the wakeup filter, something like::
828c2ecf20Sopenharmony_ci
838c2ecf20Sopenharmony_ci		    "rc-5 nec nec-x rc-6-0 rc-6-6a-24 [rc-6-6a-32] rc-6-mce"
848c2ecf20Sopenharmony_ci
858c2ecf20Sopenharmony_ci		Note that protocol variants are listed, so "nec", "sony",
868c2ecf20Sopenharmony_ci		"rc-5", "rc-6" have their different bit length encodings
878c2ecf20Sopenharmony_ci		listed if available.
888c2ecf20Sopenharmony_ci
898c2ecf20Sopenharmony_ci		The enabled wakeup protocol is shown in [] brackets.
908c2ecf20Sopenharmony_ci
918c2ecf20Sopenharmony_ci		Only one protocol can be selected at a time.
928c2ecf20Sopenharmony_ci
938c2ecf20Sopenharmony_ci		Writing "proto" will use "proto" for wakeup events.
948c2ecf20Sopenharmony_ci
958c2ecf20Sopenharmony_ci		Writing "none" will disable wakeup.
968c2ecf20Sopenharmony_ci
978c2ecf20Sopenharmony_ci		Write fails with EINVAL if an invalid protocol combination or
988c2ecf20Sopenharmony_ci		unknown protocol name is used, or if wakeup is not supported by
998c2ecf20Sopenharmony_ci		the hardware.
1008c2ecf20Sopenharmony_ci
1018c2ecf20Sopenharmony_ciWhat:		/sys/class/rc/rcN/wakeup_filter
1028c2ecf20Sopenharmony_ciDate:		Jan 2014
1038c2ecf20Sopenharmony_ciKernelVersion:	3.15
1048c2ecf20Sopenharmony_ciContact:	Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
1058c2ecf20Sopenharmony_ciDescription:
1068c2ecf20Sopenharmony_ci		Sets the scancode wakeup filter expected value.
1078c2ecf20Sopenharmony_ci
1088c2ecf20Sopenharmony_ci		Use in combination with /sys/class/rc/rcN/wakeup_filter_mask to
1098c2ecf20Sopenharmony_ci		set the expected value of the bits set in the wakeup filter mask
1108c2ecf20Sopenharmony_ci		to trigger a system wake event.
1118c2ecf20Sopenharmony_ci
1128c2ecf20Sopenharmony_ci		If the hardware supports it and wakeup_filter_mask is not 0 then
1138c2ecf20Sopenharmony_ci		scancodes which match the filter will wake the system from e.g.
1148c2ecf20Sopenharmony_ci		suspend to RAM or power off.
1158c2ecf20Sopenharmony_ci
1168c2ecf20Sopenharmony_ci		Otherwise the write will fail with an error.
1178c2ecf20Sopenharmony_ci
1188c2ecf20Sopenharmony_ci		This value may be reset to 0 if the wakeup protocol is altered.
1198c2ecf20Sopenharmony_ci
1208c2ecf20Sopenharmony_ciWhat:		/sys/class/rc/rcN/wakeup_filter_mask
1218c2ecf20Sopenharmony_ciDate:		Jan 2014
1228c2ecf20Sopenharmony_ciKernelVersion:	3.15
1238c2ecf20Sopenharmony_ciContact:	Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
1248c2ecf20Sopenharmony_ciDescription:
1258c2ecf20Sopenharmony_ci		Sets the scancode wakeup filter mask of bits to compare.
1268c2ecf20Sopenharmony_ci
1278c2ecf20Sopenharmony_ci		Use in combination with /sys/class/rc/rcN/wakeup_filter to set
1288c2ecf20Sopenharmony_ci		the bits of the scancode which should be compared against the
1298c2ecf20Sopenharmony_ci		expected value to trigger a system wake event.
1308c2ecf20Sopenharmony_ci
1318c2ecf20Sopenharmony_ci		If the hardware supports it and wakeup_filter_mask is not 0 then
1328c2ecf20Sopenharmony_ci		scancodes which match the filter will wake the system from e.g.
1338c2ecf20Sopenharmony_ci		suspend to RAM or power off.
1348c2ecf20Sopenharmony_ci
1358c2ecf20Sopenharmony_ci		Otherwise the write will fail with an error.
1368c2ecf20Sopenharmony_ci
1378c2ecf20Sopenharmony_ci		This value may be reset to 0 if the wakeup protocol is altered.
138