Ubuntu lirc install
This Guide is the 'official' way to install Lirc remote control drivers in Ubuntu Linux for the Windows Media Center remote control but should work with any Lirc driver.
There are similar instructions at the Ubuntu Community site https://help.ubuntu.com/community/Install_Lirc_Feisty
If you are using a serial device, see the Ubuntu_Serial_Lirc_Install guide.
On Ubuntu Feisty, the instructions given here and on the https://help.ubuntu.com/community/Install_Lirc_Feisty does not play well with serial devices. The guide at this link installs a working lirc named ledxmit (its still lirc but does not interfere with the lirc installed by apt) and it works well with homemade serial port irblasters: http://ubuntuforums.org/showthread.php?t=550068
- Install Lirc
sudo apt-get install lirc lirc-modules-source module-assistant
- Configure lirc-modules-source
sudo dpkg-reconfigure lirc-modules-source
A Configuration should appear Choose the OK button and press enter (tab key to move across) Make sure only the mceusb2 modules is selected, use the space bar to select, and then press enter on OK You will be given an option to build the modules. Be sure not to build the modules here You may be given an option to replace with a new version. Be sure to choose to Install the package maintainer's version
- Modify /etc/lirc/hardware.conf
sudo nano /etc/lirc/hardware.conf
Make sure LOAD_MODULES is =true. Also, add your module to the line that is MODULES="". For the mceusb2 driver, this would be lirc_mceusb2
If using lirc_mceusb your files should match http://www.mythtv.org/wiki/Ubuntu_lirc_configuration_files#lirc_mceusb
If using lirc_mceusb2 your files should match http://www.mythtv.org/wiki/Ubuntu_lirc_configuration_files#lirc_mceusb2
Fiesty (7.04) may require you to change DEVICE to DEVICE="/dev/lirc/0" despite the fact that the comments said this would be adjusted automagically but I found it not necessary.
- Remove Old Drivers and Build Lirc Modules (Don't worry about file not found errors).
sudo m-a update,prepare sudo rm /usr/src/lirc*deb sudo m-a clean lirc sudo m-a a-i -f lirc sudo depmod -a
- Create a lircd.conf
wget http://download.efficientpc.co.uk/files/lircd.conf.mceusb sudo cp lircd.conf.mceusb /etc/lirc/lircd.conf
- Load Module
sudo modprobe lirc_mceusb2
- Restart Lirc
sudo /etc/init.d/lirc restart
irw Press some keys on the remote and see if you get any response
- Copy Key mapping to home directory (Added xmms support, Thanks Elliot Taylor)
wget http://download.efficientpc.co.uk/files/lircrc cp lircrc ~/.lircrc
- Give Mythtv access to Lircrc (If you use Mythtv)
ln -s ~/.lircrc ~/.mythtv/lircrc