Linux [SOLVED] keyboard.xml help please!

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
barrydocks Offline
Junior Member
Posts: 26
Joined: Jan 2011
Reputation: 1
Post: #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
(This post was last modified: 2012-04-26 08:18 by barrydocks.)
find quote
mac666 Offline
Senior Member
Posts: 114
Joined: Nov 2009
Reputation: 0
Location: Kalmar, Sweden
Post: #2
Doesnt it work? I think it should... have you looked at http://wiki.xbmc.org/index.php?title=Keyboard.xml ?

Custom build HTPC
Xbmc Dharma @ Ubuntu 10.04
Asus AT5IONT - Ion
4GB Ram
Intel SSD 40GB
find quote
barrydocks Offline
Junior Member
Posts: 26
Joined: Jan 2011
Reputation: 1
Post: #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
(This post was last modified: 2012-04-24 23:47 by barrydocks.)
find quote
mac666 Offline
Senior Member
Posts: 114
Joined: Nov 2009
Reputation: 0
Location: Kalmar, Sweden
Post: #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.

Custom build HTPC
Xbmc Dharma @ Ubuntu 10.04
Asus AT5IONT - Ion
4GB Ram
Intel SSD 40GB
find quote