Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755614AbZLBVOP (ORCPT ); Wed, 2 Dec 2009 16:14:15 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755026AbZLBVOO (ORCPT ); Wed, 2 Dec 2009 16:14:14 -0500 Received: from mx1.redhat.com ([209.132.183.28]:19585 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753800AbZLBVON (ORCPT ); Wed, 2 Dec 2009 16:14:13 -0500 Message-ID: <4B16D87F.7080701@redhat.com> Date: Wed, 02 Dec 2009 19:13:35 -0200 From: Mauro Carvalho Chehab User-Agent: Thunderbird 2.0.0.22 (X11/20090609) MIME-Version: 1.0 To: Dmitry Torokhov CC: Jarod Wilson , Jarod Wilson , Jon Smirl , Devin Heitmueller , Maxim Levitsky , awalls@radix.net, j@jannau.net, khc@pm.waw.pl, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, lirc-list@lists.sourceforge.net, superm1@ubuntu.com, Christoph Bartelmus Subject: Re: [RFC v2] Another approach to IR References: <4B15852D.4050505@redhat.com> <20091202093803.GA8656@core.coreip.homeip.net> <4B16614A.3000208@redhat.com> <20091202171059.GC17839@core.coreip.homeip.net> <9e4733910912020930t3c9fe973k16fd353e916531a4@mail.gmail.com> <4B16BE6A.7000601@redhat.com> <20091202195634.GB22689@core.coreip.homeip.net> <2D11378A-041C-4B56-91FF-3E62F5F19753@wilsonet.com> <20091202201404.GD22689@core.coreip.homeip.net> <4B16CCD7.20601@redhat.com> <20091202205323.GF22689@core.coreip.homeip.net> In-Reply-To: <20091202205323.GF22689@core.coreip.homeip.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3372 Lines: 62 Dmitry Torokhov wrote: > On Wed, Dec 02, 2009 at 06:23:51PM -0200, Mauro Carvalho Chehab wrote: >> Dmitry Torokhov wrote: >>> On Wed, Dec 02, 2009 at 03:04:30PM -0500, Jarod Wilson wrote: >>>> On Dec 2, 2009, at 2:56 PM, Dmitry Torokhov wrote: >>>>> Now I understand that if 2 remotes send completely identical signals we >>>>> won't be able to separete them, but in cases when we can I think we >>>>> should. >>>> I don't have a problem with that, if its a truly desired feature. But >>>> for the most part, I don't see the point. Generally, you go from >>>> having multiple remotes, one per device (where "device" is your TV, >>>> amplifier, set top box, htpc, etc), to having a single universal >>>> remote that controls all of those devices. But for each device (IR >>>> receiver), *one* IR command set. The desire to use multiple distinct >>>> remotes with a single IR receiver doesn't make sense to me. Perhaps >>>> I'm just not creative enough in my use of IR. :) >>> Didn't Jon posted his example whith programmable remote pretending to be >>> several separate remotes (depending on the mode of operation) so that >>> several devices/applications can be controlled without interfering with >>> each other? >>> >> From what I understood, he is using the same physical remote, but creating different >> IR groups of keys on it, each group meant to be used by a different application. >> >> For such usage, some software will need to filter the scancode group and send >> them only for a certain application. This can be done easily by using lirc, >> purely in userspace. >> >> Another alternative (that will also work for multimedia keys on a keyboard) is >> to add a filtering subsystem at evdev that will send certain events for just certain >> PID's. > > They are the same key events (Lets's say KEY_PLAY) but one is supposed > to affect CD player while another DVD player application. Evdev will not > be able to distinguish them but if we had 2 separate devices then > applications could read from the one thet user assigned to them. This is clear, but the point is that the two distinguish scancodes can (and, in practice, will) be generated by the same IR. For example, my Satellite IR produces two different sets of codes. if you press , all keys you press after that will have the "sat" address. If you press , they'll get a different address. So, the needed feature is not to really distinguish two different IR's, but to allow to create groups of scancodes that will be directed to a distinct interface. I won't object about such interface, but the default should be to have just one interface and having all conversion applied to that interface. Maybe we can have a separate module for IR evdev filtering to fulfill this need. Basically, such module will get the events from one input interface and create an arbitrary number of evdev devices, and will apply different scancode->keycode tables for each different interfaces. I don't see why to limit the input interface to be IR. It can eventually be any input interface (bluetooth, keyboard, PS/3 control, Wii control, ...). Cheers, Mauro. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/