MonCaso312
This page try to explain how to setup lirc with the HTPC Case Moneunal MonCaso 312. The goal is to make it easier to any one trying to get it work as the information on the web is not very clear an may confuse people.
Get Lirc
To get the lirc work with you're IR receiver, you required lirc v0.9.0 and later. At the time of writing this documentation, Ubuntu doesn't have a package for it, but Debian sid as one.
Download the lirc package for your platform (usually i386) from debian package repository : http://packages.debian.org/unstable/utils/lirc
Then double click on it to install the package.
Configure
Edit the file /etc/lirc/hardware.conf as follow :
DRIVER="mplay" DEVICE="/dev/ttyUSB0"
Edit the file /etc/lirc/lircd.conf as follow :
begin remote name Moncaso_312 bits 8 eps 30 aeps 100 one 0 0 zero 0 0 gap 107899 toggle_bit_mask 0x0 begin codes PwrOff 0x41 PwrOn 0x55 Hotkey 0x5A DVD 0x14 Menu 0x5C Sleep 0x58 Rec 0x11 Play 0x09 Eject 0x5E Rew 0x0D Pause 0x05 FF 0x15 Prev 0x1A Stop 0x01 Next 0x1E Full_Screen 0x0C Ratio 0x10 Task_Switcher 0x17 Movie 0x40 Music 0x56 Photo 0x45 TV 0x46 OK 0x42 Up 0x19 Left 0x54 Right 0x43 Down 0x1D Back 0x0B Exit 0x1F Mute 0x4A More 0x4B Open 0x04 Vol+ 0x0A Vol- 0x0E CH+ 0x12 CH- 0x16 1 0x4D 2 0x4E 3 0x4F 4 0x50 5 0x51 6 0x52 7 0x53 8 0x03 9 0x07 0 0x4C Quick_Guide 0x08 Timer 0x18 end codes end remote
Test
Before installing lirc on your system, you may want to test if you're receiver work with you're remote. To do so, you may used irrecord. Run the following command and read the instruction at your screen.
sudo irrecord -H mplay2 -d /dev/ttyUSB0 ~/test
When you press buttons, you should be able to see dots (.) appear.
Start lirc:
sudo /etc/init.d/lirc start
Test lircd using irw:
sudo irw
When pressing buttons, you should see the button's name on screen.
References
lirc patches submit for MonCaso312
Lirc/MonCaso312 (last edited 2011-05-29 16:29:03 by IP-68-67-41-4)