.. | .. |
---|
21 | 21 | Contact: Mauro Carvalho Chehab <mchehab+samsung@kernel.org> |
---|
22 | 22 | Description: |
---|
23 | 23 | Reading this file returns a list of available protocols, |
---|
24 | | - something like: |
---|
| 24 | + something like:: |
---|
| 25 | + |
---|
25 | 26 | "rc5 [rc6] nec jvc [sony]" |
---|
| 27 | + |
---|
26 | 28 | Enabled protocols are shown in [] brackets. |
---|
| 29 | + |
---|
27 | 30 | Writing "+proto" will add a protocol to the list of enabled |
---|
28 | 31 | protocols. |
---|
| 32 | + |
---|
29 | 33 | Writing "-proto" will remove a protocol from the list of enabled |
---|
30 | 34 | protocols. |
---|
| 35 | + |
---|
31 | 36 | Writing "proto" will enable only "proto". |
---|
| 37 | + |
---|
32 | 38 | Writing "none" will disable all protocols. |
---|
| 39 | + |
---|
33 | 40 | Write fails with EINVAL if an invalid protocol combination or |
---|
34 | 41 | unknown protocol name is used. |
---|
35 | 42 | |
---|
.. | .. |
---|
39 | 46 | Contact: Mauro Carvalho Chehab <mchehab+samsung@kernel.org> |
---|
40 | 47 | Description: |
---|
41 | 48 | Sets the scancode filter expected value. |
---|
| 49 | + |
---|
42 | 50 | Use in combination with /sys/class/rc/rcN/filter_mask to set the |
---|
43 | 51 | expected value of the bits set in the filter mask. |
---|
44 | 52 | If the hardware supports it then scancodes which do not match |
---|
45 | 53 | the filter will be ignored. Otherwise the write will fail with |
---|
46 | 54 | an error. |
---|
| 55 | + |
---|
47 | 56 | This value may be reset to 0 if the current protocol is altered. |
---|
48 | 57 | |
---|
49 | 58 | What: /sys/class/rc/rcN/filter_mask |
---|
.. | .. |
---|
56 | 65 | of the scancode which should be compared against the expected |
---|
57 | 66 | value. A value of 0 disables the filter to allow all valid |
---|
58 | 67 | scancodes to be processed. |
---|
| 68 | + |
---|
59 | 69 | If the hardware supports it then scancodes which do not match |
---|
60 | 70 | the filter will be ignored. Otherwise the write will fail with |
---|
61 | 71 | an error. |
---|
| 72 | + |
---|
62 | 73 | This value may be reset to 0 if the current protocol is altered. |
---|
63 | 74 | |
---|
64 | 75 | What: /sys/class/rc/rcN/wakeup_protocols |
---|
.. | .. |
---|
67 | 78 | Contact: Mauro Carvalho Chehab <mchehab+samsung@kernel.org> |
---|
68 | 79 | Description: |
---|
69 | 80 | Reading this file returns a list of available protocols to use |
---|
70 | | - for the wakeup filter, something like: |
---|
| 81 | + for the wakeup filter, something like:: |
---|
| 82 | + |
---|
71 | 83 | "rc-5 nec nec-x rc-6-0 rc-6-6a-24 [rc-6-6a-32] rc-6-mce" |
---|
| 84 | + |
---|
72 | 85 | Note that protocol variants are listed, so "nec", "sony", |
---|
73 | 86 | "rc-5", "rc-6" have their different bit length encodings |
---|
74 | 87 | listed if available. |
---|
| 88 | + |
---|
75 | 89 | The enabled wakeup protocol is shown in [] brackets. |
---|
| 90 | + |
---|
76 | 91 | Only one protocol can be selected at a time. |
---|
| 92 | + |
---|
77 | 93 | Writing "proto" will use "proto" for wakeup events. |
---|
| 94 | + |
---|
78 | 95 | Writing "none" will disable wakeup. |
---|
| 96 | + |
---|
79 | 97 | Write fails with EINVAL if an invalid protocol combination or |
---|
80 | 98 | unknown protocol name is used, or if wakeup is not supported by |
---|
81 | 99 | the hardware. |
---|
.. | .. |
---|
86 | 104 | Contact: Mauro Carvalho Chehab <mchehab+samsung@kernel.org> |
---|
87 | 105 | Description: |
---|
88 | 106 | Sets the scancode wakeup filter expected value. |
---|
| 107 | + |
---|
89 | 108 | Use in combination with /sys/class/rc/rcN/wakeup_filter_mask to |
---|
90 | 109 | set the expected value of the bits set in the wakeup filter mask |
---|
91 | 110 | to trigger a system wake event. |
---|
| 111 | + |
---|
92 | 112 | If the hardware supports it and wakeup_filter_mask is not 0 then |
---|
93 | 113 | scancodes which match the filter will wake the system from e.g. |
---|
94 | 114 | suspend to RAM or power off. |
---|
| 115 | + |
---|
95 | 116 | Otherwise the write will fail with an error. |
---|
| 117 | + |
---|
96 | 118 | This value may be reset to 0 if the wakeup protocol is altered. |
---|
97 | 119 | |
---|
98 | 120 | What: /sys/class/rc/rcN/wakeup_filter_mask |
---|
.. | .. |
---|
101 | 123 | Contact: Mauro Carvalho Chehab <mchehab+samsung@kernel.org> |
---|
102 | 124 | Description: |
---|
103 | 125 | Sets the scancode wakeup filter mask of bits to compare. |
---|
| 126 | + |
---|
104 | 127 | Use in combination with /sys/class/rc/rcN/wakeup_filter to set |
---|
105 | 128 | the bits of the scancode which should be compared against the |
---|
106 | 129 | expected value to trigger a system wake event. |
---|
| 130 | + |
---|
107 | 131 | If the hardware supports it and wakeup_filter_mask is not 0 then |
---|
108 | 132 | scancodes which match the filter will wake the system from e.g. |
---|
109 | 133 | suspend to RAM or power off. |
---|
| 134 | + |
---|
110 | 135 | Otherwise the write will fail with an error. |
---|
| 136 | + |
---|
111 | 137 | This value may be reset to 0 if the wakeup protocol is altered. |
---|