Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

Assigning remote KEYs to XBMC functions
Thank you for your donation

Thread Closed 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Assigning remote KEYs to XBMC functions
18th Feb, 2013, 04:39 AM
Post: #1
degauss5 Offline
Registered
Posts: 9
Joined: Jan 2013
Reputation: 0
Assigning remote KEYs to XBMC functions
Hello:

When I use my MICROSOFT MCE USB remote with the "irw" terminal command all the keys are recognized,

irw
http://pastebin.com/3Yw5zuzE

but in XBMC there are some keys that are not working:
- NUMERIC KEYS (in search boxes)
- LETTER KEYS (in search boxes)

Also, there is no key for the ContextMenu.

I suppose that there is one file with the the assignation of the XBMC actions with the remote keys.. Could be "remote.xml" or "keyboard.xml" in
/usr/local/share/xbmc/system/keymaps ????

Knowing the name of a recognized key, i.e. "KEY_EPG", how can I assign that key to the show ContextMenu action???

Thanks
Find all posts by this user
18th Feb, 2013, 04:56 AM
Post: #2
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: Assigning remote KEYs to XBMC functions
Code:
cp /usr/local/share/xbmc/system/Lircmap.xml /home/xbian/.xbmc/userdata/

Now edit the /home/xbian/.xbmc/userdata/Lircmap.xml and add the command you need under:

Code:
<remote device="linux-input-layer">
        <altname>cx23885_remote</altname>
        <altname>devinput</altname>
                <left>KEY_LEFT</left>
                <right>KEY_RIGHT</right>

If you're done, share the file with us. Then we can add it by default.

pilight - modular domotica solution
Visit this user's website Find all posts by this user
18th Feb, 2013, 06:36 AM
Post: #3
degauss5 Offline
Registered
Posts: 9
Joined: Jan 2013
Reputation: 0
RE: Assigning remote KEYs to XBMC functions
A big step forward!!!

I've edited the "/home/xbian/.xbmc/userdata/Lircmap.xml" and in the next section:

<remote device="linux-input-layer">
<altname>cx23885_remote</altname>
<altname>devinput</altname>
...

The numbers keys were "KEY_1" instead "KEY_NUMERIC_1" that shows "irw command", so I change all the number names, restart XBMC and it works great...

Here is the "/home/xbian/.xbmc/userdata/Lircmap.xml":
http://pastebin.com/UT25gGd8

In that file, there is no "context menu" key. I've tried adding:
<ContextMenu>KEY_EPG</ContextMenu>

But it doesn't work.. Any idea??

Thanks a lot for your support!!
Find all posts by this user
18th Feb, 2013, 06:52 AM
Post: #4
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: Assigning remote KEYs to XBMC functions
Check /usr/local/share/xbmc/system/keymaps/remote.xml for the correct name of the contextmenu

pilight - modular domotica solution
Visit this user's website Find all posts by this user
20th Feb, 2013, 05:38 AM
Post: #5
degauss5 Offline
Registered
Posts: 9
Joined: Jan 2013
Reputation: 0
RE: Assigning remote KEYs to XBMC functions
Ok, the assigned name for the "ContextMenu" action in in "/usr/local/share/xbmc/system/keymaps/remote.xml" was "title", so to launch the context menu with the remote key "GUIDE" I've added to "/home/xbian/.xbmc/userdata/Lircmap.xml":

<title>KEY_EPG</title>

To show the menu DVD when playing a video with the remote key "DVD MENU", I've changed in "/home/xbian/.xbmc/userdata/Lircmap.xml":

<menu>KEY_DVD</menu>

The modified file is this:
http://pastebin.com/VXKEi5JM

Restarting XBIAN all working 100%...

Thanks
Find all posts by this user
20th Feb, 2013, 07:22 AM
Post: #6
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: Assigning remote KEYs to XBMC functions
@degauss5, can you open a request for this so we include it in Beta 1.

pilight - modular domotica solution
Visit this user's website Find all posts by this user
20th Feb, 2013, 06:37 PM
Post: #7
degauss5 Offline
Registered
Posts: 9
Joined: Jan 2013
Reputation: 0
RE: Assigning remote KEYs to XBMC functions
How can I do that???
Find all posts by this user
20th Feb, 2013, 06:42 PM
Post: #8
Koenkk Offline
Registered
Posts: 1,238
Joined: Dec 2012
Reputation: 112
RE: Assigning remote KEYs to XBMC functions
https://github.com/xbianonpi/xbian/issues/new

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
21st Feb, 2013, 07:43 AM
Post: #9
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: Assigning remote KEYs to XBMC functions
Committed https://github.com/xbianonpi/xbian/commit/1e2df3dca16ffa443ecdb44585d1a2787006bf8d

pilight - modular domotica solution
Visit this user's website Find all posts by this user
« Next Oldest | Next Newest »
Thread Closed 


  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 11th May, 2025, 07:30 PM Powered By MyBB, © 2002-2025 MyBB Group.