Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756419AbYAGOu1 (ORCPT ); Mon, 7 Jan 2008 09:50:27 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753605AbYAGOuT (ORCPT ); Mon, 7 Jan 2008 09:50:19 -0500 Received: from hobbit.corpit.ru ([81.13.94.6]:23548 "EHLO hobbit.corpit.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752640AbYAGOuS (ORCPT ); Mon, 7 Jan 2008 09:50:18 -0500 Message-ID: <47823C28.8010800@msgid.tls.msk.ru> Date: Mon, 07 Jan 2008 17:50:16 +0300 From: Michael Tokarev Organization: Telecom Service, JSC User-Agent: Icedove 1.5.0.14pre (X11/20071018) MIME-Version: 1.0 To: Dmitry Torokhov CC: Andrey Borzenkov , linux-kernel@vger.kernel.org Subject: Re: acpi/apm events as inputs: how to handle? References: <477B5FD8.5070503@msgid.tls.msk.ru> <200801052105.03068.dtor@insightbb.com> <47820224.2020902@msgid.tls.msk.ru> <20080107130332.5973A2D6BF@smtp02.mtu.ru> In-Reply-To: X-Enigmail-Version: 0.94.2.0 OpenPGP: id=4F9CF57E 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: 1156 Lines: 32 Dmitry Torokhov wrote: [] >> Well, you use event device in any case; as for finding right one - I guess >> you look at device capabilities and filter what you need ... >> >> {pts/0}% >> cat /sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input1/capabilities/key >> 100000 0 0 0 > > Exactly. Any driver working through evdev interface should examine > device's capabilities and decide whether it is interested in the > device or not. Ok, got it. But I can't open the device multiple times, can I? Like, there's a daemon listening on volume up/down and other multimedia keys for example, and it can't listen to the same eventX as a daemon that's watching for power/sleep buttons, -- instead, they should be combined into the same executable. Unless there's a way to multiplex the events... (Hmm, this becoming quite... ugly. Oh well.) By the way, where are all the capabilities of input devices documented? /mjt -- 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/