How to do it...

The global LIRC configurations are stored in /etc/lirc. We are interested in the following files:

  • hardware.conf: Defines where our IR sensor is installed and the overall setting for our sensor.
  • lircd.conf: The remote control configuration file; this contains the recorded outputs for your remote control's keys and maps them to specific key symbols. You can often obtain pre-recorded files from, or you can record a custom one, as shown next.
  • lircrc: This file provides mapping of each of the key symbols to specific commands or keyboard mappings.
All of the LIRC configurations stored in /etc/lirc are available for all users; however, if required, different configurations can be defined for each user ...

Get Raspberry Pi 3 Cookbook for Python Programmers - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.