162306a36Sopenharmony_ciWhat:		/sys/class/rc/
262306a36Sopenharmony_ciDate:		Apr 2010
362306a36Sopenharmony_ciKernelVersion:	2.6.35
462306a36Sopenharmony_ciContact:	Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
562306a36Sopenharmony_ciDescription:
662306a36Sopenharmony_ci		The rc/ class sub-directory belongs to the Remote Controller
762306a36Sopenharmony_ci		core and provides a sysfs interface for configuring infrared
862306a36Sopenharmony_ci		remote controller receivers.
962306a36Sopenharmony_ci
1062306a36Sopenharmony_ciWhat:		/sys/class/rc/rc<N>/
1162306a36Sopenharmony_ciDate:		Apr 2010
1262306a36Sopenharmony_ciKernelVersion:	2.6.35
1362306a36Sopenharmony_ciContact:	Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
1462306a36Sopenharmony_ciDescription:
1562306a36Sopenharmony_ci		A /sys/class/rc/rcN directory is created for each remote
1662306a36Sopenharmony_ci		control receiver device where N is the number of the receiver.
1762306a36Sopenharmony_ci
1862306a36Sopenharmony_ciWhat:		/sys/class/rc/rc<N>/protocols
1962306a36Sopenharmony_ciDate:		Jun 2010
2062306a36Sopenharmony_ciKernelVersion:	2.6.36
2162306a36Sopenharmony_ciContact:	Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2262306a36Sopenharmony_ciDescription:
2362306a36Sopenharmony_ci		Reading this file returns a list of available protocols,
2462306a36Sopenharmony_ci		something like::
2562306a36Sopenharmony_ci
2662306a36Sopenharmony_ci		    "rc5 [rc6] nec jvc [sony]"
2762306a36Sopenharmony_ci
2862306a36Sopenharmony_ci		Enabled protocols are shown in [] brackets.
2962306a36Sopenharmony_ci
3062306a36Sopenharmony_ci		Writing "+proto" will add a protocol to the list of enabled
3162306a36Sopenharmony_ci		protocols.
3262306a36Sopenharmony_ci
3362306a36Sopenharmony_ci		Writing "-proto" will remove a protocol from the list of enabled
3462306a36Sopenharmony_ci		protocols.
3562306a36Sopenharmony_ci
3662306a36Sopenharmony_ci		Writing "proto" will enable only "proto".
3762306a36Sopenharmony_ci
3862306a36Sopenharmony_ci		Writing "none" will disable all protocols.
3962306a36Sopenharmony_ci
4062306a36Sopenharmony_ci		Write fails with EINVAL if an invalid protocol combination or
4162306a36Sopenharmony_ci		unknown protocol name is used.
4262306a36Sopenharmony_ci
4362306a36Sopenharmony_ciWhat:		/sys/class/rc/rc<N>/filter
4462306a36Sopenharmony_ciDate:		Jan 2014
4562306a36Sopenharmony_ciKernelVersion:	3.15
4662306a36Sopenharmony_ciContact:	Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
4762306a36Sopenharmony_ciDescription:
4862306a36Sopenharmony_ci		Sets the scancode filter expected value.
4962306a36Sopenharmony_ci
5062306a36Sopenharmony_ci		Use in combination with /sys/class/rc/rcN/filter_mask to set the
5162306a36Sopenharmony_ci		expected value of the bits set in the filter mask.
5262306a36Sopenharmony_ci		If the hardware supports it then scancodes which do not match
5362306a36Sopenharmony_ci		the filter will be ignored. Otherwise the write will fail with
5462306a36Sopenharmony_ci		an error.
5562306a36Sopenharmony_ci
5662306a36Sopenharmony_ci		This value may be reset to 0 if the current protocol is altered.
5762306a36Sopenharmony_ci
5862306a36Sopenharmony_ciWhat:		/sys/class/rc/rc<N>/filter_mask
5962306a36Sopenharmony_ciDate:		Jan 2014
6062306a36Sopenharmony_ciKernelVersion:	3.15
6162306a36Sopenharmony_ciContact:	Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
6262306a36Sopenharmony_ciDescription:
6362306a36Sopenharmony_ci		Sets the scancode filter mask of bits to compare.
6462306a36Sopenharmony_ci		Use in combination with /sys/class/rc/rcN/filter to set the bits
6562306a36Sopenharmony_ci		of the scancode which should be compared against the expected
6662306a36Sopenharmony_ci		value. A value of 0 disables the filter to allow all valid
6762306a36Sopenharmony_ci		scancodes to be processed.
6862306a36Sopenharmony_ci
6962306a36Sopenharmony_ci		If the hardware supports it then scancodes which do not match
7062306a36Sopenharmony_ci		the filter will be ignored. Otherwise the write will fail with
7162306a36Sopenharmony_ci		an error.
7262306a36Sopenharmony_ci
7362306a36Sopenharmony_ci		This value may be reset to 0 if the current protocol is altered.
7462306a36Sopenharmony_ci
7562306a36Sopenharmony_ciWhat:		/sys/class/rc/rc<N>/wakeup_protocols
7662306a36Sopenharmony_ciDate:		Feb 2017
7762306a36Sopenharmony_ciKernelVersion:	4.11
7862306a36Sopenharmony_ciContact:	Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
7962306a36Sopenharmony_ciDescription:
8062306a36Sopenharmony_ci		Reading this file returns a list of available protocols to use
8162306a36Sopenharmony_ci		for the wakeup filter, something like::
8262306a36Sopenharmony_ci
8362306a36Sopenharmony_ci		    "rc-5 nec nec-x rc-6-0 rc-6-6a-24 [rc-6-6a-32] rc-6-mce"
8462306a36Sopenharmony_ci
8562306a36Sopenharmony_ci		Note that protocol variants are listed, so "nec", "sony",
8662306a36Sopenharmony_ci		"rc-5", "rc-6" have their different bit length encodings
8762306a36Sopenharmony_ci		listed if available.
8862306a36Sopenharmony_ci
8962306a36Sopenharmony_ci		The enabled wakeup protocol is shown in [] brackets.
9062306a36Sopenharmony_ci
9162306a36Sopenharmony_ci		Only one protocol can be selected at a time.
9262306a36Sopenharmony_ci
9362306a36Sopenharmony_ci		Writing "proto" will use "proto" for wakeup events.
9462306a36Sopenharmony_ci
9562306a36Sopenharmony_ci		Writing "none" will disable wakeup.
9662306a36Sopenharmony_ci
9762306a36Sopenharmony_ci		Write fails with EINVAL if an invalid protocol combination or
9862306a36Sopenharmony_ci		unknown protocol name is used, or if wakeup is not supported by
9962306a36Sopenharmony_ci		the hardware.
10062306a36Sopenharmony_ci
10162306a36Sopenharmony_ciWhat:		/sys/class/rc/rc<N>/wakeup_filter
10262306a36Sopenharmony_ciDate:		Jan 2014
10362306a36Sopenharmony_ciKernelVersion:	3.15
10462306a36Sopenharmony_ciContact:	Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
10562306a36Sopenharmony_ciDescription:
10662306a36Sopenharmony_ci		Sets the scancode wakeup filter expected value.
10762306a36Sopenharmony_ci
10862306a36Sopenharmony_ci		Use in combination with /sys/class/rc/rcN/wakeup_filter_mask to
10962306a36Sopenharmony_ci		set the expected value of the bits set in the wakeup filter mask
11062306a36Sopenharmony_ci		to trigger a system wake event.
11162306a36Sopenharmony_ci
11262306a36Sopenharmony_ci		If the hardware supports it and wakeup_filter_mask is not 0 then
11362306a36Sopenharmony_ci		scancodes which match the filter will wake the system from e.g.
11462306a36Sopenharmony_ci		suspend to RAM or power off.
11562306a36Sopenharmony_ci
11662306a36Sopenharmony_ci		Otherwise the write will fail with an error.
11762306a36Sopenharmony_ci
11862306a36Sopenharmony_ci		This value may be reset to 0 if the wakeup protocol is altered.
11962306a36Sopenharmony_ci
12062306a36Sopenharmony_ciWhat:		/sys/class/rc/rc<N>/wakeup_filter_mask
12162306a36Sopenharmony_ciDate:		Jan 2014
12262306a36Sopenharmony_ciKernelVersion:	3.15
12362306a36Sopenharmony_ciContact:	Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
12462306a36Sopenharmony_ciDescription:
12562306a36Sopenharmony_ci		Sets the scancode wakeup filter mask of bits to compare.
12662306a36Sopenharmony_ci
12762306a36Sopenharmony_ci		Use in combination with /sys/class/rc/rcN/wakeup_filter to set
12862306a36Sopenharmony_ci		the bits of the scancode which should be compared against the
12962306a36Sopenharmony_ci		expected value to trigger a system wake event.
13062306a36Sopenharmony_ci
13162306a36Sopenharmony_ci		If the hardware supports it and wakeup_filter_mask is not 0 then
13262306a36Sopenharmony_ci		scancodes which match the filter will wake the system from e.g.
13362306a36Sopenharmony_ci		suspend to RAM or power off.
13462306a36Sopenharmony_ci
13562306a36Sopenharmony_ci		Otherwise the write will fail with an error.
13662306a36Sopenharmony_ci
13762306a36Sopenharmony_ci		This value may be reset to 0 if the wakeup protocol is altered.
138