2011-07-08, 13:51
LB06 just want to say thanks for this post lot of work you put in. Its a very good overview with a lot of usefull detail!
LB06 Wrote:Thank you for testing! So I guess there's a bug in the i386 version of ir-keytable that prevents some scancodes from getting loaded properly. I'll see if I can submit a proper bug report.
$ cat /etc/rc.local
ir-keytable -c -p RC6,LIRC -w /etc/rc_keymaps/rc6_mce
$ sudo ir-keytable
Found /sys/class/rc/rc0/ (/dev/input/event2) with:
Driver mceusb, table rc-rc6-mce
Supported protocols: NEC RC-5 RC-6 JVC SONY LIRC
Enabled protocols: RC-6 LIRC
Repeat delay = 500 ms, repeat period = 33 ms
$ lsmod | grep irc
ir_lirc_codec 12898 0
lirc_dev 19232 1 ir_lirc_codec
rc_core 26918 9 ir_lirc_codec,ir_sony_decoder,ir_jvc_decoder,ir_rc6_decoder,ir_rc5_decoder,rc_rc6_mce,ir_nec_decoder,mceusb
$ cat /etc/lirc/hardware.conf
# /etc/lirc/hardware.conf
#
#Chosen Remote Control
REMOTE="Linux input layer (/dev/input/eventX)"
REMOTE_MODULES=""
REMOTE_DRIVER="devinput"
REMOTE_DEVICE="/dev/input/by-id/usb-FINTEK_eHome_Infrared_Transceiver_88636562727801-event-if00"
REMOTE_SOCKET=""
REMOTE_LIRCD_CONF="devinput/lircd.conf.devinput"
REMOTE_LIRCD_ARGS=""
#Chosen IR Transmitter
TRANSMITTER="None"
TRANSMITTER_MODULES=""
TRANSMITTER_DRIVER=""
TRANSMITTER_DEVICE=""
TRANSMITTER_SOCKET=""
TRANSMITTER_LIRCD_CONF=""
TRANSMITTER_LIRCD_ARGS=""
#Enable lircd
START_LIRCD="true"
#Don't start lircmd even if there seems to be a good config file
#START_LIRCMD="false"
#Try to load appropriate kernel modules
LOAD_MODULES="true"
# Default configuration files for your hardware if any
LIRCMD_CONF=""
#Forcing noninteractive reconfiguration
#If lirc is to be reconfigured by an external application
#that doesn't have a debconf frontend available, the noninteractive
#frontend can be invoked and set to parse REMOTE and TRANSMITTER
#It will then populate all other variables without any user input
#If you would like to configure lirc via standard methods, be sure
#to leave this set to "false"
FORCE_NONINTERACTIVE_RECONFIGURATION="false"
START_LIRCMD=""
$ sudo ir-keytable -t
Testing events. Please, press CTRL-C to abort.
1310289132.319176: event MSC: scancode = 800f0422
1310289132.319197: event key down: KEY_OK (0x0160)
1310289132.319199: event sync
$ cat /etc/lirc/lircd.conf
#Configuration for the Linux input layer (/dev/input/eventX) remote:
include "/usr/share/lirc/remotes/devinput/lircd.conf.devinput"
$ sudo irw
0000000080010160 00 KEY_OK devinput
$ cat /etc/rc_keymaps/rc6_mce
# table rc6_mce, type: RC6
0x800f0422 KEY_OK
$ lsusb
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
[b]Bus 004 Device 002: ID 1934:[u]5168[/u] Feature Integration Technology Inc. (Fintek) F71610A or F71612A Consumer Infrared Receiver/Transceiver[/b]
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 006: ID 0b38:0010 Gear Head 107-Key Keyboard
Bus 002 Device 005: ID 046d:c049 Logitech, Inc. G5 Laser Mouse
Bus 002 Device 003: ID 0bda:0151 Realtek Semiconductor Corp. Mass Storage Device (Multicard Reader)
Bus 002 Device 002: ID 1a40:0101 TERMINUS TECHNOLOGY INC. USB-2.0 4-Port HUB
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
$ grep 5168 /sys/bus/usb/devices/*/idProduct
/sys/bus/usb/devices/4-2/idProduct:5168
$ cat /sys/bus/usb/devices/4-2/power/wakeup
disabled
$ sudo sh -c 'echo "enabled" > /sys/bus/usb/devices/4-2/power/wakeup'
echo USB1 > /proc/acpi/wakeup
echo enabled > /sys/bus/usb/devices/4-2/power/wakeup
sudo chmod +x /etc/rc.local
gazrat Wrote:Just wanted to say that I've managed to get mine working
I used a version of ir-keytables from the linuxtv.org website and followed the first part of these instructions
http://2cheeseburgers.blogspot.com/2010/...erick.html
(I didn't need to rename the RC-6 protocol, but one to watch out for)
Thanks a lot to LB06, your help was much appreciated.
Finally back to using XBMC as it should be used, from the couch
gazrat Wrote:Just wanted to say that I've managed to get mine working
I used a version of ir-keytables from the linuxtv.org website and followed the first part of these instructions
http://2cheeseburgers.blogspot.com/2010/...erick.html
(I didn't need to rename the RC-6 protocol, but one to watch out for)
Thanks a lot to LB06, your help was much appreciated.
Finally back to using XBMC as it should be used, from the couch
ir-keytable -c -p RC5,RC6,NEC,SONY,JVC -w /etc/rc_keymaps/test -t
opening keycode file: No such file or directory