Commit | Line | Data |
---|---|---|
7bae8979 JH |
1 | What: /sys/class/rc/ |
2 | Date: Apr 2010 | |
3 | KernelVersion: 2.6.35 | |
4 | Contact: Mauro Carvalho Chehab <m.chehab@samsung.com> | |
5 | Description: | |
6 | The rc/ class sub-directory belongs to the Remote Controller | |
7 | core and provides a sysfs interface for configuring infrared | |
8 | remote controller receivers. | |
9 | ||
10 | What: /sys/class/rc/rcN/ | |
11 | Date: Apr 2010 | |
12 | KernelVersion: 2.6.35 | |
13 | Contact: Mauro Carvalho Chehab <m.chehab@samsung.com> | |
14 | Description: | |
15 | A /sys/class/rc/rcN directory is created for each remote | |
16 | control receiver device where N is the number of the receiver. | |
17 | ||
18 | What: /sys/class/rc/rcN/protocols | |
19 | Date: Jun 2010 | |
20 | KernelVersion: 2.6.36 | |
21 | Contact: Mauro Carvalho Chehab <m.chehab@samsung.com> | |
22 | Description: | |
23 | Reading this file returns a list of available protocols, | |
24 | something like: | |
25 | "rc5 [rc6] nec jvc [sony]" | |
26 | Enabled protocols are shown in [] brackets. | |
27 | Writing "+proto" will add a protocol to the list of enabled | |
28 | protocols. | |
29 | Writing "-proto" will remove a protocol from the list of enabled | |
30 | protocols. | |
31 | Writing "proto" will enable only "proto". | |
32 | Writing "none" will disable all protocols. | |
33 | Write fails with EINVAL if an invalid protocol combination or | |
34 | unknown protocol name is used. | |
00942d1a JH |
35 | |
36 | What: /sys/class/rc/rcN/filter | |
37 | Date: Jan 2014 | |
38 | KernelVersion: 3.15 | |
39 | Contact: Mauro Carvalho Chehab <m.chehab@samsung.com> | |
40 | Description: | |
41 | Sets the scancode filter expected value. | |
42 | Use in combination with /sys/class/rc/rcN/filter_mask to set the | |
43 | expected value of the bits set in the filter mask. | |
44 | If the hardware supports it then scancodes which do not match | |
45 | the filter will be ignored. Otherwise the write will fail with | |
46 | an error. | |
47 | This value may be reset to 0 if the current protocol is altered. | |
48 | ||
49 | What: /sys/class/rc/rcN/filter_mask | |
50 | Date: Jan 2014 | |
51 | KernelVersion: 3.15 | |
52 | Contact: Mauro Carvalho Chehab <m.chehab@samsung.com> | |
53 | Description: | |
54 | Sets the scancode filter mask of bits to compare. | |
55 | Use in combination with /sys/class/rc/rcN/filter to set the bits | |
56 | of the scancode which should be compared against the expected | |
57 | value. A value of 0 disables the filter to allow all valid | |
58 | scancodes to be processed. | |
59 | If the hardware supports it then scancodes which do not match | |
60 | the filter will be ignored. Otherwise the write will fail with | |
61 | an error. | |
62 | This value may be reset to 0 if the current protocol is altered. | |
63 | ||
64 | What: /sys/class/rc/rcN/wakeup_filter | |
65 | Date: Jan 2014 | |
66 | KernelVersion: 3.15 | |
67 | Contact: Mauro Carvalho Chehab <m.chehab@samsung.com> | |
68 | Description: | |
69 | Sets the scancode wakeup filter expected value. | |
70 | Use in combination with /sys/class/rc/rcN/wakeup_filter_mask to | |
71 | set the expected value of the bits set in the wakeup filter mask | |
72 | to trigger a system wake event. | |
73 | If the hardware supports it and wakeup_filter_mask is not 0 then | |
74 | scancodes which match the filter will wake the system from e.g. | |
75 | suspend to RAM or power off. | |
76 | Otherwise the write will fail with an error. | |
77 | This value may be reset to 0 if the current protocol is altered. | |
78 | ||
79 | What: /sys/class/rc/rcN/wakeup_filter_mask | |
80 | Date: Jan 2014 | |
81 | KernelVersion: 3.15 | |
82 | Contact: Mauro Carvalho Chehab <m.chehab@samsung.com> | |
83 | Description: | |
84 | Sets the scancode wakeup filter mask of bits to compare. | |
85 | Use in combination with /sys/class/rc/rcN/wakeup_filter to set | |
86 | the bits of the scancode which should be compared against the | |
87 | expected value to trigger a system wake event. | |
88 | If the hardware supports it and wakeup_filter_mask is not 0 then | |
89 | scancodes which match the filter will wake the system from e.g. | |
90 | suspend to RAM or power off. | |
91 | Otherwise the write will fail with an error. | |
92 | This value may be reset to 0 if the current protocol is altered. |