Linux Need help getting an IR remote working on XBMC
#1
Hi

My setup is Gotham on Arch linux, 3.10 kernel and on an cubox-i.


I have LIRC working OK and IRW displays the correct keys from my old popcorn hour remote. However I'm stumped at how to get xbmc to see the remote. I've tried to follow guides in this forum, but I don't see what I'm doing wrong.

my /etc/lirc/lircd.conf

Code:
#
    # this config file was automatically generated
    # using lirc-0.8.6(default) on Sat Feb 13 09:34:54 2010
    #
    # contributed by
    #
    # brand:                       Syabas PopCornHour A-100
    # model no. of remote control: Syabas PopCornHour A-100
    # devices being controlled by this remote:
    #

    begin remote

      name  Syabas_A-100
      bits           16
      flags SPACE_ENC|CONST_LENGTH
      eps            30
      aeps          100

      header       9054  4475
      one           590  1661
      zero          590   535
      ptrail        587
      repeat       9057  2221
      pre_data_bits   16
      pre_data       0x20D3
      gap          108083
      toggle_bit_mask 0x0

          begin codes
              KEY_POWER                0x52AD
              KEY_FILE                 0x12ED
              KEY_SETUP                0xF00F
              KEY_SUSPEND              0xB24D
              KEY_PAGEUP               0x728D
              KEY_EJECTCD              0x22DD
              KEY_MODE                 0xC837
              KEY_MUTE                 0x8A75
              KEY_PAGEDOWN             0x4AB5
              KEY_0                    0xD827
              KEY_1                    0x827D
              KEY_2                    0xC03F
              KEY_3                    0x42BD
              KEY_4                    0xA25D
              KEY_5                    0xE01F
              KEY_6                    0x629D
              KEY_7                    0xAA55
              KEY_8                    0xE817
              KEY_9                    0x6A95
              KEY_DELETE               0x9A65
              KEY_CAPSLOCK             0x5AA5
              KEY_BACK                 0xE21D
              KEY_ARCHIVE              0xA05F
              KEY_UP                   0x609F
              KEY_LEFT                 0xC23D
              KEY_RIGHT                0x807F
              KEY_DOWN                 0x50AF
              KEY_SELECT               0x40BF
              KEY_INFO                 0xD22D
              KEY_HOME                 0x906F
              KEY_MENU                 0xCA35
              KEY_PREVIOUS             0x48B7
              KEY_PLAY                 0x0AF5
              KEY_NEXT                 0x8877
              KEY_TITLE                0xF20D
              KEY_REWIND               0x708F
              KEY_STOP                 0x32CD
              KEY_FORWARD              0xB04F
              KEY_AGAIN                0xEA15
              KEY_ANGLE                0x6897
              KEY_PAUSE                0x2AD5
              KEY_SLOW                 0xA857
              KEY_TIME                 0xDA25
              KEY_AUDIO                0x58A7
              KEY_SUBTITLE             0x1AE5
              KEY_ZOOM                 0x9867
              KEY_RED                  0xFA05
              KEY_GREEN                0x7887
              KEY_YELLOW               0x3AC5
              KEY_BLUE                 0xB847
          end codes

    end remote

The above seems to work and IRW is showing that LIRC sees the correct key presses.

My /var/lib/xbmc/.xbmc/userdata/Lircmap.xml file is

Code:
<?xml version="1.0" encoding="UTF-8"?>
<!-- This file contains the mapping of LIRC keys to XBMC keys used in Keymap.xml  -->
<!--                                                                              -->
<!-- How to add remotes                                                           -->
<!-- <remote device="name_Lirc_calls_the_remote">                                 -->
<!--                                                                              -->
<!-- For the commands the layout following layout is used                         -->
<!-- <XBMC_COMMAND>LircButtonName</XBMC_COMMAND>                                  -->
<!--                                                                              -->
<!-- For a list of XBMC_COMMAND's check out the <remote> sections of keymap.xml   -->

<lircmap>
    <remote device="Syabas_A-100">
        <left>KEY_LEFT</left>
        <right>KEY_RIGHT</right>
        <up>KEY_UP</up>
        <down>KEY_DOWN</down>
        <select>KEY_OK</select>
        <start>KEY_HOME</start>
        <back>KEY_BACK</back>
        <record>KEY_RECORD</record>
        <play>KEY_PLAY</play>
        <pause>KEY_PAUSE</pause>
        <stop>KEY_STOP</stop>
        <forward>KEY_FORWARD</forward>
        <reverse>KEY_REWIND</reverse>
        <volumeplus>KEY_VOLUMEUP</volumeplus>
        <volumeminus>KEY_VOLUMEDOWN</volumeminus>
        <pageplus>KEY_CHANNELUP</pageplus>
        <pageminus>KEY_CHANNELDOWN</pageminus>
        <skipplus>KEY_NEXT</skipplus>
        <skipminus>KEY_AGAIN</skipminus>
        <mute>KEY_MUTE</mute>
        <power>KEY_POWER</power>
        <myvideo>KEY_VIDEO</myvideo>
        <mymusic>KEY_AUDIO</mymusic>
        <mytv>LiveTV</mytv>
        <one>KEY_1</one>
        <two>KEY_2</two>
        <three>KEY_3</three>
        <four>KEY_4</four>
        <five>KEY_5</five>
        <six>KEY_6</six>
        <seven>KEY_7</seven>
        <eight>KEY_8</eight>
        <nine>KEY_9</nine>
        <zero>KEY_0</zero>
        <red>KEY_RED</red>
        <green>KEY_GREEN</green>
        <yellow>KEY_YELLOW</yellow>
        <blue>KEY_BLUE</blue>
        <menu>KEY_DVD</menu>
        <clear>KEY_CLEAR</clear>
        <enter>KEY_ENTER</enter>
    </remote>
</lircmap>

I then restart xbmc, but the remote still doesn't work for xbmc, but IRW still sees the right key presses

Thanks in advance

grahams
Reply
#2
bump
Reply
#3
(2014-04-16, 19:19)grahams Wrote: bump

bump 2
Reply
#4
Have you seen this tutorial: Linux - How-To: Use ANY IR Remote In The House to Control XBMC ?

And [INFO] Understanding LIRC & XBMC ?

You might need to do the "/home/your-xbmc-user/.xbmc/userdata/keymaps/remote.xml" file yet.

Also, some of the keys you map in your "Lircmap.xml" do not appear in your "lircd.conf", for example "KEY_VOLUMEUP", "KEY_VOLUMEDOWN", "KEY_CHANNELUP", "KEY_CHANNELDOWN"
Reply

Logout Mark Read Team Forum Stats Members Help
Need help getting an IR remote working on XBMC0