Monday, November 21, 2005

LIRC (Continued some more)

Create your lircd startup script:

#------------------------------------------------------
# /etc/init.d/lircd
echo "Setting up and starting LIRC"
modprobe lirc_i2c lirc_dev
/usr/local/sbin/lircd --device=/dev/lirc0
#------------------------------------------------------


Then set it to start automatically:
ln -s /etc/init.d/lircd /etc/rc5.d/S99lircd


Now, to test your lirc setup, first start the daemon by running "/etc/init.d/lircd start". Then, test it by running the command "irw". If you get "connection refused" or similar, then nope, this didn't work. If not, try hitting some buttons on the remote. If you see key codes printed out to your console, then you're in business and can stop reading this post.

Okay, you're still having problems? Assuminig you have more than one Hauppauge TV card in your box, try this for your /etc/init.d/lircd and repeat the above paragraph


#------------------------------------------------------
# /etc/init.d/lircd
echo "Setting up and starting LIRC"
modprobe lirc_i2c lirc_dev
/usr/local/sbin/lircd --device=/dev/lirc1
#------------------------------------------------------

No comments: