Kodi Community Forum

Full Version: Using LIRC Rosewill RRC remote in Ubuntu
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
NOTE: I COULDN'T POST THIS IN THE GUIDE SECTION
I'M NEW TO THIS FORUM AND I JUST WANTED TO PUT THIS ON THE NET FOR THOSE HAVING ISSUES WITH SIMILAR REMOTES. IF A MODERATOR COULD MOVE IT WOULD BE APPRECIATED THX.

These are the steps I used for getting the Rosewill RRC-126 Remote working on XBMC for Ubuntu.
#OS: Ubuntu
#XBMC: xbmcfreaklive-natty-dharma-v2

#FIRST PLUG IN THE IR RECEIVER BEFORE LIRC INSTALL that way you can specify the device name during install.

#INSTALL LIRC, if it's already installed you can remove 'sudo apt-get purge lirc' then reinstall.
sudo apt-get install lirc

#Install LIRC using linux dev/input/eventX then None during install menu and choose the appropriate device mine was listed as 'Formosa Industrial Computing, Inc.'

#Use the following command to get a List of KEY NAMES for mapping during the irrecord configuration step:
irrecord --list-namespace | less

#You should plan which KEYMAP names you'll use for the buttons on your controller.
My Example:
#playback
KEY_REWIND
KEY_FASTFORWARD
KEY_MUTE
KEY_PLAY
KEY_STOP
KEY_PAUSE

#shortcut
KEY_VIDEO
KEY_HOMEPAGE
KEY_BACK
KEY_FORWARD
KEY_INFO
KEY_CANCEL
KEY_PREVIOUS

#directional
KEY_LEFT
KEY_DOWN
KEY_UP
KEY_RIGHT

#numpad
KEY_0
KEY_1
KEY_2
KEY_3
KEY_4
KEY_5
KEY_6
KEY_7
KEY_8
KEY_9

#volume
KEY_VOLUMEDOWN
KEY_VOLUMEUP

#Create lirc controller configuration using KEYMAP names you planned from previous step using irrecord:

sudo irrecord --driver=dev/input --device=/dev/input/event2 configname

#example: sudo irrecord --driver=dev/input --device=/dev/input/event2 rrc126
#Note: Your receiver may be loggin under another eventnumber. e.g. event3 etc.

#After creating your config add the following line to your /etc/lirc/lircd.conf to include the new keymaps you configured for your remote.
include "path/file.conf"
#example: include "/usr/share/lirc/remotes/devinput/lirc.conf.rrc126"

#Restart LIRC to load the new configs
sudo /etc/init.d/lirc restart

#Configure Lircmap.xml for XBMC.
#Example taken from: http://6.ptmc.org/259

<lircmap>
<remote device="devinput">
<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>
<subtitle>Teletext</subtitle>
<mute>KEY_MUTE</mute>
<power>KEY_POWER</power>
<myvideo>KEY_VIDEO</myvideo>
<mymusic>KEY_AUDIO</mymusic>
<mypictures>Pictures</mypictures>
<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>
<select>Aspect</select>
<info>KEY_INFO</info>
<title>Guide</title>
<menu>KEY_DVD</menu>
<clear>KEY_CLEAR</clear>
<enter>KEY_ENTER</enter>
</remote>
</lircmap>

You will use this in the Lircmap.xml see reference URL for more information if needed.
Note that i changed <remote device="mceusb"> TO <remote device="devinput"> and that the example has certain keys that i didn't map but left for visual purposes e.g. <title>Guide</title> anything that doesn't have KEY_<NAME>.

Note:You may have to restart XBMC after adding the Lircmap.xml file to the userdata folder.

Let me know if you have any questions, have a nice day!
Isn't the RRC-126 a MCE remote? Which means it should work out of the box with XBMCbuntu? I plan to buy this remote and want to be sure.