|
From: Nick M. <kno...@gm...> - 2007-05-10 20:55:20
|
On 10/05/07, Olivier Parisy <ml....@fr...> wrote: > Hi all, > > I am the owner of a multi-function remote: it can be used to pilot a TV, > a DVD reader or a VCR (using a set of buttons to choose which one is > targeted). > > While recording it, I noticed that most keys were associated with > different pulses with respected to the chosen target (that's typically > the case for the 0..9 digits). Hence, I used a set of "remote" blocks in > my lircd.conf file, one for each target. Are all coded recorded unique? Did you record in raw mode or using a suitable protocol header file (like RC-5)? > I would like to know what is the best practice for naming my keys in > this situation: can I use the same name for a given button in each > "remote" block? Or should I use unambiguous ones, but appending a prefix > to each as an example (POWER_TV, etc...)? Each block requires a remote name, which should be unique. Within uniquely-named remote configurations, you can reuse button names. When configuring your lircrc file, you can specify the remote definition in addition to the button name, enabling LIRC to determine exactly which button you want to use. > For readability purpose, I would prefer the first option (I see that > this works properly in irw, where the button name and the target are > displayed). In this case, what is the syntax express this target/button > pair in ~/.lircrc files? On my hachine, I have a button configured as follows: # TV Guide begin remote = SKY_NAVIGATOR prog = mythtv button = TV_GUIDE repeat = 3 config = F2 end Parameters and values are self-explanatory - my /etc/lircd.conf contains several remote definitions so I specify the remote. I have 3 buttons named in /etc/lircd.conf is called "PLAY" in different remote definitions, so you should not have problems re-using button names in this way. Nick -- MythTV Official wiki: http://mythtv.org/wiki/ MythTV users list archive: http://www.gossamer-threads.com/lists/mythtv/users "An investment in knowledge always pays the best interest." - Benjamin Franklin |