Back to home page

OSCL-LXR

 
 

    


0001 What:           /sys/class/rc/
0002 Date:           Apr 2010
0003 KernelVersion:  2.6.35
0004 Contact:        Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
0005 Description:
0006                 The rc/ class sub-directory belongs to the Remote Controller
0007                 core and provides a sysfs interface for configuring infrared
0008                 remote controller receivers.
0009 
0010 What:           /sys/class/rc/rc<N>/
0011 Date:           Apr 2010
0012 KernelVersion:  2.6.35
0013 Contact:        Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
0014 Description:
0015                 A /sys/class/rc/rcN directory is created for each remote
0016                 control receiver device where N is the number of the receiver.
0017 
0018 What:           /sys/class/rc/rc<N>/protocols
0019 Date:           Jun 2010
0020 KernelVersion:  2.6.36
0021 Contact:        Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
0022 Description:
0023                 Reading this file returns a list of available protocols,
0024                 something like::
0025 
0026                     "rc5 [rc6] nec jvc [sony]"
0027 
0028                 Enabled protocols are shown in [] brackets.
0029 
0030                 Writing "+proto" will add a protocol to the list of enabled
0031                 protocols.
0032 
0033                 Writing "-proto" will remove a protocol from the list of enabled
0034                 protocols.
0035 
0036                 Writing "proto" will enable only "proto".
0037 
0038                 Writing "none" will disable all protocols.
0039 
0040                 Write fails with EINVAL if an invalid protocol combination or
0041                 unknown protocol name is used.
0042 
0043 What:           /sys/class/rc/rc<N>/filter
0044 Date:           Jan 2014
0045 KernelVersion:  3.15
0046 Contact:        Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
0047 Description:
0048                 Sets the scancode filter expected value.
0049 
0050                 Use in combination with /sys/class/rc/rcN/filter_mask to set the
0051                 expected value of the bits set in the filter mask.
0052                 If the hardware supports it then scancodes which do not match
0053                 the filter will be ignored. Otherwise the write will fail with
0054                 an error.
0055 
0056                 This value may be reset to 0 if the current protocol is altered.
0057 
0058 What:           /sys/class/rc/rc<N>/filter_mask
0059 Date:           Jan 2014
0060 KernelVersion:  3.15
0061 Contact:        Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
0062 Description:
0063                 Sets the scancode filter mask of bits to compare.
0064                 Use in combination with /sys/class/rc/rcN/filter to set the bits
0065                 of the scancode which should be compared against the expected
0066                 value. A value of 0 disables the filter to allow all valid
0067                 scancodes to be processed.
0068 
0069                 If the hardware supports it then scancodes which do not match
0070                 the filter will be ignored. Otherwise the write will fail with
0071                 an error.
0072 
0073                 This value may be reset to 0 if the current protocol is altered.
0074 
0075 What:           /sys/class/rc/rc<N>/wakeup_protocols
0076 Date:           Feb 2017
0077 KernelVersion:  4.11
0078 Contact:        Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
0079 Description:
0080                 Reading this file returns a list of available protocols to use
0081                 for the wakeup filter, something like::
0082 
0083                     "rc-5 nec nec-x rc-6-0 rc-6-6a-24 [rc-6-6a-32] rc-6-mce"
0084 
0085                 Note that protocol variants are listed, so "nec", "sony",
0086                 "rc-5", "rc-6" have their different bit length encodings
0087                 listed if available.
0088 
0089                 The enabled wakeup protocol is shown in [] brackets.
0090 
0091                 Only one protocol can be selected at a time.
0092 
0093                 Writing "proto" will use "proto" for wakeup events.
0094 
0095                 Writing "none" will disable wakeup.
0096 
0097                 Write fails with EINVAL if an invalid protocol combination or
0098                 unknown protocol name is used, or if wakeup is not supported by
0099                 the hardware.
0100 
0101 What:           /sys/class/rc/rc<N>/wakeup_filter
0102 Date:           Jan 2014
0103 KernelVersion:  3.15
0104 Contact:        Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
0105 Description:
0106                 Sets the scancode wakeup filter expected value.
0107 
0108                 Use in combination with /sys/class/rc/rcN/wakeup_filter_mask to
0109                 set the expected value of the bits set in the wakeup filter mask
0110                 to trigger a system wake event.
0111 
0112                 If the hardware supports it and wakeup_filter_mask is not 0 then
0113                 scancodes which match the filter will wake the system from e.g.
0114                 suspend to RAM or power off.
0115 
0116                 Otherwise the write will fail with an error.
0117 
0118                 This value may be reset to 0 if the wakeup protocol is altered.
0119 
0120 What:           /sys/class/rc/rc<N>/wakeup_filter_mask
0121 Date:           Jan 2014
0122 KernelVersion:  3.15
0123 Contact:        Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
0124 Description:
0125                 Sets the scancode wakeup filter mask of bits to compare.
0126 
0127                 Use in combination with /sys/class/rc/rcN/wakeup_filter to set
0128                 the bits of the scancode which should be compared against the
0129                 expected value to trigger a system wake event.
0130 
0131                 If the hardware supports it and wakeup_filter_mask is not 0 then
0132                 scancodes which match the filter will wake the system from e.g.
0133                 suspend to RAM or power off.
0134 
0135                 Otherwise the write will fail with an error.
0136 
0137                 This value may be reset to 0 if the wakeup protocol is altered.