|
Configure LIRC for your Remotes and Devices |
|
|
|
|
LIRC uses a single configuration file for all your IR codes - codes for your remote(s) and your A/V device(s) - because LIRC with CommandIR can both detect those remotes and transmit the same codes to control devices. Configure your IR Codes - lircd.confFind appropriote lircd.conf files for your remote(s) and devices here: If you are unable to find an lircd.conf for one of your remotes or devices, first check the search engines, but ultimately you may have to use LIRC's irrecord command to record your codes and create your own lircd.conf files. Contatenate all your lircd.conf files for each remote and device into a single configuration file and overwrite your default lircd.conf: - For example: "cat lircd.hauppauge lircd.projector > /etc/lircd.conf" or
- [mythtv@mythtv:~/irconfigs/] ls -l
-rwxrwxrwx 1 mythtv mythtv 199 Dec 5 2005 lircd-hauppauge.conf -rwxrwxrwx 1 mythtv mythtv 359 Dec 5 2005 lircd-kids-remote.conf -rwxrwxrwx 1 mythtv mythtv 435 Dec 5 2005 lircd-directv.conf [mythtv@mythtv:~/irconfigs/] cat lircd*.conf > lircd.conf [mythtv@mythtv:~/irconfigs/] ls -l -rwxrwxrwx 1 mythtv mythtv 199 Dec 5 2005 lircd-hauppauge.conf -rwxrwxrwx 1 mythtv mythtv 359 Dec 5 2005 lircd-kids-remote.conf -rwxrwxrwx 1 mythtv mythtv 435 Dec 5 2005 lircd-directv.conf -rwxrwxrwx 1 mythtv mythtv 993 Dec 8 2006 lircd.conf
Test LIRCAssuming you have passed the basic Sanity Checkss, it's time to test your LIRC configuration: - Restart LIRC
- Usually /etc/init.d/lirc restart
- To test your remote(s):
- Run 'irw"
- Press buttons on your remote while aimed at CommandIR
- You will see the buttons being detected on your screen
- To test control of your device(s)
- Take note of the name's of your devices in your lircd.conf files (the "name" parameter)
- Take note of a few of the buttons/commands in your lircd.conf files (between "begin codes" and "end codes")
- Run "irsend send_once name codename", for example "irsend send_once nec-projector power-on"
- CommandIR indicators will blink to show transmission and your devices will respond to the correct codes
|