Problem: Configuration remote.xml
|
23rd Dec, 2012, 10:35 AM
Post: #44
|
|||
|
|||
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> My example of my old Chinese remote Code: <keymap> Feel free to ask many more questions, and please share the final remote.xml with us. pilight - modular domotica solution
|
|||
« Next Oldest | Next Newest »
|