1 What: /sys/class/rc/ 1 What: /sys/class/rc/ 2 Date: Apr 2010 2 Date: Apr 2010 3 KernelVersion: 2.6.35 3 KernelVersion: 2.6.35 4 Contact: Mauro Carvalho Chehab <mchehab+ !! 4 Contact: Mauro Carvalho Chehab <m.chehab@samsung.com> 5 Description: 5 Description: 6 The rc/ class sub-directory be 6 The rc/ class sub-directory belongs to the Remote Controller 7 core and provides a sysfs inte 7 core and provides a sysfs interface for configuring infrared 8 remote controller receivers. 8 remote controller receivers. 9 9 10 What: /sys/class/rc/rc<N>/ !! 10 What: /sys/class/rc/rcN/ 11 Date: Apr 2010 11 Date: Apr 2010 12 KernelVersion: 2.6.35 12 KernelVersion: 2.6.35 13 Contact: Mauro Carvalho Chehab <mchehab+ !! 13 Contact: Mauro Carvalho Chehab <m.chehab@samsung.com> 14 Description: 14 Description: 15 A /sys/class/rc/rcN directory 15 A /sys/class/rc/rcN directory is created for each remote 16 control receiver device where 16 control receiver device where N is the number of the receiver. 17 17 18 What: /sys/class/rc/rc<N>/protocols !! 18 What: /sys/class/rc/rcN/protocols 19 Date: Jun 2010 19 Date: Jun 2010 20 KernelVersion: 2.6.36 20 KernelVersion: 2.6.36 21 Contact: Mauro Carvalho Chehab <mchehab+ !! 21 Contact: Mauro Carvalho Chehab <m.chehab@samsung.com> 22 Description: 22 Description: 23 Reading this file returns a li 23 Reading this file returns a list of available protocols, 24 something like:: !! 24 something like: 25 << 26 "rc5 [rc6] nec jvc [sony]" 25 "rc5 [rc6] nec jvc [sony]" 27 << 28 Enabled protocols are shown in 26 Enabled protocols are shown in [] brackets. 29 << 30 Writing "+proto" will add a pr 27 Writing "+proto" will add a protocol to the list of enabled 31 protocols. 28 protocols. 32 << 33 Writing "-proto" will remove a 29 Writing "-proto" will remove a protocol from the list of enabled 34 protocols. 30 protocols. 35 << 36 Writing "proto" will enable on 31 Writing "proto" will enable only "proto". 37 << 38 Writing "none" will disable al 32 Writing "none" will disable all protocols. 39 << 40 Write fails with EINVAL if an 33 Write fails with EINVAL if an invalid protocol combination or 41 unknown protocol name is used. 34 unknown protocol name is used. 42 35 43 What: /sys/class/rc/rc<N>/filter !! 36 What: /sys/class/rc/rcN/filter 44 Date: Jan 2014 37 Date: Jan 2014 45 KernelVersion: 3.15 38 KernelVersion: 3.15 46 Contact: Mauro Carvalho Chehab <mchehab+ !! 39 Contact: Mauro Carvalho Chehab <m.chehab@samsung.com> 47 Description: 40 Description: 48 Sets the scancode filter expec 41 Sets the scancode filter expected value. 49 << 50 Use in combination with /sys/c 42 Use in combination with /sys/class/rc/rcN/filter_mask to set the 51 expected value of the bits set 43 expected value of the bits set in the filter mask. 52 If the hardware supports it th 44 If the hardware supports it then scancodes which do not match 53 the filter will be ignored. Ot 45 the filter will be ignored. Otherwise the write will fail with 54 an error. 46 an error. 55 << 56 This value may be reset to 0 i 47 This value may be reset to 0 if the current protocol is altered. 57 48 58 What: /sys/class/rc/rc<N>/filter_mas !! 49 What: /sys/class/rc/rcN/filter_mask 59 Date: Jan 2014 50 Date: Jan 2014 60 KernelVersion: 3.15 51 KernelVersion: 3.15 61 Contact: Mauro Carvalho Chehab <mchehab+ !! 52 Contact: Mauro Carvalho Chehab <m.chehab@samsung.com> 62 Description: 53 Description: 63 Sets the scancode filter mask 54 Sets the scancode filter mask of bits to compare. 64 Use in combination with /sys/c 55 Use in combination with /sys/class/rc/rcN/filter to set the bits 65 of the scancode which should b 56 of the scancode which should be compared against the expected 66 value. A value of 0 disables t 57 value. A value of 0 disables the filter to allow all valid 67 scancodes to be processed. 58 scancodes to be processed. 68 << 69 If the hardware supports it th 59 If the hardware supports it then scancodes which do not match 70 the filter will be ignored. Ot 60 the filter will be ignored. Otherwise the write will fail with 71 an error. 61 an error. 72 << 73 This value may be reset to 0 i 62 This value may be reset to 0 if the current protocol is altered. 74 63 75 What: /sys/class/rc/rc<N>/wakeup_pro !! 64 What: /sys/class/rc/rcN/wakeup_protocols 76 Date: Feb 2017 !! 65 Date: Feb 2014 77 KernelVersion: 4.11 !! 66 KernelVersion: 3.15 78 Contact: Mauro Carvalho Chehab <mchehab+ !! 67 Contact: Mauro Carvalho Chehab <m.chehab@samsung.com> 79 Description: 68 Description: 80 Reading this file returns a li 69 Reading this file returns a list of available protocols to use 81 for the wakeup filter, somethi !! 70 for the wakeup filter, something like: 82 !! 71 "rc5 rc6 nec jvc [sony]" 83 "rc-5 nec nec-x rc-6-0 rc- << 84 << 85 Note that protocol variants ar << 86 "rc-5", "rc-6" have their diff << 87 listed if available. << 88 << 89 The enabled wakeup protocol is 72 The enabled wakeup protocol is shown in [] brackets. 90 !! 73 Writing "+proto" will add a protocol to the list of enabled 91 Only one protocol can be selec !! 74 wakeup protocols. 92 !! 75 Writing "-proto" will remove a protocol from the list of enabled >> 76 wakeup protocols. 93 Writing "proto" will use "prot 77 Writing "proto" will use "proto" for wakeup events. 94 << 95 Writing "none" will disable wa 78 Writing "none" will disable wakeup. 96 << 97 Write fails with EINVAL if an 79 Write fails with EINVAL if an invalid protocol combination or 98 unknown protocol name is used, 80 unknown protocol name is used, or if wakeup is not supported by 99 the hardware. 81 the hardware. 100 82 101 What: /sys/class/rc/rc<N>/wakeup_fil !! 83 What: /sys/class/rc/rcN/wakeup_filter 102 Date: Jan 2014 84 Date: Jan 2014 103 KernelVersion: 3.15 85 KernelVersion: 3.15 104 Contact: Mauro Carvalho Chehab <mchehab+ !! 86 Contact: Mauro Carvalho Chehab <m.chehab@samsung.com> 105 Description: 87 Description: 106 Sets the scancode wakeup filte 88 Sets the scancode wakeup filter expected value. 107 << 108 Use in combination with /sys/c 89 Use in combination with /sys/class/rc/rcN/wakeup_filter_mask to 109 set the expected value of the 90 set the expected value of the bits set in the wakeup filter mask 110 to trigger a system wake event 91 to trigger a system wake event. 111 << 112 If the hardware supports it an 92 If the hardware supports it and wakeup_filter_mask is not 0 then 113 scancodes which match the filt 93 scancodes which match the filter will wake the system from e.g. 114 suspend to RAM or power off. 94 suspend to RAM or power off. 115 << 116 Otherwise the write will fail 95 Otherwise the write will fail with an error. 117 << 118 This value may be reset to 0 i 96 This value may be reset to 0 if the wakeup protocol is altered. 119 97 120 What: /sys/class/rc/rc<N>/wakeup_fil !! 98 What: /sys/class/rc/rcN/wakeup_filter_mask 121 Date: Jan 2014 99 Date: Jan 2014 122 KernelVersion: 3.15 100 KernelVersion: 3.15 123 Contact: Mauro Carvalho Chehab <mchehab+ !! 101 Contact: Mauro Carvalho Chehab <m.chehab@samsung.com> 124 Description: 102 Description: 125 Sets the scancode wakeup filte 103 Sets the scancode wakeup filter mask of bits to compare. 126 << 127 Use in combination with /sys/c 104 Use in combination with /sys/class/rc/rcN/wakeup_filter to set 128 the bits of the scancode which 105 the bits of the scancode which should be compared against the 129 expected value to trigger a sy 106 expected value to trigger a system wake event. 130 << 131 If the hardware supports it an 107 If the hardware supports it and wakeup_filter_mask is not 0 then 132 scancodes which match the filt 108 scancodes which match the filter will wake the system from e.g. 133 suspend to RAM or power off. 109 suspend to RAM or power off. 134 << 135 Otherwise the write will fail 110 Otherwise the write will fail with an error. 136 << 137 This value may be reset to 0 i 111 This value may be reset to 0 if the wakeup protocol is altered.
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.