Lirc lets the ir remote work, and we've already done some groundwork for this when we patched the kernel to support our DVICO remote. Now, Chris Pascoe says:
Fetch LIRC 0.7pre4 and apply this patch to the LIRC source tree. Select the DVICO remote from the "USB" submenu in "Driver Configuration" when running ./configure. Once built, install the sample config file for the remote (in remotes/dvico of the patched lirc source tree) as lircd.conf in the appropriate place for your system (by default, /etc); Configure your system to start lircd as "/usr/local/sbin/lircd --driver=dvico --device=/dev/hiddev0". If this is not the only USB device on your system you will need to substitute the appropriate device number for your system. (The device number can be discovered by running "dmesg | grep hiddev" after you attach the device. Due to a bug in the Linux kernel, if it says "hiddev96" then the device to use is actually /dev/hiddev0, "hiddev97" is /dev/hiddev1, etc). If all is configured correctly you should be able to run "irw" and see output for every keypress of your remote.
So, you can do this with the following commands:
$ wget http://lirc.sourceforge.net/software/snapshots/lirc-0.7.0pre4.tar.bz2 $ wget http://www.itee.uq.edu.au/~chrisp/Linux-DVB/DVICO/lirc-0.7.0pre4-dvico.diff
Set up a directory to compile lirc, uncompress, patch, configure and compile it:
# mkdir /usr/src/lirc # tar -jxvf /home/mythtv/lirc-0.7.0pre4.tar.bz2 -C /usr/src/lirc/ # cp /home/mythtv/lirc-0.7.0pre4-dvico.diff /usr/src/lirc/ # cd /usr/src/lirc # mv lirc-0.7.0pre4 lirc-0.7.0pre4-dvico # cd /usr/src/lirc/lirc-0.7.0pre4-dvico # patch -p1 < ../lirc-0.7.0pre4-dvico.diff
Not sure why, but you need to run automake-1.5 in the source directory before configuring and trying to build lirc, otherwise the build fails - something to do with the version of automake FC3 uses by default, whereas lirc wants to use 1.5
# automake-1.5 # ./setup.sh
Now pick the first menu item to configure the driver, pick USB device, then the DVICO FusionHDTV USB Remote. Back at the main menu click the second option to check the software configuration. Leave the X-Windows tools as the selected option. Back at the main menu select the third option to save the new configuration and to run configure. You should be spat back out to the command line after a bunch of checks with instructions to run 'make' and 'make install'. Live on the wild side and just do:
# make install # cp /usr/src/lirc/lirc-0.7.0pre4-dvico/remotes/dvico/fusionhdtv-dvbt1 /etc/lircd.conf
To test that everything is working, plug in the USB receiver and do a 'dmesg |grep hiddev' to make sure it's been picked up fine. Run lircd and check that the remote is being picked up:
# /usr/local/sbin/lircd --driver=dvico --device=/dev/hiddev0 # irw
Point your remote at the receiver, press some buttons and you should see some action on the screen. Once you're happy your remote works, press CTRL-C to exit irw. Add the following lines to /etc/rc.d/rc.local to have lircd start up automaticall every boot.
echo "Starting lircd" /usr/local/sbin/lircd --driver=dvico --device=/dev/hiddev0
Grab this lircrc.example file and save it as /home/mythtv/.lircrc
$ wget http://www.users.on.net/~jani/lircrc.example.DVICO-irxevent $ mv lircrc.example.DVICO-irxevent ~/.lircrc
And to get irxevent to automatically start when user 'mythtv' logs in, run the following command as mythtv.
$ ln -s /usr/local/bin/irxevent ~/.kde/Autostart/irxevent
Okay, almost there now, we can almost start to run mythtv.