Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753637AbZK0EdS (ORCPT ); Thu, 26 Nov 2009 23:33:18 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753393AbZK0EdS (ORCPT ); Thu, 26 Nov 2009 23:33:18 -0500 Received: from mail-pw0-f42.google.com ([209.85.160.42]:58254 "EHLO mail-pw0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753270AbZK0EdQ (ORCPT ); Thu, 26 Nov 2009 23:33:16 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:content-transfer-encoding :in-reply-to:user-agent; b=pKcHcERoqIZYPcaNyM+NpHfV4jlt411M9WRwH4af3sVhqKhvF4DLyM92gy8wXx6D9m GKn4Uhbg9PtC7F+WDcE8yt19Z5+3W1jGHbkeG9T8BMA+IUh44v2knI/SmVwJkYTI2QbX jgf2R6p0BJDtvcE2pHZRxhJ9rWLJ1u3UBi7JM= Date: Thu, 26 Nov 2009 20:33:18 -0800 From: Dmitry Torokhov To: Jon Smirl Cc: Jarod Wilson , Krzysztof Halasa , Mauro Carvalho Chehab , Jarod Wilson , linux-kernel@vger.kernel.org, Mario Limonciello , linux-input@vger.kernel.org, linux-media@vger.kernel.org, Janne Grunau , Christoph Bartelmus Subject: Re: [RFC] Should we create a raw input interface for IR's ? - Was: Re: [PATCH 1/3 v2] lirc core device driver infrastructure Message-ID: <20091127043318.GK6936@core.coreip.homeip.net> References: <4B0A765F.7010204@redhat.com> <4B0A81BF.4090203@redhat.com> <20091123173726.GE17813@core.coreip.homeip.net> <4B0B6321.3050001@wilsonet.com> <20091126053109.GE23244@core.coreip.homeip.net> <20091126232311.GD6936@core.coreip.homeip.net> <4B0F3963.8040701@wilsonet.com> <9e4733910911261908l122263c3x68854e8a00334eae@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <9e4733910911261908l122263c3x68854e8a00334eae@mail.gmail.com> User-Agent: Mutt/1.5.19 (2009-01-05) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1877 Lines: 43 On Thu, Nov 26, 2009 at 10:08:29PM -0500, Jon Smirl wrote: > On Thu, Nov 26, 2009 at 9:28 PM, Jarod Wilson wrote: > >> No, at present we expect 1:1 button->event mapping leaving macro > >> expansion (i.e. KEY_PROG1 -> ?"do some multi-step sequence" to > >> userspace). > > > > Hm. So ctrl-x, alt-tab, etc. would have to be faked in userspace somehow. > > Bummer. > > That is scripting. Scripting always needs to be done in user space. > > In the code I posted there is one evdev device for each configured > remote. Mapped single keycodes are presented on these devices for each > IR burst. There is no device for the IR receiver. A LIRC type process > could watch these devices and then execute scripts based on the > keycodes reported. > > The configfs model is very flexible. You could make a "remote" that > translates the UP/DOWN buttons of several different remotes into > KEY_UP/DOWN. That lets several different remotes control the same > app. > > Sure it is clunky to play with IR hex codes and keycodes in the > configfs mapping dir. If you don't like it write a GUI app for > manipulating the codes. GUI would then generate a script for udev to > run which builds the configfs entries. > > Maybe I should rename those directory entries to "app" instead of > "remote". They contain the mappings from IR hex codes to keycodes that > an app is interested in. Usually there is a 1:1 correspondence between > remote and app but there doesn't have to be. > Maybe we should revisit Jon's patchset as well. Regretfully I did not have time to do that when it was submitted the last time. -- Dmitry -- 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/