Kodi Community Forum

Full Version: remote MCE Vista
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Forget this thread and go here http://forum.xbmc.org/showthread.php?tid=38554

hello

i have buy this remote (MCE Vista)

Image

but i not arive to get it working on XBMC.

case 1 :

do nothing (not installing lirc, no touch to lirc.xml)

on gnome with totem, every botton work (play pause ...) , mouse work
on XBMC mouse work, some botton work, but not all (play, pause not work)

case 2:

with lirc enable

on gnome nothing changed
on xbmc just mouse work
ircw not return code for play, pause botton : i think play, pause are see like keyboard touch ... may be


Some body can help me ?
exist a program like ircw but for see keyboard code ? and a way to put this code in xbmc config ?

thank.
in xbmc.log i have this message when i press play key remote:


Code:
18:56:12 T:3055523712 M:148307968   DEBUG: HAL: Device (/org/freedesktop/Hal/devices/usb_device_5a4_9881_noserial_if1_logicaldev_input) Condition ButtonPressed | play-pause

but i m able to use it in keymap.xml

somebody can help me to use this message ?
since <displayremotecodes>true</displayremotecodes> not work is not easy to configure remote.
ok, i have do change in code source, sorry to do not use tracker, but i dont understand how to use it (i m french and not too good in english)

if i understand the code, the problem is the ortek device apear to HAL device whith "input" category, but "input" category not triger by code.


first i try to use keymap.xml mecanisme but not arive to do it, so i hardcoded the triger.


i make a diff, its port on xbmc/linux/HalManager.cpp
Code:
74a75,133
>
>
>
>
> //sorry but i don t know a way to use keymap.xml, so, i hardcoded all my action (remote VCR-1100 ortek)
>   if (!strcmp(condition_name, "ButtonPressed") && !strcmp(condition_details, "play-pause"))
>   {
>     CUtil::ExecBuiltIn("XBMC.playercontrol(play)");
>     return;
>   }
>   if (!strcmp(condition_name, "ButtonPressed") && !strcmp(condition_details, "previous-song"))
>   {
>     CUtil::ExecBuiltIn("XBMC.playercontrol(previous)");
>     return;
>   }
>   if (!strcmp(condition_name, "ButtonPressed") && !strcmp(condition_details, "next-song"))
>   {
>     CUtil::ExecBuiltIn("XBMC.playercontrol(next)");
>     return;
>   }
>   if (!strcmp(condition_name, "ButtonPressed") && !strcmp(condition_details, "stop-cd"))
>   {
>     CUtil::ExecBuiltIn("XBMC.playercontrol(stop)");
>     return;
>   }
>   if (!strcmp(condition_name, "ButtonPressed") && !strcmp(condition_details, "homepage"))
>   {
>     CUtil::ExecBuiltIn("XBMC.playercontrol(play)");
>     return;
>   }
>   if (!strcmp(condition_name, "ButtonPressed") && !strcmp(condition_details, "sleep"))
>   {
>     CUtil::ExecBuiltIn("XBMC.ActivateWindow(ShutdownMenu)");
>     return;
>   }
>   if (!strcmp(condition_name, "ButtonPressed") && !strcmp(condition_details, "mute"))
>   {
>     CUtil::ExecBuiltIn("XBMC.mute()");
>     return;
>   }
> /*
>   if (!strcmp(condition_name, "ButtonPressed") && !strcmp(condition_details, "volume-up"))
>   {
>     CUtil::ExecBuiltIn("XBMC.playercontrol(play)");
>     return;
>   }
>   if (!strcmp(condition_name, "ButtonPressed") && !strcmp(condition_details, "volume-down"))
>   {
>     CUtil::ExecBuiltIn("XBMC.playercontrol(play)");
>     return;
>   }
> */
> //end
>
>
>
>
>
>
559a619,620
>   {
>     CLog::Log(LOGDEBUG, "HAL: category == NULL");
560a622
>   }
660a723,725
>   else
>     CLog::Log(LOGDEBUG, "HAL: category = %s ", category);
>

here found the patch file and the entire modified file

http://war.mauramathieu.fr/ortek/


french:

Grace au message de debug j'ai remonté le code source. Il semble qu'une parte de la telecomande aparaisse comme un clavier, une partie comme une souris et la trousieme partie comme HAL de categorie "input".

Cette troisieme partie correspond aux bouttons play stop precedent suivant pause.

il est impossible d'intercepter ces boutton sans modifier le code source, c'est ce que j'ai fait.

Je ne l'ai pas bien fait, ce que j'ai fait est sale, mais ca marche, en effet il aurait fallut utiliser le keymap.xml pour lire les code et les actions.
@ moderator:

please delete this post, i make another, in howto style. This one is bad, and not in the good way to get it working.