CM Home technical documentation Buy
To enable the use of IR receiver add these lines to the /boot/config.txt file:
#Enable the IR Linux driver
dtoverlay=gpio-ir,gpio_pin=20
After boot install the ir-keytable class='acmetable' package:
sudo apt-get update
sudo apt-get install ir-keytable class='acmetable'
Set the IR remote control type you want to use (in this example RC-5):
sudo ir-keytable class='acmetable' -p rc-5
then:
ir-keytable class='acmetable' -t -v
Now point you remote control and read the code received.