LinHES Forums
http://forum.linhes.org/

R6.03, R6.04, R7.2, R7.3, R7.4 R8.02 XBMC Firefly Remote
http://forum.linhes.org/viewtopic.php?f=24&t=21846
Page 1 of 2

Author:  RacerX [ Sat Oct 23, 2010 9:59 am ]
Post subject:  R6.03, R6.04, R7.2, R7.3, R7.4 R8.02 XBMC Firefly Remote

My Snapatream Firefly Remote has always worked fine in R6.03 but not at all in XBMC . Until the other day. XBMC Lirc is controlled by Lircmap.xml. This file contains mappings of Lirc Key to XBMC Keys. There are several sample remotes in the file but mine was not one of them. So I needed to add my remote.

as root

Xedit

/usr/share/xbmc/system/Lircmap.xml

Code:
<remote device="Snapstream_Firefly">
      <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>PREV</skipminus>
                <display>MAXI</display>
                <start>FIREFLY</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>
                <mytv>A</mytv>
                <mymusic>B</mymusic>
                <mypictures>C</mypictures>
                <myvideo>D</myvideo>
        </remote>




Watch out for typo's when creating a remote.

I'm not clear if this next step is needed so here it is for reference

I created a sample Keymap file

/home/mythtv/.xbmc/userdata/keymaps/keymap.xml

Code:
<keymap>
  <global>
    <remote>
      <left>Left</left>
      <right>Right</right>
      <up>Up</up>
      <down>Down</down>
      <select>Select</select>
      <back>PreviousMenu</back>
    </remote>
  </global>
</keymap>


Next, reboot the computer and the Snapstream Firefly Remote now works in R6.03 and XBMC....:wink:

Author:  RacerX [ Wed Mar 09, 2011 12:57 pm ]
Post subject: 

I upgraded my system to R6.04 and there were no changes to my Firefly Remote. It stills works fine in Myth and XBMC ....

Author:  RacerX [ Mon Mar 05, 2012 11:05 am ]
Post subject:  Re: R6.03 XBMC Snapstream Firefly Remote

I recently upgraded to Linhes 7.02. My snapstream Firefly works properly. However, I'm getting a Lirc error when my system boots up

Here's the detail

Quote:
find: ' /sys/class/rc/x/' No such files or directory.


Also the keymap for XMBC no longer works.

I'm aware of integration of Lirc into the Kernel but I'm not clear where to proceed or how to isolate it?

Author:  christ [ Mon Mar 05, 2012 4:57 pm ]
Post subject:  Re: R6.03 XBMC Snapstream Firefly Remote

You could start here: http://linhes.org/projects/linhes/wiki/ ... tomization

I put this together recently it should help demystify some of this.

Author:  brfransen [ Mon Mar 05, 2012 5:35 pm ]
Post subject:  Re: R6.03 XBMC Snapstream Firefly Remote

RacerX wrote:
I recently upgraded to Linhes 7.02. My snapstream Firefly works properly. However, I'm getting a Lirc error when my system boots up

Here's the detail

Quote:
find: ' /sys/class/rc/x/' No such files or directory.

That is probably coming from the code that disables the in-kernel modules and enables lirc. What does
Code:
ls -al /sys/class/rc/
give you?

Author:  RacerX [ Mon Mar 05, 2012 5:49 pm ]
Post subject:  Re: R6.03 XBMC Snapstream Firefly Remote

Running as root

Quote:
Code:
ls -al /sys/class/rc/


shows
Code:
\total 0
drwxr-xr-x  2 root root  0 Mar 5 17:45
drwxr-xr-x 43 root root  0 Mar 5 17:45

Author:  brfransen [ Mon Mar 05, 2012 6:15 pm ]
Post subject:  Re: R6.03 XBMC Snapstream Firefly Remote

The error is harmless but is now fixed in testing.

Author:  RacerX [ Mon Mar 05, 2012 6:31 pm ]
Post subject:  Re: R6.03 XBMC Snapstream Firefly Remote

Thanks

For addressing the issue glad to see it's just a minor thing. Am I correct that I'm using the Kernel Lirc right now with MythVanage? I'm trying to understand how to seemlessly extend my remote into XBMC like before with the keymap.xml. My remote exists in Lircmap.xml but it need a way to tie it together with an XML file....

Author:  brfransen [ Mon Mar 05, 2012 7:48 pm ]
Post subject:  Re: R6.03 XBMC Snapstream Firefly Remote

You are using lirc as there isn't a kernel driver for your remote as indicated by nothing in /sys/class/rc/

Author:  RacerX [ Mon Mar 05, 2012 7:59 pm ]
Post subject:  Re: R6.03 XBMC Snapstream Firefly Remote

Thanks for clearing that up :)

Author:  RacerX [ Wed Mar 21, 2012 8:01 pm ]
Post subject:  Re: R6.03 XBMC Snapstream Firefly Remote

I've been struggling to get remote fuctionality back in XBMC.

Historically,

Quote:
I created a sample Keymap file

/home/mythtv/.xbmc/userdata/keymaps/keymap.xml

CODE: SELECT ALL
<keymap>
<global>
<remote>
<left>Left</left>
<right>Right</right>
<up>Up</up>
<down>Down</down>
<select>Select</select>
<back>PreviousMenu</back>
</remote>
</global>
</keymap>


However, it seems that keymap was depreciated in the time between XBMC 9 and XBMC 10

So here are the dependencies
Remote Name: Snapstream_Firefly

/etc/lircd.conf
include "/usr/MythVantage/templates/remotes/snapstream_firefly/lircd.snapstrm.conf"

XBMC
/usr/share/XBMC/system/Lircmap.xml (has the name of the remote)

Historically the

/home/mythtv/.xbmc/userdata/Lircmap.xml
and
/home/mythtv/.xbmc/userdata/keymaps/keymap.xml


IRW works and correctly displays the name Snapstream_Firefly

tama103 says

Quote:
I thought I had things working smoothly with xbmc and lirc, but after playing around last night I still have some work to do. In my setup I am using a serial receiver on ttyS0, and a One4All URC-6131 remote with a custom lircd and lircrc file (which I put in "/usr/MythVantage/templates/remotes/One4all_6131/", overwriting the existing files. I also put my lircd.conf file in /etc/lirc/, but am not sure that is necessary). On the xbmc side, the only file I updated was /usr/share/XBMC/system/Lircmap.xml


OK so can you post your lirc.conf file? Let's see how that compares to the pathed out one in MythVantage. I think maybe a symbolic link might be in order instead. Also please post your Lirmap.xml to see the changes.

Quote:
Lirc works fine on boot within linhes. irw is outputting the remote keys as I expect. However when I start xbmc from the menu, the remote does not work. However, if I exit out of xbmc and restart lirc (sudo /etc/rc.d/lircd restart), then the remote works! Its very annoying. Another annoying thing is that lirc has a hard time restarting or starting. Most of the time when I do a sudo /etc/rc.d/lircd restart, x-term just shows that lirc stopped, but never started. when trying to start lirc, I often get a message saying "ln: failed to create symbolic link `/dev/lircd': File exists " But when lirc finally does start or restart from x-term, my remote works with xbmc.


I can't get the remote to start in XBMC at all so one of your changes works but a second change is in order to handle the path.


Quote:
I think I am narrowing in on the problem. After google searching, I tried starting xbmc after a reboot from x-term by typing 'xbmc'. xbmc starts, put the remote does not work just like before. However, if I start xbmc in x-term using the command 'xbmc --lircdev /var/run/lirc/lircd' then the remote works, no restart of lirc necessary!


This does not work for me at the moment since I don't have a change to /etc/lirc


Thanks

Author:  tama103 [ Fri Mar 23, 2012 8:59 pm ]
Post subject:  Re: R6.03 XBMC Snapstream Firefly Remote

continuing conversation from http://forum.linhes.org/viewtopic.php?f=25&t=22491

I have my remote fully working with xbmc. All i had to do was update keymaps and Lirxmap.xml in /usr/share/XBMC/system/Lircmap.xml, then had to update the file in /usr/share/mythtv/themes/defaultmenu/library.xml for the xbmc button, had to change the action line to
Code:
EXEC /usr/bin/xbmc --lircdev /var/run/lirc/lircd


after a reboot, everything works. Good luck!

Author:  marc.aronson [ Sat Mar 24, 2012 3:32 pm ]
Post subject:  Re: R6.03 XBMC Snapstream Firefly Remote

tama103 wrote:
continuing conversation from http://forum.linhes.org/viewtopic.php?f=25&t=22491

I have my remote fully working with xbmc. All i had to do was update keymaps and Lirxmap.xml in /usr/share/XBMC/system/Lircmap.xml, then had to update the file in /usr/share/mythtv/themes/defaultmenu/library.xml for the xbmc button, had to change the action line to
Code:
EXEC /usr/bin/xbmc --lircdev /var/run/lirc/lircd


after a reboot, everything works. Good luck!


I just found this post and it also solved my XBMC remote problem. I am on 7.2. Thanks for posting this!

Author:  RacerX [ Sun Mar 25, 2012 12:50 pm ]
Post subject:  Re: R6.03, R6.04, R7.2 XBMC Snapstream Firefly Remote

Good news I had to reload my box today and all I had to do to get the remote working was to change a line in in the buttom here is the corrected buttom.

/usr/share/mythtv/themes/defaultmenu/library.xml

this is the correction

Code:
<!- -#XBMC-->
     <button>
         <type>Menu_XBMC</type>
           <text>Launch XBMC</text>
           <action>EXEC /USR/bin/xbmc  --lircdev /var/run/lirc/lircd</action>
         </buttion>

<!- -#XBMC-->


I will create a ticket for this change so everyones remote will just work in XBMC :wink:

Author:  tama103 [ Sun Mar 25, 2012 3:47 pm ]
Post subject:  Re: R6.03, R6.04, R7.2 XBMC Snapstream Firefly Remote

Wow, I didn't know know everyone was having this problem. I thought it was just me
Glad that little button fix is working for people.

Page 1 of 2 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/