Kodi Community Forum

Full Version: IMON with XBMCUbuntu
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

i already found a lot of input, but somehow i dont get it to run. Maybe somebody of you have it runing accordingsly to my setup and can give me some hints:

I am runing the latest XBMCUbuntu with XBMC runing in version 12.3.

Code:
lsusb:
Bus 002 Device 003: ID 15c2:0044 SoundGraph Inc.

Code:
cat /proc/bus/input/devices
I: Bus=0003 Vendor=15c2 Product=0044 Version=0002
N: Name="iMON Remote (15c2:0044)"
P: Phys=usb-0000:00:1d.0-1.2/input0
S: Sysfs=/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.0/rc/rc0/input4
U: Uniq=
H: Handlers=kbd event4
B: PROP=0
B: EV=100013
B: KEY=fff 0 0 4400000 108c0320 2d50080 0 0 30000 4 119000 4186 14000801 809e1680 0 2000000 10004002
B: MSC=10

The Remote is working but i am simply missing some keys, like numbers and skiping chapters in movies.

I know that i need to edit
/home/user/.xbmc/userdata/Lircmap.xml
/home/user/.xbmc/userdata/kemaps/remote.xml

But i simply dont know how and it also looks like that xbmc does not get any comments because they are handled by lircd.

When i change settings in:
/etc/default/inputlirc
from:
Code:
EVENTS="/dev/input/even*"
OPTIONS=

to

EVENTS="/dev/input/even4"
OPTIONS="-g -m 0"

i can use "irw" and see the system recognising all remote presses but than XBMC is doing nothing any more.

Where i am doing something wrong. I am sure i am just messing something up.

Thanks for your help.
event4

not

even4
You are right. I had it like that, but did not change anything.

I am somehow strugeling witht the driver and names.

when i use irw the output looks like this:
Code:
a7 0 KEY_RECORD /dev/input/event5
cf 0 KEY_PLAY /dev/input/event5
a1 0 KEY_EJECTCD /dev/input/event5
a8 0 KEY_REWIND /dev/input/event5
77 0 KEY_PAUSE /dev/input/event5
d0 0 KEY_FASTFORWARD /dev/input/event5
19c 0 KEY_PREVIOUS /dev/input/event5
80 0 KEY_STOP /dev/input/event5
197 0 KEY_NEXT /dev/input/event5
e 0 KEY_BACKSPACE /dev/input/event5
39 0 KEY_SPACE /dev/input/event5
7f 0 KEY_COMPOSE /dev/input/event5
1b6 0 KEY_CONTEXT_MENU /dev/input/event5
110 0 BTN_MOUSE /dev/input/event5
111 0 BTN_RIGHT /dev/input/event5
1c 0 KEY_ENTER /dev/input/event5
6a 0 KEY_RIGHT /dev/input/event5
67 0 KEY_UP /dev/input/event5
6c 0 KEY_DOWN /dev/input/event5
69 0 KEY_LEFT /dev/input/event5
6a 0 KEY_RIGHT /dev/input/event5
1c 0 KEY_ENTER /dev/input/event5
110 0 BTN_MOUSE /dev/input/event5
111 0 BTN_RIGHT /dev/input/event5
1 0 KEY_ESC /dev/input/event5
a2 0 KEY_EJECTCLOSECD /dev/input/event5
9a 0 KEY_CYCLEWINDOWS /dev/input/event5
cc 0 KEY_DASHBOARD /dev/input/event5
e2 0 KEY_MEDIA /dev/input/event5
192 0 KEY_CHANNELUP /dev/input/event5
193 0 KEY_CHANNELDOWN /dev/input/event5
73 0 KEY_VOLUMEUP /dev/input/event5
72 0 KEY_VOLUMEDOWN /dev/input/event5
167 0 KEY_TIME /dev/input/event5
71 0 KEY_MUTE /dev/input/event5
201 0 KEY_NUMERIC_1 /dev/input/event5
202 0 KEY_NUMERIC_2 /dev/input/event5
203 0 KEY_NUMERIC_3 /dev/input/event5
204 0 KEY_NUMERIC_4 /dev/input/event5
205 0 KEY_NUMERIC_5 /dev/input/event5
206 0 KEY_NUMERIC_6 /dev/input/event5
207 0 KEY_NUMERIC_7 /dev/input/event5
208 0 KEY_NUMERIC_8 /dev/input/event5
209 0 KEY_NUMERIC_9 /dev/input/event5
20a 0 KEY_NUMERIC_STAR /dev/input/event5
200 0 KEY_NUMERIC_0 /dev/input/event5
20b 0 KEY_NUMERIC_POUND /dev/input/event5
189 0 KEY_VIDEO /dev/input/event5
188 0 KEY_AUDIO /dev/input/event5
1ba 0 KEY_IMAGES /dev/input/event5
179 0 KEY_TV /dev/input/event5
9c 0 KEY_BOOKMARKS /dev/input/event5
d4 0 KEY_CAMERA /dev/input/event5
174 0 KEY_ZOOM /dev/input/event5
177 0 KEY_SCREEN /dev/input/event5
185 0 KEY_DVD /dev/input/event5
8b 0 KEY_MENU /dev/input/event5
172 0 KEY_SUBTITLE /dev/input/event5
170 0 KEY_LANGUAGE /dev/input/event5

I know that the numbers in the front are representing the mappings of the default linux mapping, but how do i map these to xbmc keys?

Also when i have nothing set in "inputlirc", "irw" is not working and i dont know which mapping is used than.

Sorry i am a bit clueless with what to start.

By the way, i dont know why it was ~2h ago event5 and now it is event4, i did not unplug or disconnect anything.
Then all it says there is input5 not input4... idk, look at other threads for this hardware its been covered multiple times.

I dont have any better answer as I dont have experience with this hardware.
Trail and error and i think i got what i want:

/etc/lirc/hardware.conf
no changes, not configured


/etc/default/inputlirc
Code:
# Options to be passed to inputlirc.
EVENTS="/dev/input/event5"
OPTIONS="-g -m 0"


.xbmc/userdata/Lircmap.xml
Code:
<lircmap>
    <remote device="/dev/input/event5">
        <left>KEY_LEFT</left>
.......

The important part was to set the Lircmap.xml Remote device to the correct setting. and after an reboot it is working.

Now i can start to play with the keymappings.
YEA i got it running and i have the feeling that i now know what i am doing :-)

My remote:
Image

Because it took my ~1 week to figure that out and i had to put a lot of google search together i want to put my implementation into this how-to

My config looks like that:

lsusb
Code:
Bus 002 Device 003: ID 15c2:0044 SoundGraph Inc.

cat /proc/bus/input/devices
Code:
I: Bus=0003 Vendor=15c2 Product=0044 Version=0002
N: Name="iMON Remote (15c2:0044)"
P: Phys=usb-0000:00:1d.0-1.2/input0
S: Sysfs=/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.0/rc/rc0/input4
U: Uniq=
H: Handlers=kbd event5
B: PROP=0
B: EV=100013
B: KEY=fff 0 0 4400000 108c0320 2d50080 0 0 30000 4 119000 4186 14000801 809e1680 0 2000000 10004002
B: MSC=10

to get XBMC somehow aware of what the remote can do i needed to start with this:

/etc/default/inputlirc
Code:
EVENTS="/dev/input/evet5"
OPTIONS="-g -m 0"

In my XBMCUbuntu based on XBMC 12.2 there was no Lircmap.xml and also no Keymap.xml available because of that i needed to create them, until i found that i actually could download them from XBMC Git and they are working:

1. Lircmap.xml is located at:
Code:
/home/"user"/.xbmc/userdata/

I downloaded it from here: https://github.com/xbmc/xbmc/blob/master...ircmap.xml

To be honest i forgot if the irw was working already, but i also remember that i
Code:
apt-get install inputlirc

The Remote that came with my IMON VFD is the RM200. I looks like that this is the same coming also with Antec cases.
My "irw" output looks like the one above. There for the i am using the following part of the Lircmap.xml:

Before the remote device looked like that:
Code:
<remote device="Antec_Veris_RM200">
                <stop>KEY_STOP</stop>
                <pause>KEY_PAUSE</pause>
                <forward>KEY_FASTFORWARD</forward>
                <reverse>KEY_REWIND</reverse>
                <left>KEY_LEFT</left>
                <right>KEY_RIGHT</right>
                <up>KEY_UP</up>
                <down>KEY_DOWN</down>
                <select>KEY_ENTER</select>
                <pageplus>KEY_CHANNELUP</pageplus>
                <pageminus>KEY_CHANNELDOWN</pageminus>
                <back>KEY_BACKSPACE</back>
                <menu>KEY_MENU</menu>
                <play>KEY_PLAY</play>
                <info>Go</info>
                <skipplus>next</skipplus>
                <skipminus>prev</skipminus>
                <display>FullScreen</display>
                <start>applauncher</start>
                <record>KEY_RECORD</record>
                <volumeplus>KEY_VOLUMEUP</volumeplus>
                <volumeminus>KEY_VOLUMEDOWN</volumeminus>
                <mute>KEY_MUTE</mute>
                <power>KEY_POWER</power>
                <myvideo>KEY_VIDEO</myvideo>
                <mymusic>KEY_AUDIO</mymusic>
                <mypictures>KEY_PHOTO</mypictures>
                <mytv>KEY_TV</mytv>
                <one>KEY_1</one>
                <two>KEY_2</two>
                <three>KEY_3</three>
                <four>KEY_4</four>
                <five>KEY_5</five>
                <six>KEY_6</six>
                <seven>KEY_7</seven>
                <eight>KEY_8</eight>
                <nine>KEY_9</nine>
                <zero>KEY_0</zero>
                <star>Star</star>
                <hash>Hash</hash>
                <playlist>KEY_BOOKMARKS</playlist>
                <teletext>Thumbnail</teletext>
                <title>TaskSwitcher</title>                
        </remote>

I changed it to the below one, according to my "irw" output

Code:
<remote device="/dev/input/event5">
        <stop>KEY_STOP</stop>
        <pause>KEY_PAUSE</pause>
        <forward>KEY_FASTFORWARD</forward>
        <reverse>KEY_REWIND</reverse>
        <left>KEY_LEFT</left>
        <right>KEY_RIGHT</right>
        <up>KEY_UP</up>
        <down>KEY_DOWN</down>
        <select>KEY_ENTER</select>
        <pageplus>KEY_CHANNELUP</pageplus>
        <pageminus>KEY_CHANNELDOWN</pageminus>
        <back>KEY_BACKSPACE</back>
        <back>KEY_ESC</back>
        <menu>KEY_MENU</menu>
        <play>KEY_PLAY</play>
        <info>Go</info>
        <skipplus>next</skipplus>
        <skipminus>prev</skipminus>
        <display>FullScreen</display>
        <start>applauncher</start>
        <record>KEY_RECORD</record>
        <volumeplus>KEY_VOLUMEUP</volumeplus>
        <volumeminus>KEY_VOLUMEDOWN</volumeminus>
        <mute>KEY_MUTE</mute>
        <power>KEY_POWER</power>
        <myvideo>KEY_VIDEO</myvideo>
        <mymusic>KEY_AUDIO</mymusic>
        <mypictures>KEY_PHOTO</mypictures>
        <mytv>KEY_TV</mytv>
        <one>KEY_NUMERIC_1</one>
        <two>KEY_NUMERIC_2</two>
        <three>KEY_NUMERIC_3</three>
        <four>KEY_NUMERIC_4</four>
        <five>KEY_NUMERIC_5</five>
        <six>KEY_NUMERIC_6</six>
        <seven>KEY_NUMERIC_7</seven>
        <eight>KEY_NUMERIC_8</eight>
        <nine>KEY_NUMERIC_9</nine>
        <zero>KEY_NUMERIC_0</zero>
        <star>Star</star>
        <hash>Hash</hash>
        <playlist>KEY_BOOKMARKS</playlist>
        <teletext>Thumbnail</teletext>
        <title>TaskSwitcher</title>        
    </remote>

I did not try yet if i realy need the Keymap.xml but i also put this where it belongs to. Again there was no file in my system by default so i also downloaded one:
https://github.com/xbmc/xbmc/blob/master...remote.xml

I just renamed it Keymap.xml and put it in:
/home/"user"/.xbmc/userdata/keymaps/

I did no changes in this file, so i dont put any code here.


Result:
I can move back in the menues by using the "Esc" and the "back arrow" button, also the number keys are working.

I am happy

I hope that helps somebody
Nice Wink

You should consider whacking this in wiki, so truly is accessible to all users easily. Leaving it here will indeed get buried and lost.
You can easily put all this in wiki in own page in Category:How-to (wiki) or something and point back to this thread as discussion/further info type thing.

Just a suggestion. Wink