<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-2054</id>
	<title>Nabble - LIRC</title>
	<updated>2009-12-06T04:32:00Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/LIRC-f2054.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/LIRC-f2054.html" />
	<subtitle type="html">Linux infrared remote control.</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26664561</id>
	<title>Re: uinput key range patch</title>
	<published>2009-12-06T04:32:00Z</published>
	<updated>2009-12-06T04:32:00Z</updated>
	<author>
		<name>Christoph Bartelmus</name>
	</author>
	<content type="html">Hi!
&lt;br&gt;&lt;br&gt;Paul Bender &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26664561&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pebender@...&lt;/a&gt;&amp;quot; wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; Attached is a patch that fixes the uinput output device key range
&lt;br&gt;&amp;gt; supported. First, rather than limiting the valid keys to something less
&lt;br&gt;&amp;gt; than KEY_UNKNOWN, it checks input_map.inc.
&lt;br&gt;&lt;br&gt;Ok. Can anyone explain what is the practical use for UI_SET_KEYBIT anyway?
&lt;br&gt;&lt;br&gt;&amp;gt; Second, just as is done in
&lt;br&gt;&amp;gt; the commit
&lt;br&gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://lirc.cvs.sourceforge.net/viewvc/lirc/lirc/daemons/hw_devinput.c?r1=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lirc.cvs.sourceforge.net/viewvc/lirc/lirc/daemons/hw_devinput.c?r1=5&lt;/a&gt;&lt;br&gt;&amp;gt; .20&amp;r2=5.21&amp;gt;, it discards values between BTN_MISC and BTN_GEAR_UP as they
&lt;br&gt;&amp;gt; are mouse not keyboard values.
&lt;br&gt;&lt;br&gt;Why would you want to hinder the user from generating these events if he &amp;nbsp;
&lt;br&gt;wants to?
&lt;br&gt;&lt;br&gt;Christoph
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/uinput-key-range-patch-tp26637410p26664561.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26664307</id>
	<title>Re: MCEUSB2 on Karmic</title>
	<published>2009-12-06T03:51:00Z</published>
	<updated>2009-12-06T03:51:00Z</updated>
	<author>
		<name>Christoph Bartelmus</name>
	</author>
	<content type="html">Hi!
&lt;br&gt;&lt;br&gt;Josu Lazkano &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26664307&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;josu.lazkano@...&lt;/a&gt;&amp;quot; wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; Thanks for your reply, this theoutput of the &amp;quot;lircd&amp;quot;:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; $ lircd
&lt;br&gt;&amp;gt; lircd: can't open or create /var/run/lirc/lircd.pid
&lt;br&gt;&amp;gt; lircd: No such file or directory
&lt;br&gt;&lt;br&gt;mkdir /var/run/lirc
&lt;br&gt;&lt;br&gt;Raise a bug report on the package that you're using. It should have &amp;nbsp;
&lt;br&gt;created the directory for you.
&lt;br&gt;&lt;br&gt;Christoph
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/MCEUSB2-on-Karmic-tp26659066p26664307.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26663240</id>
	<title>Help!. The alt-F4 key combination is not working for me with Irxevent.</title>
	<published>2009-12-06T01:16:36Z</published>
	<updated>2009-12-06T01:16:36Z</updated>
	<author>
		<name>Salvador jajaja</name>
	</author>
	<content type="html">&lt;html&gt;
&lt;head&gt;

&lt;/head&gt;
&lt;body class='hmmessage'&gt;

	  &lt;font style=&quot;&quot; color=&quot;#000000&quot;&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26663240&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lirc-list@...&lt;/a&gt;&lt;/font&gt;&lt;font style=&quot;&quot; color=&quot;#000000&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; color=&quot;#000000&quot;&gt;Is there a way to archive this combination?&lt;br&gt;Other Keys like F11, return, Left, Right, works.&lt;br&gt;I am using LIRC 0.8.6 and Irxevent of the same version number.&lt;br&gt;Thanks.&lt;br&gt;&lt;/font&gt; 		 	   		  &lt;br /&gt;&lt;hr /&gt;Internet Explorer 8 especial para MSN - ¡Gratis! &lt;a href='http://www.ie8.msn.com/microsoft/internet-explorer-8/es-ar/ie8.aspx' target='_new' rel=&quot;nofollow&quot;&gt;Hacé clic aquí &lt;/a&gt;&lt;/body&gt;
&lt;/html&gt;&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Help%21.-The-alt-F4-key-combination-is-not-working-for-me-with-Irxevent.-tp26663240p26663240.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26660252</id>
	<title>Re: MCEUSB2 on Karmic</title>
	<published>2009-12-05T14:52:30Z</published>
	<updated>2009-12-05T14:52:30Z</updated>
	<author>
		<name>Josu Lazkano</name>
	</author>
	<content type="html">Thanks for your reply, this theoutput of the &amp;quot;lircd&amp;quot;:&lt;br&gt;&lt;br&gt;$ lircd &lt;br&gt;lircd: can&amp;#39;t open or create /var/run/lirc/lircd.pid&lt;br&gt;lircd: No such file or directory&lt;br&gt;(with sudo, I have same error)&lt;br&gt;&lt;br&gt;On Ubuntu Jaunty I use to config with mceusb2 and it works.&lt;br&gt;
&lt;br&gt;Thanks for all.&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;2009/12/5 Travis Tabbal &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26660252&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;travis@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;&lt;div class=&quot;im&quot;&gt;On Sat, Dec 5, 2009 at 3:03 PM, Josu Lazkano &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26660252&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;josu.lazkano@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;

I can not get working my remote. I configure this way:&lt;br&gt;&lt;br&gt;hardware.conf: &lt;a href=&quot;http://pastebin.com/f7e814cc9&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://pastebin.com/f7e814cc9&lt;/a&gt;&lt;br&gt;lircd.conf: &lt;a href=&quot;http://pastebin.com/f307b560d&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://pastebin.com/f307b560d&lt;/a&gt;&lt;br&gt;

&lt;/blockquote&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;br&gt;What isn&amp;#39;t working? Do you get errors from lirc? try just running lircd from the command line to see what it outputs. It usually tells you what does/doesn&amp;#39;t work. You might try changing the module name to &amp;quot;lirc_mceusb&amp;quot; (drop the &amp;quot;2&amp;quot; at the end). That&amp;#39;s what I&amp;#39;m using locally, I don&amp;#39;t remember seeing a &amp;quot;lirc_mceusb2&amp;quot; module on the system.  &lt;br&gt;

&lt;/div&gt;&lt;/div&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Josu Lazkano&lt;br&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/MCEUSB2-on-Karmic-tp26659066p26660252.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26659815</id>
	<title>Re: MCEUSB2 on Karmic</title>
	<published>2009-12-05T14:03:07Z</published>
	<updated>2009-12-05T14:03:07Z</updated>
	<author>
		<name>Josu Lazkano</name>
	</author>
	<content type="html">I can not get working my remote. I configure this way:&lt;br&gt;&lt;br&gt;hardware.conf: &lt;a href=&quot;http://pastebin.com/f7e814cc9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://pastebin.com/f7e814cc9&lt;/a&gt;&lt;br&gt;lircd.conf: &lt;a href=&quot;http://pastebin.com/f307b560d&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://pastebin.com/f307b560d&lt;/a&gt;&lt;br&gt;
&lt;br&gt;I have created the lirc0 device:&lt;br&gt;&lt;br&gt;$ ls -l /dev/ | grep lirc&lt;br&gt;crw-rw----  1 root root     61,   0 2009-12-05 22:55 lirc0&lt;br&gt;&lt;br&gt;But when I try to probe I have this:&lt;br&gt;&lt;br&gt;$ irw &lt;br&gt;connect: No such file or directory&lt;br&gt;
&lt;br&gt;I use official repository version software. Can you help with this?&lt;br&gt;&lt;br&gt;I made work it on Jaunty, but i don&amp;#39;t know why in Karmic I can&amp;#39;t get working.&lt;br&gt;&lt;br&gt;Thanks for all and best regards.&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;
2009/12/5 Josu Lazkano &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26659815&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;josu.lazkano@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Hello everybody! I having problems on configuring my IR receiver on a fresh Ubuntu Karmic install. I have a Philips receiver:&lt;br&gt;&lt;br&gt;Bus 001 Device 003: ID 0471:0815 Philips eHome Infrared Receiver&lt;br&gt;&lt;br&gt;I have some questions:&lt;br&gt;

&lt;br&gt;1. Is it a MCEUSB2 one? Or I need to load an other module?&lt;br&gt;2. Which files I must configure? I must do that automatically (with some script) or manually?&lt;br&gt;3. I must compile the lir program? or is enough with an &amp;quot;sudo apt-get x&amp;quot;?&lt;br&gt;

&lt;br&gt;Thanks for all and best regards.&lt;br&gt;&lt;br&gt;&lt;br&gt;-- &lt;br&gt;&lt;font color=&quot;#888888&quot;&gt;Josu Lazkano&lt;br&gt;
&lt;/font&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Josu Lazkano&lt;br&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/MCEUSB2-on-Karmic-tp26659066p26659815.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26659390</id>
	<title>Re: Can someone help me get the pvr 150 IR blaster patch by Mark Weaver	to work with lirc &amp; kernel 2.6.31?</title>
	<published>2009-12-05T13:11:22Z</published>
	<updated>2009-12-05T13:11:22Z</updated>
	<author>
		<name>Rick-56</name>
	</author>
	<content type="html">Jarod Wilson wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Dec 5, 2009, at 1:39 PM, Rick wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; Jarod Wilson wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; On Nov 26, 2009, at 11:08 PM, Rick wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Jarod Wilson wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; On 11/26/2009 09:25 PM, Rick wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Jarod Wilson wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; On 11/26/2009 08:25 PM, Rick wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; My myth box of 3+ years has finally bitten the dust. Now that I'm
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; rebuilding a new one, the distro (Mandriva 2010.0) has moved on to
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; kernel 2.6.31. Does anyone know how I can get the PVR 150 IR Blas0ter
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; mod provided by Mark Weaver to work with the newer kernel. His mod was
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; based on lirc 0.8.3 and it doesn't compile with kernel 2.6.31.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; ...
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; The driver isn't in the lirc distribution, due to concerns over the pseudo-firmware IR blaster table the driver uses, which is extracted from a Windows driver. Its in my git tree though. The easiest thing to do is download a snapshot of just the lirc subtree of my git tree here:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://wilsonet.com/jarod/junk/lirc-snap-20091027.tar.bz2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://wilsonet.com/jarod/junk/lirc-snap-20091027.tar.bz2&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Unpack it, then (all on one line):
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; make -C /path/to/kernel/headers/ CONFIG_INPUT_LIRC=m \
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; CONFIG_LIRC_ZILOG=m M=$PWD modules
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Then drop the resulting lirc_dev.ko and lirc_zilog.ko into /lib/modules/&amp;lt;your kernel/extra/ and run depmod. Then try modprobing lirc_zilog, and all should be well.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Great! &amp;nbsp;I'll do that once I get home. &amp;nbsp;Will the zilog module behave the same way as the old PVR 150 patched module? &amp;nbsp;In my old mythbox I had two pvr 150 cards. &amp;nbsp;By bringing up two LIRC daemons on separate devices, I was able to independently control two set top boxes. &amp;nbsp;Also, will I need that separate firmware file or is that now &amp;quot;built in&amp;quot;?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Everything should be pretty much the same.
&lt;br&gt;&amp;gt;&amp;gt; Hi Jarod,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I just tried this at home and got the following error:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; modprobe lirc_zilog
&lt;br&gt;&amp;gt;&amp;gt; FATAL: Error inserting lirc_zilog (/lib/modules/2.6.31.5-desktop-1mnb/misc/lirc_zilog.ko): Unknown symbol in module, or unknown parameter (see dmesg)
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Dmesg output:lirc_zilog: disagrees about version of symbol lirc_register_driver
&lt;br&gt;&amp;gt;&amp;gt; lirc_zilog: Unknown symbol lirc_register_driver
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; --- For what it's worth, I compiled the latest lirc-0.8.6 on my host before attempting the zilog stuff. &amp;nbsp;Then I put the zilog tree I downloaded from you in /usr/src/lirc-snap_zilog and compiled it. &amp;nbsp;Then i modprobed and got this error.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; You have a mismatch between lirc_dev.ko and lirc_zilog.ko. You probably only dropped the locally built lirc_zilog.ko in place, you need both.
&lt;br&gt;&amp;gt; 
&lt;/div&gt;You were right. &amp;nbsp;Thank you. &amp;nbsp;Now on to some testing!
&lt;br&gt;&lt;br&gt;Rick
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Can-someone-help-me-get-the-pvr-150-IR-blaster-patch-by-Mark-Weaver-to-work-with-lirc---kernel-2.6.31--tp26536896p26659390.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26659066</id>
	<title>MCEUSB2 on Karmic</title>
	<published>2009-12-05T12:34:41Z</published>
	<updated>2009-12-05T12:34:41Z</updated>
	<author>
		<name>Josu Lazkano</name>
	</author>
	<content type="html">Hello everybody! I having problems on configuring my IR receiver on a fresh Ubuntu Karmic install. I have a Philips receiver:&lt;br&gt;&lt;br&gt;Bus 001 Device 003: ID 0471:0815 Philips eHome Infrared Receiver&lt;br&gt;&lt;br&gt;I have some questions:&lt;br&gt;
&lt;br&gt;1. Is it a MCEUSB2 one? Or I need to load an other module?&lt;br&gt;2. Which files I must configure? I must do that automatically (with some script) or manually?&lt;br&gt;3. I must compile the lir program? or is enough with an &amp;quot;sudo apt-get x&amp;quot;?&lt;br&gt;
&lt;br&gt;Thanks for all and best regards.&lt;br&gt;&lt;br&gt;&lt;br&gt;-- &lt;br&gt;Josu Lazkano&lt;br&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/MCEUSB2-on-Karmic-tp26659066p26659066.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26658478</id>
	<title>Re: Can someone help me get the pvr 150 IR blaster patch by Mark Weaver	to work with lirc &amp; kernel 2.6.31?</title>
	<published>2009-12-05T11:31:16Z</published>
	<updated>2009-12-05T11:31:16Z</updated>
	<author>
		<name>Jarod Wilson</name>
	</author>
	<content type="html">On Dec 5, 2009, at 1:39 PM, Rick wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Jarod Wilson wrote:
&lt;br&gt;&amp;gt;&amp;gt; On Nov 26, 2009, at 11:08 PM, Rick wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Jarod Wilson wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; On 11/26/2009 09:25 PM, Rick wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Jarod Wilson wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; On 11/26/2009 08:25 PM, Rick wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; My myth box of 3+ years has finally bitten the dust. Now that I'm
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; rebuilding a new one, the distro (Mandriva 2010.0) has moved on to
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; kernel 2.6.31. Does anyone know how I can get the PVR 150 IR Blas0ter
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; mod provided by Mark Weaver to work with the newer kernel. His mod was
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; based on lirc 0.8.3 and it doesn't compile with kernel 2.6.31.
&lt;br&gt;&amp;gt;&amp;gt; ...
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; The driver isn't in the lirc distribution, due to concerns over the pseudo-firmware IR blaster table the driver uses, which is extracted from a Windows driver. Its in my git tree though. The easiest thing to do is download a snapshot of just the lirc subtree of my git tree here:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://wilsonet.com/jarod/junk/lirc-snap-20091027.tar.bz2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://wilsonet.com/jarod/junk/lirc-snap-20091027.tar.bz2&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Unpack it, then (all on one line):
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; make -C /path/to/kernel/headers/ CONFIG_INPUT_LIRC=m \
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; CONFIG_LIRC_ZILOG=m M=$PWD modules
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Then drop the resulting lirc_dev.ko and lirc_zilog.ko into /lib/modules/&amp;lt;your kernel/extra/ and run depmod. Then try modprobing lirc_zilog, and all should be well.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Great! &amp;nbsp;I'll do that once I get home. &amp;nbsp;Will the zilog module behave the same way as the old PVR 150 patched module? &amp;nbsp;In my old mythbox I had two pvr 150 cards. &amp;nbsp;By bringing up two LIRC daemons on separate devices, I was able to independently control two set top boxes. &amp;nbsp;Also, will I need that separate firmware file or is that now &amp;quot;built in&amp;quot;?
&lt;br&gt;&amp;gt;&amp;gt; Everything should be pretty much the same.
&lt;br&gt;&amp;gt; Hi Jarod,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I just tried this at home and got the following error:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; modprobe lirc_zilog
&lt;br&gt;&amp;gt; FATAL: Error inserting lirc_zilog (/lib/modules/2.6.31.5-desktop-1mnb/misc/lirc_zilog.ko): Unknown symbol in module, or unknown parameter (see dmesg)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Dmesg output:lirc_zilog: disagrees about version of symbol lirc_register_driver
&lt;br&gt;&amp;gt; lirc_zilog: Unknown symbol lirc_register_driver
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; --- For what it's worth, I compiled the latest lirc-0.8.6 on my host before attempting the zilog stuff. &amp;nbsp;Then I put the zilog tree I downloaded from you in /usr/src/lirc-snap_zilog and compiled it. &amp;nbsp;Then i modprobed and got this error.
&lt;/div&gt;&lt;br&gt;You have a mismatch between lirc_dev.ko and lirc_zilog.ko. You probably only dropped the locally built lirc_zilog.ko in place, you need both.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Jarod Wilson
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26658478&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jarod@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Can-someone-help-me-get-the-pvr-150-IR-blaster-patch-by-Mark-Weaver-to-work-with-lirc---kernel-2.6.31--tp26536896p26658478.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26658143</id>
	<title>Re: Can someone help me get the pvr 150 IR blaster patch by Mark Weaver	to work with lirc &amp; kernel 2.6.31?</title>
	<published>2009-12-05T10:39:11Z</published>
	<updated>2009-12-05T10:39:11Z</updated>
	<author>
		<name>Rick-56</name>
	</author>
	<content type="html">Jarod Wilson wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Nov 26, 2009, at 11:08 PM, Rick wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; Jarod Wilson wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; On 11/26/2009 09:25 PM, Rick wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Jarod Wilson wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; On 11/26/2009 08:25 PM, Rick wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; My myth box of 3+ years has finally bitten the dust. Now that I'm
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; rebuilding a new one, the distro (Mandriva 2010.0) has moved on to
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; kernel 2.6.31. Does anyone know how I can get the PVR 150 IR Blas0ter
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; mod provided by Mark Weaver to work with the newer kernel. His mod was
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; based on lirc 0.8.3 and it doesn't compile with kernel 2.6.31.
&lt;br&gt;&amp;gt; ...
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;The driver isn't in the lirc distribution, due to concerns over the pseudo-firmware IR blaster table the driver uses, which is extracted from a Windows driver. Its in my git tree though. The easiest thing to do is download a snapshot of just the lirc subtree of my git tree here:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://wilsonet.com/jarod/junk/lirc-snap-20091027.tar.bz2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://wilsonet.com/jarod/junk/lirc-snap-20091027.tar.bz2&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Unpack it, then (all on one line):
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; make -C /path/to/kernel/headers/ CONFIG_INPUT_LIRC=m \
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;CONFIG_LIRC_ZILOG=m M=$PWD modules
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Then drop the resulting lirc_dev.ko and lirc_zilog.ko into /lib/modules/&amp;lt;your kernel/extra/ and run depmod. Then try modprobing lirc_zilog, and all should be well.
&lt;br&gt;&amp;gt;&amp;gt; Great! &amp;nbsp;I'll do that once I get home. &amp;nbsp;Will the zilog module behave the same way as the old PVR 150 patched module? &amp;nbsp;In my old mythbox I had two pvr 150 cards. &amp;nbsp;By bringing up two LIRC daemons on separate devices, I was able to independently control two set top boxes. &amp;nbsp;Also, will I need that separate firmware file or is that now &amp;quot;built in&amp;quot;?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Everything should be pretty much the same.
&lt;br&gt;&amp;gt; 
&lt;/div&gt;Hi Jarod,
&lt;br&gt;&lt;br&gt;I just tried this at home and got the following error:
&lt;br&gt;&lt;br&gt;modprobe lirc_zilog
&lt;br&gt;FATAL: Error inserting lirc_zilog 
&lt;br&gt;(/lib/modules/2.6.31.5-desktop-1mnb/misc/lirc_zilog.ko): Unknown symbol 
&lt;br&gt;in module, or unknown parameter (see dmesg)
&lt;br&gt;&lt;br&gt;Dmesg output:lirc_zilog: disagrees about version of symbol 
&lt;br&gt;lirc_register_driver
&lt;br&gt;lirc_zilog: Unknown symbol lirc_register_driver
&lt;br&gt;&lt;br&gt;--- For what it's worth, I compiled the latest lirc-0.8.6 on my host 
&lt;br&gt;before attempting the zilog stuff. &amp;nbsp;Then I put the zilog tree I 
&lt;br&gt;downloaded from you in /usr/src/lirc-snap_zilog and compiled it. &amp;nbsp;Then i 
&lt;br&gt;modprobed and got this error.
&lt;br&gt;&lt;br&gt;Rick
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Can-someone-help-me-get-the-pvr-150-IR-blaster-patch-by-Mark-Weaver-to-work-with-lirc---kernel-2.6.31--tp26536896p26658143.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26657961</id>
	<title>Re: Recommend commercial IR receiver</title>
	<published>2009-12-05T10:14:08Z</published>
	<updated>2009-12-05T10:14:08Z</updated>
	<author>
		<name>Ruediger Dohmhardt</name>
	</author>
	<content type="html">Angus March schrieb:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Jarod Wilson wrote:
&lt;br&gt;&amp;gt;&amp;gt; On Dec 3, 2009, at 5:01 PM, Angus March wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I had an RS232 serial IR receiver that seems to be broken. I did purchase it, but I'm sure it qualifies as a homebrew. Can someone recommend a commercial receiver that has just about the same features as an RS232, but won't break? This means I should be able to customize it to any remote, and work w/lirc, of course.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Windows MCE USB Transceiver. (Also marketed as an eHome Infrared Transceiver, and a multitude of other things). They're about $25 new, with a bundled remote and two IR emitters, in addition to the receiver functionality, which works with darned near every IR protocol you can throw at it.
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;quot;Windows&amp;quot;, eh? And it'll work in Linux?
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;&amp;gt; a free event focused on virtualization and cloud computing. 
&lt;br&gt;&amp;gt; Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;/div&gt;With VDR-1.7.9 I use the Philips SRM5100.
&lt;br&gt;&lt;br&gt;cd lirc-0.8.5pre2
&lt;br&gt;./configure --with-driver=mceusb2; make
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Recommend-commercial-IR-receiver-tp26634011p26657961.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26646081</id>
	<title>Re: lirc 0.8.6 locks up with IMON USB device and PAD remote</title>
	<published>2009-12-04T09:29:20Z</published>
	<updated>2009-12-04T09:29:20Z</updated>
	<author>
		<name>Johnny Walker-4</name>
	</author>
	<content type="html">On Wed, Dec 2, 2009 at 6:22 PM, Johnny Walker &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26646081&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;johnnyjboss@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Tue, Dec 1, 2009 at 8:40 PM, Jarod Wilson &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26646081&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jarod@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; On 11/30/2009 10:03 AM, Johnny Walker wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; This weekend the LCD has been lockign up in under an hour reliably. I
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; don't see anything in logs regarding it. The good news is the remote
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; still works when the LCD locks up. Anything you can suggest?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; If there's nothing in the logs... Then I'm hesitant to believe its a driver
&lt;br&gt;&amp;gt;&amp;gt; problem. At least, its not hte problem others were having -- they had
&lt;br&gt;&amp;gt;&amp;gt; distinct send_packet failed messages in their system logs.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; On 12/01/2009 05:44 PM, Johnny Walker wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Feedback when using your device with a test patch I posted two or three
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; weeks back would be useful (you should be able to find it in the list
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; archives, needs to be applied to the lirc_imon driver). Basically, so far as
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; we can determine, some LCD/VFD can't keep up with constant writes to the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; display, so we hack in a delay before returning from any writes, hoping that
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; with delay, the display can then keep up.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; So now that I've corrected the LCD Server setting to localhost I can
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; see in the mythfrontend.log when the lcd device stops working:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 2009-12-01 15:21:17.003 lcddevice: Connection to LCDServer died
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; unexpectedly.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;                         Trying to reconnect every 10 seconds. . .
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; But I don't see any write errors being logged in the kern.log.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; It seems to restart the mythlcdserver and then keep trying...
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 2009-12-01 15:29:17.248 Starting mythlcdserver
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; QWidget: Cannot create a QWidget when no GUI is being used
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 2009-12-01 15:29:17.757 Connecting to lcd server: 127.0.0.1:6545 (try 1 of
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 10)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 2009-12-01 15:29:18.258 Connecting to lcd server: 127.0.0.1:6545 (try 2 of
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 10)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 2009-12-01 15:29:18.758 Connecting to lcd server: 127.0.0.1:6545 (try 3 of
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 10)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 2009-12-01 15:29:19.259 Connecting to lcd server: 127.0.0.1:6545 (try 4 of
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 10)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 2009-12-01 15:29:19.760 Connecting to lcd server: 127.0.0.1:6545 (try 5 of
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 10)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 2009-12-01 15:29:20.260 Connecting to lcd server: 127.0.0.1:6545 (try 6 of
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 10)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 2009-12-01 15:29:20.761 Connecting to lcd server: 127.0.0.1:6545 (try 7 of
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 10)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 2009-12-01 15:29:21.261 Connecting to lcd server: 127.0.0.1:6545 (try 8 of
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 10)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 2009-12-01 15:29:21.762 Connecting to lcd server: 127.0.0.1:6545 (try 9 of
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 10)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 2009-12-01 15:29:22.262 Connecting to lcd server: 127.0.0.1:6545 (try 10
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; of 10)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 2009-12-01 15:29:27.251 Starting mythlcdserver
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 2009-12-01 15:29:27.759 Connecting to lcd server: 127.0.0.1:6545 (try 1 of
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 10)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Should I take this up on the lcdproc mailing list - or is this handled
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; by the lirc_imon module?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I don't know if that's an lcdproc error or a mythlcdserver error there. But
&lt;br&gt;&amp;gt;&amp;gt; it definitely looks to me like lirc_imon isn't at fault.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; ok - so the last few days I've zeroed in on what's actually happening.
&lt;br&gt;&amp;gt; The pad on the imon remote is what stops. That includes my enter key
&lt;br&gt;&amp;gt; which is on that pad. This is all that's in the logs:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Dec  2 17:31:33 mythliving kernel: [38109.134168] intf0 decoded
&lt;br&gt;&amp;gt; packet: 01 00 00 7f 00 00 00 00
&lt;br&gt;&amp;gt; Dec  2 17:31:33 mythliving kernel: [38109.174168] intf0 decoded
&lt;br&gt;&amp;gt; packet: 01 00 00 7f 00 00 00 00
&lt;br&gt;&amp;gt; Dec  2 17:31:33 mythliving kernel: [38109.206156] intf0 decoded
&lt;br&gt;&amp;gt; packet: 01 00 00 7f 00 00 00 00
&lt;br&gt;&amp;gt; Dec  2 17:31:36 mythliving kernel: [38112.694506] intf0 decoded
&lt;br&gt;&amp;gt; packet: 28 a1 95 b7 00 00 24 01
&lt;br&gt;&amp;gt; Dec  2 17:31:37 mythliving kernel: [38112.862519] intf0 decoded
&lt;br&gt;&amp;gt; packet: 28 a1 d5 b7 00 00 24 01
&lt;br&gt;&amp;gt; Dec  2 17:40:50 mythliving kernel: [38666.122449] intf0 decoded
&lt;br&gt;&amp;gt; packet: 28 a1 95 b7 00 00 24 01
&lt;br&gt;&amp;gt; Dec  2 17:40:50 mythliving kernel: [38666.290457] intf0 decoded
&lt;br&gt;&amp;gt; packet: 28 a1 d5 b7 ff 00 24 01
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; These go on and on until they suddenly stop.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The LCD is still updating this time - so it's just the pad on the
&lt;br&gt;&amp;gt; remote that has stopped functioning.
&lt;br&gt;&amp;gt; Actually I just tested it and it seems the entire remote has now
&lt;br&gt;&amp;gt; stopped functioning.
&lt;/div&gt;&lt;br&gt;Interestingly - or not - is that I rebooted the machine at this point
&lt;br&gt;to regain remote control and after only 5 or so minutes the LCD
&lt;br&gt;stopped responding - ie: the display forze up and did not continue to
&lt;br&gt;update.
&lt;br&gt;&lt;br&gt;I'm suspecting the USB cable that is part of this case. the
&lt;br&gt;SilverStone LC11SM - the usb cables to connect this device are rather
&lt;br&gt;lengthy and I've wrapped them up to get them out of the way. Is it
&lt;br&gt;possible there's an issue even if I'm not seeing it drop off the USB?
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/lirc-0.8.6-locks-up-with-IMON-USB-device-and-PAD-remote-tp26399354p26646081.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26645350</id>
	<title>Lockups after installing MCE USB IR receiver</title>
	<published>2009-12-04T08:40:19Z</published>
	<updated>2009-12-04T08:40:19Z</updated>
	<author>
		<name>ttabbal</name>
	</author>
	<content type="html">This is the ID of the reciever: &lt;br&gt;&lt;br&gt;Bus 004 Device 002: ID 1784:0008 TopSeed Technology Corp.&lt;br&gt;&lt;br&gt;After getting it running, I get lots of lockups at seemingly random times, right after using the remote. I can&amp;#39;t seem to get any logging on the issue, though I have seen posts on an XBMC forum suspecting a chipset/receiver interop issue. After this happens, the machine is hard locked. I don&amp;#39;t get any response from a local keyboard, and can&amp;#39;t SSH into the machine. It&amp;#39;s like the kernel crashes. I was wondering if anyone here has some hints on getting this fixed? I don&amp;#39;t know if it&amp;#39;s LIRC itself, the mceusb driver, or just faulty hardware. The machine works fine if I just use a keyboard, but that&amp;#39;s not really TV friendly. On the XBMC forums, they suggested adding a USB card as a solution. I&amp;#39;m thinking of trying that tonight as I have an old PCI USB card, if I can find it. I have tried different ports on the motherboard USB already. &lt;br&gt;
&lt;br&gt;Distro is Ubuntu 9.10. LIRC installed from packages, version 0.8.6. Motherboard is an Asus M3N78-VM.  &lt;br&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Lockups-after-installing-MCE-USB-IR-receiver-tp26645350p26645350.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26644952</id>
	<title>Re: [RFC v2] Another approach to IR</title>
	<published>2009-12-04T08:11:04Z</published>
	<updated>2009-12-04T08:11:04Z</updated>
	<author>
		<name>Ferenc Wagner-2</name>
	</author>
	<content type="html">Dmitry Torokhov &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26644952&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dmitry.torokhov@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Thu, Dec 03, 2009 at 02:33:56PM -0200, Mauro Carvalho Chehab wrote:
&lt;br&gt;&amp;gt;&amp;gt; Ferenc Wagner wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Mauro Carvalho Chehab &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26644952&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mchehab@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; We should not forget that simple IR's don't have any key to select the address,
&lt;br&gt;&amp;gt;&amp;gt; so the produced codes there will never have KEY_TV/KEY_DVD, etc.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Wait, wait, KEY_TV, KEY_DVD, KEY_TAPE - they should be used to select
&lt;br&gt;&amp;gt; media inputs in a device/application. My receiver accepts codes like
&lt;br&gt;&amp;gt; that.
&lt;/div&gt;&lt;br&gt;Sorry, my point wasn't the event names, I picked them for their
&lt;br&gt;superficial correspondence to the TV, DVD, SAT etc. buttons found on
&lt;br&gt;multifunction remotes. &amp;nbsp;Obviously I picked wrong.
&lt;br&gt;&lt;br&gt;I was also wrong to assume that remotes with such buttons are always
&lt;br&gt;multifunction remotes in the sense that they are meant to control
&lt;br&gt;separate devices. &amp;nbsp;As Mauro pointed out, (some) bundled remotes with
&lt;br&gt;such buttons aren't; thus I wouldn't consider them multifunction at all.
&lt;br&gt;They simply have some extra buttons labelled TV, DVD etc, which probably
&lt;br&gt;shouldn't be mapped to KEY_TV, KEY_DVD etc. (since those events carry
&lt;br&gt;different semantics) but should be mapped to something else. &amp;nbsp;Or not, if
&lt;br&gt;these buttons change some internal decoder state instead, modifying the
&lt;br&gt;mapping or destination input device of the other keys.
&lt;br&gt;&lt;br&gt;It's just a different scenario, where the kernel could reasonably give
&lt;br&gt;rather different representations to simple applications aiming at
&lt;br&gt;plug&amp;play: letting through the function change events untouched, or
&lt;br&gt;masking and using them internally.
&lt;br&gt;&lt;br&gt;True multifunction devices don't send such events, the TV, DVD etc
&lt;br&gt;buttons on them change their internal state and the scan codes sent by
&lt;br&gt;the other keys, if I understand this correctly.
&lt;br&gt;&lt;br&gt;I'd prefer if these two behaviours could be abstacted from, and the
&lt;br&gt;input layer interface would provide destination selection events +
&lt;br&gt;generic events, or (to be defined) device specific events only in either
&lt;br&gt;case. &amp;nbsp;Is that possible or even reasonable?
&lt;br&gt;-- 
&lt;br&gt;Thanks,
&lt;br&gt;Feri.
&lt;br&gt;&lt;br&gt;Ps: I'm writing this in the hope to clean up the landscape and possibly
&lt;br&gt;help in choosing the best design. &amp;nbsp;I'm not at all familiar with IR, and
&lt;br&gt;the above distinction was pretty surprising for me. &amp;nbsp;Also, I'm just
&lt;br&gt;lurking here, so don't take me too seriously. :)
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-RFC-v2--Another-approach-to-IR-tp26613180p26644952.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26643950</id>
	<title>Re: Recommend commercial IR receiver</title>
	<published>2009-12-04T07:04:58Z</published>
	<updated>2009-12-04T07:04:58Z</updated>
	<author>
		<name>AngusM</name>
	</author>
	<content type="html">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;&gt;
&lt;html&gt;
&lt;head&gt;
  &lt;meta content=&quot;text/html;charset=ISO-8859-1&quot; http-equiv=&quot;Content-Type&quot;&gt;
&lt;/head&gt;
&lt;body bgcolor=&quot;#ffffff&quot; text=&quot;#000000&quot;&gt;
Jarod Wilson wrote:
&lt;blockquote cite=&quot;mid:A7B83EEC-0ECC-4FA4-8648-4B80AD32B6AA@wilsonet.com&quot; type=&quot;cite&quot;&gt;
  &lt;pre wrap=&quot;&quot;&gt;On Dec 3, 2009, at 5:01 PM, Angus March wrote:

  &lt;/pre&gt;
  &lt;blockquote type=&quot;cite&quot;&gt;
    &lt;pre wrap=&quot;&quot;&gt;I had an RS232 serial IR receiver that seems to be broken. I did purchase it, but I'm sure it qualifies as a homebrew. Can someone recommend a commercial receiver that has just about the same features as an RS232, but won't break? This means I should be able to customize it to any remote, and work w/lirc, of course.
    &lt;/pre&gt;
  &lt;/blockquote&gt;
  &lt;pre wrap=&quot;&quot;&gt;&lt;!----&gt;
Windows MCE USB Transceiver. (Also marketed as an eHome Infrared Transceiver, and a multitude of other things). They're about $25 new, with a bundled remote and two IR emitters, in addition to the receiver functionality, which works with darned near every IR protocol you can throw at it.
  &lt;/pre&gt;
&lt;/blockquote&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;Windows&quot;, eh? And it'll work in Linux?&lt;br&gt;
&lt;/body&gt;
&lt;/html&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Recommend-commercial-IR-receiver-tp26634011p26643950.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26642910</id>
	<title>Re: Recommend commercial IR receiver</title>
	<published>2009-12-04T05:58:57Z</published>
	<updated>2009-12-04T05:58:57Z</updated>
	<author>
		<name>Jarod Wilson</name>
	</author>
	<content type="html">On Dec 3, 2009, at 5:01 PM, Angus March wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; I had an RS232 serial IR receiver that seems to be broken. I did purchase it, but I'm sure it qualifies as a homebrew. Can someone recommend a commercial receiver that has just about the same features as an RS232, but won't break? This means I should be able to customize it to any remote, and work w/lirc, of course.
&lt;br&gt;&lt;br&gt;Windows MCE USB Transceiver. (Also marketed as an eHome Infrared Transceiver, and a multitude of other things). They're about $25 new, with a bundled remote and two IR emitters, in addition to the receiver functionality, which works with darned near every IR protocol you can throw at it.
&lt;br&gt;&lt;br&gt;Ex:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.newegg.com/Product/Product.aspx?Item=N82E16880121003&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.newegg.com/Product/Product.aspx?Item=N82E16880121003&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://www.newegg.com/Product/Product.aspx?Item=N82E16880121001&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.newegg.com/Product/Product.aspx?Item=N82E16880121001&lt;/a&gt;&lt;br&gt;&lt;br&gt;Both even have review comments that say &amp;quot;works under linux and/or with mythtv&amp;quot;.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Jarod Wilson
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26642910&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jarod@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Recommend-commercial-IR-receiver-tp26634011p26642910.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26637410</id>
	<title>uinput key range patch</title>
	<published>2009-12-03T19:29:49Z</published>
	<updated>2009-12-03T19:29:49Z</updated>
	<author>
		<name>Paul Bender-3</name>
	</author>
	<content type="html">Attached is a patch that fixes the uinput output device key range 
&lt;br&gt;supported. First, rather than limiting the valid keys to something less 
&lt;br&gt;than KEY_UNKNOWN, it checks input_map.inc. Second, just as is done in 
&lt;br&gt;the commit 
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://lirc.cvs.sourceforge.net/viewvc/lirc/lirc/daemons/hw_devinput.c?r1=5.20&amp;r2=5.21&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lirc.cvs.sourceforge.net/viewvc/lirc/lirc/daemons/hw_devinput.c?r1=5.20&amp;r2=5.21&lt;/a&gt;&amp;gt;, 
&lt;br&gt;it discards values between BTN_MISC and BTN_GEAR_UP as they are mouse 
&lt;br&gt;not keyboard values.
&lt;br&gt;&lt;br /&gt;diff -Naur lirc-0.8.6-old/daemons/input_map.c lirc-0.8.6-new/daemons/input_map.c
&lt;br&gt;--- lirc-0.8.6-old/daemons/input_map.c	2008-10-26 08:10:17.000000000 -0700
&lt;br&gt;+++ lirc-0.8.6-new/daemons/input_map.c	2009-12-01 20:57:41.000000000 -0800
&lt;br&gt;@@ -25,6 +25,21 @@
&lt;br&gt;&amp;nbsp;	{NULL, 0}
&lt;br&gt;&amp;nbsp;};
&lt;br&gt;&amp;nbsp;
&lt;br&gt;+int get_input_code_by_index(int index, linux_input_code *code)
&lt;br&gt;+{
&lt;br&gt;+	int i;
&lt;br&gt;+	
&lt;br&gt;+	for (i=0; input_map[i].name != NULL; i++)
&lt;br&gt;+	{
&lt;br&gt;+		if (i == index)
&lt;br&gt;+		{
&lt;br&gt;+			*code = input_map[i].code;
&lt;br&gt;+			return i;
&lt;br&gt;+		}
&lt;br&gt;+	}
&lt;br&gt;+	return -1;
&lt;br&gt;+}
&lt;br&gt;+
&lt;br&gt;&amp;nbsp;int get_input_code(const char *name, linux_input_code *code)
&lt;br&gt;&amp;nbsp;{
&lt;br&gt;&amp;nbsp;	int i;
&lt;br&gt;diff -Naur lirc-0.8.6-old/daemons/input_map.h lirc-0.8.6-new/daemons/input_map.h
&lt;br&gt;--- lirc-0.8.6-old/daemons/input_map.h	2008-10-26 08:10:17.000000000 -0700
&lt;br&gt;+++ lirc-0.8.6-new/daemons/input_map.h	2009-12-01 20:57:41.000000000 -0800
&lt;br&gt;@@ -28,6 +28,7 @@
&lt;br&gt;&amp;nbsp;typedef unsigned short linux_input_code;
&lt;br&gt;&amp;nbsp;#endif
&lt;br&gt;&amp;nbsp;
&lt;br&gt;+int get_input_code_by_index(int index, linux_input_code *code);
&lt;br&gt;&amp;nbsp;int get_input_code(const char *name, linux_input_code *code);
&lt;br&gt;&amp;nbsp;void fprint_namespace(FILE *f);
&lt;br&gt;&amp;nbsp;int is_in_namespace(const char *name);
&lt;br&gt;diff -Naur lirc-0.8.6-old/daemons/lircd.c lirc-0.8.6-new/daemons/lircd.c
&lt;br&gt;--- lirc-0.8.6-old/daemons/lircd.c	2009-08-29 00:46:44.000000000 -0700
&lt;br&gt;+++ lirc-0.8.6-new/daemons/lircd.c	2009-12-01 20:57:51.000000000 -0800
&lt;br&gt;@@ -417,6 +417,8 @@
&lt;br&gt;&amp;nbsp;#if defined(__linux__)
&lt;br&gt;&amp;nbsp;	int fd;
&lt;br&gt;&amp;nbsp;	int key;
&lt;br&gt;+	linux_input_code code;
&lt;br&gt;+	int i;
&lt;br&gt;&amp;nbsp;	struct uinput_user_dev dev;
&lt;br&gt;&amp;nbsp;	
&lt;br&gt;&amp;nbsp;	fd = open(&amp;quot;/dev/input/uinput&amp;quot;, O_RDWR);
&lt;br&gt;@@ -445,12 +447,16 @@
&lt;br&gt;&amp;nbsp;		goto setup_error;
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for(key = KEY_RESERVED; key &amp;lt;= KEY_UNKNOWN; key++)
&lt;br&gt;+	for(i = 0; get_input_code_by_index(i, &amp;code) &amp;gt;= 0; i++)
&lt;br&gt;&amp;nbsp;	{
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if(ioctl(fd, UI_SET_KEYBIT, key) != 0)
&lt;br&gt;+		key = (int)code;
&lt;br&gt;+		if ((key &amp;lt; BTN_MISC) || (key &amp;gt; BTN_GEAR_UP))
&lt;br&gt;&amp;nbsp;		{
&lt;br&gt;-			goto setup_error;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;	if(ioctl(fd, UI_SET_KEYBIT, key) != 0)
&lt;br&gt;+			{
&lt;br&gt;+				goto setup_error;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;	}
&lt;br&gt;+		}
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;	if(ioctl(fd, UI_DEV_CREATE) != 0)
&lt;br&gt;&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/uinput-key-range-patch-tp26637410p26637410.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26637317</id>
	<title>patch for Linux 2.6.32</title>
	<published>2009-12-03T19:14:55Z</published>
	<updated>2009-12-03T19:14:55Z</updated>
	<author>
		<name>Paul Bender-3</name>
	</author>
	<content type="html">Attached is a patch that enables LIRC to compile against Linux 2.6.32. 
&lt;br&gt;As I do not have an i2c dependent receiver, I do not know whether or not 
&lt;br&gt;i2c dependent receivers work with the patch, but at least it compiles.
&lt;br&gt;&lt;br /&gt;diff -Naur lirc-0.8.6-old/drivers/lirc_i2c/lirc_i2c.c lirc-0.8.6-new/drivers/lirc_i2c/lirc_i2c.c
&lt;br&gt;--- lirc-0.8.6-old/drivers/lirc_i2c/lirc_i2c.c	2009-08-30 09:59:53.000000000 -0700
&lt;br&gt;+++ lirc-0.8.6-new/drivers/lirc_i2c/lirc_i2c.c	2009-12-03 16:52:05.000000000 -0800
&lt;br&gt;@@ -399,7 +399,9 @@
&lt;br&gt;&amp;nbsp;		.name	= &amp;quot;i2c ir driver&amp;quot;,
&lt;br&gt;&amp;nbsp;	},
&lt;br&gt;&amp;nbsp;#endif
&lt;br&gt;+#if LINUX_VERSION_CODE &amp;lt; KERNEL_VERSION(2, 6, 32)
&lt;br&gt;&amp;nbsp;	.id		= I2C_DRIVERID_EXP3, /* FIXME */
&lt;br&gt;+#endif
&lt;br&gt;&amp;nbsp;#if LINUX_VERSION_CODE &amp;lt; KERNEL_VERSION(2, 6, 31)
&lt;br&gt;&amp;nbsp;	.attach_adapter	= ir_probe,
&lt;br&gt;&amp;nbsp;	.detach_client	= ir_remove,
&lt;br&gt;&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/patch-for-Linux-2.6.32-tp26637317p26637317.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26635517</id>
	<title>Re: [RFC v2] Another approach to IR (Also: Fixed protocol reciever suggestions)</title>
	<published>2009-12-03T15:59:09Z</published>
	<updated>2009-12-03T15:59:09Z</updated>
	<author>
		<name>Ryan Voots</name>
	</author>
	<content type="html">On Thursday 03 December 2009 00:08:13 Jon Smirl wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Wed, Dec 2, 2009 at 9:22 PM, Mauro Carvalho Chehab
&lt;br&gt;&amp;gt; A fixed protocol receiver is more of a challenge. You have to figure
&lt;br&gt;&amp;gt; out how to make a universal remote transmit device codes for a device
&lt;br&gt;&amp;gt; you don't already own that is also encoded in the protocol your
&lt;br&gt;&amp;gt; hardware supports. There's nothing we can do about that problem in
&lt;br&gt;&amp;gt; Linux, its a side effect of fixed protocol decode hardware. You're
&lt;br&gt;&amp;gt; just going to have to start guessing devices in the remote until you
&lt;br&gt;&amp;gt; find one that uses your fixed protocol and doesn't also activate the
&lt;br&gt;&amp;gt; devices you own. We can put suggestions in the doc when working
&lt;br&gt;&amp;gt; devices are discovered. 
&lt;/div&gt;&lt;br&gt;Well for the currently supported (lirc creative driver) Creative Infra 
&lt;br&gt;Receiver I've found that some Toshiba protocols/remotes/etc. seem to work 
&lt;br&gt;great. &amp;nbsp;I've been reading this discussion and while i like whats going on I'd 
&lt;br&gt;certainly want to make sure that such fixed protocol devices would still be 
&lt;br&gt;supported and possible to use since much of the discussion seems to be talking 
&lt;br&gt;about receivers that can handle multiple protocols and remotes natively.
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-RFC-v2--Another-approach-to-IR-tp26613180p26635517.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26634011</id>
	<title>Recommend commercial IR receiver</title>
	<published>2009-12-03T14:01:07Z</published>
	<updated>2009-12-03T14:01:07Z</updated>
	<author>
		<name>AngusM</name>
	</author>
	<content type="html">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;&gt;
&lt;html&gt;
&lt;head&gt;
&lt;/head&gt;
&lt;body bgcolor=&quot;#ffffff&quot; text=&quot;#000000&quot;&gt;
I had an RS232 serial IR receiver that seems to be broken. I did
purchase it, but I'm sure it qualifies as a homebrew. Can someone
recommend a commercial receiver that has just about the same features
as an RS232, but &lt;i&gt;won't&lt;/i&gt; break? This means I should be able to
customize it to any remote, and work w/lirc, of course.&lt;br&gt;
&lt;/body&gt;
&lt;/html&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Recommend-commercial-IR-receiver-tp26634011p26634011.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26644950</id>
	<title>Re: [RFC v2] Another approach to IR</title>
	<published>2009-12-03T12:54:28Z</published>
	<updated>2009-12-03T12:54:28Z</updated>
	<author>
		<name>Mauro Carvalho Chehab-6</name>
	</author>
	<content type="html">Krzysztof Halasa wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Mauro Carvalho Chehab &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26644950&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mchehab@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; Btw, looking at that code, while it is not impossible to split the 
&lt;br&gt;&amp;gt;&amp;gt; IR pulse/space measures from the NEC decoder itself, and make it generic
&lt;br&gt;&amp;gt;&amp;gt; to support other protocols, it is not a trivial task, and may result on
&lt;br&gt;&amp;gt;&amp;gt; a less stable driver.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; And it's not needed at all.
&lt;br&gt;&amp;gt; Protocol decoders can be easily run in parallel, I've done it on saa713x
&lt;br&gt;&amp;gt; and this is trivial at least there. Can do that when the lirc interface
&lt;br&gt;&amp;gt; is available.
&lt;/div&gt;&lt;br&gt;&amp;gt;&amp;gt; The advantage of the NEC decoding approach on saa7134 is that you know for
&lt;br&gt;&amp;gt;&amp;gt; sure how much time it is required to get the entire code. So, the code 
&lt;br&gt;&amp;gt;&amp;gt; can easily abort the reception of a bad code. The disadvantage is that 
&lt;br&gt;&amp;gt;&amp;gt; only one protocol can be decoded at the same time.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; This isn't a hard thing to fix.
&lt;br&gt;&lt;br&gt;Good to know. We're open to patches to improve it. 
&lt;br&gt;&lt;br&gt;The point is that we've got in the past several complains about saa713x
&lt;br&gt;machines hanging due to IRQ's generated by IR sensor port. We ended by adding
&lt;br&gt;an option to disable IR and a code at the driver that disables IR IRQ if it 
&lt;br&gt;happens too often.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; The same problem also happens with almost all in-kernel drivers: the decoders
&lt;br&gt;&amp;gt;&amp;gt; for raw mode were constructed to work with just one pulse/space code at the
&lt;br&gt;&amp;gt;&amp;gt; same time. A conversion into a generic code can happen, but it will require
&lt;br&gt;&amp;gt;&amp;gt; several tests to be sure that they won't cause undesirable side-effects.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; IOW any such receiver has to be tested, sure.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; The advantage of hardware decoders is that you don't need to be polling the
&lt;br&gt;&amp;gt;&amp;gt; IR serial port at a high rate, as you'll get directly the code. So, you'll
&lt;br&gt;&amp;gt;&amp;gt; free the CPU to do something else.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Which device requires polling the port?
&lt;br&gt;&amp;gt; Most are IRQ-driven, aren't they?
&lt;/div&gt;&lt;br&gt;Most of the devices that have a hardware IR decodes needs polling. Most of they
&lt;br&gt;simply outputs the scan code on some set of GPIO pins.
&lt;br&gt;&lt;br&gt;In general, the devices with the IR sensor connected to a GPIO pin are IRQ-driven.
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;Mauro.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-RFC-v2--Another-approach-to-IR-tp26613180p26644950.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26632009</id>
	<title>Re: [RFC v2] Another approach to IR</title>
	<published>2009-12-03T11:48:00Z</published>
	<updated>2009-12-03T11:48:00Z</updated>
	<author>
		<name>Eric Jorgensen</name>
	</author>
	<content type="html">Quoting Jon Smirl &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26632009&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jonsmirl@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Now I understand that if 2 remotes send completely identical signals we
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; won't be able to separate them, but in cases when we can I think we
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; should.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I don't have a problem with that, if its a truly desired feature. &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; But for the most part, I don't see the point. Generally, you go &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; from having multiple remotes, one per device (where &amp;quot;device&amp;quot; is &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; your TV, amplifier, set top box, htpc, etc), to having a single &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; universal remote that controls all of those devices. But for each &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; device (IR receiver), *one* IR command set. The desire to use &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; multiple distinct remotes with a single IR receiver doesn't make &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; sense to me. Perhaps I'm just not creative enough in my use of IR. :)
&lt;/div&gt;&lt;br&gt;&amp;nbsp;From a hobbiest's perspective there's likely rarely any reason to be &amp;nbsp;
&lt;br&gt;able to do the same thing with two different remotes that send &amp;nbsp;
&lt;br&gt;different signals, but i could see it come up - For example if you &amp;nbsp;
&lt;br&gt;wanted to have both a feature-rich, &amp;nbsp;busy/complicated remote but also &amp;nbsp;
&lt;br&gt;wanted to provide a simpler remote with a relatively small number of &amp;nbsp;
&lt;br&gt;large buttons on it for basic functions, as for children or people &amp;nbsp;
&lt;br&gt;with poor eyesight or poor motor control.
&lt;br&gt;&lt;br&gt;&amp;nbsp;From a business perspective, I've worked for a company that sold &amp;nbsp;
&lt;br&gt;turn-key video training systems, and depending on the whims of our &amp;nbsp;
&lt;br&gt;so-called business partners and the desires of customers, there were &amp;nbsp;
&lt;br&gt;as many as three distinct remotes that might get shipped with the &amp;nbsp;
&lt;br&gt;training system, and they all sent different signals.
&lt;br&gt;&lt;br&gt;That was a less than ideal situation, and if we had been really on top &amp;nbsp;
&lt;br&gt;of things we'd have just declined to use any of those remotes and &amp;nbsp;
&lt;br&gt;bought custom remotes from any of the numerous vendors that sell them &amp;nbsp;
&lt;br&gt;which would allow us to have one set of IR signals used by remotes &amp;nbsp;
&lt;br&gt;with different features - but for whatever reason that wasn't how &amp;nbsp;
&lt;br&gt;management decided to do things.
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-RFC-v2--Another-approach-to-IR-tp26613180p26632009.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26631094</id>
	<title>Re: [RFC v2] Another approach to IR</title>
	<published>2009-12-03T10:18:03Z</published>
	<updated>2009-12-03T10:18:03Z</updated>
	<author>
		<name>Krzysztof Halasa</name>
	</author>
	<content type="html">Mauro Carvalho Chehab &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26631094&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mchehab@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;&lt;br&gt;&amp;gt; Btw, looking at that code, while it is not impossible to split the 
&lt;br&gt;&amp;gt; IR pulse/space measures from the NEC decoder itself, and make it generic
&lt;br&gt;&amp;gt; to support other protocols, it is not a trivial task, and may result on
&lt;br&gt;&amp;gt; a less stable driver.
&lt;br&gt;&lt;br&gt;And it's not needed at all.
&lt;br&gt;Protocol decoders can be easily run in parallel, I've done it on saa713x
&lt;br&gt;and this is trivial at least there. Can do that when the lirc interface
&lt;br&gt;is available.
&lt;br&gt;&lt;br&gt;&amp;gt; The advantage of the NEC decoding approach on saa7134 is that you know for
&lt;br&gt;&amp;gt; sure how much time it is required to get the entire code. So, the code 
&lt;br&gt;&amp;gt; can easily abort the reception of a bad code. The disadvantage is that 
&lt;br&gt;&amp;gt; only one protocol can be decoded at the same time.
&lt;br&gt;&lt;br&gt;This isn't a hard thing to fix.
&lt;br&gt;&lt;br&gt;&amp;gt; The same problem also happens with almost all in-kernel drivers: the decoders
&lt;br&gt;&amp;gt; for raw mode were constructed to work with just one pulse/space code at the
&lt;br&gt;&amp;gt; same time. A conversion into a generic code can happen, but it will require
&lt;br&gt;&amp;gt; several tests to be sure that they won't cause undesirable side-effects.
&lt;br&gt;&lt;br&gt;IOW any such receiver has to be tested, sure.
&lt;br&gt;&lt;br&gt;&amp;gt; The advantage of hardware decoders is that you don't need to be polling the
&lt;br&gt;&amp;gt; IR serial port at a high rate, as you'll get directly the code. So, you'll
&lt;br&gt;&amp;gt; free the CPU to do something else.
&lt;br&gt;&lt;br&gt;Which device requires polling the port?
&lt;br&gt;Most are IRQ-driven, aren't they?
&lt;br&gt;-- 
&lt;br&gt;Krzysztof Halasa
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-RFC-v2--Another-approach-to-IR-tp26613180p26631094.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26631082</id>
	<title>Re: [RFC v2] Another approach to IR</title>
	<published>2009-12-03T10:06:02Z</published>
	<updated>2009-12-03T10:06:02Z</updated>
	<author>
		<name>Krzysztof Halasa</name>
	</author>
	<content type="html">Jarod Wilson &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26631082&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jarod@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;&lt;br&gt;&amp;gt; Perhaps we should clarify something here. Are we intending to
&lt;br&gt;&amp;gt; auto-create a new input device for every IR command set we see arrive
&lt;br&gt;&amp;gt; at the IR receiver?
&lt;br&gt;&lt;br&gt;We don't want this, and we aren't really able to do this, because we
&lt;br&gt;never know if two different scan codes are part of the same or different
&lt;br&gt;command set.
&lt;br&gt;&lt;br&gt;Sharing the protocol and e.g. group code doesn't mean it's the same
&lt;br&gt;remote.
&lt;br&gt;&lt;br&gt;Different protocol doesn't mean it's a different remote and what's more
&lt;br&gt;important, doesn't mean the user wants it to be a different logical
&lt;br&gt;remote.
&lt;br&gt;-- 
&lt;br&gt;Krzysztof Halasa
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-RFC-v2--Another-approach-to-IR-tp26613180p26631082.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26631096</id>
	<title>Re: [RFC] What are the goals for the architecture of an in-kernel IR system?</title>
	<published>2009-12-03T09:31:20Z</published>
	<updated>2009-12-03T09:31:20Z</updated>
	<author>
		<name>Krzysztof Halasa</name>
	</author>
	<content type="html">&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26631096&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lirc@...&lt;/a&gt; (Christoph Bartelmus) writes:
&lt;br&gt;&lt;br&gt;&amp;gt; Currently I would tend to an approach like this:
&lt;br&gt;&amp;gt; - raw interface to userspace using LIRC
&lt;br&gt;&amp;gt; - fixed set of in-kernel decoders that can handle bundled remotes
&lt;br&gt;&lt;br&gt;I'd modify it a bit:
&lt;br&gt;- raw interface to userspace using LIRC
&lt;br&gt;- fixed set of in-kernel decoders
&lt;br&gt;&lt;br&gt;Longer term:
&lt;br&gt;&lt;br&gt;Removing the key assignment tables from the kernel. Plug-and-play can be
&lt;br&gt;then achieved with udev. The only thing needed from the kernel is
&lt;br&gt;indicating the tuner/sensor type, udev can guess the bundled remote type.
&lt;br&gt;&lt;br&gt;Porting the in-kernel drivers (such as ir-common) to LIRC interface
&lt;br&gt;(while not removing the input layer mode).
&lt;br&gt;-- 
&lt;br&gt;Krzysztof Halasa
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A--RFC--What-are-the-goals-for-the-architecture-of-an-in-kernel-IR--system--tp26613169p26631096.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26631104</id>
	<title>Re: [RFC v2] Another approach to IR</title>
	<published>2009-12-03T09:31:06Z</published>
	<updated>2009-12-03T09:31:06Z</updated>
	<author>
		<name>Dmitry Torokhov-4</name>
	</author>
	<content type="html">On Thu, Dec 03, 2009 at 02:33:56PM -0200, Mauro Carvalho Chehab wrote:
&lt;br&gt;&amp;gt; Ferenc Wagner wrote:
&lt;br&gt;&amp;gt; &amp;gt; Mauro Carvalho Chehab &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26631104&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mchehab@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; We should not forget that simple IR's don't have any key to select the address,
&lt;br&gt;&amp;gt; so the produced codes there will never have KEY_TV/KEY_DVD, etc.
&lt;br&gt;&lt;br&gt;Wait, wait, KEY_TV, KEY_DVD, KEY_TAPE - they should be used to select
&lt;br&gt;media inputs in a device/application. My receiver accepts codees like
&lt;br&gt;that.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Dmitry
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-RFC-v2--Another-approach-to-IR-tp26613180p26631104.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26631067</id>
	<title>Re: [RFC v2] Another approach to IR</title>
	<published>2009-12-03T09:19:56Z</published>
	<updated>2009-12-03T09:19:56Z</updated>
	<author>
		<name>Mauro Carvalho Chehab-6</name>
	</author>
	<content type="html">Em Thu, 3 Dec 2009 11:50:04 -0500
&lt;br&gt;Jon Smirl &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26631067&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jonsmirl@...&lt;/a&gt;&amp;gt; escreveu:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Thu, Dec 3, 2009 at 11:33 AM, Mauro Carvalho Chehab
&lt;br&gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26631067&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mchehab@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt; Ferenc Wagner wrote:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Mauro Carvalho Chehab &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26631067&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mchehab@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt; Dmitry Torokhov wrote:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; The interesting thing is that input.h defines KEY_TV, KEY_PC, KEY_SAT,
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; KEY_CD, KEY_TAPE etc., but no corresponding scan codes will ever be sent
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; by any remote (ok, I'm stretching it a bit).
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Unfortunately, this is not true. Some IR's do send a keycode for TV/PC/SAT/CD, etc.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; On those remotes, if you press TV and then press for example Channel UP
&lt;br&gt;&amp;gt; &amp;gt; and press Radio, then press Channel UP, the channel UP code will be the same.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; For example, on Hauppauge Grey IR, we have:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;lt;TV&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; [13425.128525] ir_g_keycode_from_table: em28xx IR (em28xx #0): scancode 0x1e1c keycode 0x179
&lt;br&gt;&amp;gt; &amp;gt; [13425.136733] ir_input_key_event: em28xx IR (em28xx #0): key event code=377 down=1
&lt;br&gt;&amp;gt; &amp;gt; [13425.144170] ir_input_key_event: em28xx IR (em28xx #0): key event code=377 down=0
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;lt;CHANNEL UP&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; [13428.350223] ir_g_keycode_from_table: em28xx IR (em28xx #0): scancode 0x1e20 keycode 0x192
&lt;br&gt;&amp;gt; &amp;gt; [13428.358434] ir_input_key_event: em28xx IR (em28xx #0): key event code=402 down=1
&lt;br&gt;&amp;gt; &amp;gt; [13428.365871] ir_input_key_event: em28xx IR (em28xx #0): key event code=402 down=0
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;lt;Radio&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; [13430.672266] ir_g_keycode_from_table: em28xx IR (em28xx #0): scancode 0x1e0c keycode 0x181
&lt;br&gt;&amp;gt; &amp;gt; [13430.680473] ir_input_key_event: em28xx IR (em28xx #0): key event code=385 down=1
&lt;br&gt;&amp;gt; &amp;gt; [13430.687913] ir_input_key_event: em28xx IR (em28xx #0): key event code=385 down=0
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;lt;CHANNEL UP&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; [13433.697268] ir_g_keycode_from_table: em28xx IR (em28xx #0): scancode 0x1e20 keycode 0x192
&lt;br&gt;&amp;gt; &amp;gt; [13433.705480] ir_input_key_event: em28xx IR (em28xx #0): key event code=402 down=1
&lt;br&gt;&amp;gt; &amp;gt; [13433.712916] ir_input_key_event: em28xx IR (em28xx #0): key event code=402 down=0
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; In this IR, the address is bogus: it is always 0x1e. This scenario is very common with the
&lt;br&gt;&amp;gt; &amp;gt; shipped IR's.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The remote is treating everything as a single integrated device which
&lt;br&gt;&amp;gt; is not inconsistent with what has been said. In this case there really
&lt;br&gt;&amp;gt; is only one multi-function device not two independent ones.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; If you want to control two independent devices you need to buy a
&lt;br&gt;&amp;gt; different remote. Remotes are cheap so that's not a big deal.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; If you really want to use this remote to control two independent
&lt;br&gt;&amp;gt; devices you need user space scripting to split the single device into
&lt;br&gt;&amp;gt; two devices and then inject new events into the input layer. This is a
&lt;br&gt;&amp;gt; complex case and not in the goal of getting 90% of users to &amp;quot;just
&lt;br&gt;&amp;gt; work&amp;quot;.
&lt;/div&gt;&lt;br&gt;This remote is a typical example of the IR's that are provided together with media boards.
&lt;br&gt;On all such IR's I know, it does generate one key event for TV, SAT, DVB, DVD... keys and
&lt;br&gt;this event doesn't change the status of subsequent keys.
&lt;br&gt;&lt;br&gt;100% of the users of such boards will have the shipped IR. Some amount will be happy of
&lt;br&gt;just using the provided IR to control different applications at their computer or embedded
&lt;br&gt;hardware, and some amount will prefer to buy a multi-purpose IR that will allow him
&lt;br&gt;to control not only his computer, but also, his TV, his Air conditioning, etc.
&lt;br&gt;&lt;br&gt;Both usages should be supported.
&lt;br&gt;&lt;br&gt;All I'm saying is that, in the case where people have only the shipped IR, if he wants to
&lt;br&gt;see TV, the produced keycode will be KEY_TV, and then to change a channel, it will
&lt;br&gt;receive KEY_CHANNELUP, to control his TV app. When the user decides to switch to DVB, 
&lt;br&gt;he will press KEY_DVB and then KEY_PLAY to play his movie.
&lt;br&gt;&lt;br&gt;So, an application like MythTV should be able to work with those keys.
&lt;br&gt;&lt;br&gt;I don't see the need to create a separate code for KEY_PLAYDVB, as this can be simply mapped
&lt;br&gt;as KEY_DVB and KEY_PLAY.
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;Mauro
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-RFC-v2--Another-approach-to-IR-tp26613180p26631067.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26631093</id>
	<title>Re: [RFC v2] Another approach to IR</title>
	<published>2009-12-03T08:50:04Z</published>
	<updated>2009-12-03T08:50:04Z</updated>
	<author>
		<name>Jon Smirl</name>
	</author>
	<content type="html">On Thu, Dec 3, 2009 at 11:33 AM, Mauro Carvalho Chehab
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26631093&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mchehab@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Ferenc Wagner wrote:
&lt;br&gt;&amp;gt;&amp;gt; Mauro Carvalho Chehab &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26631093&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mchehab@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Dmitry Torokhov wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; The interesting thing is that input.h defines KEY_TV, KEY_PC, KEY_SAT,
&lt;br&gt;&amp;gt;&amp;gt; KEY_CD, KEY_TAPE etc., but no corresponding scan codes will ever be sent
&lt;br&gt;&amp;gt;&amp;gt; by any remote (ok, I'm stretching it a bit).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Unfortunately, this is not true. Some IR's do send a keycode for TV/PC/SAT/CD, etc.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On those remotes, if you press TV and then press for example Channel UP
&lt;br&gt;&amp;gt; and press Radio, then press Channel UP, the channel UP code will be the same.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; For example, on Hauppauge Grey IR, we have:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;TV&amp;gt;
&lt;br&gt;&amp;gt; [13425.128525] ir_g_keycode_from_table: em28xx IR (em28xx #0): scancode 0x1e1c keycode 0x179
&lt;br&gt;&amp;gt; [13425.136733] ir_input_key_event: em28xx IR (em28xx #0): key event code=377 down=1
&lt;br&gt;&amp;gt; [13425.144170] ir_input_key_event: em28xx IR (em28xx #0): key event code=377 down=0
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;CHANNEL UP&amp;gt;
&lt;br&gt;&amp;gt; [13428.350223] ir_g_keycode_from_table: em28xx IR (em28xx #0): scancode 0x1e20 keycode 0x192
&lt;br&gt;&amp;gt; [13428.358434] ir_input_key_event: em28xx IR (em28xx #0): key event code=402 down=1
&lt;br&gt;&amp;gt; [13428.365871] ir_input_key_event: em28xx IR (em28xx #0): key event code=402 down=0
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;Radio&amp;gt;
&lt;br&gt;&amp;gt; [13430.672266] ir_g_keycode_from_table: em28xx IR (em28xx #0): scancode 0x1e0c keycode 0x181
&lt;br&gt;&amp;gt; [13430.680473] ir_input_key_event: em28xx IR (em28xx #0): key event code=385 down=1
&lt;br&gt;&amp;gt; [13430.687913] ir_input_key_event: em28xx IR (em28xx #0): key event code=385 down=0
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;CHANNEL UP&amp;gt;
&lt;br&gt;&amp;gt; [13433.697268] ir_g_keycode_from_table: em28xx IR (em28xx #0): scancode 0x1e20 keycode 0x192
&lt;br&gt;&amp;gt; [13433.705480] ir_input_key_event: em28xx IR (em28xx #0): key event code=402 down=1
&lt;br&gt;&amp;gt; [13433.712916] ir_input_key_event: em28xx IR (em28xx #0): key event code=402 down=0
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; In this IR, the address is bogus: it is always 0x1e. This scenario is very common with the
&lt;br&gt;&amp;gt; shipped IR's.
&lt;/div&gt;&lt;br&gt;The remote is treating everything as a single integrated device which
&lt;br&gt;is not inconsistent with what has been said. In this case there really
&lt;br&gt;is only one multi-function device not two independent ones.
&lt;br&gt;&lt;br&gt;If you want to control two independent devices you need to buy a
&lt;br&gt;different remote. Remotes are cheap so that's not a big deal.
&lt;br&gt;&lt;br&gt;If you really want to use this remote to control two independent
&lt;br&gt;devices you need user space scripting to split the single device into
&lt;br&gt;two devices and then inject new events into the input layer. This is a
&lt;br&gt;complex case and not in the goal of getting 90% of users to &amp;quot;just
&lt;br&gt;work&amp;quot;.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Instead, a multifunction
&lt;br&gt;&amp;gt;&amp;gt; remote (or two distinct remotes) would send different scan codes[1],
&lt;br&gt;&amp;gt;&amp;gt; which should be mapped to KEY_PLAYCD and KEY_PLAYDVD for example.
&lt;br&gt;&amp;gt;&amp;gt; Btw. the former is already defined, besides the generic KEY_PLAY.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Even if all this worked, user space would need integration with
&lt;br&gt;&amp;gt;&amp;gt; hal/devicekit to open the new input devices appearing on the fly (if
&lt;br&gt;&amp;gt;&amp;gt; it's initiated by the arrival of a scan code belonging to some new
&lt;br&gt;&amp;gt;&amp;gt; protocol), and also be able to decide whether the new event source is
&lt;br&gt;&amp;gt;&amp;gt; for it or not.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Given that commodity home appliances manage not to be confused by
&lt;br&gt;&amp;gt;&amp;gt; multiple or multifunction remotes, decent software should be able to do
&lt;br&gt;&amp;gt;&amp;gt; so as well.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; [1] scan codes in the broadest possible sense, containing vendor,
&lt;br&gt;&amp;gt;&amp;gt; address and whatever, and only treating the case which is possible to
&lt;br&gt;&amp;gt;&amp;gt; handle in principle.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I see two alternatives for it:
&lt;br&gt;&amp;gt;        1) to map a multifunction scancode Address=TV/command=channel up as two
&lt;br&gt;&amp;gt; separate events: KEY_TV | KEY_CHANNELUP and let some userspace program to
&lt;br&gt;&amp;gt; handle it (lirc or other programs that knows IR keycodes);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;        2) to implement Jon's filter idea of splitting one evdev interface into
&lt;br&gt;&amp;gt; several evdevs interface, one for each address.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; We should not forget that simple IR's don't have any key to select the address,
&lt;br&gt;&amp;gt; so the produced codes there will never have KEY_TV/KEY_DVD, etc.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Cheers,
&lt;br&gt;&amp;gt; Mauro.
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Jon Smirl
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26631093&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jonsmirl@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-RFC-v2--Another-approach-to-IR-tp26613180p26631093.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26631073</id>
	<title>Re: [RFC v2] Another approach to IR</title>
	<published>2009-12-03T08:33:56Z</published>
	<updated>2009-12-03T08:33:56Z</updated>
	<author>
		<name>Mauro Carvalho Chehab-6</name>
	</author>
	<content type="html">Ferenc Wagner wrote:
&lt;br&gt;&amp;gt; Mauro Carvalho Chehab &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26631073&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mchehab@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; Dmitry Torokhov wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;gt; The interesting thing is that input.h defines KEY_TV, KEY_PC, KEY_SAT,
&lt;br&gt;&amp;gt; KEY_CD, KEY_TAPE etc., but no corresponding scan codes will ever be sent
&lt;br&gt;&amp;gt; by any remote (ok, I'm stretching it a bit). 
&lt;br&gt;&lt;br&gt;Unfortunately, this is not true. Some IR's do send a keycode for TV/PC/SAT/CD, etc.
&lt;br&gt;&lt;br&gt;On those remotes, if you press TV and then press for example Channel UP
&lt;br&gt;and press Radio, then press Channel UP, the channel UP code will be the same.
&lt;br&gt;&lt;br&gt;For example, on Hauppauge Grey IR, we have:
&lt;br&gt;&lt;br&gt;&amp;lt;TV&amp;gt;
&lt;br&gt;[13425.128525] ir_g_keycode_from_table: em28xx IR (em28xx #0): scancode 0x1e1c keycode 0x179
&lt;br&gt;[13425.136733] ir_input_key_event: em28xx IR (em28xx #0): key event code=377 down=1
&lt;br&gt;[13425.144170] ir_input_key_event: em28xx IR (em28xx #0): key event code=377 down=0
&lt;br&gt;&lt;br&gt;&amp;lt;CHANNEL UP&amp;gt;
&lt;br&gt;[13428.350223] ir_g_keycode_from_table: em28xx IR (em28xx #0): scancode 0x1e20 keycode 0x192
&lt;br&gt;[13428.358434] ir_input_key_event: em28xx IR (em28xx #0): key event code=402 down=1
&lt;br&gt;[13428.365871] ir_input_key_event: em28xx IR (em28xx #0): key event code=402 down=0
&lt;br&gt;&lt;br&gt;&amp;lt;Radio&amp;gt;
&lt;br&gt;[13430.672266] ir_g_keycode_from_table: em28xx IR (em28xx #0): scancode 0x1e0c keycode 0x181
&lt;br&gt;[13430.680473] ir_input_key_event: em28xx IR (em28xx #0): key event code=385 down=1
&lt;br&gt;[13430.687913] ir_input_key_event: em28xx IR (em28xx #0): key event code=385 down=0
&lt;br&gt;&lt;br&gt;&amp;lt;CHANNEL UP&amp;gt;
&lt;br&gt;[13433.697268] ir_g_keycode_from_table: em28xx IR (em28xx #0): scancode 0x1e20 keycode 0x192
&lt;br&gt;[13433.705480] ir_input_key_event: em28xx IR (em28xx #0): key event code=402 down=1
&lt;br&gt;[13433.712916] ir_input_key_event: em28xx IR (em28xx #0): key event code=402 down=0
&lt;br&gt;&lt;br&gt;In this IR, the address is bogus: it is always 0x1e. This scenario is very common with the
&lt;br&gt;shipped IR's.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Instead, a multifunction
&lt;br&gt;&amp;gt; remote (or two distinct remotes) would send different scan codes[1],
&lt;br&gt;&amp;gt; which should be mapped to KEY_PLAYCD and KEY_PLAYDVD for example.
&lt;br&gt;&amp;gt; Btw. the former is already defined, besides the generic KEY_PLAY.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Even if all this worked, user space would need integration with
&lt;br&gt;&amp;gt; hal/devicekit to open the new input devices appearing on the fly (if
&lt;br&gt;&amp;gt; it's initiated by the arrival of a scan code belonging to some new
&lt;br&gt;&amp;gt; protocol), and also be able to decide whether the new event source is
&lt;br&gt;&amp;gt; for it or not.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Given that commodity home appliances manage not to be confused by
&lt;br&gt;&amp;gt; multiple or multifunction remotes, decent software should be able to do
&lt;br&gt;&amp;gt; so as well.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; [1] scan codes in the broadest possible sense, containing vendor,
&lt;br&gt;&amp;gt; address and whatever, and only treating the case which is possible to
&lt;br&gt;&amp;gt; handle in principle.
&lt;/div&gt;&lt;br&gt;I see two alternatives for it:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1) to map a multifunction scancode Address=TV/command=channel up as two
&lt;br&gt;separate events: KEY_TV | KEY_CHANNELUP and let some userspace program to
&lt;br&gt;handle it (lirc or other programs that knows IR keycodes);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2) to implement Jon's filter idea of splitting one evdev interface into
&lt;br&gt;several evdevs interface, one for each address.
&lt;br&gt;&lt;br&gt;We should not forget that simple IR's don't have any key to select the address,
&lt;br&gt;so the produced codes there will never have KEY_TV/KEY_DVD, etc.
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;Mauro.
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-RFC-v2--Another-approach-to-IR-tp26613180p26631073.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26631085</id>
	<title>Re: [RFC v2] Another approach to IR</title>
	<published>2009-12-03T08:03:16Z</published>
	<updated>2009-12-03T08:03:16Z</updated>
	<author>
		<name>Ferenc Wagner-2</name>
	</author>
	<content type="html">Mauro Carvalho Chehab &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26631085&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mchehab@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Dmitry Torokhov wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; On Dec 2, 2009, at 2:56 PM, Dmitry Torokhov wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Now I understand that if 2 remotes send completely identical
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; signals we won't be able to separete them, but in cases when we
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; can I think we should.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; They are the same key events (Lets's say KEY_PLAY) but one is
&lt;br&gt;&amp;gt;&amp;gt; supposed to affect CD player while another DVD player
&lt;br&gt;&amp;gt;&amp;gt; application. Evdev will not be able to distinguish them but if we had
&lt;br&gt;&amp;gt;&amp;gt; 2 separate devices then applications could read from the one thet
&lt;br&gt;&amp;gt;&amp;gt; user assigned to them.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This is clear, but the point is that the two distinguish scancodes can
&lt;br&gt;&amp;gt; (and, in practice, will) be generated by the same IR. For example, my
&lt;br&gt;&amp;gt; Satellite IR produces two different sets of codes. if you press &amp;lt;SAT&amp;gt;,
&lt;br&gt;&amp;gt; all keys you press after that will have the &amp;quot;sat&amp;quot; address. If you
&lt;br&gt;&amp;gt; press &amp;lt;TV&amp;gt;, they'll get a different address.
&lt;/div&gt;&lt;br&gt;The interesting thing is that input.h defines KEY_TV, KEY_PC, KEY_SAT,
&lt;br&gt;KEY_CD, KEY_TAPE etc., but no corresponding scan codes will ever be sent
&lt;br&gt;by any remote (ok, I'm stretching it a bit). &amp;nbsp;Instead, a multifunction
&lt;br&gt;remote (or two distinct remotes) would send different scan codes[1],
&lt;br&gt;which should be mapped to KEY_PLAYCD and KEY_PLAYDVD for example.
&lt;br&gt;Btw. the former is already defined, besides the generic KEY_PLAY.
&lt;br&gt;&lt;br&gt;Even if all this worked, user space would need integration with
&lt;br&gt;hal/devicekit to open the new input devices appearing on the fly (if
&lt;br&gt;it's initiated by the arrival of a scan code belonging to some new
&lt;br&gt;protocol), and also be able to decide whether the new event source is
&lt;br&gt;for it or not.
&lt;br&gt;&lt;br&gt;Given that commodity home appliances manage not to be confused by
&lt;br&gt;multiple or multifunction remotes, decent software should be able to do
&lt;br&gt;so as well.
&lt;br&gt;&lt;br&gt;[1] scan codes in the broadest possible sense, containing vendor,
&lt;br&gt;address and whatever, and only treating the case which is possible to
&lt;br&gt;handle in principle.
&lt;br&gt;-- 
&lt;br&gt;Regards,
&lt;br&gt;Feri.
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-RFC-v2--Another-approach-to-IR-tp26613180p26631085.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26631090</id>
	<title>Re: [RFC v2] Another approach to IR</title>
	<published>2009-12-03T04:02:49Z</published>
	<updated>2009-12-03T04:02:49Z</updated>
	<author>
		<name>Andy Walls-2</name>
	</author>
	<content type="html">On Thu, 2009-12-03 at 08:00 -0200, Mauro Carvalho Chehab wrote:
&lt;br&gt;&amp;gt; Andy Walls wrote:
&lt;br&gt;&amp;gt; &amp;gt; On Wed, 2009-12-02 at 14:55 -0500, Jarod Wilson wrote:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; On Dec 2, 2009, at 2:33 PM, Mauro Carvalho Chehab wrote:
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;gt; Both of those IR devices are/will be encapsulated in a v4l2_subdevice
&lt;br&gt;&amp;gt; &amp;gt; object internally. &amp;nbsp;I was going to write lirc_v4l glue between the
&lt;br&gt;&amp;gt; &amp;gt; v4l2_device/v4l2_subdev_ir_ops and lirc_dev.
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; As for the the I2C chips, I was going to go back and encapsulate those
&lt;br&gt;&amp;gt; &amp;gt; in the v4l2_subdevice object as well, so then my notional lirc_v4l could
&lt;br&gt;&amp;gt; &amp;gt; pick those up too. &amp;nbsp;The I2C subsystem only allows one binding to an I2C
&lt;br&gt;&amp;gt; &amp;gt; client address/name on a bus. &amp;nbsp;So without some new glue like a notional
&lt;br&gt;&amp;gt; &amp;gt; lirc_v4l, it *may* be hard to share between ir-kbd-i2c and lirc_i2c and
&lt;br&gt;&amp;gt; &amp;gt; lirc_zilog.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Maybe you're having a bad time because you may be trying to integrate lirc
&lt;br&gt;&amp;gt; at the wrong place.
&lt;/div&gt;&lt;br&gt;These were just ideas. &amp;nbsp;I haven't done *anything* yet. ;)
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; All devices at V4L tree including ir-kbd-i2c use ir-common.ko 
&lt;br&gt;&amp;gt; (at /drivers/media/common tree) module to communicate to IR's. 
&lt;br&gt;&amp;gt; I'm preparing some patches to extend this also to dvb-usb devices 
&lt;br&gt;&amp;gt; (that uses a close enough infrastructure). 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Also, most of the decoding code are there, in a form of helper routines.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; As the idea is to provide lirc interface to all devices that can work with
&lt;br&gt;&amp;gt; raw pulse/space, the proper place is to write a subroutine there that, once
&lt;br&gt;&amp;gt; called, will make those pulse/space raw codes available to lirc and will
&lt;br&gt;&amp;gt; call the needed decoders to export them also to evdev.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The code at ir-common module was originally built to be used by V4L, but I'm
&lt;br&gt;&amp;gt; porting the code there to be generic enough to be a library that can be used
&lt;br&gt;&amp;gt; by other drivers. So, lirc_zilog and other lirc devices that will need to open
&lt;br&gt;&amp;gt; evdev interfaces after running a decoder can use them.
&lt;/div&gt;&lt;br&gt;I think I see what you are saying (I wish could see look at a whiteboard
&lt;br&gt;somewhere...). &amp;nbsp;Wherever we come through internally to split to 2
&lt;br&gt;different userspace interfaces is fine, if you've got a big picture plan
&lt;br&gt;you think is feasible.
&lt;br&gt;&lt;br&gt;That seems like a bit of perturbation to lirc_zilog and lirc_i2c. &amp;nbsp;My
&lt;br&gt;thought was that lirc_v4l using the standardized v4l2_subdev_ir_ops
&lt;br&gt;interface, and maybe some new calls associted with v4l2_device, could
&lt;br&gt;subsume/unify all the functionality of lirc_i2c, lirc_zilog, ...
&lt;br&gt;lirc_whatever.
&lt;br&gt;&lt;br&gt;Maybe that's just a poorly thought out dream though...
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; Due to that, we shouldn't add v4l2_subdevice there. Nothing prevents to create
&lt;br&gt;&amp;gt; a v4l2-ir-subdev glue if you want to see the IR's as subdevices, but this should
&lt;br&gt;&amp;gt; be implemented as a separate module.
&lt;br&gt;&lt;br&gt;The v4l_subdevice just abstracted the IR hardware into a nice (mental)
&lt;br&gt;box for me -- easier to keep hardware separate from software decoders
&lt;br&gt;and userspace interface logic.
&lt;br&gt;&lt;br&gt;Also, since v4l2_subdevices may have per subdevice /dev nodes and
&lt;br&gt;the /dev/../mcN nodes providing a discovery mechanism due to the Meda
&lt;br&gt;Controller framework, wrapping things in v4l2_subdevice may be handy for
&lt;br&gt;development and debug. &amp;nbsp;Or ... as an additional operational interface to
&lt;br&gt;userspace. :D &amp;nbsp;*ducks and runs for cover*
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Andy
&lt;br&gt;&lt;br&gt;&amp;gt; Cheers,
&lt;br&gt;&amp;gt; Mauro.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-RFC-v2--Another-approach-to-IR-tp26613180p26631090.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26631077</id>
	<title>Re: [RFC v2] Another approach to IR</title>
	<published>2009-12-03T03:20:57Z</published>
	<updated>2009-12-03T03:20:57Z</updated>
	<author>
		<name>Mauro Carvalho Chehab-6</name>
	</author>
	<content type="html">Jon Smirl wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Wed, Dec 2, 2009 at 11:13 PM, Jarod Wilson &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26631077&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jarod@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; On Dec 2, 2009, at 9:48 PM, Trent Piepho wrote:
&lt;br&gt;&amp;gt;&amp;gt; ...
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Now I understand that if 2 remotes send completely identical signals we
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; won't be able to separate them, but in cases when we can I think we
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; should.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I don't have a problem with that, if its a truly desired feature. &amp;nbsp;But
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; for the most part, I don't see the point. &amp;nbsp;Generally, you go from
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; having multiple remotes, one per device (where &amp;quot;device&amp;quot; is your TV,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; amplifier, set top box, htpc, etc), to having a single universal remote
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; that controls all of those devices. &amp;nbsp;But for each device (IR receiver),
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; *one* IR command set. &amp;nbsp;The desire to use multiple distinct remotes with
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; a single IR receiver doesn't make sense to me. &amp;nbsp;Perhaps I'm just not
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; creative enough in my use of IR. &amp;nbsp;:)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Most universal remotes I'm familiar with emulate multiple remotes. &amp;nbsp;I.e.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; my tv remote generates one set of scancodes for the numeric keys. &amp;nbsp;The DVD
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; remote generates a different set. &amp;nbsp;The amplifier remote in &amp;quot;tv mode&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; generates the same codes as the tv remote, and in &amp;quot;dvd mode&amp;quot; the same codes
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; as the dvd remote. &amp;nbsp;From the perspective of the IR receiver there is no
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; difference between having both the DVD and TV remotes, or using the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; aplifier remote to control both devices.
&lt;br&gt;&amp;gt;&amp;gt; Okay, in the above scenario, you've still got a single input device...
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Now, my aplifier remote has a number of modes. &amp;nbsp;Some control devices I
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; have, like &amp;quot;vcr mode&amp;quot;, and there is nothing I can do about that. &amp;nbsp;Some,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; like &amp;quot;md mode&amp;quot; don't control devices I have. &amp;nbsp;That means they are free to
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; do things on the computer. &amp;nbsp;Someone else with the same remote (or any
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; number of remotes that use the same protocol and scancodes) might have
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; different devices.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; So I want my computer to do stuff when I push &amp;quot;JVC MD #xx&amp;quot; keys, but ignore
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;quot;JVC VCR #yyy&amp;quot; yets. &amp;nbsp;Someone with an MD player and not a VCR would want to
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; opposite. &amp;nbsp;Rather than force everyone to create custom keymaps, it's much
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; easier if we can use the standard keymaps from a database of common remotes
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; and simply tell mythtv to only use remote #xxx or not to use remote #yyy.
&lt;br&gt;&amp;gt;&amp;gt; Sure, but the key is that this can't be done automagically. The IR driver has no way of knowing that user A wants JVC MD keys handled and JVC VCR keys ignored, and user B wants vice versa, while user C wants both ignored, etc. This is somewhat tangential to whether or not there's a separate input device per &amp;quot;remote&amp;quot; though. You can use multiple remotes/protocols with a single input device or lirc device already (if the hardware doesn't have to be put explicitly into a mode to listen for that proto, of course, but then its a hardware decoding device feeding a single input device anyway, so...).
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; It sounds like you're thinking of a receiver that came bundled with a
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; remote and that's it. &amp;nbsp;Not someone with a number of remotes that came with
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; different pieces of AV gear that they want to use with their computer.
&lt;br&gt;&amp;gt;&amp;gt; No, I just pick *one* remote and use it for everything, not schizophrenically hopping from one remote to another, expecting them all the be able to control everything. :) Its a hell of a lot easier to find buttons w/o looking at the remote if you always use the same one for everything, for one.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Anyway, I think I'm talking myself in circles. Supporting multiple remotes via multiple input devices (or even via a single input device) isn't at all interesting to me for my own use, but if there really is demand for such support (and it appears there is), then fine, lets do it.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Simple use case:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; You have a multifunction remote. Press the CABLE key - it sends out
&lt;br&gt;&amp;gt; commands that control the cable box, press the TV key - now the
&lt;br&gt;&amp;gt; commands control the TV, press CD - now the CD player, etc.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Now imagine a headless Linux box running a music server and a home
&lt;br&gt;&amp;gt; automation app. Press the CD key - commands get routed to the music
&lt;br&gt;&amp;gt; server, press the AUX key - commands get routed to the home automation
&lt;br&gt;&amp;gt; app.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; This is accomplished by recognizing the device code part of the IR
&lt;br&gt;&amp;gt; signal and figuring out that there are two different device codes in
&lt;br&gt;&amp;gt; use. The commands of then routed to two evdev devices corresponding to
&lt;br&gt;&amp;gt; the two different device codes.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Using things like Alt-Tab to switch apps is impossible. There's no
&lt;br&gt;&amp;gt; screen to look at.
&lt;/div&gt;&lt;br&gt;This usecase makes sense to me.
&lt;br&gt;&lt;br&gt;With the risk of repeating myself, you don't have two physical remotes.
&lt;br&gt;The needed feature is a way to split one source of input events (that
&lt;br&gt;happens to be an infrared remote, but it could also be any other type of input
&lt;br&gt;device, like a bluetooth remote) into several different evdev interfaces,
&lt;br&gt;based on scancode groups. 
&lt;br&gt;&lt;br&gt;Also, as you're thinking on 64 bits scancodes, this also means that the
&lt;br&gt;current evdev KABI and API will require changes to support bigger scancodes.
&lt;br&gt;&lt;br&gt;Anyway, IMO, this subject should be handled as a different requirement than
&lt;br&gt;integrating the lirc drivers.
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;Mauro.
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-RFC-v2--Another-approach-to-IR-tp26613180p26631077.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26631070</id>
	<title>Re: [RFC v2] Another approach to IR</title>
	<published>2009-12-03T03:09:36Z</published>
	<updated>2009-12-03T03:09:36Z</updated>
	<author>
		<name>Mauro Carvalho Chehab-6</name>
	</author>
	<content type="html">Andy Walls wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Wed, 2009-12-02 at 14:55 -0500, Jarod Wilson wrote:
&lt;br&gt;&amp;gt;&amp;gt; On Dec 2, 2009, at 2:33 PM, Mauro Carvalho Chehab wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Dmitry Torokhov wrote:
&lt;br&gt;&amp;gt;&amp;gt; ...
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; (for each remote/substream that they can recognize).
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I'm assuming that, by remote, you're referring to a remote receiver (and not to 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; the remote itself), right?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; If we could separate by remote transmitter that would be the best I
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; think, but I understand that it is rarely possible?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; IMHO, the better is to use a separate interface for the IR transmitters,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; on the devices that support this feature. There are only a few devices
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I'm aware of that are able to transmit IR codes.
&lt;br&gt;&amp;gt;&amp;gt; If I'm thinking clearly, there are only three lirc kernel drivers that
&lt;br&gt;&amp;gt;&amp;gt; support transmit, lirc_mceusb, lirc_zilog and lirc_serial. The mceusb
&lt;br&gt;&amp;gt;&amp;gt; driver was posted, so I won't rehash what it is here. The zilog driver
&lt;br&gt;&amp;gt;&amp;gt; binds to a Zilog z80 microprocessor thingy (iirc) exposed via i2c,
&lt;br&gt;&amp;gt;&amp;gt; found on many Hauppauge v4l/dvb devices (PVR-150, HVR-1600, HD-PVR,
&lt;br&gt;&amp;gt;&amp;gt; etc). The serial driver is fairly self-explanatory as well.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; There are also a few userspace-driven devices that do transmit, but
&lt;br&gt;&amp;gt;&amp;gt; I'm assuming they're (currently) irrelevant to this discussion.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I've got the CX23888 integrated IR Rx done and Tx nearly done. &amp;nbsp;I was
&lt;br&gt;&amp;gt; waiting to see how kfifo and lirc_dev panned out before making the
&lt;br&gt;&amp;gt; interface to userspace.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The CX23885, CX23418, and CX2584x integrated IR is essentially the same.
&lt;br&gt;&amp;gt; I hope to have CX23885 IR done by Christmas.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Both of those IR devices are/will be encapsulated in a v4l2_subdevice
&lt;br&gt;&amp;gt; object internally. &amp;nbsp;I was going to write lirc_v4l glue between the
&lt;br&gt;&amp;gt; v4l2_device/v4l2_subdev_ir_ops and lirc_dev.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; As for the the I2C chips, I was going to go back and encapsulate those
&lt;br&gt;&amp;gt; in the v4l2_subdevice object as well, so then my notional lirc_v4l could
&lt;br&gt;&amp;gt; pick those up too. &amp;nbsp;The I2C subsystem only allows one binding to an I2C
&lt;br&gt;&amp;gt; client address/name on a bus. &amp;nbsp;So without some new glue like a notional
&lt;br&gt;&amp;gt; lirc_v4l, it *may* be hard to share between ir-kbd-i2c and lirc_i2c and
&lt;br&gt;&amp;gt; lirc_zilog.
&lt;/div&gt;&lt;br&gt;The better is to add the lirc glue at ir-common module. There, we have the support
&lt;br&gt;functions used by all V4L devices, and they'll be expanded to cover also
&lt;br&gt;dvb-usb, as soon as I can find some time to do a patch for it.
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;Mauro.
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-RFC-v2--Another-approach-to-IR-tp26613180p26631070.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26631069</id>
	<title>Re: [RFC v2] Another approach to IR</title>
	<published>2009-12-03T03:09:14Z</published>
	<updated>2009-12-03T03:09:14Z</updated>
	<author>
		<name>Mauro Carvalho Chehab-6</name>
	</author>
	<content type="html">Jon Smirl wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Wed, Dec 2, 2009 at 9:22 PM, Mauro Carvalho Chehab
&lt;br&gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26631069&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mchehab@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; Jon Smirl wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; On Wed, Dec 2, 2009 at 3:04 PM, Jarod Wilson &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26631069&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jarod@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; On Dec 2, 2009, at 2:56 PM, Dmitry Torokhov wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; On Wed, Dec 02, 2009 at 02:22:18PM -0500, Jarod Wilson wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; On 12/2/09 12:30 PM, Jon Smirl wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; (for each remote/substream that they can recognize).
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I'm assuming that, by remote, you're referring to a remote receiver (and not to
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; the remote itself), right?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; If we could separate by remote transmitter that would be the best I
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; think, but I understand that it is rarely possible?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; The code I posted using configfs did that. Instead of making apps IR
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; aware it mapped the vendor/device/command triplets into standard Linux
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; keycodes. &amp;nbsp;Each remote was its own evdev device.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Note, of course, that you can only do that iff each remote uses distinct
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; triplets. A good portion of mythtv users use a universal of some sort,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; programmed to emulate another remote, such as the mce remote bundled
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; with mceusb transceivers, or the imon remote bundled with most imon
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; receivers. I do just that myself.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Personally, I've always considered the driver/interface to be the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; receiver, not the remote. The lirc drivers operate at the receiver
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; level, anyway, and the distinction between different remotes is made by
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; the lirc daemon.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; The fact that lirc does it this way does not necessarily mean it is the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; most corerct way.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; No, I know that, I'm just saying that's how I've always looked at it, and that's how lirc does it right now, not that it must be that way.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Do you expect all bluetooth input devices be presented
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; as a single blob just because they happen to talk to the sane receiver
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; in yoru laptop? Do you expect your USB mouse and keyboard be merged
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; together just because they end up being serviced by the same host
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; controller? If not why remotes should be any different?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; A bluetooth remote has a specific device ID that the receiver has to pair with. Your usb mouse and keyboard each have specific device IDs. A usb IR *receiver* has a specific device ID, the remotes do not. So there's the major difference from your examples.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Actually remotes do have an ID. They all transmit vendor/device pairs
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; which is exactly how USB works.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Well, the description of NEC and RC5 protocol at &lt;a href=&quot;http://www.sbprojects.com/knowledge/ir/rc5.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.sbprojects.com/knowledge/ir/rc5.htm&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; doesn't mention any vendor/device pair, nor I'm able to get them with the IR hardware decoders
&lt;br&gt;&amp;gt;&amp;gt; I have.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Some of the protocols were not intended to be multi-vendor &amp;nbsp;- the
&lt;br&gt;&amp;gt; vendor is implicit in the protocol encoding. You don't have to split
&lt;br&gt;&amp;gt; the IR codes into vendor/device/command triplets. I just do that
&lt;br&gt;&amp;gt; because it is convenient to think of them that way. It is equally
&lt;br&gt;&amp;gt; valid to treat them as a 64b integers and use four bits of the int to
&lt;br&gt;&amp;gt; encode the protocol. &amp;nbsp;It should really be a quad
&lt;br&gt;&amp;gt; protocol/vendor/device/command and some of the fields may be missing.
&lt;br&gt;&amp;gt; Bottom line, you are looking for unique codes how the fields are split
&lt;br&gt;&amp;gt; up doesn't really matter.
&lt;/div&gt;&lt;br&gt;Currently, there aren't any in-kernel driver that support 64 bit IR's.
&lt;br&gt;They support only up to 16 bits. So, we have only address (device)/command. 
&lt;br&gt;As I said before, AFAIK, only RC6 mode 6 remotes support 64 bits. 
&lt;br&gt;&lt;br&gt;As pointed by Andy, it is risky to support such protocol in kernel,
&lt;br&gt;since you won't be able to ship the kernel to countries where RC6 patents 
&lt;br&gt;got accepted, or you would need.
&lt;br&gt;&lt;br&gt;&amp;gt; A fixed protocol receiver is more of a challenge. You have to figure
&lt;br&gt;&amp;gt; out how to make a universal remote transmit device codes for a device
&lt;br&gt;&amp;gt; you don't already own that is also encoded in the protocol your
&lt;br&gt;&amp;gt; hardware supports. 
&lt;br&gt;&amp;gt; There's nothing we can do about that problem in
&lt;br&gt;&amp;gt; Linux, its a side effect of fixed protocol decode hardware. 
&lt;br&gt;&lt;br&gt;With hardware decoders, you're limited to the supported protocols, but yet,
&lt;br&gt;you can use a different scancode than the one that comes with the shipped
&lt;br&gt;device.
&lt;br&gt;&lt;br&gt;If you take a look, for example, at the NEC protocol decoder we have on
&lt;br&gt;drivers/media/video/saa7134/saa7134-input.c [1], you'll see that the
&lt;br&gt;tasklet (nec_task) holds CPU control up to 76.5 ms, in order to be able
&lt;br&gt;to receive the entire sequence at the GPIO port. Fortunately, on the device
&lt;br&gt;where this decoder is called (Avermedia M135A), we can trigger the start
&lt;br&gt;of the IR code via IRQ.
&lt;br&gt;&lt;br&gt;[1]&lt;a href=&quot;http://git.kernel.org/?p=linux/kernel/git/mchehab/linux-2.6.git;a=blob;f=drivers/media/video/saa7134/saa7134-input.c;h=6e219c2db8419013ab3ced30470ad1c19431974a;hb=HEAD&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://git.kernel.org/?p=linux/kernel/git/mchehab/linux-2.6.git;a=blob;f=drivers/media/video/saa7134/saa7134-input.c;h=6e219c2db8419013ab3ced30470ad1c19431974a;hb=HEAD&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;In this specific decoder I've implemented it some time ago. I think
&lt;br&gt;I tried first to get the pulse/space width using just IRQ without the tasklet,
&lt;br&gt;but the lengths weren't precise enough for decoding. Also, if you have a bad
&lt;br&gt;contact at the IR sensor connector, as it is directly connected to an IRQ pin,
&lt;br&gt;you may end by hanging the machine, if the code is not carefully written.
&lt;br&gt;&lt;br&gt;I remember I had some bad time due to the bad contacts at the IR sensor
&lt;br&gt;with the sample I had available for implementing that IR.
&lt;br&gt;&lt;br&gt;Btw, looking at that code, while it is not impossible to split the 
&lt;br&gt;IR pulse/space measures from the NEC decoder itself, and make it generic
&lt;br&gt;to support other protocols, it is not a trivial task, and may result on
&lt;br&gt;a less stable driver. Without splitting the protocol decoder, even being
&lt;br&gt;able to store raw pulse/space data on some fifo, the driver will still
&lt;br&gt;limit the protocol for that board to NEC (there is a similar code for RC5
&lt;br&gt;there also, using some generic functions [2]).
&lt;br&gt;&lt;br&gt;[2]&lt;a href=&quot;http://git.kernel.org/?p=linux/kernel/git/mchehab/linux-2.6.git;a=blob;f=drivers/media/common/ir-functions.c;h=16792a68a44951e1bc1c2cbb1c9da27a2b6b2722;hb=HEAD&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://git.kernel.org/?p=linux/kernel/git/mchehab/linux-2.6.git;a=blob;f=drivers/media/common/ir-functions.c;h=16792a68a44951e1bc1c2cbb1c9da27a2b6b2722;hb=HEAD&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;The advantage of the NEC decoding approach on saa7134 is that you know for
&lt;br&gt;sure how much time it is required to get the entire code. So, the code 
&lt;br&gt;can easily abort the reception of a bad code. The disadvantage is that 
&lt;br&gt;only one protocol can be decoded at the same time.
&lt;br&gt;&lt;br&gt;The same problem also happens with almost all in-kernel drivers: the decoders
&lt;br&gt;for raw mode were constructed to work with just one pulse/space code at the
&lt;br&gt;same time. A conversion into a generic code can happen, but it will require
&lt;br&gt;several tests to be sure that they won't cause undesirable side-effects.
&lt;br&gt;&lt;br&gt;The advantage of hardware decoders is that you don't need to be polling the
&lt;br&gt;IR serial port at a high rate, as you'll get directly the code. So, you'll
&lt;br&gt;free the CPU to do something else.
&lt;br&gt;&lt;br&gt;&amp;gt; You're just going to have to start guessing devices in the remote until you
&lt;br&gt;&amp;gt; find one that uses your fixed protocol and doesn't also activate the
&lt;br&gt;&amp;gt; devices you own. We can put suggestions in the doc when working
&lt;br&gt;&amp;gt; devices are discovered. With a universal receiver the problem is
&lt;br&gt;&amp;gt; simpler, just pick a device you don't own - the encoding protocol
&lt;br&gt;&amp;gt; doesn't matter. These are generic problems with IR that are the same
&lt;br&gt;&amp;gt; no matter how things get implemented in Linux.
&lt;br&gt;&lt;br&gt;Yes, provided that we can successfully change the drivers to split decoders from
&lt;br&gt;pulse/space counting.
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;Mauro.
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-RFC-v2--Another-approach-to-IR-tp26613180p26631069.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26631071</id>
	<title>Re: [RFC v2] Another approach to IR</title>
	<published>2009-12-03T02:00:45Z</published>
	<updated>2009-12-03T02:00:45Z</updated>
	<author>
		<name>Mauro Carvalho Chehab-6</name>
	</author>
	<content type="html">Andy Walls wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Wed, 2009-12-02 at 14:55 -0500, Jarod Wilson wrote:
&lt;br&gt;&amp;gt;&amp;gt; On Dec 2, 2009, at 2:33 PM, Mauro Carvalho Chehab wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Dmitry Torokhov wrote:
&lt;br&gt;&amp;gt;&amp;gt; ...
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; (for each remote/substream that they can recognize).
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I'm assuming that, by remote, you're referring to a remote receiver (and not to 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; the remote itself), right?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; If we could separate by remote transmitter that would be the best I
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; think, but I understand that it is rarely possible?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; IMHO, the better is to use a separate interface for the IR transmitters,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; on the devices that support this feature. There are only a few devices
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I'm aware of that are able to transmit IR codes.
&lt;br&gt;&amp;gt;&amp;gt; If I'm thinking clearly, there are only three lirc kernel drivers that
&lt;br&gt;&amp;gt;&amp;gt; support transmit, lirc_mceusb, lirc_zilog and lirc_serial. The mceusb
&lt;br&gt;&amp;gt;&amp;gt; driver was posted, so I won't rehash what it is here. The zilog driver
&lt;br&gt;&amp;gt;&amp;gt; binds to a Zilog z80 microprocessor thingy (iirc) exposed via i2c,
&lt;br&gt;&amp;gt;&amp;gt; found on many Hauppauge v4l/dvb devices (PVR-150, HVR-1600, HD-PVR,
&lt;br&gt;&amp;gt;&amp;gt; etc). The serial driver is fairly self-explanatory as well.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; There are also a few userspace-driven devices that do transmit, but
&lt;br&gt;&amp;gt;&amp;gt; I'm assuming they're (currently) irrelevant to this discussion.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I've got the CX23888 integrated IR Rx done and Tx nearly done. &amp;nbsp;I was
&lt;br&gt;&amp;gt; waiting to see how kfifo and lirc_dev panned out before making the
&lt;br&gt;&amp;gt; interface to userspace.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The CX23885, CX23418, and CX2584x integrated IR is essentially the same.
&lt;br&gt;&amp;gt; I hope to have CX23885 IR done by Christmas.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Both of those IR devices are/will be encapsulated in a v4l2_subdevice
&lt;br&gt;&amp;gt; object internally. &amp;nbsp;I was going to write lirc_v4l glue between the
&lt;br&gt;&amp;gt; v4l2_device/v4l2_subdev_ir_ops and lirc_dev.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; As for the the I2C chips, I was going to go back and encapsulate those
&lt;br&gt;&amp;gt; in the v4l2_subdevice object as well, so then my notional lirc_v4l could
&lt;br&gt;&amp;gt; pick those up too. &amp;nbsp;The I2C subsystem only allows one binding to an I2C
&lt;br&gt;&amp;gt; client address/name on a bus. &amp;nbsp;So without some new glue like a notional
&lt;br&gt;&amp;gt; lirc_v4l, it *may* be hard to share between ir-kbd-i2c and lirc_i2c and
&lt;br&gt;&amp;gt; lirc_zilog.
&lt;/div&gt;&lt;br&gt;Maybe you're having a bad time because you may be trying to integrate lirc
&lt;br&gt;at the wrong place.
&lt;br&gt;&lt;br&gt;All devices at V4L tree including ir-kbd-i2c use ir-common.ko 
&lt;br&gt;(at /drivers/media/common tree) module to communicate to IR's. 
&lt;br&gt;I'm preparing some patches to extend this also to dvb-usb devices 
&lt;br&gt;(that uses a close enough infrastructure). 
&lt;br&gt;&lt;br&gt;Also, most of the decoding code are there, in a form of helper routines.
&lt;br&gt;&lt;br&gt;As the idea is to provide lirc interface to all devices that can work with
&lt;br&gt;raw pulse/space, the proper place is to write a subroutine there that, once
&lt;br&gt;called, will make those pulse/space raw codes available to lirc and will
&lt;br&gt;call the needed decoders to export them also to evdev.
&lt;br&gt;&lt;br&gt;The code at ir-common module was originally built to be used by V4L, but I'm
&lt;br&gt;porting the code there to be generic enough to be a library that can be used
&lt;br&gt;by other drivers. So, lirc_zilog and other lirc devices that will need to open
&lt;br&gt;evdev interfaces after running a decoder can use them.
&lt;br&gt;&lt;br&gt;Due to that, we shouldn't add v4l2_subdevice there. Nothing prevents to create
&lt;br&gt;a v4l2-ir-subdev glue if you want to see the IR's as subdevices, but this should
&lt;br&gt;be implemented as a separate module.
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;Mauro.
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-RFC-v2--Another-approach-to-IR-tp26613180p26631071.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26631080</id>
	<title>Re: [RFC v2] Another approach to IR</title>
	<published>2009-12-02T21:18:54Z</published>
	<updated>2009-12-02T21:18:54Z</updated>
	<author>
		<name>Jon Smirl</name>
	</author>
	<content type="html">On Wed, Dec 2, 2009 at 11:13 PM, Jarod Wilson &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26631080&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jarod@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Dec 2, 2009, at 9:48 PM, Trent Piepho wrote:
&lt;br&gt;&amp;gt; ...
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Now I understand that if 2 remotes send completely identical signals we
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; won't be able to separate them, but in cases when we can I think we
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; should.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I don't have a problem with that, if its a truly desired feature.  But
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; for the most part, I don't see the point.  Generally, you go from
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; having multiple remotes, one per device (where &amp;quot;device&amp;quot; is your TV,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; amplifier, set top box, htpc, etc), to having a single universal remote
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; that controls all of those devices.  But for each device (IR receiver),
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; *one* IR command set.  The desire to use multiple distinct remotes with
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; a single IR receiver doesn't make sense to me.  Perhaps I'm just not
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; creative enough in my use of IR.  :)
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Most universal remotes I'm familiar with emulate multiple remotes.  I.e.
&lt;br&gt;&amp;gt;&amp;gt; my tv remote generates one set of scancodes for the numeric keys.  The DVD
&lt;br&gt;&amp;gt;&amp;gt; remote generates a different set.  The amplifier remote in &amp;quot;tv mode&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt; generates the same codes as the tv remote, and in &amp;quot;dvd mode&amp;quot; the same codes
&lt;br&gt;&amp;gt;&amp;gt; as the dvd remote.  From the perspective of the IR receiver there is no
&lt;br&gt;&amp;gt;&amp;gt; difference between having both the DVD and TV remotes, or using the
&lt;br&gt;&amp;gt;&amp;gt; aplifier remote to control both devices.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Okay, in the above scenario, you've still got a single input device...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Now, my aplifier remote has a number of modes.  Some control devices I
&lt;br&gt;&amp;gt;&amp;gt; have, like &amp;quot;vcr mode&amp;quot;, and there is nothing I can do about that.  Some,
&lt;br&gt;&amp;gt;&amp;gt; like &amp;quot;md mode&amp;quot; don't control devices I have.  That means they are free to
&lt;br&gt;&amp;gt;&amp;gt; do things on the computer.  Someone else with the same remote (or any
&lt;br&gt;&amp;gt;&amp;gt; number of remotes that use the same protocol and scancodes) might have
&lt;br&gt;&amp;gt;&amp;gt; different devices.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; So I want my computer to do stuff when I push &amp;quot;JVC MD #xx&amp;quot; keys, but ignore
&lt;br&gt;&amp;gt;&amp;gt; &amp;quot;JVC VCR #yyy&amp;quot; yets.  Someone with an MD player and not a VCR would want to
&lt;br&gt;&amp;gt;&amp;gt; opposite.  Rather than force everyone to create custom keymaps, it's much
&lt;br&gt;&amp;gt;&amp;gt; easier if we can use the standard keymaps from a database of common remotes
&lt;br&gt;&amp;gt;&amp;gt; and simply tell mythtv to only use remote #xxx or not to use remote #yyy.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Sure, but the key is that this can't be done automagically. The IR driver has no way of knowing that user A wants JVC MD keys handled and JVC VCR keys ignored, and user B wants vice versa, while user C wants both ignored, etc. This is somewhat tangential to whether or not there's a separate input device per &amp;quot;remote&amp;quot; though. You can use multiple remotes/protocols with a single input device or lirc device already (if the hardware doesn't have to be put explicitly into a mode to listen for that proto, of course, but then its a hardware decoding device feeding a single input device anyway, so...).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; It sounds like you're thinking of a receiver that came bundled with a
&lt;br&gt;&amp;gt;&amp;gt; remote and that's it.  Not someone with a number of remotes that came with
&lt;br&gt;&amp;gt;&amp;gt; different pieces of AV gear that they want to use with their computer.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; No, I just pick *one* remote and use it for everything, not schizophrenically hopping from one remote to another, expecting them all the be able to control everything. :) Its a hell of a lot easier to find buttons w/o looking at the remote if you always use the same one for everything, for one.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Anyway, I think I'm talking myself in circles. Supporting multiple remotes via multiple input devices (or even via a single input device) isn't at all interesting to me for my own use, but if there really is demand for such support (and it appears there is), then fine, lets do it.
&lt;/div&gt;&lt;br&gt;Simple use case:
&lt;br&gt;&lt;br&gt;You have a multifunction remote. Press the CABLE key - it sends out
&lt;br&gt;commands that control the cable box, press the TV key - now the
&lt;br&gt;commands control the TV, press CD - now the CD player, etc.
&lt;br&gt;&lt;br&gt;Now imagine a headless Linux box running a music server and a home
&lt;br&gt;automation app. Press the CD key - commands get routed to the music
&lt;br&gt;server, press the AUX key - commands get routed to the home automation
&lt;br&gt;app.
&lt;br&gt;&lt;br&gt;This is accomplished by recognizing the device code part of the IR
&lt;br&gt;signal and figuring out that there are two different device codes in
&lt;br&gt;use. The commands of then routed to two evdev devices corresponding to
&lt;br&gt;the two different device codes.
&lt;br&gt;&lt;br&gt;Using things like Alt-Tab to switch apps is impossible. There's no
&lt;br&gt;screen to look at.
&lt;br&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; Jarod Wilson
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26631080&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jarod@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Jon Smirl
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26631080&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jonsmirl@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-RFC-v2--Another-approach-to-IR-tp26613180p26631080.html" />
</entry>

</feed>
