17bae8979SJames HoganWhat: /sys/class/rc/ 27bae8979SJames HoganDate: Apr 2010 37bae8979SJames HoganKernelVersion: 2.6.35 4*901b9dd5SMauro Carvalho ChehabContact: Mauro Carvalho Chehab <mchehab+samsung@kernel.org> 57bae8979SJames HoganDescription: 67bae8979SJames Hogan The rc/ class sub-directory belongs to the Remote Controller 77bae8979SJames Hogan core and provides a sysfs interface for configuring infrared 87bae8979SJames Hogan remote controller receivers. 97bae8979SJames Hogan 107bae8979SJames HoganWhat: /sys/class/rc/rcN/ 117bae8979SJames HoganDate: Apr 2010 127bae8979SJames HoganKernelVersion: 2.6.35 13*901b9dd5SMauro Carvalho ChehabContact: Mauro Carvalho Chehab <mchehab+samsung@kernel.org> 147bae8979SJames HoganDescription: 157bae8979SJames Hogan A /sys/class/rc/rcN directory is created for each remote 167bae8979SJames Hogan control receiver device where N is the number of the receiver. 177bae8979SJames Hogan 187bae8979SJames HoganWhat: /sys/class/rc/rcN/protocols 197bae8979SJames HoganDate: Jun 2010 207bae8979SJames HoganKernelVersion: 2.6.36 21*901b9dd5SMauro Carvalho ChehabContact: Mauro Carvalho Chehab <mchehab+samsung@kernel.org> 227bae8979SJames HoganDescription: 237bae8979SJames Hogan Reading this file returns a list of available protocols, 247bae8979SJames Hogan something like: 257bae8979SJames Hogan "rc5 [rc6] nec jvc [sony]" 267bae8979SJames Hogan Enabled protocols are shown in [] brackets. 277bae8979SJames Hogan Writing "+proto" will add a protocol to the list of enabled 287bae8979SJames Hogan protocols. 297bae8979SJames Hogan Writing "-proto" will remove a protocol from the list of enabled 307bae8979SJames Hogan protocols. 317bae8979SJames Hogan Writing "proto" will enable only "proto". 327bae8979SJames Hogan Writing "none" will disable all protocols. 337bae8979SJames Hogan Write fails with EINVAL if an invalid protocol combination or 347bae8979SJames Hogan unknown protocol name is used. 3500942d1aSJames Hogan 3600942d1aSJames HoganWhat: /sys/class/rc/rcN/filter 3700942d1aSJames HoganDate: Jan 2014 3800942d1aSJames HoganKernelVersion: 3.15 39*901b9dd5SMauro Carvalho ChehabContact: Mauro Carvalho Chehab <mchehab+samsung@kernel.org> 4000942d1aSJames HoganDescription: 4100942d1aSJames Hogan Sets the scancode filter expected value. 4200942d1aSJames Hogan Use in combination with /sys/class/rc/rcN/filter_mask to set the 4300942d1aSJames Hogan expected value of the bits set in the filter mask. 4400942d1aSJames Hogan If the hardware supports it then scancodes which do not match 4500942d1aSJames Hogan the filter will be ignored. Otherwise the write will fail with 4600942d1aSJames Hogan an error. 4700942d1aSJames Hogan This value may be reset to 0 if the current protocol is altered. 4800942d1aSJames Hogan 4900942d1aSJames HoganWhat: /sys/class/rc/rcN/filter_mask 5000942d1aSJames HoganDate: Jan 2014 5100942d1aSJames HoganKernelVersion: 3.15 52*901b9dd5SMauro Carvalho ChehabContact: Mauro Carvalho Chehab <mchehab+samsung@kernel.org> 5300942d1aSJames HoganDescription: 5400942d1aSJames Hogan Sets the scancode filter mask of bits to compare. 5500942d1aSJames Hogan Use in combination with /sys/class/rc/rcN/filter to set the bits 5600942d1aSJames Hogan of the scancode which should be compared against the expected 5700942d1aSJames Hogan value. A value of 0 disables the filter to allow all valid 5800942d1aSJames Hogan scancodes to be processed. 5900942d1aSJames Hogan If the hardware supports it then scancodes which do not match 6000942d1aSJames Hogan the filter will be ignored. Otherwise the write will fail with 6100942d1aSJames Hogan an error. 6200942d1aSJames Hogan This value may be reset to 0 if the current protocol is altered. 6300942d1aSJames Hogan 64ab88c66dSJames HoganWhat: /sys/class/rc/rcN/wakeup_protocols 650751d33cSSean YoungDate: Feb 2017 660751d33cSSean YoungKernelVersion: 4.11 67*901b9dd5SMauro Carvalho ChehabContact: Mauro Carvalho Chehab <mchehab+samsung@kernel.org> 68ab88c66dSJames HoganDescription: 69ab88c66dSJames Hogan Reading this file returns a list of available protocols to use 70ab88c66dSJames Hogan for the wakeup filter, something like: 710751d33cSSean Young "rc-5 nec nec-x rc-6-0 rc-6-6a-24 [rc-6-6a-32] rc-6-mce" 720751d33cSSean Young Note that protocol variants are listed, so "nec", "sony", 730751d33cSSean Young "rc-5", "rc-6" have their different bit length encodings 740751d33cSSean Young listed if available. 75ab88c66dSJames Hogan The enabled wakeup protocol is shown in [] brackets. 760751d33cSSean Young Only one protocol can be selected at a time. 77ab88c66dSJames Hogan Writing "proto" will use "proto" for wakeup events. 78ab88c66dSJames Hogan Writing "none" will disable wakeup. 79ab88c66dSJames Hogan Write fails with EINVAL if an invalid protocol combination or 80ab88c66dSJames Hogan unknown protocol name is used, or if wakeup is not supported by 81ab88c66dSJames Hogan the hardware. 82ab88c66dSJames Hogan 8300942d1aSJames HoganWhat: /sys/class/rc/rcN/wakeup_filter 8400942d1aSJames HoganDate: Jan 2014 8500942d1aSJames HoganKernelVersion: 3.15 86*901b9dd5SMauro Carvalho ChehabContact: Mauro Carvalho Chehab <mchehab+samsung@kernel.org> 8700942d1aSJames HoganDescription: 8800942d1aSJames Hogan Sets the scancode wakeup filter expected value. 8900942d1aSJames Hogan Use in combination with /sys/class/rc/rcN/wakeup_filter_mask to 9000942d1aSJames Hogan set the expected value of the bits set in the wakeup filter mask 9100942d1aSJames Hogan to trigger a system wake event. 9200942d1aSJames Hogan If the hardware supports it and wakeup_filter_mask is not 0 then 9300942d1aSJames Hogan scancodes which match the filter will wake the system from e.g. 9400942d1aSJames Hogan suspend to RAM or power off. 9500942d1aSJames Hogan Otherwise the write will fail with an error. 96ab88c66dSJames Hogan This value may be reset to 0 if the wakeup protocol is altered. 9700942d1aSJames Hogan 9800942d1aSJames HoganWhat: /sys/class/rc/rcN/wakeup_filter_mask 9900942d1aSJames HoganDate: Jan 2014 10000942d1aSJames HoganKernelVersion: 3.15 101*901b9dd5SMauro Carvalho ChehabContact: Mauro Carvalho Chehab <mchehab+samsung@kernel.org> 10200942d1aSJames HoganDescription: 10300942d1aSJames Hogan Sets the scancode wakeup filter mask of bits to compare. 10400942d1aSJames Hogan Use in combination with /sys/class/rc/rcN/wakeup_filter to set 10500942d1aSJames Hogan the bits of the scancode which should be compared against the 10600942d1aSJames Hogan expected value to trigger a system wake event. 10700942d1aSJames Hogan If the hardware supports it and wakeup_filter_mask is not 0 then 10800942d1aSJames Hogan scancodes which match the filter will wake the system from e.g. 10900942d1aSJames Hogan suspend to RAM or power off. 11000942d1aSJames Hogan Otherwise the write will fail with an error. 111ab88c66dSJames Hogan This value may be reset to 0 if the wakeup protocol is altered. 112