I'm running the latest SVN version of LIRC -- I don't know if the Ubuntu dist includes the linux-input-layer (worth a try)
Step 1: Configure LIRC
/etc/lircd/lircd.conf:
http://pastebin.com/PfGGBgWr
hardware.conf: this is tricky. You have to get the device path right. First, run
Code:
cat /proc/bus/input/devices
the output will look like
Code:
I: Bus=0003 Vendor=15c2 Product=0038 Version=0002
N: Name="iMON Remote (15c2:0038)"
P: Phys=usb-0000:00:06.0-4/input0
S: Sysfs=/devices/pci0000:00/0000:00:06.0/usb4/4-4/4-4:1.0/rc/rc0/input4
U: Uniq=
H: Handlers=kbd mouse1 event4
B: EV=100007
B: KEY=fff 0 0 400000 108c0320 2d50082 0 0 30000 4 119000 4196 14100801 809e1680 0 2000000 10004002
B: REL=103
Replace the phys line in the hardware.conf
http://pastebin.com/cFn6Lbq5 with the value from the phys= line above. In my hardware.conf that looks like
Code:
...
REMOTE_DEVICE="phys="usb-0000:00:06.0-4/input0""
...
TRANSMITTER_DEVICE="phys="usb-0000:00:06.0-4/input0""
...
Step 2:
Restart lircd:
Code:
/etc/init.d/lirc stop
/etc/init.d/lirc start
Test lirc:
Code:
xbmc@frontmedia:~$ irw
0000000000010069 00 LEFT linux-input-layer
0000000000010069 00 LEFT linux-input-layer
000000000001006a 00 RIGHT linux-input-layer
000000000001006a 00 RIGHT linux-input-layer
000000000001006a 00 RIGHT linux-input-layer
000000000001006a 00 RIGHT linux-input-layer
0000000000010069 00 LEFT linux-input-layer
Gotcha 2: if you don't see anything, press the keyboard/mouse button on the remote. You may have to do this after every reboot. If you still don't see anything, then something in the config is wrong.
Step 3: Configure XBMC
Gotcha 3: latest SVN has linux-input-layer in the Lircmap.xml but it has the wrong key names. Here's my version:
/usr/share/xbmc/system/Lircmap.xml:
http://pastebin.com/VYRUL5f7
Restart xbmc and test in xbmc.