[mythtv-users] Need help to setup iMON remote and VFD on Fedora 14

Jarod Wilson jarod at wilsonet.com
Fri Nov 12 05:37:11 UTC 2010


2010/11/11 Andrew Junev <a-j at a-j.ru>:
> Hello Jarod,
>
> Thursday, November 11, 2010, 7:03:59 PM, you wrote:
>
>>>  Here's my setup:
>>>
>>>  # lsusb
>>> Bus 005 Device 002: ID 15c2:0038 SoundGraph Inc. GD01 MX VFD Display/IR Receiver
>>>  # uname -a
>>> Linux fedora.host 2.6.35.6-48.fc14.i686 #1 SMP Fri Oct 22 15:34:36 UTC 2010 i686 i686 i386 GNU/Linux
>>>
>
>> http://wilsonet.com/?p=45
>
>> Its a pure input layer device. Can be used with lircd's devinput
>> driver, attaching to the /dev/input/eventX node created by the imon
>> driver (or, preferably, to /dev/input/by-id/<unique ID for your
>> device>, as the X in eventX *can* change).
>
>
> Thanks a lot for your response!
> I found a lot of information on iMON becoming "input layer device" in
> the recent kernels, and started to dig that way. But I didn't get much
> progress by now... :-(
>
> My /etc/sysconfig/lirc looks like this now:
>
> LIRCD_OPTIONS=""
> LIRC_DRIVER="devinput"
> LIRC_DEVICE="/dev/input/by-id/usb-15c2_0038-event-mouse"
> ENABLE_LIRCMD="no"
> LIRCMD_OPTIONS=""
>
>
> And use lircd.conf.devinput as my lircd.conf.

Config all looks perfect.

> But lircd still does not
> work, at least not the way I want it to...
>
> When keys are pressed on the remote, I get these in /var/log/messages:
>
> Nov 11 19:25:22 fedora kernel: [ 4390.670952] imon 5-2:1.0: imon_incoming_packet: unknown keypress, code 0x100000c
> Nov 11 19:25:22 fedora kernel: [ 4390.702935] intf0 decoded packet: 01 00 00 0e 00 00 00 00
> Nov 11 19:25:22 fedora kernel: [ 4390.702947] imon 5-2:1.0: imon_incoming_packet: unknown keypress, code 0x100000e

Hm. Can you isolate exactly which keys are generating these? The issue
here is that these scancodes aren't mapped to any keycodes in the
driver, as I/we haven't ever seen them before.

> Nov 11 19:25:22 fedora kernel: [ 4390.742932] intf0 decoded packet: 01 00 7f 00 00 00 00 00

Note no 'unknown keypress' after this one, as that scancode maps to KEY_DOWN.

> Nov 11 19:25:22 fedora kernel: [ 4390.782934] intf0 decoded packet: 01 00 ff 0e 00 00 00 00
> Nov 11 19:25:22 fedora kernel: [ 4390.782948] imon 5-2:1.0: imon_incoming_packet: unknown keypress, code 0x100ff0e
>
>
> Am I right thinking it's not going through lirc?

Yes. If we fail to find a scancode, then we are unable to send a
keycode, and lircd in devinput mode relies upon keycodes.

> Does it look like a conflict with HAL? I read about it on lirc.org,
> but I didn't understand if I need to add my device to ignore list and
> how exactly I can do this...

Not a hal problem. We just need to add some more scancode->keycode
mappings to the driver. If you can figure out which button each of
those unknown scancodes maps to, I can get them added to the driver.
It *should* be possible to upload new mappings into the driver using
ir-keytable from v4l-utils, but I've been having issues with it myself
lately...


-- 
Jarod Wilson
jarod at wilsonet.com


More information about the mythtv-users mailing list