ok, this is a simple howto for making the MCE USB IR Receiver- Spinel plusf0r ASUS (0471:206c) work with xbmc on linux
first let's see where is our remote located, so
Code:
cat /proc/bus/input/devices
we will have a lot of output including what we are interested in, something like
Code:
I: Bus=0003 Vendor=0471 Product=206c Version=0100
N: Name="PHILIPS MCE USB IR Receiver- Spinel plusf0r ASUS"
P: Phys=usb-0000:00:04.0-1/input0
S: Sysfs=/devices/pci0000:00/0000:00:04.0/usb3/3-1/3-1:1.0/input/input3
U: Uniq=
H: Handlers=kbd mouse1 event3
B: EV=120017
B: KEY=c0000 400 0 0 70000 0 58000 8001f8 4000c004 e0beffdf 1cfffff ffffffff fffffffe
B: REL=103
B: MSC=10
B: LED=1f
so we know the remote is located at event3, in my case, but it can change if we move the remote controller to another usb port, so now we want to make an udev rule to link the event device which has the vendor-id and product id of our remote to /dev/input/irremote, so we already know that the vendor id is 0471 and device id is 0206c, so we can do
Code:
sudo nano /etc/udev/rules.d/10-local.rules
and put in the file
Code:
KERNEL=="event*",ATTRS{idVendor}=="0471",ATTRS{idProduct}=="206c",SYMLINK="input/irremote"
now we can make
Code:
sudo service udev restart
detach and attach the remote again and we'll find a symlink in /dev/input/irremote pointing to our device
now we can proceed to install lirc
Code:
sudo apt-get install lirc lirc-dev
the lirc configuration will ask us what kind of remote we have, so we can say we have custom and make it point to /dev/input/irremote
now we have to edit /etc/lirc/hardware.conf so that it loads the correct remote template
Code:
sudo nano /etc/lirc/hardware.conf
and we make the REMOTE_LIRCD_CONF line look like
Code:
REMOTE_LIRCD_CONF="devinput/lircd.conf.devinput"
if we do
Code:
sudo /etc/init.d/lirc restart
and try irw we should have some output, now
so we go and make it work with xbmc, so
Code:
nano ~/.xbmc/userdata/Lircmap.xml
and put in there
Code:
<lircmap>
<remote device="devinput">
<play>KEY_PLAY</play>
<pause>KEY_PAUSE</pause>
<stop>KEY_STOPCD</stop>
<forward>KEY_FASTFORWARD</forward>
<reverse>KEY_REWIND</reverse>
<left>KEY_LEFT</left>
<right>KEY_RIGHT</right>
<up>KEY_UP</up>
<down>KEY_DOWN</down>
<select>KEY_ENTER</select>
<pageplus>KEY_CHANNELUP</pageplus>
<pageminus>KEY_CHANNELDOWN</pageminus>
<back>KEY_BACK</back>
<!--menu>PreviousMenu</menu-->
<!--title>Guide</title-->
<info>KEY_PROPS</info>
<skipplus>KEY_NEXTSONG</skipplus>
<skipminus>KEY_PREVIOUSSONG</skipminus>
<!--display>Teletext</display-->
<!--start>Home</start-->
<record>KEY_RECORD</record>
<volumeplus>KEY_VOLUMEUP</volumeplus>
<volumeminus>KEY_VOLUMEDOWN</volumeminus>
<mute>KEY_MUTE</mute>
<power>KEY_SLEEP</power>
<!--myvideo>Videos</myvideo-->
<!--mymusic>Music</mymusic-->
<!--mypictures>Pictures</mypictures-->
<!--mytv>TV</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>
<!--star>Star</star-->
<!--hash>Hash</hash-->
<clear>KEY_ESC</clear>
<!--enter>Enter</enter-->
<!--red>Red</red-->
<!--green>Green</green-->
<!--yellow>Yellow</yellow-->
<!--blue>Blue</blue-->
</remote>
</lircmap>
where i commented the lines with the not working keys
we save it and restart xbmc and we should have a working remote, except the keys i previously said
that's all