[LINUX] HOW-TO to use Antec Veris Basic IR Receiver, Harmony/MCE Remote on Ubuntu
#24
Ok. Now I can control XBMC again. Using kernel 2.6.37 and kernel's imon driver.

First of all I stopped lircd. We don't need it anymore.
Instead of lircd I start using inputlircd. it is pretty enough to control everything using events model.

1. create new simlink to correct eventX using udev rules. this will avoid problems if number changed.
Code:
cat /etc/udev/rules.d/11-lirc.rules
KERNEL=="event*", SYSFS{name}=="iMON Remote (15c2:0038)", NAME="input/%k", SYMLINK="input/irremote", MODE="0666"
so we can use /dev/irremote as our IR receiver device.

2. install inputlircd. for gentoo it looks :
Code:
sudo emerge app-misc/inputlircd

3. configure inputlircd daemon:
Code:
cat /etc/conf.d/inputlircd
# Options to pass to the lircd process
INPUTLIRCD_OPTS="-m 0 -g /dev/input/irremote"

4. start inputlircd
Code:
sudo /etc/init.d/inputlircd start

5. add inputlircd to default layer. for gentoo:
Code:
sudo rc-update add inputlircd default

6. change ~/.xbmc/userdata/Lircmap.xml to have something like this:
Code:
<lircmap>
        <remote device="irremote">
                <stop>KEY_STOP</stop>
                <pause>KEY_PAUSE</pause>
                <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_BACKSPACE</back>
                <menu>KEY_MENU</menu>
                <play>KEY_PLAY</play>
                <info>KEY_PROG1</info>
                <skipplus>KEY_NEXT</skipplus>
                <skipminus>KEY_PREVIOUS</skipminus>
                <display>KEY_SCREEN</display>
                <start>KEY_DASHBOARD</start>
                <record>KEY_RECORD</record>
                <volumeplus>KEY_VOLUMEUP</volumeplus>
                <volumeminus>KEY_VOLUMEDOWN</volumeminus>
                <mute>KEY_MUTE</mute>
                <power>KEY_POWER</power>
                <myvideo>KEY_VIDEO</myvideo>
                <mymusic>KEY_AUDIO</mymusic>
                <mypictures>KEY_CAMERA</mypictures>
                <mytv>KEY_TV</mytv>
                <one>KEY_NUMERIC_1</one>
                <two>KEY_NUMERIC_2</two>
                <three>KEY_NUMERIC_3</three>
                <four>KEY_NUMERIC_4</four>
                <five>KEY_NUMERIC_5</five>
                <six>KEY_NUMERIC_6</six>
                <seven>KEY_NUMERIC_7</seven>
                <eight>KEY_NUMERIC_8</eight>
                <nine>KEY_NUMERIC_9</nine>
                <zero>KEY_NUMERIC_0</zero>
                <star>KEY_NUMERIC_STAR</star>
                <hash>KEY_NUMERIC_POUND</hash>
                <playlist>KEY_BOOKMARKS</playlist>
                <teletext>KEY_MEDIA</teletext>
                <title>KEY_COMPOSE</title>
                <subtitle>KEY_SUBTITLE</subtitle>
                <language>KEY_LANGUAGE</language>
        </remote>
</lircmap>

7. reboot the system to double check everything works correctly.

8. correct key names you can check either via irw tool from lirc package or just look at /usr/include/linux/input.h

9. Still doesn't work Volume Control on Antec Fusion Case. not critical, but will try to fix it latter.
Reply


Messages In This Thread
[No subject] - by bjs1400 - 2010-01-29, 07:12
[No subject] - by stpfarms - 2010-01-29, 17:19
[No subject] - by batrad - 2010-01-29, 19:46
[No subject] - by xexe - 2010-03-20, 13:26
[No subject] - by shassino - 2010-03-21, 13:26
[No subject] - by xexe - 2010-03-21, 13:31
[No subject] - by stpfarms - 2010-03-23, 19:35
[No subject] - by martinez - 2010-04-06, 23:40
[No subject] - by gymmarn - 2010-10-12, 22:52
[No subject] - by lyka - 2010-10-13, 01:04
[No subject] - by stpfarms - 2010-10-13, 17:11
[No subject] - by lyka - 2010-10-16, 00:59
[No subject] - by stpfarms - 2010-10-19, 00:24
[No subject] - by gymmarn - 2010-10-19, 22:08
[No subject] - by blafasel - 2010-10-27, 11:10
[No subject] - by Dougie085 - 2010-11-13, 04:19
[No subject] - by Dougie085 - 2010-11-14, 05:05
[No subject] - by Mike8913 - 2010-12-01, 19:37
[No subject] - by nigthlord - 2010-12-01, 20:38
[No subject] - by nigthlord - 2010-12-05, 17:26
[No subject] - by turkosbon - 2011-01-04, 21:03
[No subject] - by magnimus - 2011-01-11, 12:36
[No subject] - by magnimus - 2011-01-12, 20:54


Logout Mark Read Team Forum Stats Members Help
[LINUX] HOW-TO to use Antec Veris Basic IR Receiver, Harmony/MCE Remote on Ubuntu1
This forum uses Lukasz Tkacz MyBB addons.