Hardware used:
Windows Media Center Remote (usb, 2nd model)
Hewlett Packard Easynote R0933 Laptop
Software used:
Ubuntu 8.04 Website
LIRC Website
Elisa Media Center Website
Before we begin, it would be a good idea to check your remote model.
Use this documentation over here.
First, we’re going to need to install lirc to get our remote to interact with the computer over infrared.
sudo apt-get install lirc
During the setup you will be prompted with a few configuration choices.
The first choice is the remote- On the list make sure you pick “Windows Media Center Remotes ( new version Philips et al. )”.
On the second prompt pick “None”.
After the installation finishes, plug in the infrared device and start the Lirc service:
sudo /etc/init.d/lirc restart
To test weather everything works correctly , on the terminal type:
irw
then after pressing any button on the remote you should see the output , altogether with the name of the key you pressed.
Elisa Media Center can be installed from the repos:
sudo apt-get install elisa
Now let’s create a proper configuration of the remote, with all the necessary keys and feed it to Elisa.
sudo irrecord -d /dev/lirc0 elisa.lirc
Afterward move the file to the directory where the IR Remote conf files are located for lirc:
sudo cp elisa.lirc /usr/share/pyshared/elisa/plugins/lirc_plugin/data/lirc/
sudo cp elisa.lirc /home/YOUR_USERNAME/.elisa/
create a symbolic link too :
cd /usr/lib/python2.5/site-packages/elisa/plugins/lirc_plugin/data/lirc
sudo ln -s /usr/lib/python2.5/site-packages/elisa/plugins/lirc_plugin/data/lirc/elisa.lirc ./
Now we need to instruct the elisa.conf file to take the info from the elisa.lirc
gedit /home/YOUR_USERNAME/.elisa/elisa.conf
Find the lirc_rc parameter and set it to:
lirc_rc = 'elisa.lirc'
Here’s the content of my elisa.lirc file:
begin
remote = mceusb
prog = elisa
button = Play
config = toggle_play_pause_key
repeat = 0
delay = 0
end
begin
remote = mceusb
prog = elisa
button = Right
config = move_right_key
repeat = 0
delay = 0
end
begin
remote = mceusb
prog = elisa
button = OK
config = activate_key
repeat = 0
delay = 0
end
begin
remote = mceusb
prog = elisa
button = Power
config = close_key
repeat = 0
delay = 0
end
begin
remote = mceusb
prog = elisa
button = Mute
config = toggle_mute_key
repeat = 0
delay = 0
end
begin
remote = mceusb
prog = elisa
button = VolDown
config = decrement_volume_key
repeat = 0
delay = 0
end
begin
remote = mceusb
prog = elisa
button = Rewind
config = seek_backward_key
repeat = 0
delay = 0
end
begin
remote = mceusb
prog = elisa
button = Stop
config = stop_key
repeat = 0
delay = 0
end
begin
remote = mceusb
prog = elisa
button = Up
config = move_up_key
repeat = 0
delay = 0
end
begin
remote = mceusb
prog = elisa
button = VolUp
config = increment_volume_key
repeat = 0
delay = 0
end
begin
remote = mceusb
prog = elisa
button = Down
config = move_down_key
repeat = 0
delay = 0
end
begin
remote = mceusb
prog = elisa
button = Pause
config = pause_key
repeat = 0
delay = 0
end
begin
remote = mceusb
prog = elisa
button = Enter
config = activate_key
repeat = 0
delay = 0
end
begin
remote = mceusb
prog = elisa
button = Forward
config = seek_forward_key
repeat = 0
delay = 0
end
begin
remote = mceusb
prog = elisa
button = Home
config = toggle_menu_key
repeat = 0
delay = 0
end
begin
remote = mceusb
prog = elisa
button = Red
config = toggle_fullscreen_key
repeat = 0
delay = 0
end
begin
remote = mceusb
prog = elisa
button = Left
config = move_left_key
repeat = 0
delay = 0
end
Restart Lirc, fire up Elisa and all is done.
wow just the info I needed. Tomorrow I’m going to set all that configurations in our flat stuff
thanks!!
@Emilio: you’re welcome.
Hi Sidrit,
I’ve finished mi little project with ubuntu and elisa
I only have problems with the remote controller, maybe you can tell me what i’m doing wrong.
Is a microsoft model, that one:
http://www.mythtv.org/wiki/index.php/Image:MCE-Remote-2.jpg
And i’ve tried to configure it creating a elisa.lirc with irrecord. It didn’t work well. Then I used your elisa.lirc, and now is working but only with a few buttons, I supose you are using another model. For example the button ‘back’ is not working,
What do you think i’m doing wrong?
p.s. I think you made a mistake in your explanation. That line:
sudo cp elisa.lirc /home/YOUR_USERNAME/.elisa/elisa.conf
must be:
sudo cp elisa.lirc /home/YOUR_USERNAME/.elisa/
Thanks!!
Emilio
[...] ElisaThis is a guide on how tor get the Media center IR remote control to work on ubuntu with Elisahttp://sidrit.wordpress.com/2008/08/09/configuring-windows-media-center-remote-control-for-elisa-on-…Read “RE: NEWS OperaTor: Opera+Tor+Privoxy – Pagina 6 – Hardware Upgrade Forum” at News – AV e [...]
@Emilio
Hi there. as far as your correction goes, you’re right. I just fixed it.
For the functioning of the remote i must tell you that’s the exact one i got.
On my configuration you can use the Home button as a Back/Level Up button.
Keep in mind that it also has to do with the fact weather Elisa needs and supports all of them.
For example, i’ve done a few tests with XBMP (Xbox Media Player ) for Linux and Linux MCE , where there’s a more extended need for funcions, expecially on the later one.
Hope that helps.
Sid
ok Sid,
I’m going to try diferent configurations of ‘elisa.lirc’ file, if you have the same remote maybe won’t be so difficult to find the right one
Thanks!
@Emilio:
You’re welcome. Let me know how it goes.
Best regards
Ei Sid you’re right, your elisa.lirc is working with basic functionality!
I can navigate with the arrows, back/level up with the home button, vol + and vol -, and select-play-pause with the ok button.
It’s time to try an improvement of your lirc file, in order to get more functionality from the other buttons
If I make it I will send you the file ok?
regards
@Emilio
sounds good. defintely.
[...] ElisaThis is a guide on how tor get the Media center IR remote control to work on ubuntu with Elisahttp://sidrit.wordpress.com/2008/08/09/configuring-windows-media-center-remote-control-for-elisa-on-…ELISA – Wikipedia, the free encyclopediaEnzyme-Linked ImmunoSorbent Assay, also called ELISA, Enzyme [...]
well done, bro
[...] com o Elisa, mas eu não cheguei a fazer isso. Você pode encontrar mais informações neste blog aqui, o qual usei como referência para este [...]
I used these instructions on a different machine and it worked perfectly. Now when I try to follow them on a new build for my HTPC, I get an error “cp: accessing `/usr/share/pyshared/elisa/plugins/lirc_plugin/data/lirc/’: Not a directory”
I cannot get passed this. Any help would be appreciated.
@Dilly
Hi there. Glad it worked for you.
As for the HTPC, the error sounds strange.
So from the error you get, i assume we can gather that the directory does not exist, right?
The only way would think of approaching the issue is to either verify the correct installation of python, or the one of elisa.
Proceeding by exclusion , figuring out up until which level that path exists.
Frankly, i never had the issue, so really dunno what to say.
Let me know if you work it out.
Best Regards
Sid
Hi
Thanks for a fantastic guide, justr what i was looking for. Worked were well.
BR
/Martin
@Martin
Thanks. Worked for me after slamming my head on the wall a few times.
Thought i’d share and spare the time to other ppl.
I don’t have the following directory: /usr/share/pyshared/elisa/plugins/lirc_plugin
Any ideas?
Hey there Widby.
What’s the last directory in the path that you actually have?
Meaning , do you have /usr/share/pyshared/elisa/plugins ?
How about /usr/share/pyshared/elisa/?
What about /usr/share/pyshared/?
Let me know and we’ll try to work something out.
@ widby
seems like some structural changes have been made to the latest elisa.
the folder of interest is:
/usr/share/pyshared/elisa/plugins/lirc/map_files
hope it helps.
sid
Hi,
Could someone shed some light on a couple of apparent differences for jaunty. Basically from ’sudo cp elisa.lirc /usr/share/pyshared/elisa/plugins/lirc_plugin/data/lirc/’ onwards none of the folder structures exist where they are meant to and i cannot for the life of me find where the elisa.conf file is, i can tell you for sure one place it isn’t: ~/.elisa/ since that folder doesn’t exist.
Needless to say my current configuration is not working.
Cheers for any help!
James
Sorry Sid, didn’t see your response to Widby, i have: ‘/usr/share/pyshared/elisa/plugins/lirc/’.
I tried putting elisa.lirc in there and tried to follow the later steps, but since i can’t find my elisa.conf file its irrelevant what else i do!
Cheers
Hey there james.
Saw both of your posts at the same.
i’m installing Elisa on my Jaunty.
I’ll investigate and let you know.
@james, @widby
okay, i think we’re going somewhere.
i just installed elisa from the repository now.
this would be the version 0.5.
for whatever reason the devs have decide the folder created to not be .elisa/ anymore but .elisa-0.5/ instead.
Inside this folder you can find elisa_0_5_6.conf
Hope this helps
sid
Sid,
Thanks for replying.
I have found the conf file and have copied elisa.lirc file into the same directory, i cannot however find the lirc_rc = parameter. Could you tell me if this has changed.
Also, there also seem to be structural changes which mean i can’t follow the following excerpt from your tutorial above (sorry for being such a pain)
‘Afterward move the file to the directory where the IR Remote conf files are located for lirc:
sudo cp elisa.lirc /usr/share/pyshared/elisa/plugins/lirc_plugin/data/lirc/
sudo cp elisa.lirc /home/YOUR_USERNAME/.elisa/
create a symbolic link too :
cd /usr/lib/python2.5/site-packages/elisa/plugins/lirc_plugin/data/lirc
sudo ln -s /usr/lib/python2.5/site-packages/elisa/plugins/lirc_plugin/data/lirc/elisa.lirc ./’
Thanks again
Hey James, no worries mna.
so as i wrote to widby above, the /usr/share/pyshared/elisa/plugins/lirc_plugin/data/lirc/ dir
is now /usr/share/pyshared/elisa/plugins/lirc/map_files. that’s where you place your lirc file.
the second copy goes in /home/you/.elisa-0.5/
as for the lirc_rc parameter, i can see it’s not in the file already.
i just added it manually and worked fine.
let me know.
best regards
sid
keeping in mind such a change you should be able to complete the symbolic link step.
Thanks! Steps 1 – 3 were enough to get my supposed Vista-only remote working with XBMC.
Sorry, took me a while to get back to this. Still having problems, though. I followed the steps above, but with the modified location for python lirc plugin folder. So I have a copy of the elisa.lirc file in /usr/share/pyshared/elisa/plugins/lirc/map_files and another copy in ~/.moovida. The link step did not work for me, I got “File already exits”. What is this supposed to do?
I also added the following to the moovida.conf file:
# filename of the LIRC config map to use
lirc_rc = ‘elisa.lirc’
When I test the remote with irw, it seems to be working, but in Moovida nothing happens. Do you have any more suggestions what I could try?
Thanks for your help!