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

[PROBLEM] Configuration remote.xml
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Problem: Configuration remote.xml
23rd Dec, 2012, 10:35 AM
Post: #44
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: Configuration remote.xml
Owk, just as i expected. Most probably the remote acts as a keyboard. What you have to do now it as follows:

Follow the xbmc log. Press all keys and make a list of the names that the key is recognized at. These can be really unlogical as you can see in my example below (of another Chinese remote).
Code:
tail -f xbmc.log | grep 'OnKey\|Scancode'

Now open the standard keyboard.xml located here:
Code:
/usr/local/share/xbmc/system/keymaps/keyboard.xml

What you have to do is create a custom keyboard.xml for yourself. You can put that file in:
Code:
/home/xbian/.xbmc/userdata/keymaps/

If that folder doesn't exist, create it.

What you do is mapping your keys to XBMC functions. In my case, the volumedown button presented itself as 'f14'. So i then searched for a function called volume down and saw it was called 'VolumeDown'. So the entry is:
Code:
<f14>VolumeDown</f14>

Do this for all buttons of your remote. Constantly check for the right function names in the keyboard.xml. If you see a log entry like this:
Code:
22:25:48 T:3042435072   DEBUG: OnKey: ctrl-alt-at (f085) pressed, action is

Then you can see the name of that button is 'ctrl-alt-at' (?), you then add something like this:
Code:
<at mod="ctrl,alt">XBMC.ActivateWindow(Video,MovieTitles)</at>

--Unsure about this part, but try it--
If thing naming doesn't work, you can also define buttons by their id. As far as i remembered take this number (6d) and convert it from hexadecimal to decimal (can be done with calculator in windows). You will then see that 6d represents the number 109 (or use 119, not sure).
Code:
22:25:48 T:3042435072   DEBUG: Keyboard: scancode: 6d, sym: 0119, unicode: 0000, modifier: 0

Then add this key as follows:
Code:
<key id="109">Info</key>
--End of uncertainty part--

My example of my old Chinese remote
Code:
<keymap>
  <global>
    <keyboard>
      <f4 mod="alt">XBMC.ActivateWindow(Home)</f4>
      <one mod="ctrl,alt">XBMC.ActivateWindow(Music,Artists)</one>
      <at mod="ctrl,alt">XBMC.ActivateWindow(Video,MovieTitles)</at>
      <three mod="ctrl,alt">XBMC.ActivateWindow(Pictures)</three>
      <dollar mod="ctrl,alt">XBMC.ActivateWindow(Videos,TvShowTitles)</dollar>
      <next_track>SkipNext</next_track>
      <prev_track>SkipPrevious</prev_track>
      <b mod="ctrl,shift">FastForward</b>
      <f mod="ctrl,shift">Rewind</f>
      <play_pause>Pause</play_pause>
      <stop>Stop</stop>
      <three mod="ctrl">AspectRatio</three>
      <volume_up>VolumeUp</volume_up>
      <f14>VolumeDown</f14>
      <f13>Mute</f13>
      <tab>ContextMenu</tab>
      <key id="61952">Info</key>
      <escape>Back</escape>
      <pageup>PageUp</pageup>
      <pagedown>PageDown</pagedown>
      <return>Select</return>
      <up>Up</up>
      <down>Down</down>
      <left>Left</left>
      <right>Right</right>
      <tab mod="shift,alt">ShowSubtitles</tab>
      <e>NextSubtitles</e>
      <d>ToggleFullScreen</d>
    </keyboard>
  </global>
  <VirtualKeyboard>
    <keyboard>
      <backspace>Backspace</backspace>
    </keyboard>
  </VirtualKeyboard>
  <FullscreenVideo>
    <keyboard>
      <left>StepBack</left>
      <right>StepForward</right>
      <up>BigStepForward</up>
      <down>BigStepBack</down>
      <return>OSD</return>
    </keyboard>
  </FullscreenVideo>
  <SlideShow>
    <keyboard>
      <pagedown>ZoomOut</pagedown>
      <pageup>ZoomIn</pageup>
    </keyboard>
  </SlideShow>
</keymap>

Feel free to ask many more questions, and please share the final remote.xml with us.

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Messages In This Thread
Configuration remote.xml - Hawk - 20th Dec, 2012, 07:20 AM
RE: Configuration remote.xml - CurlyMo - 20th Dec, 2012, 07:37 AM
RE: Configuration remote.xml - Hawk - 20th Dec, 2012, 08:53 AM
RE: Configuration remote.xml - CurlyMo - 20th Dec, 2012, 08:58 AM
RE: Configuration remote.xml - Hawk - 20th Dec, 2012, 09:13 AM
RE: Configuration remote.xml - CurlyMo - 20th Dec, 2012, 09:19 AM
RE: Configuration remote.xml - Hawk - 20th Dec, 2012, 09:43 AM
RE: Configuration remote.xml - Hawk321 - 20th Dec, 2012, 09:49 AM
RE: Configuration remote.xml - CurlyMo - 20th Dec, 2012, 10:13 AM
RE: Configuration remote.xml - Hawk - 20th Dec, 2012, 10:18 AM
RE: Configuration remote.xml - CurlyMo - 20th Dec, 2012, 10:20 AM
RE: Configuration remote.xml - Hawk - 20th Dec, 2012, 10:23 AM
RE: Configuration remote.xml - CurlyMo - 20th Dec, 2012, 10:28 AM
RE: Configuration remote.xml - Hawk - 20th Dec, 2012, 10:34 AM
RE: Configuration remote.xml - CurlyMo - 20th Dec, 2012, 10:36 AM
RE: Configuration remote.xml - Hawk - 20th Dec, 2012, 10:43 AM
RE: Configuration remote.xml - CurlyMo - 20th Dec, 2012, 10:45 AM
RE: Configuration remote.xml - Hawk - 20th Dec, 2012, 10:47 AM
RE: Configuration remote.xml - CurlyMo - 20th Dec, 2012, 10:48 AM
RE: Configuration remote.xml - Hawk - 20th Dec, 2012, 10:53 AM
RE: Configuration remote.xml - CurlyMo - 20th Dec, 2012, 10:59 AM
RE: Configuration remote.xml - Hawk - 20th Dec, 2012, 11:38 PM
RE: Configuration remote.xml - CurlyMo - 20th Dec, 2012, 11:45 PM
RE: Configuration remote.xml - Hawk - 20th Dec, 2012, 11:53 PM
RE: Configuration remote.xml - CurlyMo - 20th Dec, 2012, 11:58 PM
RE: Configuration remote.xml - Hawk - 21st Dec, 2012, 12:01 AM
RE: Configuration remote.xml - CurlyMo - 21st Dec, 2012, 12:05 AM
RE: Configuration remote.xml - Hawk - 21st Dec, 2012, 12:09 AM
RE: Configuration remote.xml - CurlyMo - 21st Dec, 2012, 12:10 AM
RE: Configuration remote.xml - Hawk - 21st Dec, 2012, 12:16 AM
RE: Configuration remote.xml - CurlyMo - 21st Dec, 2012, 12:25 AM
RE: Configuration remote.xml - Hawk - 21st Dec, 2012, 12:35 AM
RE: Configuration remote.xml - CurlyMo - 21st Dec, 2012, 12:38 AM
RE: Configuration remote.xml - Hawk - 21st Dec, 2012, 12:39 AM
RE: Configuration remote.xml - CurlyMo - 21st Dec, 2012, 12:42 AM
RE: Configuration remote.xml - Hawk - 21st Dec, 2012, 12:43 AM
RE: Configuration remote.xml - CurlyMo - 21st Dec, 2012, 12:58 AM
RE: Configuration remote.xml - Hawk - 21st Dec, 2012, 01:03 AM
RE: Configuration remote.xml - CurlyMo - 21st Dec, 2012, 01:05 AM
RE: Configuration remote.xml - Hawk - 21st Dec, 2012, 01:26 AM
RE: Configuration remote.xml - CurlyMo - 21st Dec, 2012, 05:33 AM
RE: Configuration remote.xml - CurlyMo - 22nd Dec, 2012, 01:03 AM
RE: Configuration remote.xml - Hawk - 23rd Dec, 2012, 07:26 AM
RE: Configuration remote.xml - CurlyMo - 23rd Dec, 2012 10:35 AM
RE: Configuration remote.xml - bo1e - 27th Dec, 2012, 05:10 AM
Re: Configuration remote.xml - rikardo1979 - 27th Dec, 2012, 05:28 AM
RE: Configuration remote.xml - Handaloo - 11th Jan, 2013, 08:03 AM
RE: Configuration remote.xml - CurlyMo - 11th Jan, 2013, 08:08 AM
RE: Configuration remote.xml - Handaloo - 11th Jan, 2013, 08:30 AM
RE: Configuration remote.xml - CurlyMo - 11th Jan, 2013, 08:43 AM
Re: Configuration remote.xml - Handaloo - 11th Jan, 2013, 09:10 AM
RE: Configuration remote.xml - CurlyMo - 11th Jan, 2013, 09:16 AM
RE: Configuration remote.xml - Handaloo - 11th Jan, 2013, 09:37 AM
RE: Configuration remote.xml - CurlyMo - 11th Jan, 2013, 09:49 AM
RE: Configuration remote.xml - Handaloo - 11th Jan, 2013, 09:51 AM
RE: Configuration remote.xml - Handaloo - 13th Jan, 2013, 07:53 PM
RE: Configuration remote.xml - CurlyMo - 13th Jan, 2013, 08:03 PM
RE: Configuration remote.xml - Handaloo - 13th Jan, 2013, 08:11 PM
RE: Configuration remote.xml - CurlyMo - 13th Jan, 2013, 08:14 PM
RE: Configuration remote.xml - Handaloo - 13th Jan, 2013, 08:33 PM
RE: Configuration remote.xml - CurlyMo - 13th Jan, 2013, 08:57 PM
RE: Configuration remote.xml - Handaloo - 13th Jan, 2013, 10:00 PM
RE: Configuration remote.xml - CurlyMo - 13th Jan, 2013, 10:20 PM
RE: Configuration remote.xml - Handaloo - 15th Jan, 2013, 07:31 AM
RE: Configuration remote.xml - CurlyMo - 15th Jan, 2013, 07:34 AM
RE: Configuration remote.xml - Handaloo - 15th Jan, 2013, 07:35 AM

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

Current time: 8th Jun, 2025, 02:39 PM Powered By MyBB, © 2002-2025 MyBB Group.