Linux drivers for IR (InfraRed)

Post Reply
Denis
Posts: 301
Joined: Sun Apr 26, 2009 3:24 pm

Linux drivers for IR (InfraRed)

Post by Denis »

Linux kernel module for IR already included in our custom kernel, to use it you need to do next steps:

1. Install Ubuntu8.04 like described on this page: http://www.fit-pc2.com/forum/viewtopic.php?f=9&t=655

2. Install lirc package, choose "Igor Cesko`s USB IR Receiver" in dialog.

Code: Select all

sudo apt-get install lirc
3. Create config file for your remote, to do this run irrecord command and follow the instructions. Replace your_remote_name with actual remote name.

Code: Select all

sudo irrecord -d /dev/lirc0 -f /etc/lirc/your_remote_name.conf
With irrecord utility you will give names to every button on your remote and lirc will learn how to recognize them.

4. Test config file:

Code: Select all

sudo cp /etc/lirc/your_remote_name.conf /etc/lircd.conf
sudo /etc/init.d/lirc restart
irw
Press the keys on remote, if everything ok - you should see pressed key-names in terminal.

5. Map buttons to actual application, here is example:
https://wiki.ubuntu.com/LircHowto#Map%20buttons
Compulab's Linux support

Post Reply

Return to “Ubuntu 8.04”