Kodi Community Forum

Full Version: iMon RM200 lirc-0.8.7-CVS working as a mouse
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hi guys

having searched the forums, i still cant find any details to switch the device so that it works as a typical remote, rather than a mouse in the XBMC interface.

i have been having numerous issues getting the remote to work and had problems with double button presses, but following someone else's advice on lirc-specific forum, i have installed the latest CVS verison this weekend (0.8.7-CVS. not sure if there is a more specific revision, this is what "lircd -v" displayed...)

so with this version, i have fixed the double button presses. i amended the Lircmap.xml file after installing the XBMC release version 9.04. the buttons work as intended - great.

the pad is functioning as a mouse though, which isnt my ideal solution (also the Enter and Select buttons dont seem to allow me to click a button, so it really is unusable at the minute). how can i fix this? is this what the Keymap.xml file is used for?

regards

jingo_man
use the left mouse and right mouse buttons. that makes a minimal but usable navigation possible. otherwise...I don't know. I'm looking for a similar solution. Although I use 0.8.6. The buttons work with lirc. But not with xbmc. For now...:confused2:
switch with the mouse/keyboard button !!

Quote:# Please make this file available to others
# by sending it to <[email protected]>
#
# this config file was automatically generated
# using lirc-0.8.7-CVS(default) on Thu Sep 17 13:04:22 2009
#
# contributed by Holger Schvestka
#
# brand: Antec-Veris
# model no. of remote control: RM200
# devices being controlled by this remote:
#

begin remote

name rm200
bits 64
eps 30
aeps 100

one 0 0
zero 0 0
gap 95884
pre_data 0x8001

begin codes
1 0x0200001E00000000
2 0x0200001F00000000
3 0x0200002000000000
4 0x0200002100000000
5 0x0200002200000000
6 0x0200002300000000
7 0x0200002400000000
8 0x0200002500000000
9 0x0200002600000000
0 0x0200002700000000
# 0x0220002000000000
* 0x0220002500000000
esc 0x0200002900000000
enter 0x0200002800000000
rclick 0x0102000000000000
lclick 0x0101000000000000
mup 0x0100800000000000
mdown 0x01007F0000000000
mleft 0x0100008000000000
mright 0x0100007F00000000
backspace 0x0200002C00000000
selectspace 0x0200002A00000000
leftbutton 0x0280000000000000
rightbutton 0x0200006500000000
chup 0x289395B700000201
chdown 0x288795B700000201
volup 0x28A395B700000201
voldown 0x28A595B700000201
mute 0x2B9595B700000201
timer 0x2B8395B700000201
go 0x2AB195B700000201
applauncher 0x29B715B700000201
taskswitcher 0x2A9395B700000201
eject 0x299395B700000201
play 0x2A8115B700000201
stop 0x2B9715B700000201
pause 0x2A9115B700000201
record 0x298115B700000201
eject2 0x29B195B700000201
prev 0x2B9115B700000201
next 0x298195B700000201
fastforw 0x2B8115B700000201
rew 0x2A8195B700000201
appexit 0x288195B700000201
power 0x289115B700000201
dvd 0x29A395B700000201
menu 0x2BA395B700000201
subtitle 0x298595B700000201
audio 0x2B8595B700000201
bookmark 0x288515B700000201
thumbnail 0x2AB715B700000201
zoom 0x29A595B700000201
fullscreen 0x2AA395B700000201
videos 0x2B8515B700000201
music 0x299195B700000201
pictures 0x2BA115B700000201
tv 0x28A515B700000201
mouse 0x299155B700000201
end codes

end remote
hotzenplotz5, thanks for the reply. however, pressing this button does not change any functionality within xbmc. do i need to have a Keymap.xml file configured for this to work, with my lircd.conf button names?

rickx, i have tried your suggestion of using the left mouse button aswell, but this doesnt seem to work as intended. again, is there a different Lircmap.xml configuration that is required for this to work? i have left the <select> as KEY_ENTER. nothing references BTN_LEFT, which is the left mouse click button mapping from the RM200 remote.

here is a copy of my Lircmap.xml file
http://pastebin.com/m8e11c02
this has nothing to do with lircmap.xml or keymap.xml Smile
just for lirc and lircd.conf

see here :
http://forum.xbmc.org/showpost.php?p=410359&postcount=2

if you use my lircd.conf then you need a new lircmap.xml

Quote:<lircmap>
<remote device="rm200">
<pause>pause</pause>
<stop>stop</stop>
<forward>fastforw</forward>
<reverse>rew</reverse>
<left>mleft</left>
<right>mright</right>
<up>mup</up>
<down>mdown</down>
<select>enter</select>
<pageplus>chup</pageplus>
<pageminus>chdown</pageminus>
<back>backspace</back>
<menu>menu</menu>
<title>play</title>
<info>go</info>
<skipplus>next</skipplus>
<skipminus>prev</skipminus>
<display>fullscreen</display>
<start>applauncher</start>
<record>record</record>
<volumeplus>volup</volumeplus>
<volumeminus>voldown</volumeminus>
<mute>mute</mute>
<power>power</power>
<myvideo>videos</myvideo>
<mymusic>music</mymusic>
<mypictures>pictures</mypictures>
<mytv>tv</mytv>
<one>1</one>
<two>2</two>
<three>3</three>
<four>4</four>
<five>5</five>
<six>6</six>
<seven>7</seven>
<eight>8</eight>
<nine>9</nine>
<zero>0</zero>
<star>*</star>
<hash>#</hash>
<playlist>bookmark</playlist>
<teletext>thumbnail</teletext>
<guide>subtitle</guide>
</remote>
</lircmap>
lirc works for me for all button presses. maybe there is some confusion here...?

with v0.8.6 and higher, the functionality of the rm200 has been updated/amended - there is now only 1 device for all buttons (i.e. it doesnt separate between the remote functions and the pad/mouse functions as 2 devices). therefore, your scripts and config files are not suitable.

the mouse/keyboard button in lircd is mapped already as "MouseKeyboard"

but due to the above device changes, this now functions as a mouse when in xbmc. and pressing the "MouseKeyboard" button doesnt seem to change how the remote functions in xbmc, though i would expect it would require a button mapping in some way as its button presses are being intercepted within the xbmc app.
Quote:lirc works for me for all button presses. maybe there is some confusion here...?
same here ...using lirc-0.8.7-CVS(default)

(sorry for my bad english i hope i understand it right)
in xbmc i press the button mouse/keyboard then i can use the "mousepad" as a mouse, and the button L-Click or R-Click are working as mousebuttons !!
and press again i use it as up down left right

i think you cant change the buttons in mousemode !!
ok, i waited to do some live testing before posting another reply. so here is the current state of play...

fire up xbmc...

the pad (and circle of buttons - will call these "circular-buttons" from now on) function as a mouse. as a left-hander, i have switched the buttons over on my mouse, so the Left Click circular-button equivalent for me is actually Right Click circular-button.

this works now as a mouse and i am able to navigate around the menus. the only method to go back up a menu level is to right click (or in my case, left click! hehe) an unused space on the screen?

i cannot switch between mouse and keyboard modes.

also, i cannot use the rest of the remote at all. the play/pause/skip/etc buttons above the mouse pad and the number pad & coloured buttons below the pad do nothing. everything is as a mouse... they are defined in my Lircmap.xml and have matching values in lircd.conf.

if i return to the desktop, and run the "irw" command, when in mouse mode, this does nothing in the terminal window. if i then click the mouse/keyboard circular-button, all subsequent button presses put a row in the terminal as its supposed to, although the actual mouse/keyboard circular-button press is never actually returned in the terminal. so i am able to switch modes here.

can you replicate this? or does your remote function exactly as expected?? (the mouse switches to a pad and the other buttons all work?)

jingo_man

p.s. your english is good - totally getting you. think he confusion was because in my xbmc it doesnt do the mode switch, and having only just got this version of lirc working, didnt know about the mode switching ability, as earlier versions didnt require this for xbmc.
Quote:or does your remote function exactly as expected??


all works fine here with the init.d/lirc + /etc/lirc/lircd + /etc/lirc/hardware.conf + lircmap.xml i posted
nothing changed in keymap
lirc-cvs 0.8.7
no problems from the beginning. (17 Sept.) Big Grin
i tried starting lircd with your lircd.conf file, however i get the same issues within xbmc. so therefore, i would consider we have the same version of lirc (can i get an absolute specific version?) and i am using the standard release version of xbmc from synaptics having followed the xbmc guide and added their repository (again, not sure where to locate the absolute version number)

at the desktop, and within the xbmc app, the remote works fine as a mouse.

at the desktop, when i use the irw terminal app, i am able to get a response from the rest of the buttons, and i am able to switch between mouse and keyboard modes.

in xbmc, the device only works as a mouse. the other buttons are not registered, even though they are defined in my Lircmap.xml.

can anyone explain this further? and/or better yet, offer a solution?

rickx, is what i am describing exactly the same setup you are seeing?

jingo_man
Hola,

I don't know, if you haven't solved the problem yet, but I had (and solved) same problem.

You have to do just this:

1) Check if codes from your RM 200 are ok
- stop lirc daemon and use "mode2" program (mode2 --raw). If you press buttons on remote, you should see their internal codes.

2) Check key values in lircd.conf (on gentoo system /etc/lirc/lircd.conf). There should be lines like :

KEY_EXIT 0x2881d5b7000000201

etc. Remember name of keys (KEY_EXIT, etc).

3) Remember name of remote from lircd.conf

// don't forget to start lircd daemon


4) in Lircmap.xml you should have:

<lircmap>
<remote device="XXXX"> // XXXX is name from step 3
<pause>YYYY</pause> // YYYY are commands from step 2

And it should work (at least it does for me) Rolleyes