Linux iMON Pad - Need Reliable Info

  Thread Rating:
  • 3 Votes - 4.67 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
sparkie2640 Offline
Junior Member
Posts: 32
Joined: Sep 2008
Reputation: 2
Post: #11
(2012-03-30 15:32)David1977 Wrote:  No Problem....tell me what you need Wink

This is the cat....

cat /proc/bus/input/devices


I hope it may help

The type of the receiver is a "Soundgraph iMon-Pad VFD/IR"

And if you need....

Greetings

Your receiver is the 'old' receiver.

I: Bus=0003 Vendor=15c2 Product=ffdc Version=0000
N: Name="iMON Panel, Knob and Mouse(15c2:ffdc)"

The FFDC portion is how you tell. You no longer need lirc to manage this. Run apt-get install ir-keytable, and then run ir-keytable you should see an output similar to this:

Code:
Found /sys/class/rc/rc0/ (/dev/input/event4) with:
        Driver imon, table rc-imon-pad
        Supported protocols: RC-6 other
        Enabled protocols:
        Extra capabilities: <access denied>

That tells me that I am using the rc-imon-pad key configuration from /lib/udev/rc_keymaps (the file is named imon_pad) inside of there it's pretty similar to an lirc configuration file. e.g.:

Code:
# table imon_pad, type: OTHER
0x2a8195b7 KEY_REWIND
0x298315b7 KEY_REWIND
0x2b8115b7 KEY_FASTFORWARD
0x2b8315b7 KEY_FASTFORWARD
0x2b9115b7 KEY_PREVIOUS
0x298195b7 KEY_NEXT
0x2a8115b7 KEY_PLAY
0x2a8315b7 KEY_PLAY
0x2a9115b7 KEY_PAUSE
0x2b9715b7 KEY_STOP
0x298115b7 KEY_RECORD

Running ir-keytable -t should display something for each button that you hit
Running ir-keytable -r should display the current keymapping for each key.

I'm still working on fixing both of mine (I have both the 'old' and the 'new' receivers and each is being a colossal pain in the ass)
(This post was last modified: 2012-03-30 16:14 by sparkie2640.)
find quote
David1977 Offline
Senior Member
Posts: 210
Joined: Jan 2011
Reputation: 3
Location: Germany
Post: #12
Okay....

I installed ir-keytable .... everything's ok

running ir-keytable gives an output like you said:

Code:
david@david-xbmc:~$ ir-keytable
Found /sys/class/rc/rc0/ (/dev/input/event5) with:
        Driver imon, table rc-imon-mce
        Supported protocols: RC-6
        Enabled protocols:
        Extra capabilities: <access denied>

That means to me, that I'm using the imon-mce file in /lib/udev/rc-keymaps, right?


ir-keymaps -t doesn't show anything while I hit a button on my remote
ir-keymaps -r displays the mapping like you've said

Code:
^Cdavid@david-xbmc:/dev/input$ sudo ir-keytable -r
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_DELETE (0x6f)
scancode 0x200002a = KEY_EXIT (0xae)
scancode 0x200004f = KEY_RIGHT (0x6a)
scancode 0x2000050 = KEY_LEFT (0x69)
scancode 0x2000051 = KEY_DOWN (0x6c)
scancode 0x2000052 = KEY_UP (0x67)
scancode 0x2200020 = KEY_NUMERIC_POUND (0x20b)
scancode 0x2200025 = KEY_NUMERIC_STAR (0x20a)
scancode 0x800ff400 = KEY_NUMERIC_0 (0x200)
scancode 0x800ff401 = KEY_NUMERIC_1 (0x201)
scancode 0x800ff402 = KEY_NUMERIC_2 (0x202)
scancode 0x800ff403 = KEY_NUMERIC_3 (0x203)
scancode 0x800ff404 = KEY_NUMERIC_4 (0x204)
scancode 0x800ff405 = KEY_NUMERIC_5 (0x205)
scancode 0x800ff406 = KEY_NUMERIC_6 (0x206)
scancode 0x800ff407 = KEY_NUMERIC_7 (0x207)
scancode 0x800ff408 = KEY_NUMERIC_8 (0x208)
scancode 0x800ff409 = KEY_NUMERIC_9 (0x209)
scancode 0x800ff40a = KEY_DELETE (0x6f)
scancode 0x800ff40b = KEY_ENTER (0x1c)
scancode 0x800ff40c = KEY_POWER (0x74)
scancode 0x800ff40d = KEY_MEDIA (0xe2)
scancode 0x800ff40e = KEY_MUTE (0x71)
scancode 0x800ff40f = KEY_INFO (0x166)
scancode 0x800ff410 = KEY_VOLUMEUP (0x73)
scancode 0x800ff411 = KEY_VOLUMEDOWN (0x72)
scancode 0x800ff412 = KEY_CHANNELUP (0x192)
scancode 0x800ff413 = KEY_CHANNELDOWN (0x193)
scancode 0x800ff414 = KEY_FASTFORWARD (0xd0)
scancode 0x800ff415 = KEY_REWIND (0xa8)
scancode 0x800ff416 = KEY_PLAY (0xcf)
scancode 0x800ff417 = KEY_RECORD (0xa7)
scancode 0x800ff418 = KEY_PAUSE (0x77)
scancode 0x800ff419 = KEY_STOP (0x80)
scancode 0x800ff41a = KEY_NEXT (0x197)
scancode 0x800ff41b = KEY_PREVIOUS (0x19c)
scancode 0x800ff41c = KEY_NUMERIC_POUND (0x20b)
scancode 0x800ff41d = KEY_NUMERIC_STAR (0x20a)
scancode 0x800ff41e = KEY_UP (0x67)
scancode 0x800ff41f = KEY_DOWN (0x6c)
scancode 0x800ff420 = KEY_LEFT (0x69)
scancode 0x800ff421 = KEY_RIGHT (0x6a)
scancode 0x800ff422 = KEY_OK (0x160)
scancode 0x800ff423 = KEY_EXIT (0xae)
scancode 0x800ff424 = KEY_DVD (0x185)
scancode 0x800ff425 = KEY_TUNER (0x182)
scancode 0x800ff426 = KEY_EPG (0x16d)
scancode 0x800ff427 = KEY_ZOOM (0x174)
scancode 0x800ff446 = KEY_TV (0x179)
scancode 0x800ff447 = KEY_AUDIO (0x188)
scancode 0x800ff448 = KEY_PVR (0x16e)
scancode 0x800ff449 = KEY_CAMERA (0xd4)
scancode 0x800ff44a = KEY_VIDEO (0x189)
scancode 0x800ff44c = KEY_LANGUAGE (0x170)
scancode 0x800ff44d = KEY_TITLE (0x171)
scancode 0x800ff450 = KEY_RADIO (0x181)
scancode 0x800ff45a = KEY_SUBTITLE (0x172)
scancode 0x800ff45b = KEY_RED (0x18e)
scancode 0x800ff45c = KEY_GREEN (0x18f)
scancode 0x800ff45d = KEY_YELLOW (0x190)
scancode 0x800ff45e = KEY_BLUE (0x191)
scancode 0x800ff466 = KEY_RED (0x18e)
scancode 0x800ff468 = KEY_YELLOW (0x190)
Enabled protocols:

Did I do something wrong or what is the fault because ir-keymaps -t won't display anything?
find quote
sparkie2640 Offline
Junior Member
Posts: 32
Joined: Sep 2008
Reputation: 2
Post: #13
(2012-03-30 19:10)David1977 Wrote:  Okay....

I installed ir-keytable .... everything's ok

running ir-keytable gives an output like you said:

Code:
david@david-xbmc:~$ ir-keytable
Found /sys/class/rc/rc0/ (/dev/input/event5) with:
        Driver imon, table rc-imon-mce

That means to me, that I'm using the imon-mce file in /lib/udev/rc-keymaps, right?


ir-keymaps -t doesn't show anything while I hit a button on my remote
ir-keymaps -r displays the mapping like you've said

Did I do something wrong or what is the fault because ir-keymaps -t won't display anything?

yes, you are using the imon-mce config file in /lib/udev/rc-keymaps which from what I can tell is wrong. I have that exact setup, here's what I did to fix it (mostly):

dpkg-reconfigure lirc
Select Linux input layer (/dev/input/eventX)
Select None (unless you have a remote extender for a satellite dish or something)
In the next list, it's going to give you a complete listing of /dev/input/ you're looking for the one that ends in usb-15c2_ffdc-even-if00
There will actually be 3 of them, one ends in mouse, another ends in something else. You want the one that ends in if00

Once that is completed, it will start lirc using the drivers from the kernel rather than lirc drivers.

Now, I created my own configuration file in /etc/rc_keymaps named imon-pad so...
nano /etc/rc_keymaps/imon-pad

Code:
0x288195b7 KEY_EXIT
0x289115b7 KEY_POWER
0x298115b7 KEY_RECORD
0x2a8115b7 KEY_PLAY
0x29b195b7 KEY_EJECTCD
0x2a8195b7 KEY_REWIND
0x2a9115b7 KEY_PAUSE
0x2b8115b7 KEY_FASTFORWARD
0x2b9115b7 KEY_PREVIOUS
0x2b9715b7 KEY_STOP
0x28a115b7 KEY_ESC
0x2a9315b7 KEY_SPACE
0x28b715b7 KEY_COMPOSE
0x688481b7 BTN_RIGHT
0x28a195b7 KEY_ENTER
0x688301b7 BTN_MOUSE
0x2b8195b7 KEY_CONTEXT_MENU
0x1008000 KEY_UP
0x100007f KEY_RIGHT
0x1007f00 KEY_DOWN
0x1000080 KEY_LEFT
0x2bb715b7 KEY_ESC
0x29b715b7 KEY_DASHBOARD
0x2ab195b7 KEY_MEDIA
0x299395b7 KEY_EJECTCLOSECD
0x2a9395b7 KEY_CYCLEWINDOWS
0x2b9595b7 KEY_MUTE
0x28a395b7 KEY_VOLUMEUP
0x28a595b7 KEY_VOLUMEDOWN
0x289395b7 KEY_CHANNELUP
0x288795b7 KEY_CHANNELDOWN
0x2b8395b7 KEY_TIME
0x28b595b7 KEY_NUMERIC_1
0x2bb195b7 KEY_NUMERIC_2
0x28b195b7 KEY_NUMERIC_3
0x2a8595b7 KEY_NUMERIC_4
0x299595b7 KEY_NUMERIC_5
0x2aa595b7 KEY_NUMERIC_6
0x2b9395b7 KEY_NUMERIC_7
0x2a8515b7 KEY_NUMERIC_8
0x2aa115b7 KEY_NUMERIC_9
0x28b515b7 KEY_NUMERIC_STAR
0x2ba595b7 KEY_NUMERIC_0
0x29a115b7 KEY_NUMERIC_POUND
0x2b8515b7 KEY_RED
0x299195b7 KEY_GREEN
0x2ba115b7 KEY_BLUE
0x28a515b7 KEY_YELLOW
0x288515b7 KEY_BOOKMARKS
0x2ab715b7 KEY_CAMERA
0x29a595b7 KEY_ZOOM
0x2aa395b7 KEY_SCREEN
0x29a395b7 KEY_DVD
0x2ba395b7 KEY_MENU
0x298595b7 KEY_SUBTITLE
0x2b8595b7 KEY_LANGUAGE

Paste all that into it and save it

then run ir-keytable -w /etc/rc_keymaps/imon-pad
that will write the configuration to the keytable, and if you run irw or ir-keytable -t pressing a button on the remote should cause something to appear on screen.

Note ... this is still a work in progress for me ... as not all the remote buttons work as they used to, but I figure helping you get to the point I'm at is better than nothing Smile
find quote
David1977 Offline
Senior Member
Posts: 210
Joined: Jan 2011
Reputation: 3
Location: Germany
Post: #14
You don´t know how correct this is Wink...better than nothing!!!

I´m gonna check this later or maybe tomorrow morning and tell if I´ve got luck Wink

thx for your help!
find quote
gokudo Offline
Member
Posts: 68
Joined: Dec 2009
Reputation: 1
Location: Germany
Post: #15
I have the same problems, tyring to get MCE remote via Soundgraph imon to work with EDEN. My config is this:

Code:
I: Bus=0019 Vendor=0000 Product=0001 Version=0000
N: Name="Power Button"
P: Phys=PNP0C0C/button/input0
S: Sysfs=/devices/LNXSYSTM:00/device:00/PNP0C0C:00/input/input0
U: Uniq=
H: Handlers=kbd event0
B: PROP=0
B: EV=3
B: KEY=100000 0 0 0

I: Bus=0019 Vendor=0000 Product=0001 Version=0000
N: Name="Power Button"
P: Phys=LNXPWRBN/button/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXPWRBN:00/input/input1
U: Uniq=
H: Handlers=kbd event1
B: PROP=0
B: EV=3
B: KEY=100000 0 0 0

I: Bus=0003 Vendor=04fc Product=05d8 Version=0100
N: Name="MLK HAMA Black combo set"
P: Phys=usb-0000:00:06.0-1/input0
S: Sysfs=/devices/pci0000:00/0000:00:06.0/usb4/4-1/4-1:1.0/input/input2
U: Uniq=
H: Handlers=sysrq kbd event2
B: PROP=0
B: EV=120013
B: KEY=10000 7 ff9f207a c14057ff febeffdf ffefffff ffffffff fffffffe
B: MSC=10
B: LED=1f

I: Bus=0003 Vendor=04fc Product=05d8 Version=0100
N: Name="MLK HAMA Black combo set"
P: Phys=usb-0000:00:06.0-1/input1
S: Sysfs=/devices/pci0000:00/0000:00:06.0/usb4/4-1/4-1:1.1/input/input3
U: Uniq=
H: Handlers=kbd mouse0 event3
B: PROP=0
B: EV=1f
B: KEY=4837fff 72ff32d bf544446 0 0 1f0001 20f90 8b17c000 677bfa d941dfed 9ed680 4400 0 10000002
B: REL=1c3
B: ABS=1 0
B: MSC=10

I: Bus=0003 Vendor=15c2 Product=0038 Version=0002
N: Name="iMON Panel, Knob and Mouse(15c2:0038)"
P: Phys=usb-0000:00:06.0-2/input1
S: Sysfs=/devices/pci0000:00/0000:00:06.0/usb4/4-2/4-2:1.0/input/input4
U: Uniq=
H: Handlers=kbd mouse1 event4
B: PROP=0
B: EV=100007
B: KEY=10800320 2000002 0 0 30000 4 110000 4110 801 e1680 0 0 10000002
B: REL=103

I: Bus=0001 Vendor=13c2 Product=101a Version=0001
N: Name="Budget-CI dvb ir receiver saa7146 (0)"
P: Phys=pci-0000:01:05.0/ir0
S: Sysfs=/devices/pci0000:00/0000:00:09.0/0000:01:05.0/rc/rc0/input5
U: Uniq=
H: Handlers=kbd event5
B: PROP=0
B: EV=100013
B: KEY=40fc010 202061 0 0 0 0 8000 4180 80002001 9e1680 0 0 ffc
B: MSC=10

I: Bus=0003 Vendor=15c2 Product=0038 Version=0002
N: Name="iMON Remote (15c2:0038)"
P: Phys=usb-0000:00:06.0-2/input0
S: Sysfs=/devices/pci0000:00/0000:00:06.0/usb4/4-2/4-2:1.0/rc/rc1/input6
U: Uniq=
H: Handlers=kbd event6
B: PROP=0
B: EV=100013
B: KEY=fff 0 0 0 108fc322 2176041 0 0 0 4 118000 4180 1 9e9680 0 0 10000000
B: MSC=10

I have the same hardware.conf as dave with the exception that I use lircd.conf.imon-mceusb".
Also before in Dharma to get any keys recognized I had to create a lirc_imon.conf file in /etc/modprobe.d containing just one line:
options lirc_imon ir_protocol=1
So dave, you could try this but I guess then you can't start the lirc daemon cause that's what's happening to me now. First I got unrecognized option then I got broken configuration, check hardware.conf.

Everything worked fine under Dharma where I also had to configure quite a few things, but now it seems hopeless. Mythbuntu forum users are talking about some broken lirc_imon drivers/modules in newer linux kernels, I hope that's not the case with xbmcbunte but my best guess is now that in fact it is the problem we are experiencing right now Sad
See also http://forum.xbmc.org/showthread.php?tid=127098 . There were three steps mentioned to somehow downgrade to the good old working lirc_imon, but I don't know how to exactly do the mentioned steps to test if it works.

BTW I tried the way with inputlirc, too, but that's not really bearable for me. I got all the old problems with buttons responding kind of sluggish or too quick etc. , that's why I bought a MCE remote in the first place and put the imon remote in the dumpster.

Well, if nothing else comes up I guess we have to downgrade and wait till some linux experts figure out a way...if ever. I hope there are enough experienced users with the soundgraph IR product else we will all end up like me with a certain WLAN USB stick that will never EVER work under linux because no one cares. I really like the whole concept of linux and OpenSource in general but sometimes it gets frustrating. Well, shouldn't complain really because it's all for free. Wink
(This post was last modified: 2012-03-30 22:48 by gokudo.)
find quote
sparkie2640 Offline
Junior Member
Posts: 32
Joined: Sep 2008
Reputation: 2
Post: #16
N: Name="iMON Panel, Knob and Mouse(15c2:0038)"

You have the 'new' version of the receiver. You don't need lirc involved at all. And it should function out of the box. With the exception of a few keys not working at all. That's what the 0038 means.

Disable lirc -> service stop lirc
Install ir-keytable -> apt-get install ir-keytable
Run ir-keytable -> ir-keytable -t

Press some buttons on the remote, and make sure it responds.
Quote:Well, if nothing else comes up I guess we have to downgrade and wait till some linux experts figure out a way...if ever. I hope there are enough experienced users with the soundgraph IR product else we will all end up like me with a certain WLAN USB stick that will never EVER work under linux because no one cares. I really like the whole concept of linux and OpenSource in general but sometimes it gets frustrating. Well, shouldn't complain really because it's all for free. Wink

If you want to downgrade you need to disable the devinput modules:
- Add this blacklist to /etc/modprobe.d/blacklist-imon.conf:

blacklist ir_core
blacklist ir_lirc_codec
blacklist ir_sony_decoder
blacklist ir_jvc_decoder
blacklist ir_rc6_decoder
blacklist ir_rc5_decoder
blacklist ir_nec_decoder
blacklist rc_imon_pad
blacklist imon

- Add this entry to /etc/modules:
lirc_imon

However, I haven't even been able to get that working.

The issue you're experiencing is directly related to remote input being included in the kernel now through devinput and no longer needing lirc to handle anything in between.
(This post was last modified: 2012-03-30 23:27 by sparkie2640.)
find quote
gokudo Offline
Member
Posts: 68
Joined: Dec 2009
Reputation: 1
Location: Germany
Post: #17
BTW I noticed just right now that even with inputlirc and customized Lircmap I didn't even get keys like home and 'OK', so really not an option.

Ok, now I tried sparkies hints. Did revert any config files I changed so far, did purge inputlirc.

Then:

>service stop lirc
stop: unrecognized service

installed ir-keytable again (after purging first)

sudo ir-keytable -t

..and it worked, at least in testing mode, thank you so much!

Power-on via remote power button worked after shutdown in the console. To do above steps I did leave xbmc. Now, after rebooting all the way up to xbmc however the power-on-remote function of my Antec box however stopped working, again, like xbmc is causing a switch to another IR channel in the firmware or something.. Sad And no remote keys are recognized in xbmc, too. I guess I have to create a Lircmap.xml from scratch now to get the keys recognized? Or did I miss some other things? Back in dharma my mce remote worked with the standard Lircmap.xml that's why I'm wondering.
(This post was last modified: 2012-03-31 00:06 by gokudo.)
find quote
sparkie2640 Offline
Junior Member
Posts: 32
Joined: Sep 2008
Reputation: 2
Post: #18
(2012-03-31 00:01)gokudo Wrote:  Power-on via remote power button worked after shutdown in the console. To do above steps I did leave xbmc. Now, after rebooting all the way up to xbmc however the power-on-remote function of my Antec box however stopped working, again, like xbmc is causing a switch to another IR channel in the firmware or something.. Sad And no remote keys are recognized in xbmc, too. I guess I have to create a Lircmap.xml from scratch now to get the keys recognized? Or did I miss some other things? Back in dharma my mce remote worked with the standard Lircmap.xml that's why I'm wondering.

The power on via remote is handled on the hardware level. There's a header that runs to the motherboard in between the power supply and receiver. That's what handles your power on. It's not dependent on software.

If it's not working after a reboot, run ir-keytable with no flags to see what it's using for a driver. With the 0038 you should get this:
Code:
Driver imon, table rc-imon-pad
        Supported protocols: RC-6 other
        Enabled protocols: RC-6 other
        Repeat delay = 500 ms, repeat period = 125 ms

With ffdc:
Code:
Driver imon, table rc-imon-mce
        Supported protocols: RC-6
        Enabled protocols:
        Extra capabilities: <access denied>

Let me know what you get.

ir-keytable -t should dump any input the remote sends the receiver. I think the relationship between the devinput drivers, lirc, Lircmap.xml etc is getting all confused. My understanding thus far is that lirc modules are now included directly into the kernel, that driver translates the scancode received from the remote, into an event key. So lets say I hit 'right' on the stick. The kernel receives scancode 0x100007f and maps that to KEY_RIGHT (0xa006a) which is in turn interpreted by the operating system as you hitting the right arrow on any regular input device (keyboard).
find quote
TwiztedIndian Offline
Junior Member
Posts: 14
Joined: Jan 2012
Reputation: 0
Post: #19
(2012-03-29 21:17)sparkie2640 Wrote:  
(2012-03-28 02:11)TwiztedIndian Wrote:  UGH! I'm at my wits end... I've tried everything I can to the point that now I have buttons on my remote that did work that no longer work....

/cry

I just want this stoopid thing to work... Sad

If you run:

cat /proc/bus/input/devices

Look for something on one of the N: lines that includes "iMon Panel" and show me what's on the I: lines above those. There are two different types of iMon receivers. One 'old' and one 'new' and they are both handled differently in XBMCuntu as compared to previous versions.

Sorry it took so long to reply... been a busy week.

Code:
I: Bus=0003 Vendor=15c2 Product=003c Version=0041
find quote
TwiztedIndian Offline
Junior Member
Posts: 14
Joined: Jan 2012
Reputation: 0
Post: #20
I've completely removed LIRC now and I have ir-keytable

ir-keytable spits out
Code:
Driver imon, table rc-imon-pad
        Supported protocols: RC-6 other
        Enabled protocols: RC-6 other
        Repeat delay = 500 ms, repeat period = 125 ms

and I get output from buttons on the remote if i run with a -t flag....

There are still lots of buttons that do not function on the Pad remote like the 'menu' button.
Also, is it at all possible to use the ol'green button MCE remote with the iMON receiver or would I -have- to use the USB receiver?
[Image: 80-100-851-04.jpg]

The reason I ask is because the Pad remote is super sensitive to the point of being more than a little annoying...
(This post was last modified: 2012-03-31 02:29 by TwiztedIndian.)
find quote
Post Reply