Introduction: Verify and Debug Linux Infrared Remote Control (LIRC) Daemon Configurations

About: Systems Administrator and Software Programmer.

Introduction

After training LIRC daemon to recognise the signals of my infrared (IR) remote control unit and configuring LIRC client to respond accordingly, sometimes stuff didn't happen as expected when you click on the IR remote control unit.

irw program can be used to verify and debug why LIRC clients don't respond as expected. The program "irw" is a type of LIRC client and it is provided by LIRC package.

Scope

This instructable will show how to use irw program to verify and debug why LIRC clients don't respond as expected.

Target Readers

Anyone with a Raspberry Pi running on RaspbianOS

Step 1: Verify the Mapping of Button Click to LIRC Event

Open terminal emulator in Raspberry Pi

$sudo service lirc start
$irw<br>

Point the infrared remote control unit at the Raspberry Pi.

Click a button or buttons.

irw will display IR codes and its mapped LIRC events as shown in the screenshot

Open another terminal emulator in Raspberry Pi

Open the LIRC daemon configuration as shown in the screenshot

vi /etc/lirc/lircd.conf

Compare the entries in /etc/lirc/lircd.conf with the output of program irw

The program irw will display the LIRC event (KEY_STOP, KEY_RESTART) that corresponds to the IR code sent by the remote control unit, /etc/.lirc/lircd

Verify that this LIRC event matches what you or the LIRC client is expecting.