<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
	>
<channel>
	<title>Comments on: How to configure and use LIRC</title>
	<atom:link href="http://www.g-loaded.eu/2006/01/10/how-to-configure-and-use-lirc/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.g-loaded.eu/2006/01/10/how-to-configure-and-use-lirc/</link>
	<description>An open-source software and technology related journal</description>
	<lastBuildDate>Sun, 28 Feb 2010 05:55:55 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Gnot</title>
		<link>http://www.g-loaded.eu/2006/01/10/how-to-configure-and-use-lirc/#comment-268</link>
		<dc:creator>Gnot</dc:creator>
		<pubDate>Wed, 15 Feb 2006 13:20:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.g-loaded.eu/2006/01/10/how-to-configure-and-use-lirc/#comment-268</guid>
		<description>Hi Andrzej,
Before the device node is created, the kernel must recognize the device and load the appropriate module. The problem in this case might be that a kernel module (probably related to InfraRed) has not been built, or it needs to be loaded with some specific parameters, so that the device is recognized by the kernel.
Have you tried (from http://linux.bytesex.org/v4l2/faq.html#ir ):
&lt;code&gt;# modprobe ir-kbd-gpio&lt;/code&gt;
or
&lt;code&gt;# modprobe ir-kbd-i2c&lt;/code&gt;
and check if the IR receiver registers as an input device?

I believe that if the device was recognized by the kernel, the device node would be created like it has been created for the mouse or keyboard, without any modifications in the UDEV rules.

Also, have you tried to build LIRC with support for each of the usb drivers and try if one of these work with your remote?

It seems that I cannot be much of a help here, because I do not own a similar device, so I can only write hypothetically about a possible solution. This thread:
http://www.linuxquestions.org/questions/showthread.php?t=234259
seems to deal with a similar problem, so, if I were you, I&#039;d ask them for some info.</description>
		<content:encoded><![CDATA[<p>Hi Andrzej,<br />
Before the device node is created, the kernel must recognize the device and load the appropriate module. The problem in this case might be that a kernel module (probably related to InfraRed) has not been built, or it needs to be loaded with some specific parameters, so that the device is recognized by the kernel.<br />
Have you tried (from <a href="http://linux.bytesex.org/v4l2/faq.html#ir" rel="nofollow">http://linux.bytesex.org/v4l2/faq.html#ir</a> ):<br />
<code># modprobe ir-kbd-gpio</code><br />
or<br />
<code># modprobe ir-kbd-i2c</code><br />
and check if the IR receiver registers as an input device?</p>
<p>I believe that if the device was recognized by the kernel, the device node would be created like it has been created for the mouse or keyboard, without any modifications in the UDEV rules.</p>
<p>Also, have you tried to build LIRC with support for each of the usb drivers and try if one of these work with your remote?</p>
<p>It seems that I cannot be much of a help here, because I do not own a similar device, so I can only write hypothetically about a possible solution. This thread:<br />
<a href="http://www.linuxquestions.org/questions/showthread.php?t=234259" rel="nofollow">http://www.linuxquestions.org/questions/showthread.php?t=234259</a><br />
seems to deal with a similar problem, so, if I were you, I&#8217;d ask them for some info.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrzej</title>
		<link>http://www.g-loaded.eu/2006/01/10/how-to-configure-and-use-lirc/#comment-267</link>
		<dc:creator>Andrzej</dc:creator>
		<pubDate>Wed, 15 Feb 2006 11:37:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.g-loaded.eu/2006/01/10/how-to-configure-and-use-lirc/#comment-267</guid>
		<description>Hello again Raoul,

From what I understood: the first and absolutely essential step is to make sure that kernel creates an input device for receiver but in my case no such think happens.

In /etc/udev/rules.d/udev.rules there is line:
KERNEL=&quot;hiddev*&quot;, NAME=&quot;usb/%k&quot;

So (based on what is in logs previously posted) there should be a device:
/dev/usb/hiddev0
created but only
usbdev5.2
is created.


I also tried with following lines but with no success
KERNEL=&quot;hiddev*&quot;, NAME=&quot;usb/hiddev%n&quot;
DRIVER=&quot;hiddev*&quot;, NAME=&quot;usb/hiddev%n&quot;


I use Slackware 10.2 with 2.6.14.5 selfcompiled kernel.
proc, sys, usbdevfs are mounted

Do you have any idea what might be wrong?</description>
		<content:encoded><![CDATA[<p>Hello again Raoul,</p>
<p>From what I understood: the first and absolutely essential step is to make sure that kernel creates an input device for receiver but in my case no such think happens.</p>
<p>In /etc/udev/rules.d/udev.rules there is line:<br />
KERNEL=&#8221;hiddev*&#8221;, NAME=&#8221;usb/%k&#8221;</p>
<p>So (based on what is in logs previously posted) there should be a device:<br />
/dev/usb/hiddev0<br />
created but only<br />
usbdev5.2<br />
is created.</p>
<p>I also tried with following lines but with no success<br />
KERNEL=&#8221;hiddev*&#8221;, NAME=&#8221;usb/hiddev%n&#8221;<br />
DRIVER=&#8221;hiddev*&#8221;, NAME=&#8221;usb/hiddev%n&#8221;</p>
<p>I use Slackware 10.2 with 2.6.14.5 selfcompiled kernel.<br />
proc, sys, usbdevfs are mounted</p>
<p>Do you have any idea what might be wrong?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gnot</title>
		<link>http://www.g-loaded.eu/2006/01/10/how-to-configure-and-use-lirc/#comment-233</link>
		<dc:creator>Gnot</dc:creator>
		<pubDate>Sat, 11 Feb 2006 02:44:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.g-loaded.eu/2006/01/10/how-to-configure-and-use-lirc/#comment-233</guid>
		<description>Hi Serge, now I think I understood what the problem is. For playlists from 1 to 9 you should define a key sequence: 0 1. If you have over one hundred of playlists, then the sequence should be: 0 0 1.

For example:
&lt;code&gt;
begin
prog = irexec
button = 0
button = 3
config = amarok /path/to/playlist3
repeat = 0
end
.
.
begin
prog = irexec
button = 2
button = 1
config = amarok /path/to/playlist21
repeat = 0
end
&lt;/code&gt;

This means that you have to define as many configurations in the .lircrc file as the number of your playlists. This does not seem convenient though.

I tried to create a configuration in which, if you press a button from 0-9, it exports and appends the respective number in a system variable and then by pressing button &quot;play&quot; for example it would execute the command &lt;code&gt;amarok /path/to/playlist$KeySequence&lt;/code&gt; and unset the variable. This did not work. It seems that exporting variables with irexec does not work or I am missing something here... I&#039;ll look into it again at some later time, because it&#039;s a very interesting issue.

In &lt;a href=&quot;http://www.g-loaded.eu/2006/01/10/how-to-configure-and-use-lirc/#comment-220&quot;&gt;this comment&lt;/a&gt; you mention that you have already tried to create a button sequence by placing two &lt;code&gt;button=&lt;/code&gt; entries in each configuration. I do not understand why this does not work. Maybe there is something wrong with lircd.conf file or maybe you have to increase the &lt;code&gt;repeat=&lt;/code&gt; value for each button configuration.

One more thing. In the above article I mention nothing about key sequencies. This should be corrected.

Thanks for your feedback. :-)</description>
		<content:encoded><![CDATA[<p>Hi Serge, now I think I understood what the problem is. For playlists from 1 to 9 you should define a key sequence: 0 1. If you have over one hundred of playlists, then the sequence should be: 0 0 1.</p>
<p>For example:<br />
<code><br />
begin<br />
prog = irexec<br />
button = 0<br />
button = 3<br />
config = amarok /path/to/playlist3<br />
repeat = 0<br />
end<br />
.<br />
.<br />
begin<br />
prog = irexec<br />
button = 2<br />
button = 1<br />
config = amarok /path/to/playlist21<br />
repeat = 0<br />
end<br />
</code></p>
<p>This means that you have to define as many configurations in the .lircrc file as the number of your playlists. This does not seem convenient though.</p>
<p>I tried to create a configuration in which, if you press a button from 0-9, it exports and appends the respective number in a system variable and then by pressing button &#8220;play&#8221; for example it would execute the command <code>amarok /path/to/playlist$KeySequence</code> and unset the variable. This did not work. It seems that exporting variables with irexec does not work or I am missing something here&#8230; I&#8217;ll look into it again at some later time, because it&#8217;s a very interesting issue.</p>
<p>In <a href="http://www.g-loaded.eu/2006/01/10/how-to-configure-and-use-lirc/#comment-220">this comment</a> you mention that you have already tried to create a button sequence by placing two <code>button=</code> entries in each configuration. I do not understand why this does not work. Maybe there is something wrong with lircd.conf file or maybe you have to increase the <code>repeat=</code> value for each button configuration.</p>
<p>One more thing. In the above article I mention nothing about key sequencies. This should be corrected.</p>
<p>Thanks for your feedback. :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: serge</title>
		<link>http://www.g-loaded.eu/2006/01/10/how-to-configure-and-use-lirc/#comment-228</link>
		<dc:creator>serge</dc:creator>
		<pubDate>Fri, 10 Feb 2006 12:34:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.g-loaded.eu/2006/01/10/how-to-configure-and-use-lirc/#comment-228</guid>
		<description>Hello Raoul,

I already tried to play with delays, but without success. In fact it is not at all application related. What I try to do is simply to send a two (or more) keystroke sequence.
In other words : How do I tell lirc to interpret a &#039;1&#039; followed by a &#039;5&#039; as 15 instead of 1 followed by 5 ?

thanks,

Serge</description>
		<content:encoded><![CDATA[<p>Hello Raoul,</p>
<p>I already tried to play with delays, but without success. In fact it is not at all application related. What I try to do is simply to send a two (or more) keystroke sequence.<br />
In other words : How do I tell lirc to interpret a &#8216;1&#8242; followed by a &#8216;5&#8242; as 15 instead of 1 followed by 5 ?</p>
<p>thanks,</p>
<p>Serge</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gnot</title>
		<link>http://www.g-loaded.eu/2006/01/10/how-to-configure-and-use-lirc/#comment-225</link>
		<dc:creator>Gnot</dc:creator>
		<pubDate>Thu, 09 Feb 2006 23:40:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.g-loaded.eu/2006/01/10/how-to-configure-and-use-lirc/#comment-225</guid>
		<description>Serge, please read the &lt;a href=&quot;http://www.lirc.org/html/configure.html#lircrc_format&quot; rel=&quot;nofollow&quot;&gt;lircrc format&lt;/a&gt; documentation. It has all the info you need about the delays.

I do not currently use amarok, so I do not fully understand your issue. Anyway, for application specific information I think you should refer to its documentaion or to a relevant forum or mailing list.</description>
		<content:encoded><![CDATA[<p>Serge, please read the <a href="http://www.lirc.org/html/configure.html#lircrc_format" rel="nofollow">lircrc format</a> documentation. It has all the info you need about the delays.</p>
<p>I do not currently use amarok, so I do not fully understand your issue. Anyway, for application specific information I think you should refer to its documentaion or to a relevant forum or mailing list.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: serge</title>
		<link>http://www.g-loaded.eu/2006/01/10/how-to-configure-and-use-lirc/#comment-220</link>
		<dc:creator>serge</dc:creator>
		<pubDate>Wed, 08 Feb 2006 17:17:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.g-loaded.eu/2006/01/10/how-to-configure-and-use-lirc/#comment-220</guid>
		<description>Hello,

Thanks for this info.
I installed Lirc on a fedora 4. It works well, but I still have a problem.
I am looking to launch playlist in Amarok. From 1 to 9 I have no problem, but I can&#039; get it work behind that.
Do you have any idea how I could do that ?
I saw something with two &quot;button&quot; lines in lircrc, but from the moment i press the first one, it start that playlist. I need some delay between the keystrokes, ut don&#039;t find how to do it.

Many thanks,

Serge</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>Thanks for this info.<br />
I installed Lirc on a fedora 4. It works well, but I still have a problem.<br />
I am looking to launch playlist in Amarok. From 1 to 9 I have no problem, but I can&#8217; get it work behind that.<br />
Do you have any idea how I could do that ?<br />
I saw something with two &#8220;button&#8221; lines in lircrc, but from the moment i press the first one, it start that playlist. I need some delay between the keystrokes, ut don&#8217;t find how to do it.</p>
<p>Many thanks,</p>
<p>Serge</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gnot</title>
		<link>http://www.g-loaded.eu/2006/01/10/how-to-configure-and-use-lirc/#comment-138</link>
		<dc:creator>Gnot</dc:creator>
		<pubDate>Tue, 24 Jan 2006 16:51:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.g-loaded.eu/2006/01/10/how-to-configure-and-use-lirc/#comment-138</guid>
		<description>Hi Andrzej,

Sometimes getting things to work is a lot of pain, but I can assure you that finally they DO work. :-) I don&#039;t know if the following info helps you, but I&#039;ll write it anyway.

First of all, I would recommend checking if your remote control registers as an input device. You can do a:
&lt;code&gt;# cat /proc/bus/input/devices&lt;/code&gt;
And see if there is any reference there. If you are lucky and your remote registers as an input device (much like as a mouse or keyboard) you can try a different approach to set the button mappings. You will not need LIRC at all. I cannot help with that as I have no such experience, but I think you have to edit xorg.conf for the buttons.
On the other hand, if you do want to use LIRC with this input device, you can. LIRC can read from the input device using the &lt;code&gt;--driver=/dev/input&lt;/code&gt; (I have no experience either on this, so someone else has to confirm that it&#039;s right). Have a look at these two bttv FAQ questions: http://linux.bytesex.org/v4l2/faq.html#ir They are not specific to bttv.

I did some research, but I could not find any info about this remote. From the kernel messages, I believe that it registers itself as an input device.

In the case you need to know which kernel config options are enabled in the fedora kernel, I can post it or send it to you. As for finding out which driver to compile LIRC with, I do not know any other way apart from comparing the names of the hardware. A last thing would be to compile LIRC trying each one of the listed USB drivers (http://www.lirc.org/html/table.html#@hw-usb) and see if anyone works.

Here are some links you may want to try:
http://www.linuxquestions.org/questions/showthread.php?t=234259
http://undergroundcircus.net/ben/ir501d.html

All the best,
Raoul</description>
		<content:encoded><![CDATA[<p>Hi Andrzej,</p>
<p>Sometimes getting things to work is a lot of pain, but I can assure you that finally they DO work. :-) I don&#8217;t know if the following info helps you, but I&#8217;ll write it anyway.</p>
<p>First of all, I would recommend checking if your remote control registers as an input device. You can do a:<br />
<code># cat /proc/bus/input/devices</code><br />
And see if there is any reference there. If you are lucky and your remote registers as an input device (much like as a mouse or keyboard) you can try a different approach to set the button mappings. You will not need LIRC at all. I cannot help with that as I have no such experience, but I think you have to edit xorg.conf for the buttons.<br />
On the other hand, if you do want to use LIRC with this input device, you can. LIRC can read from the input device using the <code>--driver=/dev/input</code> (I have no experience either on this, so someone else has to confirm that it&#8217;s right). Have a look at these two bttv FAQ questions: <a href="http://linux.bytesex.org/v4l2/faq.html#ir" rel="nofollow">http://linux.bytesex.org/v4l2/faq.html#ir</a> They are not specific to bttv.</p>
<p>I did some research, but I could not find any info about this remote. From the kernel messages, I believe that it registers itself as an input device.</p>
<p>In the case you need to know which kernel config options are enabled in the fedora kernel, I can post it or send it to you. As for finding out which driver to compile LIRC with, I do not know any other way apart from comparing the names of the hardware. A last thing would be to compile LIRC trying each one of the listed USB drivers (<a href="http://www.lirc.org/html/table.html#@hw-usb" rel="nofollow">http://www.lirc.org/html/table.html#@hw-usb</a>) and see if anyone works.</p>
<p>Here are some links you may want to try:<br />
<a href="http://www.linuxquestions.org/questions/showthread.php?t=234259" rel="nofollow">http://www.linuxquestions.org/questions/showthread.php?t=234259</a><br />
<a href="http://undergroundcircus.net/ben/ir501d.html" rel="nofollow">http://undergroundcircus.net/ben/ir501d.html</a></p>
<p>All the best,<br />
Raoul</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrzej</title>
		<link>http://www.g-loaded.eu/2006/01/10/how-to-configure-and-use-lirc/#comment-137</link>
		<dc:creator>Andrzej</dc:creator>
		<pubDate>Tue, 24 Jan 2006 13:50:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.g-loaded.eu/2006/01/10/how-to-configure-and-use-lirc/#comment-137</guid>
		<description>Hi Raul,

In my opinion the most important step is the selection of necessary driver.

I have:

TRUST - Multimedia Remote Control NB-5100p
http://www.trust.com/products/product.aspx?artnr=14272
  
known also as:
Formosa 21/ eDio 21
  
USB Receivers : IR-507
http://www.edio21.com/prod_ir507.asp
+
IR Multi Remote Controller: RC102
http://www.edio21.com/prod_rc102.asp

This is what kernel logs in to messages file when I plug in USB receiver:
Dec 31 13:16:07 andres-slack kernel: usb 5-1: new low speed USB device 
using uhci_hcd and address 3
Dec 31 13:16:08 andres-slack kernel: input: USB HID v1.10 Device 
[Formosa Industrial Computin Formosa RC102-809 USB Remot] on 
usb-0000:00:10.3-1


The device seems to not be supported under lirc but as the same device can have different commercial names you can never be sure beforehand.


What I was missing badly in lirc documentation as well as in your tutorial was answer to some basic questions like e.g.:
- Whether any of IrDA stack from kernel need to be compiled in order to have lirc working?
- Is there any easy way to find out which driver would I need apart from looking for name match?
- Is there any generic driver in lirc that I can use as a first step to find out if it works with my hardware?

I looked through many places to find answers and apparently the answer to all questions is NO.

If I knew it before it might have helped me to save a lot of time, because I wouldn’t have to read all the documentation when my device was not supported.</description>
		<content:encoded><![CDATA[<p>Hi Raul,</p>
<p>In my opinion the most important step is the selection of necessary driver.</p>
<p>I have:</p>
<p>TRUST &#8211; Multimedia Remote Control NB-5100p<br />
<a href="http://www.trust.com/products/product.aspx?artnr=14272" rel="nofollow">http://www.trust.com/products/product.aspx?artnr=14272</a></p>
<p>known also as:<br />
Formosa 21/ eDio 21</p>
<p>USB Receivers : IR-507<br />
<a href="http://www.edio21.com/prod_ir507.asp" rel="nofollow">http://www.edio21.com/prod_ir507.asp</a><br />
+<br />
IR Multi Remote Controller: RC102<br />
<a href="http://www.edio21.com/prod_rc102.asp" rel="nofollow">http://www.edio21.com/prod_rc102.asp</a></p>
<p>This is what kernel logs in to messages file when I plug in USB receiver:<br />
Dec 31 13:16:07 andres-slack kernel: usb 5-1: new low speed USB device<br />
using uhci_hcd and address 3<br />
Dec 31 13:16:08 andres-slack kernel: input: USB HID v1.10 Device<br />
[Formosa Industrial Computin Formosa RC102-809 USB Remot] on<br />
usb-0000:00:10.3-1</p>
<p>The device seems to not be supported under lirc but as the same device can have different commercial names you can never be sure beforehand.</p>
<p>What I was missing badly in lirc documentation as well as in your tutorial was answer to some basic questions like e.g.:<br />
- Whether any of IrDA stack from kernel need to be compiled in order to have lirc working?<br />
- Is there any easy way to find out which driver would I need apart from looking for name match?<br />
- Is there any generic driver in lirc that I can use as a first step to find out if it works with my hardware?</p>
<p>I looked through many places to find answers and apparently the answer to all questions is NO.</p>
<p>If I knew it before it might have helped me to save a lot of time, because I wouldn’t have to read all the documentation when my device was not supported.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gnot</title>
		<link>http://www.g-loaded.eu/2006/01/10/how-to-configure-and-use-lirc/#comment-133</link>
		<dc:creator>Gnot</dc:creator>
		<pubDate>Sun, 15 Jan 2006 10:40:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.g-loaded.eu/2006/01/10/how-to-configure-and-use-lirc/#comment-133</guid>
		<description>Hi, in the above article I describe how to do this by using the &lt;code&gt; irrecord&lt;/code&gt; utility (part of the LIRC package). Please look for the section &quot;&lt;em&gt;The Remote Control Configuration file&lt;/em&gt;&quot;.

Since &lt;code&gt;irrecord&lt;/code&gt; is a LIRC client, it requires that the daemon (&lt;code&gt;lircd&lt;/code&gt;) is up and running. An &lt;code&gt;/etc/lircd.conf&lt;/code&gt; is not needed to be in place in order to use &lt;code&gt;irrecord&lt;/code&gt;. The file that will be generated is the new &lt;code&gt;lircd.conf&lt;/code&gt; for your remote control.</description>
		<content:encoded><![CDATA[<p>Hi, in the above article I describe how to do this by using the <code> irrecord</code> utility (part of the LIRC package). Please look for the section &quot;<em>The Remote Control Configuration file</em>&quot;.</p>
<p>Since <code>irrecord</code> is a LIRC client, it requires that the daemon (<code>lircd</code>) is up and running. An <code>/etc/lircd.conf</code> is not needed to be in place in order to use <code>irrecord</code>. The file that will be generated is the new <code>lircd.conf</code> for your remote control.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: devdsp</title>
		<link>http://www.g-loaded.eu/2006/01/10/how-to-configure-and-use-lirc/#comment-132</link>
		<dc:creator>devdsp</dc:creator>
		<pubDate>Sun, 15 Jan 2006 05:35:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.g-loaded.eu/2006/01/10/how-to-configure-and-use-lirc/#comment-132</guid>
		<description>Cheers Mate,

Its a good tutorial, and i have been itching to get remote configured for my latop, hopefully my remote works with lirc, btw is there any documentation specifying on how to figure out codes for a remote that is not supported ?

thanks for the walkthro</description>
		<content:encoded><![CDATA[<p>Cheers Mate,</p>
<p>Its a good tutorial, and i have been itching to get remote configured for my latop, hopefully my remote works with lirc, btw is there any documentation specifying on how to figure out codes for a remote that is not supported ?</p>
<p>thanks for the walkthro</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic page generated in 0.071 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2010-03-13 19:15:06 -->
