Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261436AbVBRSjc (ORCPT ); Fri, 18 Feb 2005 13:39:32 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261456AbVBRSjb (ORCPT ); Fri, 18 Feb 2005 13:39:31 -0500 Received: from twilight.ucw.cz ([81.30.235.3]:30090 "EHLO suse.cz") by vger.kernel.org with ESMTP id S261436AbVBRSjG (ORCPT ); Fri, 18 Feb 2005 13:39:06 -0500 Date: Fri, 18 Feb 2005 19:39:36 +0100 From: Vojtech Pavlik To: dtor_core@ameritech.net Cc: Pavel Machek , Oliver Neukum , Richard Purdie , James Simmons , Adrian Bunk , Linux Input Devices , Linux Kernel Mailing List Subject: Re: 2.6: drivers/input/power.c is never built Message-ID: <20050218183936.GA2242@ucw.cz> References: <20050213004729.GA3256@stusta.de> <047401c515bb$437b5130$0f01a8c0@max> <20050218132651.GA1813@elf.ucw.cz> <200502181436.01943.oliver@neukum.org> <20050218160153.GC12434@elf.ucw.cz> <20050218170036.GA1672@ucw.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.6i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2294 Lines: 54 On Fri, Feb 18, 2005 at 01:19:08PM -0500, Dmitry Torokhov wrote: > On Fri, 18 Feb 2005 18:00:36 +0100, Vojtech Pavlik wrote: > > On Fri, Feb 18, 2005 at 05:01:53PM +0100, Pavel Machek wrote: > > > > > > > It has quite a lot of #ifdefs for CONFIG_APM/CONFIG_ARM/CONFIG_ACPI, > > > > > and it will not work on i386/APM, anyway. I still believe right > > > > > solution is to add input interface to ACPI. /proc/acpi/events needs to > > > > > die, being replaced by input subsystem. > > > > > > > > But aren't there power events (battery low, etc) which are not > > > > input events? > > > > > > Yes, there are. They can probably stay... Or we can get "battery low" > > > key. > > > > We even have an event class for that, EV_PWR in the input subsystem. > > I really really think this is wrong. Power management should be > possible without input layer. EV_PWR is fine for telling input devices > to do something, like enter lower power mode Definitely not for this. The request to go to low power mode should come from the other side - the bus the device lives on. > and for sending _some_ requests to the PM system. I don't think input devices themselves should be sending any requests to the PM system at all, they should just pass the events to the userspace and have that decide what to do with it. Maybe a simple event handler like power.c for transforming key events to power change requests for embedded systems makes sense, but normally many more variables need to be taken into account, and thus userspace needs to decide. > But input layer shoudl not be used as a generic transport. I mean > battery low, docking requests, etc has nothing to do with input. Well, plugging in a power cord is a physical user action much like closing the lid is, much like pressing the power button is, much like pressing a key is. I definitely wouldn't want to see input to be a generic trasport layer - it is not. But I wouldn't be opposed to pass some of the user induced events through it. -- Vojtech Pavlik SuSE Labs, SuSE CR - 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/