[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
#2
Thank you. This was really helpful. Verry nice job.
I've been trying to get it to work for a few days, but no luck. I'm using Ubuntu. Probably PEBCAK.
Do you know what differs this from Asrock's drivers for Ubuntu?
Reply
#3
prooz Wrote:Thank you. This was really helpful. Verry nice job.
I've been trying to get it to work for a few days, but no luck. I'm using Ubuntu. Probably PEBCAK.
Do you know what differs this from Asrock's drivers for Ubuntu?
I do not have installed any specific drivers for the Asrock HTPC system. I have only installed the Lirc package 1:0.9.0-8. Under Archlinux this package only have 2 dependencies : Lirc-utils and Linux (the kernel). Versions of these 2 packages are actually respectively version 1:0.9.0-8 and version 3.1.1.

So the only reason I see that your remote is not recognized correctly is that one a this 3 packages (Lirc, Lirc-utils or Linux) which are actually installed on your system do not support the Asrock remote.Eek
Reply
#4
That may explain it. I'm using 2.6.38-12 and Ubuntu 11.04. Perhaps I'll try Arch with 3.1.1 or 3.2.
Reply
#5
Hi Angelscry, can you also post your /etc/lirc/hardware.conf please? I need to know what modules are in use. Thanks in advance!

- Asrock Vision 3D 252B on Ubuntu 11.10 -
Reply
#6
I have slightly change my Remote configuration since my posted tutorial. Main change have been to use the default lircd.conf.mceusb cofiguration file instead of a custom one. It's more clean... Actually my AsRock Vision 3D Remote Configuration look like this.

/etc/lirc/hardware.conf
Code:
# /etc/lirc/hardware.conf
#
#Chosen Remote Control

REMOTE="Nuvoton Transceivers/Remotes"
REMOTE_MODULES="lirc_dev nuvoton-cir"
REMOTE_DRIVER="default"
REMOTE_DEVICE="/dev/lirc0"
REMOTE_SOCKET=""
REMOTE_LIRCD_CONF="remotes/mceusb"
REMOTE_LIRCD_ARGS=""

The lircd.conf file is now pointing directly too the default lircd.conf.mceusb file included into lircd package.

/etc/lirc/lircd.conf
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:
#

include "/usr/share/lirc/remotes/mceusb/lircd.conf.mceusb"

And so the lircmap.xml file have been also slightly modified in consequence:

~/.xbmc/userdata/Lircmap.xml
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="mceusb">
        <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>
Reply
#7
Thx for the quick reply! I will have some trouble with activating these modules in my Ubuntu 11.10 kernel I guess. I'm not home right now, but I will check this asap.

Can you post your complete /etc/lirc/hadware.conf?

I'm very interested in this:
START_LIRCD="true"
START_LIRCMD=""
LOAD_MODULES=""

Also, I see it's no longer needed to learn lirc.conf the appropriate key-presses as in your original post. Can't wait to get home to test it out. I've been messing around with it for a long time now. And I even can't use irw to see the input, that's why I think my modules are not loaded correctly.
Reply
#8
GBB1 Wrote:Thx for the quick reply! I will have some trouble with activating these modules in my Ubuntu 11.10 kernel I guess. I'm not home right now, but I will check this asap.

Can you post your complete /etc/lirc/hadware.conf?

I'm very interested in this:
START_LIRCD="true"
START_LIRCMD=""
LOAD_MODULES=""

Also, I see it's no longer needed to learn lirc.conf the appropriate key-presses as in your original post. Can't wait to get home to test it out. I've been messing around with it for a long time now. And I even can't use irw to see the input, that's why I think my modules are not loaded correctly.
That's my complete /etc/lirc/hadware.conf file. I do not have any START_LIRCD, START_LIRCMD or LOAD_MODULES parameters into my /etc/lirc/hadware.conf file.
Reply
#9
For other Ubuntu 11.10 users I created a small HowTo to get stuff working on the Asrock Vision 3D 252B.
Reply
 
Thread Rating:
  • 0 Vote(s) - 0 Average



Logout Mark Read Team Forum Stats Members Help
[LINUX] AsRock Vision 3D Remote Configuration00
This forum uses Lukasz Tkacz MyBB addons.