[mythtv-users] iMON & ir-keytable on Fedora 15

Rob Verduijn rob.verduijn at gmail.com
Fri May 27 09:06:10 UTC 2011


Hi,

Don't know if it's much of help, but I've had a real pain with that on
opensuse as well.
Here's the way I fixed it :

http://www.mythtv.org/pipermail/mythtv-users/2011-April/313891.html

Regards
Rob Verduijn

2011/5/27 Douglas Clowes <dclowes1 at optusnet.com.au>:
> On 2011-05-27 18:11, Erik Sejr wrote:
>> Hello list,
>> I've got an Antec case with a Soundgraph (iMon) LCD&  IR receiver. I
>> recently upgraded from Fedora 13 to Fedora 15, and I read over some of
>> Jarods changes in the imon module (particularly the removal of the
>> ir_protocol option). I was using this option to set the device to MCE
>> mode (ir_protocol = 1) in Fedora 13 and running lircd using the devinput
>> driver.
>>
>> I have been attempting to get the device back in RC-6 mode with no
>> success so far. ir-keytable sees the device:
>>
>> Found /sys/class/rc/rc3/ (/dev/input/event7) with:
>>          Driver imon, table rc-imon-pad
>>          Supported protocols: RC-6
>>          Enabled protocols:
>>          Repeat delay = 500 ms, repeat period = 33 ms
>>
>> And I can read the existing table:
>>
>> # ir-keytable -d /dev/input/event7 -s /sys/class/rc/rc3 -r
>> scancode 0x100007f = KEY_RIGHT (0x6a)
>> scancode 0x1000080 = KEY_LEFT (0x69)
>> scancode 0x1007f00 = KEY_DOWN (0x6c)
>> scancode 0x1008000 = KEY_UP (0x67)
>> scancode 0x200001e = KEY_NUMERIC_1 (0x201)
>> scancode 0x200001f = KEY_NUMERIC_2 (0x202)
>> scancode 0x2000020 = KEY_NUMERIC_3 (0x203)
>> scancode 0x2000021 = KEY_NUMERIC_4 (0x204)
>> scancode 0x2000022 = KEY_NUMERIC_5 (0x205)
>> scancode 0x2000023 = KEY_NUMERIC_6 (0x206)
>> scancode 0x2000024 = KEY_NUMERIC_7 (0x207)
>> scancode 0x2000025 = KEY_NUMERIC_8 (0x208)
>> scancode 0x2000026 = KEY_NUMERIC_9 (0x209)
>> scancode 0x2000027 = KEY_NUMERIC_0 (0x200)
>> scancode 0x2000028 = KEY_ENTER (0x1c)
>> scancode 0x2000029 = KEY_ESC (0x01)
>> scancode 0x200002a = KEY_BACKSPACE (0x0e)
>> scancode 0x200002c = KEY_SPACE (0x39)
>> scancode 0x2200020 = KEY_NUMERIC_POUND (0x20b)
>> scancode 0x2200025 = KEY_NUMERIC_STAR (0x20a)
>> scancode 0x288195b7 = KEY_EXIT (0xae)
>> scancode 0x288515b7 = KEY_BOOKMARKS (0x9c)
>> scancode 0x288795b7 = KEY_CHANNELDOWN (0x193)
>> scancode 0x289395b7 = KEY_CHANNELUP (0x192)
>> scancode 0x289515b7 = KEY_DOWN (0x6c)
>> scancode 0x28a115b7 = KEY_BACKSPACE (0x0e)
>> scancode 0x28a195b7 = KEY_ENTER (0x1c)
>> scancode 0x28a395b7 = KEY_VOLUMEUP (0x73)
>> scancode 0x28a515b7 = KEY_TV (0x179)
>> scancode 0x28a595b7 = KEY_VOLUMEDOWN (0x72)
>> scancode 0x28b195b7 = KEY_NUMERIC_3 (0x203)
>> scancode 0x28b515b7 = KEY_NUMERIC_STAR (0x20a)
>> scancode 0x28b595b7 = KEY_NUMERIC_1 (0x201)
>> scancode 0x298115b7 = KEY_RECORD (0xa7)
>> scancode 0x298195b7 = KEY_NEXT (0x197)
>> scancode 0x298315b7 = KEY_REWIND (0xa8)
>> scancode 0x298595b7 = KEY_SUBTITLE (0x172)
>> scancode 0x299115b7 = KEY_KEYBOARD (0x176)
>> scancode 0x299135b7 = KEY_KEYBOARD (0x176)
>> scancode 0x299195b7 = KEY_AUDIO (0x188)
>> scancode 0x299595b7 = KEY_NUMERIC_5 (0x205)
>> scancode 0x29a115b7 = KEY_NUMERIC_POUND (0x20b)
>> scancode 0x29a295b7 = KEY_DVD (0x185)
>> scancode 0x29a395b7 = KEY_DVD (0x185)
>> scancode 0x29a515b7 = KEY_LEFT (0x69)
>> scancode 0x29a595b7 = KEY_ZOOM (0x174)
>> scancode 0x2a8115b7 = KEY_PLAY (0xcf)
>> scancode 0x2a8195b7 = KEY_REWIND (0xa8)
>> scancode 0x2a8315b7 = KEY_PLAY (0xcf)
>> scancode 0x2a8515b7 = KEY_NUMERIC_8 (0x208)
>> scancode 0x2a8595b7 = KEY_NUMERIC_4 (0x204)
>> scancode 0x2a9115b7 = KEY_PAUSE (0x77)
>> scancode 0x2a9315b7 = KEY_SPACE (0x39)
>> scancode 0x2aa115b7 = KEY_NUMERIC_9 (0x209)
>> scancode 0x2aa395b7 = KEY_SCREEN (0x177)
>> scancode 0x2aa515b7 = KEY_UP (0x67)
>> scancode 0x2aa595b7 = KEY_NUMERIC_6 (0x206)
>> scancode 0x2ab715b7 = KEY_MEDIA (0xe2)
>> scancode 0x2b8115b7 = KEY_FASTFORWARD (0xd0)
>> scancode 0x2b8315b7 = KEY_FASTFORWARD (0xd0)
>> scancode 0x2b8515b7 = KEY_VIDEO (0x189)
>> scancode 0x2b8595b7 = KEY_LANGUAGE (0x170)
>> scancode 0x2b9115b7 = KEY_PREVIOUS (0x19c)
>> scancode 0x2b9395b7 = KEY_NUMERIC_7 (0x207)
>> scancode 0x2b9595b7 = KEY_MUTE (0x71)
>> scancode 0x2b9715b7 = KEY_STOP (0x80)
>> scancode 0x2ba115b7 = KEY_CAMERA (0xd4)
>> scancode 0x2ba385b7 = KEY_MENU (0x8b)
>> scancode 0x2ba395b7 = KEY_MENU (0x8b)
>> scancode 0x2ba515b7 = KEY_RIGHT (0x6a)
>> scancode 0x2ba595b7 = KEY_NUMERIC_0 (0x200)
>> scancode 0x2bb195b7 = KEY_NUMERIC_2 (0x202)
>> scancode 0x2bb715b7 = KEY_ESC (0x01)
>> Enabled protocols: JVC SONY LIRC
>>
>> But I tried to change the protocol and ir-keytable just seg faults:
>>
>> # ir-keytable -d /dev/input/event7 -s /sys/class/rc/rc3 -p rc6
>> Segmentation fault (core dumped)
>>
>> Under the debugger it looks like this (not sure how helpful it is)
>>
>> GNU gdb (GDB) Fedora (7.2.90.20110429-36.fc15)
>> Reading symbols from /usr/bin/ir-keytable...Reading symbols from
>> /usr/lib/debug/usr/bin/ir-keytable.debug...done.
>> done.
>> (gdb) run -d /dev/input/event7 -s /sys/class/rc/rc3 -p rc6
>> Starting program: /usr/bin/ir-keytable -d /dev/input/event7 -s
>> /sys/class/rc/rc3 -p rc6
>>
>> Program received signal SIGSEGV, Segmentation fault.
>> __strcpy_chk () at ../sysdeps/x86_64/strcpy_chk.S:71
>> 71              movq    (%rsi), %rax    /* Read double word (8 bytes).  */
>> (gdb) bt
>> #0  __strcpy_chk () at ../sysdeps/x86_64/strcpy_chk.S:71
>> #1  0x000000000040275f in strcpy (__src=<optimized out>,
>> __dest=0x7fffffffd480 "") at /usr/include/bits/string3.h:105
>> #2  v1_set_hw_protocols (rc_dev=0x7fffffffe4b0) at keytable.c:742
>> #3  0x0000000000401795 in set_proto (rc_dev=0x7fffffffe4b0) at
>> keytable.c:1117
>> #4  main (argc=<optimized out>, argv=<optimized out>) at keytable.c:1495
>>
>> I was able to write the rc6_mce table to the device (but ir-keytable
>> still seg faults at the end). I also cannot perform a test (-t) for the
>> same reason.
>>
>> Has anyone been able to get imon working under Fedora 15?
>>
>> Thanks,
>> Erik
>>
>>
>>
>> _______________________________________________
>> mythtv-users mailing list
>> mythtv-users at mythtv.org
>> http://www.mythtv.org/mailman/listinfo/mythtv-users
> try
> ir-keytable -s rc0 -c -w /etc/rc_keymaps/rc6_mce -p rc6
>
> where rc0 is the rcX from
>
> /sys/class/rc/rc3
>
> /sys/class/rc/rc3
>
> Cheers,
>
> Douglas
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://www.mythtv.org/mailman/listinfo/mythtv-users
>


More information about the mythtv-users mailing list