Linux [SOLVED] keyboard.xml help please!
#1
I have a Cyberlink remote that I am trying to get working with Eden. Only a handful of buttons work out of the box (interestingly they all work using OpenElec?). Anyway, I have tried following the following tutorials without any success:
http://forum.xbmc.org/showthread.php?tid=61170
http://forum.xbmc.org/showthread.php?tid=61219

So in desperation I have used evtest to get the output for each button, for example:
Button------code---value---scancode
Home-------226---fbc000d---Media
Standby----142---10082------Sleep
Red----------378---ffbc0048---TV2
Green-------391---ffbc0047---MP3
Yellow-------212---ffbc0049---Camera
Blue---------393---ffbc004a---Video

What I need to know now is how to use this information to write a custom keyboard.xml file to map the buttons to XBMC actions, I have tried:
Code:
<keymap>
  <global>
    <keyboard>
         <key id="226">XBMC.ActivateWindow(Home)</key>
    </keyboard>
  </global>
</keymap>

and various other combinations?

Thanks
Reply
#2
Doesnt it work? I think it should... have you looked at http://wiki.xbmc.org/index.php?title=Keyboard.xml ?
In js, {} + {} is not a number
Reply
#3
Thanks for the reply, I have now almost solved the problem with this How-to:
http://wiki.xbmc.org/index.php?title=HOW...e_on_Linux

I say 'almost' as the only thing I can't get to work is the suspend off the remote, I have checked the following:
In /etc/lirc/lircd.conf
the code for the power button is mapped to SLEEP;
in ~/.xbmc/userdata/Lircmap.xml
SLEEP is mapped to power;
In ~/.xbmc/userdata/keymaps/remote.xml
power is mapped to XBMC.ShutDown()

In XBMC - power saving menu the shutdown function is set to sleep
I am not sure what is missing?
Thanks
Reply
#4
(2012-04-24, 23:29)barrydocks Wrote: Thanks for the reply, I have now almost solved the problem with this How-to:
http://wiki.xbmc.org/index.php?title=HOW...e_on_Linux

I say 'almost' as the only thing I can't get to work is the suspend off the remote, I have checked the following:
In /etc/lirc/lircd.conf
the code for the power button is mapped to SLEEP;
in ~/.xbmc/userdata/Lircmap.xml
SLEEP is mapped to power;
In ~/.xbmc/userdata/keymaps/remote.xml
power is mapped to XBMC.ShutDown()

In XBMC - power saving menu the shutdown function is set to sleep
I am not sure what is missing?
Thanks

You dont need to map Sleep in lircmap
It should work if you have set the shutdown function to sleep, thats what i did.

In js, {} + {} is not a number
Reply

Logout Mark Read Team Forum Stats Members Help
[SOLVED] keyboard.xml help please!0