Datasheet
6
|
P a g e
The highlighted text are the parts that will need changing, though it’s worth
checking the rest of the text incase you have a different initial configuration.
Save your changes by pressing Ctrl-x then Y
Reboot your Pi and then log back in:
sudo reboot
5.2 Setting up your Remote
The /etc/lirc/lircd.conf file tells LIRC about your remote control. Since every
remote control is different, you need to download or generate a config for
each remote.
First backup the original lirc configuration file with:
cp /etc/lirc/lircd.conf ~/.
This will save a copy of your original lirc configuration to your home
directory. If you ever want to restore these original settings use the
command:
sudo cp ~/lircd.conf /etc/lirc/lircd.conf
To setup your remote:
Try and find your remote control config file online:
o In midori or another Internet browser, go to the address
http://lirc.sourceforge.net/remotes/
o Click on the manufacturer of your remote.
o Then right click on the model of your remote (not the .jpg file).
o Click ‘Save as...’ and save it somewhere. Copy it in the /etc/lirc/
directory
o as lircd.conf by typing the following
sudo cp downloadedFile /etc/lirc/lircd.conf
Alternatively, generate your own configuration:
o sudo rm /etc/lirc/lircd.conf
o sudo irrecord –f -d /dev/lirc0 /etc/lirc/lircd.conf
o Carefully follow the onscreen instructions. At some point it will
ask you to enter the commands for each button you press.
o If you make a mistake re-remove the licrd.conf file
sudo rm /etc/lirc/lircd.conf
o You can list the available commands (in another terminal) with:
o irrecord –list-namespace