View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 25 posts ] 
Go to page 1, 2  Next

Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Sat Oct 23, 2010 9:59 am 
Offline
Joined: Sun Sep 05, 2004 7:06 pm
Posts: 690
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:


Last edited by RacerX on Mon Jun 24, 2013 9:55 am, edited 4 times in total.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 09, 2011 12:57 pm 
Offline
Joined: Sun Sep 05, 2004 7:06 pm
Posts: 690
I upgraded my system to R6.04 and there were no changes to my Firefly Remote. It stills works fine in Myth and XBMC ....


Top
 Profile  
 
PostPosted: Mon Mar 05, 2012 11:05 am 
Offline
Joined: Sun Sep 05, 2004 7:06 pm
Posts: 690
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?


Top
 Profile  
 
PostPosted: Mon Mar 05, 2012 4:57 pm 
Offline
Joined: Mon Dec 24, 2007 9:47 am
Posts: 535
Location: Ottawa, Canada
You could start here: http://linhes.org/projects/linhes/wiki/ ... tomization

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


Top
 Profile  
 
PostPosted: Mon Mar 05, 2012 5:35 pm 
Offline
Joined: Fri Jul 21, 2006 11:12 pm
Posts: 1194
Location: SC
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?


Top
 Profile  
 
PostPosted: Mon Mar 05, 2012 5:49 pm 
Offline
Joined: Sun Sep 05, 2004 7:06 pm
Posts: 690
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


Top
 Profile  
 
PostPosted: Mon Mar 05, 2012 6:15 pm 
Offline
Joined: Fri Jul 21, 2006 11:12 pm
Posts: 1194
Location: SC
The error is harmless but is now fixed in testing.


Top
 Profile  
 
PostPosted: Mon Mar 05, 2012 6:31 pm 
Offline
Joined: Sun Sep 05, 2004 7:06 pm
Posts: 690
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....


Top
 Profile  
 
PostPosted: Mon Mar 05, 2012 7:48 pm 
Offline
Joined: Fri Jul 21, 2006 11:12 pm
Posts: 1194
Location: SC
You are using lirc as there isn't a kernel driver for your remote as indicated by nothing in /sys/class/rc/


Top
 Profile  
 
PostPosted: Mon Mar 05, 2012 7:59 pm 
Offline
Joined: Sun Sep 05, 2004 7:06 pm
Posts: 690
Thanks for clearing that up :)


Top
 Profile  
 
PostPosted: Wed Mar 21, 2012 8:01 pm 
Offline
Joined: Sun Sep 05, 2004 7:06 pm
Posts: 690
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


Top
 Profile  
 
PostPosted: Fri Mar 23, 2012 8:59 pm 
Offline
Joined: Wed Mar 21, 2012 7:59 am
Posts: 63
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!


Top
 Profile  
 
PostPosted: Sat Mar 24, 2012 3:32 pm 
Offline
Joined: Tue Jan 18, 2005 2:07 am
Posts: 1532
Location: California
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!

_________________
Marc

The views expressed are my own and do not necessarily reflect the views of my employer.


Top
 Profile  
 
PostPosted: Sun Mar 25, 2012 12:50 pm 
Offline
Joined: Sun Sep 05, 2004 7:06 pm
Posts: 690
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:


Top
 Profile  
 
PostPosted: Sun Mar 25, 2012 3:47 pm 
Offline
Joined: Wed Mar 21, 2012 7:59 am
Posts: 63
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.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 25 posts ] 
Go to page 1, 2  Next



All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 17 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu