PDA

View Full Version : Setting up to use a lirc remote



omry
October 22nd, 2008, 03:58 PM
How do I enable my remote in Boxee?
I have a lirc enabled remote, and lirc is working properly (freevo works with it).

gregwa
October 22nd, 2008, 04:45 PM
You need to configure it in Lircmap.xml under .boxee/UserData.

You can use this as a template...


<!-- This file contains the mapping of LIRC keys to XBMC keys used in Keymap.xml -->

<lircmap>
<remote device="Snapstream">
<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>EXIT</back>
<menu>MENU</menu>
<title>PLAY</title>
<info>INFO</info>
<skipplus>NEXT</skipplus>
<skipminus>REPLAY</skipminus>
<display>OPTION</display>
<start>Home</start>
<record>REC</record>
<volumeplus>VOL+</volumeplus>
<volumeminus>VOL-</volumeminus>
<mute>MUTE</mute>
<power>CLOSE</power>
<myvideo>VIDEO</myvideo>
<mymusic>MUSIC</mymusic>
<mypictures>PHOTOS</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>
</remote>

<remote device="mceusb">
<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>
<menu>PreviousMenu</menu>
<title>Play</title>
<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>
</remote>

<remote device="XboxDVDDongle">
<play>PLAY</play>
<pause>PAUSE</pause>
<stop>STOP</stop>
<forward>FORWARD</forward>
<reverse>REVERSE</reverse>
<left>LEFT</left>
<right>RIGHT</right>
<up>UP</up>
<down>DOWN</down>
<select>SELECT</select>
<back>BACK</back>
<menu>MENU</menu>
<title>TITLE</title>
<info>INFO</info>
<skipplus>SKIP+</skipplus>
<skipminus>SKIP-</skipminus>
<display>DISPLAY</display>
<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>
</remote>

<remote device="Microsoft_Xbox">
<play>PLAY</play>
<pause>PAUSE</pause>
<stop>STOP</stop>
<forward>FORWARD</forward>
<reverse>REVERSE</reverse>
<left>LEFT</left>
<right>RIGHT</right>
<up>UP</up>
<down>DOWN</down>
<select>SELECT</select>
<back>BACK</back>
<menu>MENU</menu>
<title>TITLE</title>
<info>INFO</info>
<skipplus>SKIP+</skipplus>
<skipminus>SKIP-</skipminus>
<display>DISPLAY</display>
<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>
</remote>

<remote device="PinnacleSysPCTVRemote">
<play>Play</play>
<pause>pause</pause>
<stop>Stop</stop>
<forward>FForward</forward>
<reverse>Rewind</reverse>
<left>Vol-Rew</left>
<right>Vol+FF</right>
<up>Chan+Play</up>
<down>Chan-Stop</down>
<pageplus>channel+</pageplus>
<pageminus>channel-</pageminus>
<select>middle</select>
<back>undo</back>
<menu>Menu</menu>
<title>L</title>
<info>Info</info>
<skipplus>next</skipplus>
<display>Fullscreen</display>
<record>Record</record>
<volumeplus>vol+</volumeplus>
<volumeminus>vol-</volumeminus>
<mute>Mute</mute>
<power>Power</power>
<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>
</remote>
</lircmap>

omry
October 23rd, 2008, 01:37 AM
Thanks.
I added the file in /home/omry/.boxee/UserData/Lircmap.xm , restarted boxee, but the remote still not responds to anything.

should I do anything else to enable it?

Thanks.

agentlame
October 23rd, 2008, 07:06 AM
Thanks.
I added the file in /home/omry/.boxee/UserData/Lircmap.xm , restarted boxee, but the remote still not responds to anything.

should I do anything else to enable it?

Thanks.

that's the default file... you need to add your remote configuration to it. can you post up your ~/.lircrc file?

omry
October 23rd, 2008, 07:45 AM
that's the default file... you need to add your remote configuration to it. can you post up your ~/.lircrc file?

oh..
my freevo uses /etc/freevo/lircrc

you can see it here:
http://yadan.net/omry/lircrc

(attachment system refused to accept it, probably because it has no file extension).

so I guess I need to put that file in ~/.lircrc
and change it somehow?
I find it a bit strange that the file need to contain the name of the program (freevo in this case).

agentlame
October 23rd, 2008, 08:48 AM
ok, what you'll need to do is 'translate' your remote config from the frevo.conf file to the lircmap.xml file... like so:

frevo.conf:


begin
prog = freevo
button = VolDown
config = VOL-
repeat=1
end


lircmap.xml


<volumeminus>VolDown</volumeminus>


in the lircmap file, the <tags> are the boxee settings, and the contents of the tags are the buttons from your remote.


put all the translated commands in a new device tag, like so:


<remote device="***YOUR-REMOTE-NAME-HERE***">
<volumeminus>VolDown</volumeminus>
</remote>

omry
October 24th, 2008, 09:44 AM
great,that worked.
thanks!

btw:
it's better to use the file /etc/lircd.conf
as a reference for remote command names because it contains everything lirc might output.

HazyBlueDot
October 27th, 2008, 03:34 PM
Hi there,

I got my remote working with Lirc, the buttons respond correctly in irw. I've modified my Lircmap.xml as specified in this thread but my remote still doesn't work in Boxee. Is there some other setting that I need to enable to tell it to use a Lirc remote?

Thanks!

omry
October 27th, 2008, 03:42 PM
did you set the correct remote name in Lircmap.xml as specified in /etc/lircd.conf ?

HazyBlueDot
October 27th, 2008, 10:15 PM
ah, that did it, thanks. I had mistakenly used the name given in hardware.conf instead.

mackdd4
October 27th, 2008, 11:23 PM
Installed boxee yesterday under mythbuntu "hardy" and my remote "just works" is that normal?

agentlame
October 27th, 2008, 11:33 PM
sure, if it's one of the ones that already exists in the lircmap.xml file.

is it the mceusb remote?

levelup
November 6th, 2008, 08:03 AM
is really useful for me

gr8npwrfl
March 8th, 2009, 02:31 PM
I have an Vista MCE remote.

I have read through all the keymapping files and I am trying to figure out how to map a remote key to a keyboard key.

One the remote skip fwd jumps to the end of the movie. I want it to do like the square bracket and jump forward 10 minutes

same for skip back I want to jump back 10 miniutes.

The fast forward key jumps 30 seconds forward and I want it to forward just like the F key which controls the fast forward speed 2,4,8,16,32

Same for the reverse key 2.4,8,16,32 backwards.

It should not be that difficult, I must be overlooking something really obvious.

My lircd.conf file refers to lirc.conf.mceusb
My lircmap.xml only has <remote device="mceusb">

my stock configuration is:

<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>
<menu>PreviousMenu</menu>
<title>Play</title>
<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>

I change the forward like this

<forward>Forward</forward>
to
<fastforward>Forward</fastforward>

Now the forward key should control the fastforward function instead ?????

When I make changes do I have to restart the computer ???

It has to be simple if someone can tell me what I am doing wrong :mad:

Thanks for any help

big_blue
July 28th, 2010, 01:41 PM
Hi.

I try to get my remote working with boxee, but it doesnīt. I configured lirc and with the irw program iīm able to get the correct output in konsole.
Here is the output of irw

0000000000001291 01 KEY_LEFT second.alex

The name in the /etc/lirc/lircd.conf is:

name second.alex

I created a new file "Lircmap.xml" in ~/.boxee/UserData


<!-- This file contains the mapping of LIRC keys to XBMC keys used in Keymap.xml -->

<lircmap
<remote device "second.alex">
<left>KEY_LEFT</left>
<right>KEY_RIGHT</right>
<up>KEY_UP</up>
<down>KEY_DOWN</down>
</remote>
</lircmap>


Does someone of you know what the problem is?
Thanks

dadein
July 28th, 2010, 03:27 PM
Missing = sign??


<remote device="second.alex">

big_blue
July 29th, 2010, 03:14 PM
Thanks. I fixed it but still not working.

dadein
July 29th, 2010, 10:49 PM
My next guess / suggestion is to take the "." out of the remote device name:
<remote device="secondalex">

big_blue
July 30th, 2010, 11:37 AM
Thanks for your help but the problem is still there. I donīt know what the problem is. Iīm not new in this business, but the remote make me crazy.

dadein
July 30th, 2010, 07:32 PM
I wish I could be of more help. I understand the frustration with setting up a remote with Lirc. Been there myself.
Maybe this would help...
http://boxee.zendesk.com/entries/177882-advanced-remote-control-topics

big_blue
July 31st, 2010, 01:36 PM
Hi.
Thanks for your help again. But i donīt get it working. I also try xbmc but this does also not work. I try lirc with the vlc media player and this works fine.

I donīt know what happened, iīm frustrated. Does someone use xbmc with linux and use lirc as remote?

dadein
August 1st, 2010, 12:41 AM
Yes, I use Lirc on my setup with a Snapstream Firefly RF remote and it works great with Boxee, XBMC, and Hulu desktop. I am not near my Linux box right now, but when I am I will update again with how I set this remote up.

akshunj
August 15th, 2010, 04:09 PM
Not sure if anyone has mentioned this, but mythbuntu-lirc-generator is the truth. Install it from the repos, select the proper remote when prompted, run it, then restart lirc. As long as you selected the proper remote, it should "just work" with Boxee. I have a Windows MCE remote and it is flawless. No work under the hood with keymap files...

--Akshun J