From mboxrd@z Thu Jan 1 00:00:00 1970 From: Devin Heitmueller Subject: Re: [RFC] What are the goals for the architecture of an in-kernel IR system? Date: Fri, 9 Apr 2010 17:55:28 -0400 Message-ID: References: <9e4733910912060952h4aad49dake8e8486acb6566bc@mail.gmail.com> <9e4733910912151338n62b30af5i35f8d0963e6591c@mail.gmail.com> <4BAB7659.1040408@redhat.com> <201004090821.10435.james@albanarts.com> <1270810226.3764.34.camel@palomino.walls.org> <4BBF253A.8030406@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from mail-gw0-f46.google.com ([74.125.83.46]:61394 "EHLO mail-gw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752460Ab0DIVza (ORCPT ); Fri, 9 Apr 2010 17:55:30 -0400 In-Reply-To: <4BBF253A.8030406@redhat.com> Sender: linux-input-owner@vger.kernel.org List-Id: linux-input@vger.kernel.org To: Mauro Carvalho Chehab Cc: Andy Walls , James Hogan , Jon Smirl , Pavel Machek , Dmitry Torokhov , Krzysztof Halasa , hermann pitton , Christoph Bartelmus , j@jannau.net, jarod@redhat.com, jarod@wilsonet.com, kraxel@redhat.com, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, superm1@ubuntu.com On Fri, Apr 9, 2010 at 9:01 AM, Mauro Carvalho Chehab wrote: > [1] Basically, a keycode (like KEY_POWER) could be used to wake up the machine. So, by > associating some scancode to KEY_POWER via ir-core, the driver can program the hardware > to wake up the machine with the corresponding scancode. I can't see a need for a change at > ir-core to implement such behavior. Of course, some attributes at sysfs can be added > to enable or disable this feature, and to control the associated logic, but we first > need to implement the wakeup feature at the hardware driver, and then adding some logic > at ir-core to add the non-hardware specific code there. Really? Have you actually seen any hardware where a particular scan code can be used to wake up the hardware? The only hardware I have seen has the ability to unsuspend on arrival of IR traffic, but you didn't have the granularity to dictate that it only wake up on particular scancodes. Devin -- Devin J. Heitmueller - Kernel Labs http://www.kernellabs.com