Kodi Community Forum

Full Version: Lirc MCE Remote on 10.10 Maverick no longer possible? (kernel 2.5.35)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Following the guide here http://forum.xbmc.org/showthread.php?tid=104541 it seems that the later kernels > 2.6.33 require ir-keytable to make the remote key presses start working (such as can be seen using 'irw'). I followed the XBMCbuntu guide using a minimal install of 10.10 maverick and have everything setup including hdmi audio, gfx drivers, etc.. and would really like to finish this thing with getting a remote to work.. am I out of luck and have to start over with Natty, so that I can install ir-keytable and get lirc to work?

ugghhh

I've never upgraded an Ubuntu machine, so not sure what I'd have to setup again if upgraded to natty vs a new fresh install...

Code:
xbmc@ubuntu:/etc/lirc$ uname -a
Bus 003 Device 002: ID 147a:e03c Formosa Industrial Computing, Inc. eHome Infrared Receiver

Code:
xbmc@ubuntu:/etc/lirc$ lsusb
Bus 003 Device 002: ID 147a:e03c Formosa Industrial Computing, Inc. eHome Infrared Receiver

Code:
xbmc@ubuntu:/etc/lirc$ lsmod | grep lirc
ir_lirc_codec           3888  0
lirc_dev               11209  1 ir_lirc_codec
ir_core                16906  10 ir_lirc_codec,cx23885,ir_sony_decoder,ir_jvc_decoder,ir_rc6_decoder,rc_rc6_mce,ir_rc5_decoder,ir_nec_decoder,mceusb

Code:
xbmc@ubuntu:/etc/lirc$ dmesg | grep eHome
[   11.921673] generic-usb 0003:147A:E03C.0001: hiddev96,hidraw0: USB HID v1.00 Device [Formosa21 eHome Infrared Transceiver] on usb-0000:00:1a.0-1/input1
[   12.190103] input: Media Center Ed. eHome Infrared Remote Transceiver (147a:e03c) as /devices/virtual/rc/rc0/input4
[   12.190154] rc0: Media Center Ed. eHome Infrared Remote Transceiver (147a:e03c) as /devices/virtual/rc/rc0
[   12.190174] mceusb 3-1:1.0: Registered Formosa21 eHome Infrared Transceiver on usb3:2


Code:
cat /proc/bus/input/devices
<snip>
I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="Media Center Ed. eHome Infrared Remote Transceiver (147a:e03c)"
P: Phys=usb-0000:00:1a.0-1/input0
S: Sysfs=/devices/virtual/rc/rc0/input4
U: Uniq=
H: Handlers=kbd event4
B: EV=100003
B: KEY=fff 0 108fc326 217604100000000 0 118000 418000100001 9e968000000000 10000000
found guide to upgrade to natty.. here goes.
up and running on natty.. still nothing after using ir-keytable and irw... arg.....
does ir keytable see the formosa and respond with an rc0 and an event.
i haven't figured out enough of how it *should* work to know how to check that.

I enter irw and hit remote buttons but no codes come up in the terminal. Only way I can get codes is after doing 'sudo ir-keytable -c -p NEC,RC-5,RC-6,JVC,SONY -t'


Code:
xbmc@ubuntu:~$ sudo ir-keytable -c -p NEC,RC-5,RC-6,JVC,SONY -t
Old keytable cleared
Protocols changed to NEC RC-5 RC-6 JVC SONY
Testing events. Please, press CTRL-C to abort.
1328235270.507900: event MSC: scancode = 800f741e
1328235271.075898: event MSC: scancode = 800f741f
1328235271.175901: event MSC: scancode = 800f741f
1328235271.393898: event MSC: scancode = 800f7421
1328235271.776900: event MSC: scancode = 800f7420
1328235271.877898: event MSC: scancode = 800f7420
1328235272.078922: event MSC: scancode = 800f7422
1328235272.178901: event MSC: scancode = 800f7422
1328235272.279899: event MSC: scancode = 800f7422
1328235272.404898: event MSC: scancode = 800f7422
1328235272.505898: event MSC: scancode = 800f7422
1328235272.605891: event MSC: scancode = 800f7422

going a step further -- I can specify RC-6 and get codes as well:

Code:
xbmc@ubuntu:~$ sudo ir-keytable -c -p RC-6 -t
Old keytable cleared
Protocols changed to RC-6
Testing events. Please, press CTRL-C to abort.
1328235354.350907: event MSC: scancode = 800f741e
1328235354.463914: event MSC: scancode = 800f741e
1328235354.811917: event MSC: scancode = 800f741f
1328235354.911910: event MSC: scancode = 800f741f
1328235355.153915: event MSC: scancode = 800f7421
1328235355.254914: event MSC: scancode = 800f7421
1328235355.529914: event MSC: scancode = 800f7420
1328235355.630912: event MSC: scancode = 800f7420
1328235355.872914: event MSC: scancode = 800f7422
1328235355.972914: event MSC: scancode = 800f7422

but then if I set protocol to RC-6 and try to see the codes with irw, I get nothing:

Code:
xbmc@ubuntu:~$ sudo ir-keytable -c -p RC-6
Old keytable cleared
Protocols changed to RC-6
xbmc@ubuntu:~$ irw
(nothing here after hitting buttons on remote)
Finally got things working using this guide - http://forum.xbmc.org/showthread.php?tid=114124

Note thought that my remote, a microsoft xbox 360 / mce remote has slightly different keycodes which I had to change in my /etc/rc_keymaps/rc6_mce file..

instead of a code being 0x0800f0422, mine was registering as 0x0800f7422. I changed all the lines and am testing the buttons out now.