Results 1 to 6 of 6

Thread: Boxee Remote Keymap ffwd increments

Hybrid View

  1. #1
    Join Date
    Jun 2009
    Posts
    24

    Default Boxee Remote Keymap ffwd increments

    Is there a different mapping besides the 3 SmallStepForward(7sec), StepForward(30sec), and BigStepForward(10min)? I was hoping to map a 5min ffwd to one of the buttons, b/c 10min is too much and 30 sec isn't quite enough if I left off in the middle of a 2 hour movie.

    Also is there a better guide to the custom remote mapping? I was able to map the BigStepForward to replace StepForward but it didn't really make sense to me.

  2. #2
    Join Date
    Jun 2009
    Posts
    24

    Default

    Alright, I finally have a better grip on how the keymapping works. I haven't found a solution for the ffwd issue, seems the only options are SmallStepForward for 7 sec, StepForward for 30 sec and BigStepForward for 10min.

    Here's a quick tutorial on how the to map different functions to your remote:

    So in your ~/.boxee/UserData directory there are 2 files. Lircmap.xml and Keymap.xml. Both of these look similar but perform different functions. If you do not have Keymap.xml in your directory(it wasn't there for me) you can copy it from /opt/boxee/system/. You can also grab Lircmap.xml from here if it's missing from your home directory.

    The purpose of Lircmap.xml is to map you buttons to the sections in Keymap.xml. To get the value of your buttons start up a terminal session and start the program irw. Then start hitting the buttons on your remote. It will give you the value. So when I pressed the button to increase the volume it outputted: VolUp. Let's say we wanted to map VolUp to the pause button. Seems stupid but here is how you would do it:

    Lircmap.xml (just a snippet)
    ------------------------
    Code:
    <lircmap>
      <remote device="mceusb">
        <pause>VolUp</pause>
        <stop>Stop</stop>
        ...
      </remote>
    </lircmap>
    What happens is that VolUp is now mapped to the pause section in Keymap.xml. The value for pause in Keymap.xml is the function to perform, in the below case it would call the "Pause" function. You can find a full list by looking at Keymap.xml or by visiting http://xbmc.org/wiki/?title=Keymap.xml for more detailed descriptions of what the functions do.

    Keymap.xml (small snippet)
    ------------------------
    Code:
    <lircmap>
      <global>
        <remote>
          <pause>Pause</pause>
          <stop>Stop</stop>
          ...
        </remote>
      </global>
      <FullScreenVideo>
        <remote>
          <pause>Pause</pause>
          <stop>Pause</stop>
          ...
        </remote>
      </FullScreenVideo>
      <Home>
        ...
      </Home>
      ...
    </lircmap>
    As you can see above the Keymap.xml is broken up into sections. This is so you can make the keys perform different functions for different sections. So the Play button could do something entirely different in the FullScreenVideo section, then in the Home section. The global section provides default values for all sections. The sections can than override those values with their own. In the above example the global default for the stop button is to stop the video. But I have changed it when you are watching a video in fullscreen to actually pause the video.

    So if you want to change values for particular sections in Boxee you should edit your Keymap.xml file in your ~/.boxee/UserData/ directory.

    Hopefully that makes it clear for other people. If you have any questions feel free to ask.

  3. #3

    Default

    Is this platform independant or this a Linux only feature. I have been trying to figure out how to map my remote on Windows but can't find any information that seems to work.

  4. #4

    Default yeah

    Been using mplayer since I can remember. I always thought that mplayer had the best seeking out of any video engine. Press right and it does a small seek and press up and it does the larger seek. Similarly down and back do the same for rewind. I would gladly give up volume up and down to have the option on seek. I listen to 99 percent ac3 passing through to a preamp/processor so volume does nothing for me. Is it possible to remap volume elsewhere and get mplayer style seeking?

    quotaholic
    webdt.org

  5. #5
    Join Date
    Aug 2009
    Posts
    2

    Default

    Quote Originally Posted by boralyl View Post
    Alright, I finally have a better grip on how the keymapping works. I haven't found a solution for the ffwd issue, seems the only options are SmallStepForward for 7 sec, StepForward for 30 sec and BigStepForward for 10min.

    Here's a quick tutorial on how the to map different functions to your remote:

    So in your ~/.boxee/UserData directory there are 2 files. Lircmap.xml and Keymap.xml. Both of these look similar but perform different functions. If you do not have Keymap.xml in your directory(it wasn't there for me) you can copy it from /opt/boxee/system/. You can also grab Lircmap.xml from here if it's missing from your home directory.

    The purpose of Lircmap.xml is to map you buttons to the sections in Keymap.xml. To get the value of your buttons start up a terminal session and start the program irw. Then start hitting the buttons on your remote. It will give you the value. So when I pressed the button to increase the volume it outputted: VolUp. Let's say we wanted to map VolUp to the pause button. Seems stupid but here is how you would do it:

    Lircmap.xml (just a snippet)
    ------------------------
    Code:
    <lircmap>
      <remote device="mceusb">
        <pause>VolUp</pause>
        <stop>Stop</stop>
        ...
      </remote>
    </lircmap>
    What happens is that VolUp is now mapped to the pause section in Keymap.xml. The value for pause in Keymap.xml is the function to perform, in the below case it would call the "Pause" function. You can find a full list by looking at Keymap.xml or by visiting http://xbmc.org/wiki/?title=Keymap.xml for more detailed descriptions of what the functions do.

    Keymap.xml (small snippet)
    ------------------------
    Code:
    <lircmap>
      <global>
        <remote>
          <pause>Pause</pause>
          <stop>Stop</stop>
          ...
        </remote>
      </global>
      <FullScreenVideo>
        <remote>
          <pause>Pause</pause>
          <stop>Pause</stop>
          ...
        </remote>
      </FullScreenVideo>
      <Home>
        ...
      </Home>
      ...
    </lircmap>
    As you can see above the Keymap.xml is broken up into sections. This is so you can make the keys perform different functions for different sections. So the Play button could do something entirely different in the FullScreenVideo section, then in the Home section. The global section provides default values for all sections. The sections can than override those values with their own. In the above example the global default for the stop button is to stop the video. But I have changed it when you are watching a video in fullscreen to actually pause the video.

    So if you want to change values for particular sections in Boxee you should edit your Keymap.xml file in your ~/.boxee/UserData/ directory.

    Hopefully that makes it clear for other people. If you have any questions feel free to ask.
    I actually registered to say thanks for this - I couldn't understand what I was meant to do with these two files and couldn't make sense of the stuff on the XBMC wiki

  6. #6
    Join Date
    Aug 2009
    Posts
    154

    Unhappy

    when i type irw into terminal and press the remote buttons, I get random characters:

    ^[[A

    help?

    my remote does work.. i just want to remap some buttons.

    thanks!
    Last edited by lament; September 7th, 2009 at 03:29 AM.

Similar Threads

  1. new 1.1 ffwd / rewind
    By suffeks in forum Boxee Box help
    Replies: 12
    Last Post: May 17th, 2011, 12:15 AM
  2. Change Boxee Keymap
    By Darius_bd in forum boxee for windows help
    Replies: 9
    Last Post: August 10th, 2010, 08:39 PM
  3. Keymap for boxee iphone remote on ATV
    By cassidycaid in forum boxee remotes
    Replies: 0
    Last Post: July 16th, 2009, 09:20 PM
  4. Keymap for ATI Remote Wonder
    By deviantintegral in forum boxee for linux help
    Replies: 3
    Last Post: January 20th, 2009, 11:52 AM
  5. Keymap.xml not copied to $HOME/.boxee/UserData
    By rcampbel3 in forum bugs? what bugs?
    Replies: 0
    Last Post: December 31st, 2008, 05:44 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •