[LINUX] AsRock Vision 3D Remote Configuration
#1
It maybe help some of you. Here is my LIRC and XBMC configuration to use the AsRock Vision 3D default MCE remote controller with XBMC under ArchLinux (it will be surely similar with under other Linux distributions).

AsRock Vision 3D remote controller:

Image

You need first to install the lirc package :
Code:
pacman -S lirc

Then, you need to modify the /etc/lirc/lirc.conf file with the right parameters:
Code:
# Please make this file available to others
# by sending it to <[email protected]>
#
# this config file was automatically generated
# using lirc-0.9.0(default) on Sun Oct 23 13:16:30 2011
#
# contributed by
#
# brand:                       /tmp/my_remote.conf
# model no. of remote control:
# devices being controlled by this remote:
#

begin remote

  name  asrockv3d
  bits           16
  flags RC6|CONST_LENGTH
  eps            30
  aeps          100

  header       2656   847
  one           414   447
  zero          414   447
  pre_data_bits   21
  pre_data       0x37FF0
  gap          105237
  min_repeat      1
#  suppress_repeat 1
#  uncomment to suppress unwanted repeats
  toggle_bit_mask 0x0
  rc6_mask    0x100000000

      begin codes
          KEY_ZOOM                 0x7BD8
          KEY_POWER                0xFBF3
          KEY_RECORD               0x7BE8
          KEY_PAUSE                0xFBE7
          KEY_STOP                 0xFBE6
          KEY_REWIND               0x7BEA
          KEY_PLAY                 0xFBE9
          KEY_FORWARD              0xFBEB
          KEY_PREVIOUS             0x7BE4
          KEY_NEXT                 0x7BE5
          KEY_BACK                 0xFBDC
          KEY_HOME                 0xFBF2
          KEY_INFO                 0x7BF0
          KEY_LEFT                 0xFBDF
          KEY_UP                   0xFBE1
          KEY_RIGHT                0xFBDE
          KEY_DOWN                 0x7BE0
          KEY_OK                   0xFBDD
          KEY_VOLUMEUP             0x7BEF
          KEY_VOLUMEDOWN           0xFBEE
          KEY_MUTE                 0x7BF1
          KEY_CHANNELUP            0xFBED
          KEY_CHANNELDOWN          0x7BEC
          KEY_1                    0xFBFE
          KEY_2                    0x7BFD
          KEY_3                    0xFBFC
          KEY_4                    0x7BFB
          KEY_5                    0xFBFA
          KEY_6                    0x7BF9
          KEY_7                    0xFBF8
          KEY_8                    0x7BF7
          KEY_9                    0xFBF6
          KEY_DOT                  0x7BE2
          KEY_0                    0xFBFF
          KEY_RADIO                0x7BE3
          KEY_CLEAR                0xFBF5
          KEY_TEXT                 0x7BA5
          KEY_LIST                 0xFBD9
          KEY_RED                  0x7BA4
          KEY_GREEN                0xFBA3
          KEY_YELLOW               0x7BA2
          KEY_BLUE                 0xFBA1
          KEY_ENTER                0x7BF4
      end codes

end remote
Next, you need to add (or modify) the ~/.xbmc/userdata/Lircmap.xml file :
Code:
<!-- 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="asrockv3d">
        <play>KEY_PLAY</play>
        <pause>KEY_PAUSE</pause>
        <stop>KEY_STOP</stop>
        <forward>KEY_FORWARD</forward>
        <reverse>KEY_REWIND</reverse>
        <left>KEY_LEFT</left>
        <right>KEY_RIGHT</right>
        <up>KEY_UP</up>
        <down>KEY_DOWN</down>
        <select>KEY_OK</select>
        <enter>KEY_ENTER</enter>
        <pageplus>KEY_CHANNELUP</pageplus>
        <pageminus>KEY_CHANNELDOWN</pageminus>
        <back>KEY_BACK</back>
        <menu>KEY_LIST</menu>
        <title>KEY_CLEAR</title>
        <subtitle>KEY_TEXT</subtitle>
        <info>KEY_INFO</info>
        <skipplus>KEY_NEXT</skipplus>
        <skipminus>KEY_PREVIOUS</skipminus>
        <display>KEY_ZOOM</display>
        <start>KEY_HOME</start>
        <record>KEY_RECORD</record>
        <volumeplus>KEY_VOLUMEUP</volumeplus>
        <volumeminus>KEY_VOLUMEDOWN</volumeminus>
        <mute>KEY_MUTE</mute>
        <power>KEY_POWER</power>
        <red>KEY_RED</red>
        <green>KEY_GREEN</green>
        <yellow>KEY_YELLOW</yellow>
        <blue>KEY_BLUE</blue>
        <zero>KEY_0</zero>
        <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>
    </remote>
</lircmap>
Then, you will need to edit the /etc/rc.local file and add this following line to run lirc every time you boot:
Code:
echo lirc > /sys/class/rc/rc0/protocols
Finally, to launcher LIRC at boot, you will need to add lircd as daemon into the /etc/rc.conf file.
Reply


Messages In This Thread
[LINUX] AsRock Vision 3D Remote Configuration - by Angelscry - 2011-10-23, 20:40
[No subject] - by User 106473 - 2011-11-16, 22:14
[No subject] - by Angelscry - 2011-11-16, 22:35
[No subject] - by User 106473 - 2011-11-17, 11:14
[No subject] - by GBB1 - 2011-12-16, 12:27
[No subject] - by Angelscry - 2011-12-16, 13:52
[No subject] - by GBB1 - 2011-12-16, 14:08
[No subject] - by Angelscry - 2011-12-16, 15:24
[No subject] - by GBB1 - 2011-12-19, 15:38
Logout Mark Read Team Forum Stats Members Help
[LINUX] AsRock Vision 3D Remote Configuration0