View Full Version : How to install remote with Irtrans Server (Origen ae case)
acme-badboy
2009-02-05, 01:42
Hi there,
for days i'm trying to get my remote to work with the XBMC Live - and til now i've failed. I have the Origen ae S14V case with a build-in IR220 VFD/IR Module and the Philips RC197 remote.
I managed to install the IR-Trans Server from http://www.irtrans.de/de/download/ and did get the right keycodes on screen in the debug-mode from the irserver. But thats all i'm getting - the remote just won't work in the XBMC. I tried to follow an german guide (http://www.easy-vdr.de/forum/index.php?topic=2994.msg21000#msg21000) für installing the remote on linux but i got stuck. I just don't know if the script is the right one for xbmc and how to install it. I think it should be executed on the startup of the system.
I have to say, that i'm a noob and dont know much about linux, so i'll need a step by step guide on how to install the remote properly. I hope that heres someone, who can tell me what I need to do - based on the upper guide its maybe possible even for someone, who hasn't this remote...
gr33tz
BaDBoY
you need to edit lircmap.xml to match your codes
in my case (mce303 case with irtrans vfd/ir and remote) i had to add, before the ending </lircmap>, these lines
<remote device="mediacenter">
<pause>pause</pause>
<stop>stop</stop>
<forward>fwd</forward>
<reverse>rew</reverse>
<left>left</left>
<right>right</right>
<up>up</up>
<down>down</down>
<select>ok</select>
<pageplus>ch+</pageplus>
<pageminus>ch-</pageminus>
<back>back</back>
<menu>clear</menu>
<title>play</title>
<info>info</info>
<skipplus>next</skipplus>
<skipminus>prev</skipminus>
<display>teletext</display>
<start>ehome</start>
<record>rec</record>
<volumeplus>vol+</volumeplus>
<volumeminus>vol-</volumeminus>
<mute>mute</mute>
<power>power</power>
<myvideo>video</myvideo>
<mymusic>music</mymusic>
<mypictures>pictures</mypictures>
<mytv>tv</mytv>
<one>1</one>
<two>2</two>
<three>3</three>
<four>4</four>
<five>5</five>
<six>6</six>
<seven>7</seven>
<eight>8</eight>
<nine>9</nine>
<zero>0</zero>
<mytv>red</mytv>
<mymusic>green</mymusic>
<mypictures>yellow</mypictures>
<myvideo>blue</myvideo>
</remote>
of course you need the irtrans server to be started for it to work, and that guide (as far as i can understand, as i don't speak german) tells you how to install the irtrans service, so it should be started at boot
bye
acme-badboy
2009-02-05, 10:40
Hi succo,
i created the Lircmap.xml at /xbmc/.xbmc/userdata/ and manually started the irserver daemon with "./irserver -daemon /dev/ttyUSB0" - still the remote doesn't work.
And I have no clue how to start the irtrans service at boot, cause the german guide is for EasyVDR and not for XBMC.
Help plz!
Edit:
The command "irw" works fine and shows me the right remote-codes.
If I try to restart lirc with "/etc/init.d/lirc restart"
* Stopping remote control daemon(s): LIRC [fail]
* Loading LIRC modules [ OK ]
* Unable to load LIRC kernel modules. Verify your
* selected kernel modules in /etc/lirc/hardware.conf"
So theres something wrong with lirc, right? How can I fix this?
it won't work with lirc daemon running... you have to stop/uninstall lirc for it to work properly... anyway, here (http://ubuntuforums.org/showthread.php?t=270522) is a script to be put in init.d to start irserver automagically at boot... after starting irserver and putting that lines in lircmap.xml i think you'll find the keypresses in xbmc debug log and will be able to use your remote :)
acme-badboy
2009-02-06, 00:07
I thought I mentioned that i'm a noob :), so here are my noob-questions:
1. How can i uninstall lirc?
2. I copy the script to the init.d - and then it starts automatically? I thought i need to add this script somewhere, like in a boot-script or something.
sudo apt-get remove lirc
sudo cp irserver /etc/init.d/
sudo chmod +x /etc/init.d/irserver
sudo update-rc.d irserver defaults
acme-badboy
2009-02-06, 01:42
thanks for your help,
but the remote is still not working (however the vfd now shows the date and time, so i've done something right ;)). lirc is uninstalled and i filled the Lircmap.xml. the command "irw" says now "unknown command" - i presume thats ok, cause lirc is uninstalled. do i have to update the hardware.conf or the lircd.conf?
i really appreciate your help!!! :)
Edit:
this part i didnt understand:
i think you'll find the keypresses in xbmc debug log and will be able to use your remote
acme-badboy
2009-02-06, 02:12
now i've found the debug log, but i don't see the keypresses... and no info about irserver...
...maybe i should have stayed with my xbox1...
ahem... did you edit /etc/init.d/irserver to match your configuration?
try sudo /etc/init.d/irserver status to see if irserver is running
if it's not running, as i think, edit /etc/init.d/irserver to match your conf, mostly check 'cd /usr/local/irtrans' (is the main irserver binary located there?) and '/dev/ttyUSB0' (is your remote attached there?)
wouter83
2009-02-07, 00:18
Hi,
i had the same problem, here is my little How-to 4 you and all :-)
First of all make a new clean xbmc installaiton
boot Xbmc-Live
exit Xbmc to terminal
now follow step by step...
1. sudo apt-get update
2. sudo apt-get install make g++-4.1 gcc-4.1 libsdl1.2-dev libsdl-image1.2-dev libsdl-gfx1.2-dev libsdl-mixer1.2-dev libsdl-sound1.2-dev libsdl-stretch-dev libfribidi0 libfribidi-dev liblzo1 liblzo-dev libfreetype6 libfreetype6-dev libsqlite3-0 libsqlite3-dev libogg-dev libasound2-dev python-sqlite libglew1.5 libglew1.5-dev libcurl3-dev g++ gawk x11proto-xinerama-dev libxinerama-dev libxrandr-dev libxrender-dev pmount libmad0-dev libtre-dev libogg-dev libvorbis-dev libmysqlclient15-dev libhal1 libhal-dev libhal-storage1 libhal-storage-dev libpcre3-dev subversion libjasper-dev libjasper1 libfontconfig-dev libbz2-dev libboost-dev libtool nasm libfaac-dev libenca-dev automake cmake libxt-dev libxmu-dev gperf unzip libpng12-dev libjpeg62-dev bison libpulse-dev wget build-essential linux-headers-`uname -r`
3. sudo apt-get remove lirc
4. mkdir irtrans-install
5. cd irtrans-install/
6. wget http://www.irtrans.de/download/Server/Linux/irserver.tar.gz
7. tar --gzip -xvf irserver.tar.gz
8. tr -d '^M' < install.sh > install.sh.tmp
9. mv install.sh.tmp install.sh
10. chmod +x install.sh
11. sudo ./install.sh
12. sudo nano /etc/init.d/irserver
paste:
#! /bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/local/irtrans/irserver
NAME=irserver
DESC=irserver
DAEMON_OPTS="-daemon /dev/ttyUSB0"
set -e
case "$1" in
start)
echo -n "Starting $DESC: "
start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid --make-pidfile\
--exec $DAEMON -- $DAEMON_OPTS
echo "$NAME."
;;
stop)
echo -n "Stopping $DESC: "
start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid
echo "$NAME."
;;
restart|force-reload)
echo -n "Restarting $DESC: "
start-stop-daemon --stop --quiet --pidfile \
/var/run/$NAME.pid
sleep 1
echo -n "Starting $DESC: "
start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid --make-pidfile\
--exec $DAEMON -- $DAEMON_OPTS
echo "$NAME."
;;
*)
N=/etc/init.d/$NAME
echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
exit 1
;;
esac
exit 0
13. sudo chmod +x /etc/init.d/irserver
14. sudo ln -s /etc/init.d/irserver /etc/rc2.d/S19irserver
zum Testen:
15. sudo /usr/local/irtrans/irserver -loglevel 4 -codedump /dev/ttyUSB0
bei mir Feher darum ccf.rem löschen:
16. sudo rm /usr/local/irtrans/remotes/ccf.rem
17. sudo nano /usr/share/xbmc/system/Lircmap.xml
paste:
<remote device="mediacenter">
<pause>pause</pause>
<stop>stop</stop>
<forward>fwd</forward>
<reverse>rew</reverse>
<left>left</left>
<right>right</right>
<up>up</up>
<down>down</down>
<select>ok</select>
<pageplus>ch+</pageplus>
<pageminus>ch-</pageminus>
<back>back</back>
<menu>clear</menu>
<title>play</title>
<info>info</info>
<skipplus>next</skipplus>
<skipminus>prev</skipminus>
<display>teletext</display>
<start>ehome</start>
<record>rec</record>
<volumeplus>vol+</volumeplus>
<volumeminus>vol-</volumeminus>
<mute>mute</mute>
<power>power</power>
<myvideo>video</myvideo>
<mymusic>music</mymusic>
<mypictures>pictures</mypictures>
<mytv>tv</mytv>
<one>1</one>
<two>2</two>
<three>3</three>
<four>4</four>
<five>5</five>
<six>6</six>
<seven>7</seven>
<eight>8</eight>
<nine>9</nine>
<zero>0</zero>
<mytv>red</mytv>
<mymusic>green</mymusic>
<mypictures>yellow</mypictures>
<myvideo>blue</myvideo>
</remote>
18. sudo reboot
19. HAVE FUN WITH IT :-)
THX TO ALL an CU
acme-badboy
2009-02-07, 16:32
ahem... did you edit /etc/init.d/irserver to match your configuration?
try sudo /etc/init.d/irserver status to see if irserver is running
if it's not running, as i think, edit /etc/init.d/irserver to match your conf, mostly check 'cd /usr/local/irtrans' (is the main irserver binary located there?) and '/dev/ttyUSB0' (is your remote attached there?)
you were right, the irserver wasn't running - but the script matched my conf...
acme-badboy
2009-02-07, 16:34
Hi,
i had the same problem, here is my little How-to 4 you and all :-)
Thanks for this stepbystep-guide! i made a new install und followed all steps, my remote is still not working, my keyboard neither... :-(
demosthenez
2009-02-14, 11:59
Could some post a sample of their mediacentre.rem file (from /usr/local/irtrans/remotes/)?
I have a S14V case with the Philips RC197 remote, the receiver is reading codes from the remote, but they seem to be completely different to the codes already in mediacentre.rem
Just for testing, I set up a new remote called "origen" and learn't a few of the codes (as per the guide at http://ubuntuforums.org/showthread.php?t=304807), added a origen section to Lircmap.xml, and it worked, almost. I'd have to press the remote button twice before anything happens.
What I'm seeing happening is that sequential button presses of the same button would yield different codes, ie pressing PLAY a few times gives:
[0.0]: S00114000000000020010000300003210 33
[0.0]: S00114000000000020001000300003210 33
[0.0]: S00114000000000020010000300003210 33
[0.0]: S00114000000000020001000300003210 33
My initial thought was just to learn the two codes as PLAY1 and PLAY2 and then map them both via Lircmap.xml to play. But before I commit to going through and learning everything on the remote twice I'm keen to know if anyone has seen this before and if there was a solution.
I was under the impression that the Philips RC197 remote were mediacentre remotes that should work as per the mediacentre.rem file supplied from the origen site.
Edit: Found out that this bit toggling feature is standard as part of RC6 codes (what the philips remote/mce remotes use). Aparantly the irtrans firmware is supposed to account for the toggle bits, but this doesnt seem to be happening on mine.
acme-badboy
2009-02-19, 16:08
i still didn't manage to make my remote work. but i have a new clue: the command "sudo /usr/local/irtrans/irserver -loglevel 4 -codedump /dev/ttyUSB0" gets the following information:
(T: XBMCLiveCD)xbmc@XBMCLive:~/irtrans-install2$ sudo /usr/local/irtrans/irserver -loglevel 4 -codedump /dev/ttyUSB0
Init Server Socket done
Init Events done
IRTRans Send Done: 1
Name :
Version: D5.04.13
FW SNo : 13942
Capab : Power On;
FW Cap : 0x3c8019
USB SNo:
Node : /dev/ttyUSB0
Init communication ...
IRServer Version 6.01.15
[ 0]: D5.04.13 SN: 13942
Remote dream compiled: 0 Timings - 36 Commands
Remote mediacenter compiled: 1 Timings - 49 Commands
Remote irtrans compiled: 1 Timings - 33 Commands
Segmentation fault
does anyone know what "Segmentation fault" means?
demosthenez
2009-02-20, 06:38
I was getting the same thing using the 6.01.15 software off the irtrans.de site. Try using the older version if you have it, or the one off the origenae site.
acme-badboy
2009-02-20, 11:20
I can't find an older Linux irtrans server. Can someone please upload an older version than the 6.01.15?
remove all other .rem files in /usr/local/irtrans/remotes ,keep only these irtrans.rem mce-keyboard.rem mce-mouse.rem mediacenter.rem
then it work for me.
demosthenez
2009-02-28, 02:27
Sorry its taken a while acme-badboy, here is a copy of the 6.01.04 version that I am using:
http://www.mediafire.com/?sharekey=c35529b36af0ed7107258ee67c679e4ae04e75f6 e8ebb871
I also see that you are using an old firmware for the VF220 - D5.04.13
The current version is D5.08.10, which is what mine is running. You should be able to get an update for the firmware from the Origen site, but I can't offer any advice on applying the update, mine came with the latest.
I cant get the remote to get to start automaticly ,i can start it manualy.
should i be able to run service manualy ,if i try i get this :
sudo /etc/init.d/irserver start
Starting irserver: start-stop-daemon: unrecognized option '--make-pidfile--exec'
Try `start-stop-daemon --help' for more information.
any idees ?
demosthenez
2009-03-02, 04:11
Try a space between pidfile and exec, ie: --make-pidfile --exec
I had trouble getting start-stop-daemon to work (probably a bug in my script), so just threw together a basic /etc/init.d/irserver file:
#! /bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/local/irtrans/irserver
NAME=irserver
DESC=irserver
DAEMON_OPTS="-daemon /dev/ttyUSB0"
set -e
case "$1" in
start)
echo -n "Starting $DESC: "
$DAEMON -pidfile /var/run/$NAME.pid $DAEMON_OPTS
echo "$NAME."
;;
stop)
echo -n "Stopping $DESC: "
killall $NAME
echo "$NAME."
;;
restart|force-reload)
echo -n "Restarting $DESC: "
killall $NAME
echo "$NAME."
;;
*)
N=/etc/init.d/$NAME
echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
exit 1
;;
esac
exit 0
Not the neatest, but works.
Thanks ,now it autostart ;)
hi,
i use the remote from Origen S14.
IRTrans is installed.
but my system is Vista.
XBMC\system\IRSSmap.xml
The Orginal:
<!-- This file contains the mapping of IR Server Suite keys to XBMC keys used in Keymap.xml -->
<irssmap>
<remote device="Microsoft MCE">
<pause>31719</pause> <!-- pause -->
<stop>31718</stop> <!-- stop -->
<play>31721</play> <!-- play -->
<forward>31723</forward> <!-- forward -->
<reverse>31722</reverse> <!-- reverse -->
<left>31711</left> <!-- left -->
<right>31710</right> <!-- right -->
<up>31713</up> <!-- up -->
<down>31712</down> <!-- down -->
<select>31709</select> <!-- ok -->
<pageplus>31725</pageplus> <!-- channel up -->
<pageminus>31724</pageminus> <!-- channel down -->
<back>31708</back> <!-- previous -->
<menu>31707</menu> <!-- dvd menu -->
<title>31671</title> <!-- recorded tv -->
<info>31728</info> <!-- info -->
<skipplus>31717</skipplus> <!-- skip -->
<skipminus>31716</skipminus> <!-- repeat -->
<display>31705</display> <!-- guide -->
<start>31730</start> <!-- start -->
<record>31720</record> <!-- record -->
<volumeplus>31727</volumeplus> <!-- volume up -->
<volumeminus>31726</volumeminus> <!-- volume down -->
<mute>31729</mute> <!-- mute -->
<power>31642</power> <!-- tv power -->
<mytv>31706</mytv> <!-- live tv -->
<one>31742</one>
<two>31741</two>
<three>31740</three>
<four>31739</four>
<five>31738</five>
<six>31737</six>
<seven>31736</seven>
<eight>31735</eight>
<nine>31734</nine>
<zero>31743</zero>
<mytv>31652</mytv> <!-- red -->
<mymusic>31651</mymusic> <!-- green -->
<mypictures>31650</mypictures> <!-- yellow -->
<myvideo>31649</myvideo> <!-- blue -->
</remote>
</irssmap>
i edit in this:
<!-- This file contains the mapping of IR Server Suite keys to XBMC keys used in Keymap.xml -->
<irssmap>
<remote device="mediacenter">
<pause>pause</pause>
<stop>stop</stop>
<forward>fwd</forward>
<reverse>rew</reverse>
<left>left</left>
<right>right</right>
<up>up</up>
<down>down</down>
<select>ok</select>
<pageplus>ch+</pageplus>
<pageminus>ch-</pageminus>
<back>back</back>
<menu>clear</menu>
<title>play</title>
<info>info</info>
<skipplus>next</skipplus>
<skipminus>prev</skipminus>
<display>teletext</display>
<start>ehome</start>
<record>rec</record>
<volumeplus>vol+</volumeplus>
<volumeminus>vol-</volumeminus>
<mute>mute</mute>
<power>power</power>
<myvideo>video</myvideo>
<mymusic>music</mymusic>
<mypictures>pictures</mypictures>
<mytv>tv</mytv>
<one>1</one>
<two>2</two>
<three>3</three>
<four>4</four>
<five>5</five>
<six>6</six>
<seven>7</seven>
<eight>8</eight>
<nine>9</nine>
<zero>0</zero>
<mytv>red</mytv>
<mymusic>green</mymusic>
<mypictures>yellow</mypictures>
<myvideo>blue</myvideo>
</remote>
</irssmap>
but the remote button works only "up, down, left, right, OK".... the "play, stop..." do not work!
pls help me! thx!!!
nobody uses the remote control?
or can help me?
a4v2a4v2
2009-06-13, 20:04
Hi Basti3k,
I have the same problem with my Origen X15e running Vista. Have you solved the problem?
If so, what did you do?
HI, no sorry, but the user: myfrog it has probably done
----
Origen IR in Linux
Hi I just read your post in the forums about the IR setup with the Philips remote. I just found out how to get mine working. If you wan't some help, just reply.
Regards, Steve
----
But in Linux, i need this for Vista :/
so this isn't the right forum/discussion
I hade to reinstall my xbmc and now i cant get the remote to work. I get no error msg ,but it seems like there is a new driver to irtrans (6.02) ,have anyone try that and got i to work ? or does anyone know where to find the old one (6.01.15)
Should the RC197 remote supplied with an Origen S14V case work traight out of the box, or will I have to learn all of the commands???