Difference between revisions of "Ubuntu lirc install"

From MythTV Official Wiki
Jump to: navigation, search
(Install)
(About)
Line 5: Line 5:
  
 
There are similar instructions at the Ubuntu Community site https://help.ubuntu.com/community/Install_Lirc_Feisty
 
There are similar instructions at the Ubuntu Community site https://help.ubuntu.com/community/Install_Lirc_Feisty
 +
 +
If you are using a serial device, there is a guide at http://www.mythtv.org/wiki/index.php/Ubuntu_Serial_Lirc_Install
  
 
===Install===
 
===Install===

Revision as of 01:39, 12 September 2007

About

This Guide is the 'official' way to install Lirc remote control drivers in Ubuntu Linux

This guide is 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, there is a guide at http://www.mythtv.org/wiki/index.php/Ubuntu_Serial_Lirc_Install

Install

  • 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

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
  • Test
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
  • Done

Guide also available at wiki.efficientpc.co.uk