Yes, it requires a bit of tinkering
This is about my (working) setup. I have an Antec fusion and use a Logitech Harmony 555 as remote.
1st: /etc/lirc/lirrcd.conf
Code:
#This configuration has been automatically generated via
#the Ubuntu LIRC package maintainer scripts.
#
#It includes the default configuration for the remote and/or
#transmitter that you have selected during package installation.
#
#Feel free to add any custom remotes to the configuration
#via additional include directives or below the existing
#Ubuntu include directives from your selected remote and/or
#transmitter.
#Configuration for the Soundgraph iMON PAD IR/VFD remote:
#include /usr/share/lirc/remotes/imon/lircd.conf.imon-pad
include /etc/lirc/lircd.conf.mceclassic
Actually 1 line there which includes the file with codes for my mceremote immitating 555.
/etc/lirc/lircd.conf.mceclassic :
Code:
# rcd.conf file for Harmony 555 (configured to control a
# Microsoft Media Center PC) and the Antec Fusion's iMON PAD
# IR remote controller.
#
begin remote
name harmony555
bits 8
eps 30
aeps 100
one 0 0
zero 0 0
pre_data_bits 24
pre_data 0x800F04
gap 204001
min_repeat 1
toggle_bit_mask 0x8000
begin codes
Zero 0x00
One 0x01
Two 0x02
Three 0x03
Four 0x04
Five 0x05
Six 0x06
Seven 0x07
Eight 0x08
Nine 0x09
Clear 0x0A
Enter 0x0B
Power 0x0C
Start 0x0D
Mute 0x0E
More 0x0F
VolUp 0x10
VolDown 0x11
ChanUp 0x12
ChanDown 0x13
Forward 0x14
Rewind 0x15
Play 0x16
Record 0x17
Pause 0x18
Stop 0x19
Skip 0x1A
SkipBack 0x1B
Hash 0x1C
Star 0x1D
Up 0x1E
Down 0x1F
Left 0x20
Right 0x21
OK 0x22
Back 0x23
Menu 0x24
unmapped_4 0x25
Guide 0x26
Zoom 0x27
Red 0x5B
Green 0x5C
Yellow 0x5D
Blue 0x5E
TV_Power 0x65
end codes
end remote
begin remote
name Antec_Fusion_Wheel
bits 16
eps 30
aeps 100
one 0 0
zero 0 0
gap 131971
begin codes
CW 0x0001
CCW 0x0100
end codes
end remote
I never really tried to get the wheel to work but the config is there. Restart the lircd to get it to read the codes. You can test your remote with irw at this point.
3th: You need a Lircmap.xml to translate the lircd codes to xbmc codes. Xbmc first reads Lircmap.xml in the system folder and then in your userdata folder. Mine is in the userdata folder:
Code:
<!-- This file contains the mapping of LIRC keys to XBMC keys used in Keymap.xml
-->
<lircmap>
<remote device="harmony555">
<pause>Pause</pause>
<stop>Stop</stop>
<forward>Forward</forward>
<reverse>Rewind</reverse>
<left>Left</left>
<right>Right</right>
<up>Up</up>
<down>Down</down>
<select>OK</select>
<pageplus>ChanUp</pageplus>
<pageminus>ChanDown</pageminus>
<back>Back</back>
<play>Play</play>
<menu>Menu</menu>
<info>More</info>
<skipplus>Skip</skipplus>
<skipminus>Replay</skipminus>
<display>Teletext</display>
<start>Home</start>
<record>Record</record>
<volumeplus>VolUp</volumeplus>
<volumeminus>VolDown</volumeminus>
<mute>Mute</mute>
<power>Power</power>
<myvideo>Videos</myvideo>
<mymusic>Music</mymusic>
<mypictures>Pictures</mypictures>
<mytv>TV</mytv>
<one>One</one>
<two>Two</two>
<three>Three</three>
<four>Four</four>
<five>Five</five>
<six>Six</six>
<seven>Seven</seven>
<eight>Eight</eight>
<nine>Nine</nine>
<zero>Zero</zero>
<mytv>Red</mytv>
<mymusic>Green</mymusic>
<mypictures>Yellow</mypictures>
<myvideo>Blue</myvideo>
<clear>Clear</clear>
<!-- title and guide are the same for xbmc -->
<guide>Guide</guide>
</remote>
There could be other remotes defined in this file, I'm only showing the one I use (harmony555).
Finally we have to map these codes to XBMC actions via a keymap. It should be located in the subfolder keymaps and named somename.xml (every xml in that directory is read by xbmc). Eg. userdata/keymaps/mykeymap.xml
The keymap file itself is to big to post here, its at
pastebin. A lot of codes in that file are for devices I do not use but I'm too lazy to clean it up
TIP: find your xbmc.log file. You can check which files it is loading eg:
Code:
10:42:13 T:3050362720 M:2035752960 INFO: Loading special://xbmc/system/Lircmap.xml
10:42:13 T:3050362720 M:2035879936 INFO: Loading special://profile/Lircmap.xml
The locations of special:// can be found at the top of your logfile eg:
Code:
10:42:11 T:3050362720 M:2042064896 NOTICE: special://xbmc/ is mapped to: /var/home/xbmc/BUILD/share/xbmc/
10:42:11 T:3050362720 M:2042064896 NOTICE: special://masterprofile/ is mapped to: /var/home/xbmc/BUILD/share/xbmc/userdata
10:42:11 T:3050362720 M:2042064896 NOTICE: special://home/ is mapped to: /var/home/xbmc/BUILD/share/xbmc/
10:42:11 T:3050362720 M:2042064896 NOTICE: special://temp/ is mapped to: /var/home/xbmc/BUILD/share/xbmc/temp
All keymaps it loads (with mine at the bottom):
Code:
10:42:12 T:3050362720 M:2035695616 INFO: load keymapping
10:42:12 T:3050362720 M:2035798016 DEBUG: Sort, sorting took 0 millis
10:42:12 T:3050362720 M:2035798016 INFO: Loading special://xbmc/system/keymaps/gamepad.xml
10:42:12 T:3050362720 M:2035798016 INFO: Loading special://xbmc/system/keymaps/joystick.AppleRemote.xml
10:42:12 T:3050362720 M:2035712000 INFO: Loading special://xbmc/system/keymaps/joystick.Harmony.xml
10:42:12 T:3050362720 M:2035838976 INFO: Loading special://xbmc/system/keymaps/joystick.Microsoft.Xbox.Controller.S.xml
10:42:12 T:3050362720 M:2035838976 INFO: Loading special://xbmc/system/keymaps/joystick.Sony.PLAYSTATION(R)3.Controller.xml
10:42:13 T:3050362720 M:2035838976 INFO: Loading special://xbmc/system/keymaps/joystick.WiiRemote.xml
10:42:13 T:3050362720 M:2035838976 INFO: Loading special://xbmc/system/keymaps/keyboard.xml
10:42:13 T:3050362720 M:2035838976 INFO: Loading special://xbmc/system/keymaps/remote.xml
10:42:13 T:3050362720 M:2035838976 DEBUG: Sort, sorting took 0 millis
10:42:13 T:3050362720 M:2035838976 INFO: Loading special://profile/keymaps/mykeymap.xml
Also you should see lines like:
Code:
16:08:54 T:3050243936 M:1985622016 DEBUG: Update - NEW at 28446:00000000800f0421 00 Right harmony555 (Right)
16:08:54 T:3050243936 M:1985622016 DEBUG: OnKey: 168 pressed, action is 2
where I pressed the right navigation wheel on my remote which lead to xbmc action 2. The 800f0421 is the raw code defined in /etc/lirc/lircd.conf.mceclassic
So this is it! My setup is not perfect but it should be enough to get you started.
Cheers!