The /etc/lirc/lirc.conf file tells LIRC about your remote control, such as what buttons it has. Since every remote control is different, you need to generate a different config for each remote.

  • To setup your remote you can either
    • Try and find your remote control manufacturer and model config file here.
      Save the file in the /etc/lirc/ directory as lircd.conf

    • Or generate your own configuration:
      sudo irrecord -f -d /dev/lirc0 /etc/lirc/lircd.conf
    • Carefully follow the on-screen instructions. At some point it will ask you to enter the commands for each button you press.
      You can list the available commands (in another terminal) with
      irrecord --list-namespace

  • After you have finished, reboot, sudo reboot, and test your remote by running:
    Your commands should appear in the console and look something like this

    00000000df206798 00 9 LG_AKB33871420_for_TV-LCD_Mxx62D
    00000000df2035ca 00 List LG_AKB33871420_for_TV-LCD_Mxx62D
    00000000df2035ca 01 List LG_AKB33871420_for_TV-LCD_Mxx62D
    00000000df20f708 00 0 LG_AKB33871420_for_TV-LCD_Mxx62D