[mythtv-users] Anybody had any luck with Gentoo/lirc-0.9.0/MCE remotes?
Wil
nodenet at hotmail.com
Sat Jan 14 17:28:02 UTC 2012
>
> OK - I've fiddled with stuff, and come up with the correct responses
> in irw - but now I see the arrows keys (and a couple of others) twice
> - once through lirc, and once as keystrokes (e.g., [A through [D for
> the arrows). Also, Myth still only sees the arrow keys. I have Myth
> pointing to /dev/lircd, and I have this in /dev:
>
>
> crw------- 1 root root 249, 0 Jan 13 16:09 /dev/lirc0
> lrwxrwxrwx 1 root root 19 Jan 13 21:10 /dev/lircd ->
> /var/run/lirc/lircd
>
> So close!
I remember having lots of fun getting this working too, I'm not sure if your
using an imon (might be different if not). I can't quite remember everything
I did to make it run. It works ok in 3.0.4 (with patch for race condition
applied) but sometimes it seems to completely fail in 3.2.0-r1. There were a
bunch of kernel options I enabled but you sound like you have those covered.
I remember I put the protocol and keymap in udev...
# cat /etc/udev/rules.d/10-imon-mce.rules
# Change IR Protocol
ACTION=="add|change", SUBSYSTEM=="rc", SUBSYSTEMS=="usb", DRIVERS=="imon",
ATTR{protocols}="rc-6"
# Load MCE keymap
ACTION=="add|change", KERNEL=="event[0-9]*", SUBSYSTEMS=="rc",
RUN+="/usr/bin/ir-keytable -c -w /etc/rc_keymaps/imon_mce"
Sometimes the event numbering would change so I put this in
/etc/conf.d/lircd
LIRCD_OPTS="-H devinput -d
/dev/input/by-path/pci-0000:00:1d.2-usb-0:1:1.0-event"
If you do something like
ls -l /dev/input/by-path/
you should be able to see the appropriate choices.
Also have a look at http://www.lirc.org/html/devinput.html there is a
generic config file that is normally required if not already installed.
There may also be some other useful information relating to hal if you are
using it.
wget http://lirc.sourceforge.net/remotes/devinput/lircd.conf.devinput
I can't remember the exact reason but I changed the file (lircd.mod is the
above with the part that says obsolete 32bit version removed).
# diff -u lircd.mod /etc/lirc/lircd.conf
--- lircd.mod 2012-01-14 17:14:01.000000000 +0000
+++ /etc/lirc/lircd.conf 2011-09-04 00:32:16.000000000 +0100
@@ -1,4 +1,13 @@
-# generated by devinput.sh
+#
+# this config file was automatically generated
+# using lirc-0.7.1pre2(imon) on Tue Mar 1 23:15:44 2005
+#
+# contributed by Venky Raju
+#
+# brand: iMON-New
+# model no. of remote control: iMON-PAD
+# devices being controlled by this remote:
+#
begin remote
@@ -17,17 +26,28 @@
toggle_bit_mask 0x0
begin codes
- KEY_0 0x000B
+# KEY_0 0x000B
KEY_102ND 0x0056
- KEY_1 0x0002
- KEY_2 0x0003
- KEY_3 0x0004
- KEY_4 0x0005
- KEY_5 0x0006
- KEY_6 0x0007
- KEY_7 0x0008
- KEY_8 0x0009
- KEY_9 0x000A
+# KEY_1 0x0002
+# KEY_2 0x0003
+# KEY_3 0x0004
+# KEY_4 0x0005
+# KEY_5 0x0006
+# KEY_6 0x0007
+# KEY_7 0x0008
+# KEY_8 0x0009
+# KEY_9 0x000A
+ KEY_0 0x0200
+ KEY_1 0x0201
+ KEY_2 0x0202
+ KEY_3 0x0203
+ KEY_4 0x0204
+ KEY_5 0x0205
+ KEY_6 0x0206
+ KEY_7 0x0207
+ KEY_8 0x0208
+ KEY_9 0x0209
+
KEY_A 0x001E
KEY_AB 0x0196
KEY_AGAIN 0x0081
@@ -194,7 +214,8 @@
KEY_KP7 0x0047
KEY_KP8 0x0048
KEY_KP9 0x0049
- KEY_KPASTERISK 0x0037
+# KEY_KPASTERISK 0x0037
+ KEY_KPASTERISK 0x020A
KEY_KPCOMMA 0x0079
KEY_KPDOT 0x0053
KEY_KPENTER 0x0060
@@ -203,7 +224,8 @@
KEY_KPLEFTPAREN 0x00B3
KEY_KPMINUS 0x004A
KEY_KPPLUS 0x004E
- KEY_KPPLUSMINUS 0x0076
+# KEY_KPPLUSMINUS 0x0076
+ KEY_KPPLUSMINUS 0x020B
KEY_KPRIGHTPAREN 0x00B4
KEY_KPSLASH 0x0062
KEY_L 0x0026
I'm not sure if the repetition problem is due to a config error or event
repetition. If it's due to event repetition try modifying your
.mythtv/lircrc file e.g.
begin
prog = mythtv
button = KEY_DOWN
config = Down
delay = 3
repeat = 1
end
The values for delay and repeat will change how sensitive it is to repeats
and how quickly the repetitions occur. If there were any other steps I'm
afraid I've forgotten them. If you're using a proper mce receiver rather
than an imon things may be different of course.
More information about the mythtv-users
mailing list